agentic-contributor
Research-and-engagement assistant for contributing to open-source projects — draft-only, human-in-the-loop.
This is the research-and-engagement half of a two-plugin system. It surfaces issues, researches project status, and drafts all outbound text for your review. It never posts, pushes, or sends anything.
Features
- Single
/oss entrypoint — one command handles all 10 contribution scenarios; presents an interactive menu if arguments are omitted.
- 10 built-in scenarios — project status, issue/PR matching, contribution norms, dev environment setup, maintainer questions, issue claiming, PR feedback, review-reply understanding briefs and reply linting, new-issue authoring (bug reports and feature requests), and PR preparation (a change debrief plus a problem-first PR description you complete). Every draft scenario carries a cached, advisory project policy preflight (AI-use policy, open-PR cap, vouch, issue-first), and PR-intent requests are routed to a new-issue draft when the project wants an issue first.
- Read-only GitHub research —
oss-researcher and oss-claim-analyst subagents access GitHub via the MCP server or gh CLI; neither ever mutates.
- Draft-only guardrail — a
PreToolUse hook actively denies all outbound and mutating actions; drafts are presented for human review before any separate execution step.
- MCP +
gh fallback — prefers the structured GitHub MCP server when GITHUB_MCP_TOKEN is set; falls back to gh CLI automatically.
- Contributor readiness — claim and find add a private, advisory self-check of how maintainers will likely see your PR (open PRs vs the project's cap, merged PRs, vouch) and favour track-record-building work; it never blocks a draft. Say "skip readiness" to opt out.
- Tracked sessions & decision checkpoints —
/oss track keeps a private decision ledger while an agent codes; an advisory, opt-in hook asks you to choose at a few reviewer-relevant moments (test weakening, dependencies, out-of-scope edits) within a small budget. From v0.9.0 the same hook family also raises advisory scope-drift alerts (keep / separate PR / drop / skip) and asks one skippable explain-back question about a specific file:line when the agent stops after edits. From v0.10.0, predict-then-reveal is auto by default (on for a newcomer to the repo or after a skipped explain-back, off after two "no idea" answers; --predict / --no-predict force it): the agent asks for your guess before revealing its diagnosis or plan, then shows where you matched or differed (private, never scored). The debrief and PR scaffold reuse the ledger as first-hand evidence.
- Configurable target projects — copy
config/targets.example.yaml to config/targets.yaml to set a personal shortlist of repos.
Prerequisites
| Requirement | Version | Purpose |
|---|
| Claude Code CLI | latest | Plugin host |
GitHub CLI (gh) | any | gh fallback authentication and read commands |
GITHUB_MCP_TOKEN env var | — | GitHub personal access token for MCP server (optional but recommended) |
jq | any | Guardrail and checkpoint hook JSON parsing (python3 fallback) |
Installation
Local install (development)
git clone https://github.com/josix/agentic-contributor.git
claude --plugin-dir /path/to/agentic-contributor
Enable after cloning
/plugins enable agentic-contributor
Marketplace
/plugin marketplace add josix/agentic-contributor
/plugin install agentic-contributor@josix-plugins
Validating Your Installation
Confirm the plugin loaded correctly before your first /oss run:
# 1. Confirm plugin.json and marketplace.json are valid JSON
jq . /path/to/agentic-contributor/.claude-plugin/plugin.json
jq . /path/to/agentic-contributor/.claude-plugin/marketplace.json
# 2. Confirm the /oss command appears in Claude Code
# (type /oss in Claude Code and verify the command is suggested)
# 3. Confirm gh CLI auth (fallback path)
gh auth status
Note: Hooks and the MCP server are registered at session start. After enabling the plugin, restart your Claude Code session for the PreToolUse guardrail hook and the GitHub MCP server to take effect.
Usage
The /oss Command
/oss is the single entry point for all OSS contribution tasks.
/oss [what you want to do]
Examples: