Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/muratmirgun/gophersnpx agentmods add agents/muratmirgun/gophers/go-skill-extractorWrote 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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" 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.1 | $0.00106 | $0.02043 |
| Opus 5.5 | $0.00042 | $0.00817 |
| Sonnet 5.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 2mo 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.
- 2mo 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 (9 stars, last pushed 2mo ago), licensed MIT. It adds 106 tokens to every session and 2,043 once invoked, about $0.0004 per session on Opus 5.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.
go-skill-extractor compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| go-skill-extractormuratmirgun/gophers | Agent | 9 | 2mo ago | MIT | A | 106 | Claude Code |
| go-expertfusengine/agents | Agent | 34 | 25d ago | MIT | A | 36 | Claude Code |
| go-testersergeyklay/.agents | Agent | 6 | 2d ago | Apache-2.0 | A | 154 | Claude Code |
| swift-leadThe-Artificer-of-Ciphers-LLC/skills-from-the-artificer | Agent | 6 | 5d ago | MIT | A | 25 | Claude Code |
| concurrency-specialistThe-Artificer-of-Ciphers-LLC/skills-from-the-artificer | Agent | 6 | 5d ago | MIT | A | 38 | Claude Code |
| go-reviewerNYTC69/review-loop | Agent | 3 | yesterday | Apache-2.0 | A | 27 | Claude Code |
| engineer:gofranzos/claude-plugins | Agent | 1 | 1mo ago | MIT | A | 64 | Claude Code |