ContribAI

by tang-vuVerified

Maintainer-governed agent for evidence-backed open-source contribution proposals

244
Stars
86
Forks
Rust
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/tang-vu/ContribAI

Getting Started

Guides for using skills like ContribAI.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

ContribAI

A maintainer-governed admission and evidence layer for AI-assisted open source contributions.

CI Rust License Tests

Website · Why ContribAI · Safety model · Quick start · Consent protocol · Architecture

ContribAI analyzes repositories and prepares small, reviewable changes. It does not treat a public repository as permission to write. Submission is a separate capability that must be enabled by the operator, authorized by the target maintainer, bounded by policy, reviewed by a human, and published as a draft pull request with an evidence receipt.

The project website is a dependency-free introduction and read-only onboarding path. It is informational only and exposes no ContribAI runtime capability.

public code ≠ permission to submit
generation ≠ admission
passing checks ≠ maintainer approval

Why ContribAI

AI can make code generation cheap while making review expensive. The failure mode is not merely bad code; it is uninvited work that transfers verification cost to maintainers. ContribAI is built around the opposite incentive:

  • Maintainer intent first. A repository manifest or maintainer-controlled issue label is required before an external proposal can be submitted.
  • Read-only by default. Discovery, analysis, scheduling, patrol, and MCP start without external write capability.
  • Evidence over confidence. Every admitted proposal records consent source, base revision, changed paths, changed-line budget, deterministic change fingerprint, and validation checks.
  • Bounded proposals. Protected governance files, unapproved paths, expired permits, oversized changes, failed checks, and missing base revisions fail closed.
  • Human accountability. The CLI requires an explicit review decision. Pull requests are always drafts. ContribAI never signs a CLA or merges code.

This is a tool for maintainers and accountable contributors—not a contribution-farming bot.

Safety model

An external draft can be created only when every gate passes:

operator --submit
      │
      ▼
repository manifest OR maintainer issue label
      │
      ▼
24-hour ContributionPermit bound to repository + base SHA
      │
      ▼
scope, protected-path, size, risk, quality, and validation checks
      │
      ▼
interactive human review
      │
      ▼
draft PR + EvidenceCapsule

Important invariants:

InvariantEnforcement
No implicit write accessPipeline write capability defaults to off
No unsolicited proposalRepository consent or approved issue label required
No moving-base ambiguityContribution branch starts at the attested commit SHA
No review/evidence substitutionFull candidate fingerprint and scope are recomputed at the write boundary
Revocable until writeCurrent manifest or issue approval is re-read immediately before the first write
No governance takeoverLicense, policy, workflow, funding, CODEOWNERS, and agent instruction paths are protected
No silent publicationGitHub PR creation always sets draft: true
No delegated legal actCLA signing is never exposed through CLI automation or MCP
No hidden MCP mutationMCP advertises read-only tools unless explicitly started with --allow-writes

See the threat model and the consent protocol for precise boundaries.

Quick start

Install a release

curl -fsSL https://raw.githubusercontent.com/tang-vu/ContribAI/main/install.sh | sh

On Windows PowerShell:

irm https://raw.githubusercontent.com/tang-vu/ContribAI/main/install.ps1 | iex

The installers verify the release checksum. Their isolated install path is smoke-tested against the published binary on Linux, macOS, and Windows for every release.

Build from source

Requirements: Rust stable and Git. Credentials are not needed for the offline proof.

git clone https://github.com/tang-vu/ContribAI.git
cd ContribAI
cargo install --path crates/contribai-rs --locked

Prove the boundary offline

Run the production consent, admission, and evidence path without config, credentials, network access, or external writes:

contribai demo
contribai demo --json
contribai demo --manifest examples/quickstart-repository/.github/contribai.yml --json

The demo also probes a protected workflow path and confirms that it is denied. Continue with the five-minute walkthrough and inspect the bundled quickstart repository.

Connect locally

Configure secrets through environment variables instead of committing them:

export GITHUB_TOKEN="..."
export GEMINI_API_KEY="..."       # or OPENAI_API_KEY / ANTHROPIC_API_KEY
contribai init
contribai doctor

Start safely

These commands do not submit anything:

contribai analyze https://github.com/owner/repo
contribai target https://github.com/owner/repo
contribai run
contribai patrol
contribai mcp-server

To request an admitted draft proposal:

contribai target https://github.com/owner/repo --submit
contribai solve https://github.com/owner/repo --submit

--submit is necessary but not sufficient. The repository must opt in, every check must pass, and the local operator must approve the exact evidence-bearing change interactively. The review renders every regular and test change without truncation; current consent is checked again before writing.

Consent protocol

Maintainers can opt in repository-wide with .github/contribai.yml:

