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 skills add genai-io/san --skill gaingit clone --depth 1 https://github.com/genai-io/sanWrote 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/skills/genai-io/san/gain)<a href="https://agentmods.dev/skills/genai-io/san/gain"><img src="https://agentmods.dev/badge/skills/genai-io/san/gain/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/skills/genai-io/san/gain"><img src="https://agentmods.dev/badge/skills/genai-io/san/gain.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.00027 | $0.00722 |
| Opus 5.5 | $0.00011 | $0.00289 |
| Sonnet 5.5 | $0.00005 | $0.00144 |
| Haiku 4.5 | $0.00003 | $0.00072 |
Grade A, and why
gain 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 3d 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 — 40 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Gain
Review the change without editing it. Answer two questions separately: Did it solve the problem? Is the result better for the project? A bug fix can be worth keeping even if it neither simplifies the code nor makes it faster.
Choose the baseline
- Pull request: compare the merge base with the PR head.
- Commit: compare it with its parent. For a merge, name the parent you chose.
- Working tree: compare staged and unstaged changes with HEAD. Include relevant new files; leave unrelated local edits out.
If the target is unclear, ask. Name the affected users or callers, the intended change, and what must still work. Read the owning package and its callers. If tests ran on a different revision, say so.
Compare like with like
- Behavior: Run the same case before and after. Check affected failure, cancellation, and recovery paths. For a terminal UI, exercise the actual keys and rendered view at a relevant width. A passing build does not show that a user can still complete the task.
- Maintenance: Pick a likely future change. Which rules, files, and callers would have to change before and after? Count duplicated decisions, not similar lines. Fewer lines alone are not a gain.
- Design: Trace a normal path and a failure path. Has the change removed complexity or just moved it? Check package ownership, dependency direction, and names, including filenames. Justify a new abstraction with a concrete second use. In San, keep UI and policy in San and reusable agent primitives in sdk-go. Consult the package map, dependency rules, and design principles; run
go run ./devtools/layercheckwhen internal imports change. - Runtime: If speed or memory matters, use the same input and environment on both revisions. For Go benchmarks, take repeated samples (
-benchmem -count=10) and compare them withbenchstat. Report the size and variability of the difference. Elapsed time is not CPU time; allocated bytes are not peak memory. If measurement is unnecessary, say why rather than claiming a speedup.
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.
- 3d ago First seen · 40 lines · 27 tokens per session scan A 1dc49302209f
gain is a skill published in the GitHub repository genai-io/san (132 stars, last pushed today), licensed Apache-2.0. It adds 27 tokens to every session and 722 once invoked, about $0.0001 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-11-27.
gain compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| gaingenai-io/san | Skill | 132 | today | Apache-2.0 | A | 27 | Claude Code |
| code-reviewwulawulu/learn-claude-code-rs | Skill | 159 | 1mo ago | MIT | A | 35 | Claude Code |
| review-this-branchno-human-ai/no_human | Skill | 323 | 1mo ago | MIT | A | 53 | Claude Code |
| review-harnessspences10/my-pi | Skill | 141 | today | MIT | A | 36 | Claude Code, Codex |
| pi-parity-reviewsky-valley/pi | Skill | 94 | yesterday | MIT | A | 54 | Claude Code |
| pi-go-reviewsky-valley/pi | Skill | 94 | yesterday | MIT | A | 45 | Claude Code |
| scrutiny-validatorIntelligent-Internet/zenith | Skill | 418 | 2mo ago | Apache-2.0 | A | 45 | Claude Code, Codex |