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.
npx agentmods add agents/muratmirgun/gophers/go-skill-extractorgit clone --depth 1 https://github.com/muratmirgun/gophersWrote 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.
[](https://agentmods.dev/agents/muratmirgun/gophers/go-skill-extractor)<a href="https://agentmods.dev/agents/muratmirgun/gophers/go-skill-extractor"><img src="https://agentmods.dev/badge/agents/muratmirgun/gophers/go-skill-extractor.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00106 | $0.02043 |
| Opus 5 | $0.00053 | $0.01022 |
| Sonnet 5 | $0.00021 | $0.00409 |
| Haiku 4.5 | $0.00011 | $0.00204 |
Grade A, and why
go-skill-extractor 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.
How it starts
The opening of the file, as written. The whole thing — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.
go-skill-extractor
A meta-agent that finds repeated Go patterns in a codebase and proposes them as new gophers skills. It does not create the SKILL.md on disk — it returns a draft proposal markdown the maintainer can iterate on.
When to Dispatch
Dispatch when:
- A service has grown past 50 packages and the team notices "we always do X"
- A monthly / quarterly audit on a long-lived monorepo
- After a large refactor that introduced new internal conventions
- A reviewer keeps copy-pasting the same nit comment across PRs
Do not dispatch when:
- The codebase is < 10 packages (not enough signal)
- The repeated pattern is just a function helper (factor it into a Go helper, not a skill)
- The pattern is project-specific (e.g., one company's auth flow) — those are runbooks, not skills
- An existing gophers skill already covers it (check the Skills Catalog first)
Input Contract
| Input | Format | Example |
|---|---|---|
module_root |
path | ./ |
min_occurrences (optional) |
integer | 3 (default) |
min_packages (optional) |
integer | 2 (default) |
existing_skills_dir (optional) |
path | ../gophers/skills (defaults to comparing against the Skills Catalog) |
domain (optional) |
comma-separated topic hints | errors,logging,http |
Process
- Enumerate packages.
go list -f '{{.ImportPath}} {{.Dir}}' ./... - Detect candidate patterns. Look for structurally repeated shapes (≥
min_occurrencesacross ≥min_packagespackages):- Error patterns — repeated wrapping shapes, sentinel definitions, custom error types
- HTTP patterns — middleware ordering, response shapes, request-id propagation
- Logging patterns — repeated logger field sets, log-and-return mistakes
- Concurrency patterns — same worker-pool shape, same select-with-context skeleton
- Init patterns — repeated config loading, repeated DI wiring
- Testing patterns — repeated fake shapes, repeated
httptestharnesses
- For each candidate, run negative coverage check. For every existing skill in
existing_skills_dir:grep -i <candidate-keyword> skills/*/SKILL.md- If any hit, skip the candidate (already covered)
- Score candidates by (occurrences × packages × novelty). Return the top 3.
- For each surviving candidate, draft a SKILL.md proposal following the gophers template — see Output Contract below.
- Cite real
file:linelocations for every claim (this is not a hypothetical proposal — it must reference actual code).
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.
- 4d ago First seen · 197 lines · 106 tokens per session scan A 5d935152a0e6
go-skill-extractor is an agent published in the GitHub repository muratmirgun/gophers (8 stars, last pushed 23d ago), licensed MIT. It adds 106 tokens to every session and 2,043 once invoked, about $0.0005 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-31.
Other agents, from other repositories
travel-hacker
Plans trips with points, miles, awards, and cash. Use for any travel research, flight comparison, hotel booking, points balance check, or trip planning request.
2-generate-tasks
Convert PRDs into development task lists.
3-process-task-list
Execute task lists with sequential commits.
code-developer
Implement code, debug, refactor, optimize.
1-create-prd
Create PRDs through structured discovery.
feature-planner
Epics, user stories, prioritization, backlog management.