/agent-toolkit-forge:gh-contribution-plannerfrom agent-toolkit-forge
Plans daily GitHub contributions by analyzing non-archived repos and recent contributions, then dispatches sub-agents to execute approved items via PR/CI/review skills.
Ships in agent-toolkit-forge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Discover what to work on across your GitHub footprint, propose a prioritized
daily plan, and — on approval — fan out parallel sub-agents to open draft PRs.
The skill infers the current user from the authenticated gh CLI, so no
manual configuration is required.
Do not use this skill to operate on a specific PR you already picked — use
gh-fix-ci, gh-address-comments, or github-cli-workflow directly.
gh installed and authenticated (gh auth status exits 0). Scopes
typically required: repo, read:org. doctor reports this under
Integrations.python3 for the bundled analyzer.api.github.com (or the host configured via GH_HOST).Task tool,
OpenCode's subagent fan-out, etc.). Hosts without that primitive fall back
to sequential execution.Verify auth. Run gh auth status. If unauthenticated, ask the user to
run gh auth login and stop. Do not prompt for tokens.
Resolve the current user. gh api user --jq .login — never ask the
user; always infer from gh.
Run the analyzer.
python3 ~/.local/share/agent-toolkit/skills/gh-contribution-planner/scripts/inspect_contributions.py \
--since 90d --max-per-bucket 5
Useful flags:
--json — machine-readable output (recommended when composing with
another agent).--user <login> — override the inferred login (useful for testing or
planning for an organization the user maintains).--dry-run — print the gh calls the analyzer would make and exit;
useful for sanity-checking before a live run.--max-per-bucket <n> — cap items per bucket (default 5).--since <window> — lookback window for recent contributions. Accepts
30d, 90d, 180d, or an ISO date.The script:
gh api user to resolve the login.gh api graphql to batch-fetch viewer repos (non-archived,
forks + sources), open PRs authored by the user, and recent
contributions across GitHub.behind/ahead counts.good first issue or
help wanted, plus unassigned issues older than the lookback window.Present the plan in English grouped into these buckets (each item must
show repo owner/name, a one-line summary, an effort estimate, and a
suggested delegate skill):
gh-fix-ci; rebase needed → github-cli-workflow).gh-address-comments.gh repo sync or a merge-from-upstream PR.good first issue / help wanted issues that are
currently unassigned.Halt for approval. Ask the user which buckets and which specific items to execute. Do not open PRs or push commits before approval.
Dispatch parallel sub-agents for the approved items. One sub-agent per item, capped at 5 concurrent by default. Each sub-agent receives:
owner/name and (when relevant) issue / PR number.dev-assistant for repo discovery, then route
to the right execution skill:
github-cli-workflow.gh-fix-ci.gh-address-comments.gh repo sync (delegate the sync step; never force).On hosts without parallel sub-agent dispatch, execute items sequentially in the same order and report progress between items.
Aggregate the run. When the parallel batch completes, summarize:
owner/repo#NN + URL).~/.cache/agent-toolkit/contribution-planner/<owner>-<repo>/. Never reuse
the host repo working tree.origin unless the
user explicitly opts in.github-cli-workflow.gitlab-cli-workflow instead.scripts/inspect_contributions.py — stdlib-only analyzer. Defaults to
Markdown output; --json for machine-readable output.skills check reports the gh and python3 requirements.
doctor shows gh auth status under Integrations.
Smoke test:
python3 ~/.local/share/agent-toolkit/skills/gh-contribution-planner/scripts/inspect_contributions.py --dry-run
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ulises-jeremias/agent-toolkit --plugin agent-toolkit-forge10 skills in this plugin
/fix-merge-conflictsResolve merge conflicts non-interactively, validate build and tests, and finalize conflict resolution/gh-address-commentsTriage and address open GitHub PR review and conversation comments using the gh CLI. Use when the user wants to "address PR comments", "resolve review threads", or "respond to reviewers" on the current branch's pull request./gh-fix-ciDiagnose failing GitHub Actions checks on a PR via gh, summarize the failure context, propose a plan, and only implement after explicit user approval. External CI providers (Buildkite, CircleCI, etc.) are reported by URL only./github-cli-workflowHOW — GitHub CLI (gh): push branch, create draft PR with title/body from template or file; fallback untracked PR_DESCRIPTION_*.md. Use when origin is GitHub./gitlab-cli-workflowHOW — GitLab CLI (glab): push branch, create draft MR with title/body; fallback untracked markdown. Use when origin is GitLab./pr-shipShip and babysit pull requests in conflict-first order (conflicts, review threads, CI) with skeptical comment verification, push-before-reply SHA citations, dual GitHub check gates, and Goal v2 policy checks.Other plugins' skills for the same job