Discovers approachable issues on GitHub repos you star or use, determines fix/review/propose actions, sets up workspaces, and guides PR submissions using gh CLI and git.
From token-stewardnpx claudepluginhub mainnebula/token-steward --plugin token-stewardThis skill uses the workspace's default tool permissions.
Observes Claude Code sessions via hooks to create atomic project-scoped instincts with confidence scores, evolving them into skills, commands, or agents.
Automatically extracts reusable patterns like error resolutions, workarounds, and debugging techniques from Claude Code sessions via Stop hook, saving them as learned skills for reuse.
Provides patterns for continuous autonomous agent loops with loop selection, quality gates, evals, recovery controls, and failure mitigation. Useful for production AI agent workflows.
Token Steward helps you contribute to the open-source projects you care about. It finds real issues on projects that matter to you, sets up workspaces, and guides you through submitting quality PRs. Got unused Claude Code tokens? Put them to work on the tools you depend on.
Only gh CLI authenticated with GitHub is required. Verify with:
gh auth status
Everything works natively with just gh and git.
Every discovered issue gets one of three action types based on its state:
| Action | When | What you do |
|---|---|---|
| Fix | No assignee, no open PRs, reasonable size | Fork, branch, code, submit a draft PR |
| Review | Issue has an open PR from another contributor | Checkout the PR, review code, run tests, post feedback |
| Propose | Issue is too large/complex for one session | Analyze the codebase, post an approach plan as a comment |
Check for existing PRs linked to the issue:
gh pr list -R <owner/repo> --search "<issue-number>" --state=open --json number,title,url,author,additions,deletions
If open PRs exist → Review
Check assignees:
gh issue view <number> -R <owner/repo> --json assignees
If assigned to someone → skip (someone is already working on it)
Estimate complexity from labels and issue body:
Discovery uses a two-path choice to quickly find relevant issues without wasting tokens on broad searching.
A pre-built feed of scored, filtered issues is published to:
https://raw.githubusercontent.com/mainnebula/token-steward/feed/feed/feed.json
The feed is rebuilt every 6 hours by a GitHub Actions workflow that:
The user picks one of three paths:
- Projects I use — find issues on repos you've starred or contributed to
- Important projects — find approachable issues on well-known open-source projects
- Or name a specific project
Path 1 — "Projects I use":
gh api user/starredPath 2 — "Important projects":
scripts/seed-feed.shPath 3 — Specific project:
gh repo viewAll paths dedupe against the user's existing open PRs before presenting results. Top 5 issues are shown sorted by score with action type tags.
Behavior depends on the action type:
Claude acts as a guide — the user should understand what's broken, why, what changed, and how to verify.
gh repo clone <owner/repo>
gh pr checkout <pr-number> -R <owner/repo>
gh pr view <pr-number> -R <owner/repo> --json title,body,files,additions,deletions,commits,comments,reviews
gh pr diff <pr-number> -R <owner/repo>
gh issue view <issue-number> -R <owner/repo> --json title,body,labels
STEWARD_CONTEXT.md with:
gh pr review or summarize findings for the user to postgh repo clone <owner/repo>
gh issue view <number> -R <owner/repo> --json title,body,labels,comments
STEWARD_CONTEXT.md with:
gh issue comment <number> -R <owner/repo> --body "<proposal>"
For Fix actions: push branch and open a draft PR (same as before).
For Review actions: post the review via gh pr review or summarize for the user.
For Propose actions: post the proposal comment via gh issue comment.
The skill works standalone, but the Token Steward CLI adds persistent tracking, budgets, and local processing that saves Claude Code tokens.
At the start of any command, check if the CLI is installed:
which steward 2>/dev/null && steward --version
Store the result — don't check again in the same session.
Offer to install the CLI (don't just mention it) when:
How to offer:
The Token Steward CLI can handle discovery and workspace setup locally, saving Claude Code tokens on future runs. It also tracks your contributions and enforces usage budgets.
Want me to install it? I'll run:
npm install -g token-steward && steward init
Only offer once per session. If the user declines, don't ask again.
| Feature | Skill only | With CLI |
|---|---|---|
| Discover issues | Claude searches via gh | steward discover runs locally |
| Work on issues | Claude forks/branches via gh | steward work does it locally |
| Submit PRs | Claude pushes via gh/git | steward submit does it locally |
| Run history | None | Persistent, queryable |
| Token budgets | None | Enforced per-run and weekly |
| Scheduling | None | Automated contribution windows |
| Stats | Basic (from gh pr list) | Detailed per-run tracking |