gain

gain is a skill for Claude Code from genai-io/san. It costs 27 tokens per session (722 once invoked), scanned A, original, Apache-2.0.

A read-only review method for a pull request, commit, or local code change, checking both whether it solves the stated problem and whether its costs are justified.

In plain words
What is it for?
Use it to review code changes, inspect affected callers, run comparable checks, and report behavior, maintenance, performance, and test concerns.
Why use it?
It separates correctness from overall value and compares behavior before and after the change, including failure and recovery cases.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to review code changes, inspect affected callers, run comparable checks, and report behavior, maintenance, performance, and test concerns.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/genai-io/san/gain
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.

Any agent
npx skills add genai-io/san --skill gain
Clone the repo
git clone --depth 1 https://github.com/genai-io/san

Made for: Claude Code.

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 gain

README.md
[![agentmods](https://agentmods.dev/badge/skills/genai-io/san/gain/github.svg)](https://agentmods.dev/skills/genai-io/san/gain)
Your own site
<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.

agentmods 80×15 button for gain

Your own site · 80×15
<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>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 722 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.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

Measured 3d ago against content hash 1dc49302209f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.san/skills/gain/SKILL.md · 40 lines

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/layercheck when 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 with benchstat. 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.

Read the full file on GitHub · 40 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. 3d ago First seen · 40 lines · 27 tokens per session scan A 1dc49302209f

Subscribe to this mod's changes

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.

Related

gain compared with skills from other repositories

gain next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gaingenai-io/sanSkill132todayApache-2.0A27Claude Code
code-reviewwulawulu/learn-claude-code-rsSkill1591mo agoMITA35Claude Code
review-this-branchno-human-ai/no_humanSkill3231mo agoMITA53Claude Code
review-harnessspences10/my-piSkill141todayMITA36Claude Code, Codex
pi-parity-reviewsky-valley/piSkill94yesterdayMITA54Claude Code
pi-go-reviewsky-valley/piSkill94yesterdayMITA45Claude Code
scrutiny-validatorIntelligent-Internet/zenithSkill4182mo agoApache-2.0A45Claude Code, Codex