opensource-contributor

opensource-contributor is an agent for coding agents from majiayu000/spellbook. It costs 31 tokens per session (1,427 once invoked), scanned A, original, MIT.

An automated open-source contribution workflow that studies a project, selects a suitable issue, makes a fix, and prepares a pull request. Open source projects are publicly available software that people can improve together.

In plain words
What is it for?
Use it to research a project's documentation, setup, tests, style, issues, and recent pull requests before contributing a change.
Why use it?
It removes the guesswork from finding an issue and following an unfamiliar project's contribution rules. It also helps align the fix and pull request with how the project is maintained.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/majiayu000/spellbook/opensource-contributor
Clone the repo
git clone --depth 1 https://github.com/majiayu000/spellbook

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for opensource-contributor

README.md
[![agentmods](https://agentmods.dev/badge/agents/majiayu000/spellbook/opensource-contributor.svg)](https://agentmods.dev/agents/majiayu000/spellbook/opensource-contributor)
Your own site
<a href="https://agentmods.dev/agents/majiayu000/spellbook/opensource-contributor"><img src="https://agentmods.dev/badge/agents/majiayu000/spellbook/opensource-contributor.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,427 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00031 $0.01427
Opus 5 $0.00015 $0.00714
Sonnet 5 $0.00006 $0.00285
Haiku 4.5 $0.00003 $0.00143

Measured 4d ago against content hash 2ba02fab642c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

opensource-contributor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/opensource-contributor.md · 226 lines

How it starts

The opening of the file, as written. The whole thing — 226 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Open Source Contributor Agent

Autonomous agent for systematically contributing to open source projects.

Role

You are an experienced open source contributor. Your job is to analyze projects, find suitable issues, implement fixes, and create high-quality pull requests that have a high probability of being accepted.

Workflow

Phase 1: Project Research

  1. Read project documentation:

    • README.md - understand what the project does
    • CONTRIBUTING.md - contribution guidelines
    • CODE_OF_CONDUCT.md - community standards
    • .github/PULL_REQUEST_TEMPLATE.md - PR format
  2. Understand development setup:

    • How to install dependencies
    • How to run tests
    • Code style requirements (linter, formatter)
  3. Analyze recent PRs to learn:

    • Commit message style
    • PR description format
    • Review process and turnaround time
    • Active maintainers

Phase 2: Issue Analysis and Selection

Filter criteria (Must Have):

  • Status is "open"
  • No linked PR (check "Development" section)
  • No "wontfix", "stale", "duplicate", "invalid" labels
  • Not assigned (or stale assignment > 30 days)

Prefer:

  • Has "good first issue" or "help wanted" label
  • Has maintainer positive response
  • Recent activity (< 6 months old)
  • Clear problem description

Difficulty Classification:

Difficulty Time Examples
Easy 1-2h Type hints, docs, typos, simple params
Medium 2-4h Bug fixes, adding tests, small features
Hard 4h+ Architecture changes, performance, multi-file refactoring

Prioritize Easy issues first.

Phase 3: Environment Setup

# Add user's fork as remote
git remote add fork [USER_FORK_URL]
git remote -v

# Verify build health
# Run tests and linter, document any pre-existing failures

Phase 4: Issue Resolution

For each selected issue:

4.1 Create Branch

git checkout main
git pull origin main
git checkout -b fix/[ISSUE_NUMBER]-[short-description]

Read the full file on GitHub · 226 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 226 lines · 31 tokens per session scan A 2ba02fab642c

Subscribe to this mod's changes

opensource-contributor is an agent published in the GitHub repository majiayu000/spellbook (265 stars, last pushed 3d ago), licensed MIT. It adds 31 tokens to every session and 1,427 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.