How to Use GitHub contribution activity in opencode
Fetch monthly summaries from a GitHub profile's contribution timeline, with repository details and links where available. Use it to build an open-source project recap or inspect the work behind a contribution count.
Prompts to try with GitHub contribution activity in opencode
Copy an example into opencode, or ask in your own words.
Use GitHub contribution activity for kentcdodds in 2025, retrieve every available month, and create docs/open-source-recap.md with summaries grouped by repository and their returned links.
Read this project's package.json, then use GitHub contribution activity for sindresorhus in 2025 to find returned repositories matching our dependencies and write a review brief.
Use GitHub contribution activity for torvalds in 2025 and create a CSV of the returned monthly commit summaries, repository names, and source links.
Use GitHub contribution activity for kentcdodds in 2025 and add a table to docs/research.md showing returned activity for epicweb-dev repositories.
Use GitHub contribution activity for sindresorhus in 2025 and build a small report page displaying the returned monthly summaries with repository links.
How to set up GitHub contribution activity in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run GitHub contribution activity
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "scrapecreators", "model": "scrapecreators/github-user-activity", "input": { "url": "https://github.com/torvalds" } }'
Then paste one of the prompts above: opencode finds GitHub contribution activity on Spiral, shows the price and runs it.
GitHub contribution activity providers and prices
Spiral runs GitHub contribution activity through ScrapeCreators. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Year | a number | When provided, returns profile contribution activity for that year. Defaults to the current year. | |
| Cursor | a number | Cursor from the previous response. Pages backward by month through the selected year. |
Every API field of GitHub · Activity is on its tool page: open its card above.
What can you do with GitHub contribution activity in opencode?
Build a repository-linked project recap from a public maintainer's monthly GitHub contribution summaries. A coding agent can match returned repositories against your dependency files and write a focused review brief.
Open-source project recap
Turn a public maintainer's monthly contribution summaries into a recap organized by repository, with links readers can inspect.
Dependency review brief
Filter a public maintainer's returned activity to repositories used by your project and collect the visible contribution summaries for a dependency review.
Annual project archive
Page through a selected year and preserve the available monthly contribution summaries and repository links for an open-source project archive.
Project newsletter draft
Use returned summaries from a public project creator's timeline to draft a newsletter section about repository work, keeping each statement tied to its source link.
Contribution count explanation
Explain a monthly commit summary by showing the repository totals supplied in its details, giving readers context beyond a single contribution count.
Documentation research queue
Collect repositories appearing in a public educator's contribution timeline as candidates for tutorials or documentation research.
More on GitHub contribution activity and opencode
GitHub contribution activity in other agents
Questions about GitHub contribution activity in opencode
Can opencode use GitHub contribution activity?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run GitHub contribution activity like any built-in tool.
How much does GitHub contribution activity cost in opencode?
$0.0013 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need a ScrapeCreators account to use GitHub contribution activity in opencode?
No. Spiral runs GitHub contribution activity on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.
How long does it take to set up GitHub contribution activity in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while GitHub contribution activity runs?
GitHub contribution activity runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
What does GitHub contribution activity contain?
The endpoint returns monthly activity summaries with repository details and links where available. GitHub's underlying timeline covers commits, proposed pull requests, and opened issues.
Does one request return a full year?
Each response covers one month. Follow the returned pagination cursor to move backward through the selected year.
How quickly do new contributions appear?
GitHub says qualifying commits can take up to 24 hours to appear on the contribution graph. A same-day contribution check can therefore miss recent work.
Can public activity reveal private repository work?
When someone publicizes private contributions, viewers without access can see daily contribution counts. GitHub withholds the specific details of that work.
Does the contribution record include every commit?
GitHub applies contribution criteria, so the record is not a complete commit ledger. For example, commits made in a fork do not qualify for the contribution graph.
Start using GitHub contribution activity in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


