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 skills/morluto/leantoken/optimize-accuracy-firstnpx skills add morluto/leantoken --skill optimize-accuracy-firstgit clone --depth 1 https://github.com/morluto/leantokenWrote 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/morluto/leantoken/optimize-accuracy-first)<a href="https://agentmods.dev/skills/morluto/leantoken/optimize-accuracy-first"><img src="https://agentmods.dev/badge/skills/morluto/leantoken/optimize-accuracy-first.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.00090 | $0.01984 |
| Opus 5 | $0.00045 | $0.00992 |
| Sonnet 5 | $0.00018 | $0.00397 |
| Haiku 4.5 | $0.00009 | $0.00198 |
Grade A, and why
optimize-accuracy-first 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 — 220 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Optimize Accuracy First
Optimize the work required to produce a correct, useful result. Do not optimize one local timer while making callers search again, consume worse evidence, or lose a correctness guarantee.
This skill is self-contained. Use repository source, version control, the project's normal build and test commands, checked-in benchmarks, and ordinary OS measurements. Do not require an optional MCP server, hosted research service, or external workflow product. If an optional facility is unavailable, continue with the repository-owned workflow.
Read references/measurement-matrix.md before designing or running an experiment.
Define the actual outcome
Write one falsifiable optimization claim before changing code:
For workload W, change C should reduce owner O and improve metric M, while preserving invariants I.
Name the caller-visible outcome. “Reduce SQL statements” is not enough if the same rows still dominate. “Use less CPU” is not enough if retrieval misses cause another request. Prefer claims such as:
- reduce verified regex chunks without changing matches or bounded failures;
- improve relevant-source coverage within the same exact token budget;
- remove repeated content scans while preserving excerpts, ordering, and scores;
- reduce cold publication writes without weakening atomic generations;
- reduce deep-read work without changing live-file staleness detection.
Classify the request before acting:
- For diagnose, locate and explain the owner; do not implement.
- For research or compare, produce a decision with evidence; do not mutate.
- For change or optimize, implement the narrowest supported candidate and validate it.
Establish non-negotiable invariants
Record the applicable invariants before measuring. Include more than happy-path result equality:
- result membership, coordinates, ordering, scores, and occurrence counts;
- exact token accounting, truncation, continuation, and saturation semantics;
- case, Unicode, regex, parser, and tokenizer semantics;
- error categories, limits, cancellation, and
LimitExceededbehavior; - deterministic output and stable tie-breaking;
- live-content freshness, expected-hash behavior, and snapshot consistency;
- atomic publication, generation invalidation, and bounded memory;
- protocol shape and downstream caller expectations.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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 · 220 lines · 90 tokens per session scan A c581982bae88
optimize-accuracy-first is a skill published in the GitHub repository morluto/leantoken (23 stars, last pushed 2d ago), licensed Apache-2.0. It adds 90 tokens to every session and 1,984 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-30.
Other skills, from other repositories
codebase-index
Use before answering repository questions about architecture, implementation, symbols, references, dependencies, refactoring impact, data flow, or bugs. Query the local hybrid index first so the agent reads only evidence-bearing file:line ranges instead of scanning the repository.
jarvis-use
Use jarvis structural code intelligence for code structure queries: finding references, go-to-definition, call/type hierarchy, who calls a function, where a symbol is defined, document symbols, natural-language semantic search. Prefer over grep.
jarvis-issues
Report bugs and request features for the jarvis MCP server via GitHub issues. Use when jarvis errors, an index fails, a limitation bites, or to request an improvement.
jarvis-setup
Install and configure jarvis, the local-first structural code intelligence. Use when onboarding, running setup.sh, registering the MCP server, or indexing a repo for the first time.
codebase-index
Use before answering repository questions about architecture, implementation, symbols, references, dependencies, refactoring impact, data flow, or bugs. Query the local hybrid index first so the agent reads only evidence-bearing file:line ranges instead of scanning the repository.
codebase-index
Use before answering repository questions about architecture, implementation, symbols, references, dependencies, refactoring impact, data flow, or bugs. Query the local hybrid index first so the agent reads only evidence-bearing file:line ranges instead of scanning the repository.