schema_version: 1
enabled: true
max_files: 3
max_changed_lines: 120
allowed_paths: src/**, tests/**

The uppercase marker paths remain supported for compatibility with the experimental v1 protocol.

Operators can inspect the gate without invoking an LLM or writing to GitHub:

contribai consent-check owner/repo
contribai consent-check owner/repo --json --require-consent

For narrower approval, apply one of these labels to an issue:

  • contribai-approved (canonical)
  • agent-ready or ai-contribution-approved (compatibility aliases)

Issue approval is scoped to that issue. Repository consent is still bounded by its path and size budgets. Missing, malformed, or disabled consent is a denial.

Evidence Capsule

Each admitted draft includes a compact receipt such as:

Permit:               1d28…
Consent:              maintainer label `agent-ready` on #42
Base revision:         7a93…
Change fingerprint:    c441…
Scope:                 2 files / 37 changed lines
Evidence expires:      2026-08-11T08:00:00Z
Submission mode:       draft only
Checks:                admission, quality, risk, validation

The capsule makes the proposal reproducible and reviewable. The write boundary rejects expired, failed, cross-repository, scope-mismatched, or fingerprint-mismatched capsules and revalidates live maintainer consent. It remains a local audit receipt, not a substitute for CI, code review, provenance attestation, or maintainer judgment.

Capabilities

  • Tree-sitter analysis for 13 languages, with additional fallback language mappings
  • Security, correctness, performance, testing, documentation, and code-quality analysis
  • Cross-file symbol and import context
  • Multi-provider LLM support: Gemini, OpenAI, Anthropic, Ollama, Vertex AI, and Copilot routing
  • SQLite outcome memory and repository-specific preferences
  • Local/Docker validation, risk classification, quality scoring, and circuit breaking
  • Ratatui interface, read-only-by-default MCP server, and authenticated web dashboard
  • Draft PR lifecycle and explicit patrol response capability
  • Offline admission/evidence demo with a protected-path fail-closed probe

The Python implementation under python/ is legacy reference code. Rust under crates/contribai-rs/ is the maintained implementation.

Command model

CommandDefault behaviorExplicit mutation capability
demo [--json]Offline policy and evidence walkthroughNone
analyze <url>Analyze onlyNone
target <url>Analyze and prepare candidate--submit
runDiscover and assess--submit
huntMulti-round assessment--submit
solve <url>Analyze issues--submit
watchlistAssess configured repositories--submit
patrolRead review state--respond
mcp-serverAdvertise read-only tools--allow-writes (never PR creation or CLA signing)

Run contribai <command> --help for the complete interface.

Architecture

CLI / TUI / MCP
       │
       ▼
Discovery ──► Analysis ──► Generation ──► Validation
                                            │
                                            ▼
                                     AdmissionController
                                      │ consent
                                      │ permit + base SHA
                                      │ scope + risk
                                      │ evidence checks
                                      ▼
                                      Human review
                                            │
                                            ▼
                                      Draft PR only

The main Rust modules are:

  • core/admission.rs — consent, permits, scope enforcement, evidence capsules
  • orchestrator/pipeline.rs — read and write capability orchestration
  • analysis/ — AST intelligence, triage, repository context, progressive skills
  • generator/ — candidate generation, validation, risk, scoring, self-review
  • github/ — resilient GitHub REST and GraphQL client
  • pr/ — evidence-required draft lifecycle and patrol
  • mcp/ — capability-aware MCP surface
  • web/ — local dashboard and authenticated remote API surface
  • site/ — static public onboarding; no runtime API, analytics, cookies, or external dependencies

See ARCHITECTURE.md for implementation details.

Configuration

Copy config.example.yaml to config.yaml, or use contribai init. Safe defaults include:

  • pipeline.dry_run: true
  • pipeline.agent_mode: plan
  • scheduler.enabled: false
  • validation required
  • web bound to localhost unless authentication is configured

Secrets may be loaded from environment variables. Never commit config.yaml, tokens, webhook secrets, local databases, or event logs.

Verification

cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
cargo build --workspace --release
node scripts/check-site.mjs
node --check site/app.js
node scripts/check-installers.mjs
(cd examples/quickstart-repository && npm test)

The current workspace runs 686 passing tests plus one intentionally ignored doctest.

Project policy

  • AI-assisted contributions are welcome when disclosed and owned by a human contributor.
  • Generated output receives no special trust and must satisfy the same review bar as human-written code.
  • Do not use this project for bulk unsolicited issues, pull requests, comments, follows, or stars.
  • Respect repository policy, rate limits, maintainer attention, licenses, and contributor identity.
  • Security reports belong in private GitHub Security Advisories, not public issues.

Read CONTRIBUTING.md, GOVERNANCE.md, SECURITY.md, and CODE_OF_CONDUCT.md before contributing.

License

ContribAI is free and open source software licensed under AGPL-3.0-or-later. The former Commons Clause restriction has been removed.

Frequently Asked Questions

What is ContribAI?

ContribAI is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by tang-vu. Maintainer-governed agent for evidence-backed open-source contribution proposals. It has 244 GitHub stars.

Is ContribAI safe to use?

Yes. ContribAI passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install ContribAI?

Clone the repository with "git clone https://github.com/tang-vu/ContribAI" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is ContribAI written in?

ContribAI is primarily written in Rust. It is open-source under tang-vu on GitHub, so you can review or fork the full source.

Are there alternatives to ContribAI?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh ContribAI against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI Agents
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details