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/sachinshelke/codevira/foolproof-productnpx skills add sachinshelke/codevira --skill foolproof-productgit clone --depth 1 https://github.com/sachinshelke/codeviraWrote 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/sachinshelke/codevira/foolproof-product)<a href="https://agentmods.dev/skills/sachinshelke/codevira/foolproof-product"><img src="https://agentmods.dev/badge/skills/sachinshelke/codevira/foolproof-product.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.00124 | $0.02361 |
| Opus 5 | $0.00062 | $0.01180 |
| Sonnet 5 | $0.00025 | $0.00472 |
| Haiku 4.5 | $0.00012 | $0.00236 |
Grade A, and why
foolproof-product 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 5d 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 — 274 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Foolproof product — non-skippable code invariants
The release-readiness skill prevents shipping a release without evidence. THIS skill prevents writing code that misbehaves once shipped. The two are complementary; both must be enforced.
v2.0.0 shipped with 23 bugs (A–O) because individual code changes satisfied "the function returns a value" but violated the product invariants below. This skill makes those invariants explicit and checkable.
The 10 principles (P1–P10)
For every code change you make in mcp_server/ or indexer/, walk
through this checklist. Skipping any P is a discipline breach.
P1 — No silent failures, ever
For every code path that does work:
- Returns >0 results → succeeds with concrete counts in the response
- Returns 0 results → MUST emit a clear "no results because "
message with a
fix_commandfield
Anti-pattern (the v2.0 bug pattern):
def index() -> dict:
matched = [f for f in files if matches(f)]
if not matched:
return {"chunks": 0} # ← silent zero. NEVER.
return {"chunks": len(matched)}
Correct:
def index() -> dict:
matched = [f for f in files if matches(f)]
if not matched:
return {
"chunks": 0,
"warning": f"No files matched. watched_dirs={watched_dirs} "
f"file_extensions={extensions}",
"fix_command": "codevira configure",
}
return {"chunks": len(matched), "files": [str(f) for f in matched]}
P2 — Self-diagnose on startup
Every long-running entry point (MCP server boot, watcher start, indexer process) must run startup health checks:
- Database files openable + expected tables present
- Schema version matches (migrate forward OR halt with error)
- Required dependencies importable (chromadb, sentence-transformers)
- File system permissions on data dir
On any failure: halt with a clear remediation hint. Never start in a degraded state without telling the user.
P3 — Atomic state mutations
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.
- 5d ago First seen · 274 lines · 124 tokens per session scan A e37eaf640c65
foolproof-product is a skill published in the GitHub repository sachinshelke/codevira (12 stars, last pushed 20d ago), licensed MIT. It adds 124 tokens to every session and 2,361 once invoked, about $0.0006 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
test-driven-development
Drives development with tests. Use when implementing any logic, fixing any bug, or changing any behavior. Use when you need to prove that code works, when a bug report arrives, or when you're about to modify existing functionality.
documentation-and-adrs
Records decisions and documentation. Use when making architectural decisions, changing public APIs, shipping features, or when you need to record context that future engineers and agents will need to understand the codebase.
idea-refine
Refines raw ideas into sharp, actionable concepts through structured divergent and convergent thinking. Use when an idea is still vague, when you need to stress-test assumptions before committing to a plan, or when you want to expand options before converging on one. Triggers on "ideate", "refine this idea", or…
peon-ping-log
Log exercise reps for the Peon Trainer. Use when user says they did pushups, squats, or wants to log reps. Examples - "/peon-ping-log 25 pushups", "/peon-ping-log 30 squats", "log 50 pushups".
excalidraw-architect
Choose and compose the right Excalidraw diagram - architecture, flowchart, sequence, state, ER, swimlane, process, timeline, quadrant, pyramid, venn, loop, gantt, bar, line, scatter, and more - using the excalidraw-architect-mcp server. Use whenever a reader would learn more from a picture than from prose, or when…
ponytail-lazy-senior-dev
Applies the "lazy senior developer" mindset. Use this skill whenever generating, modifying, reviewing code, or fixing bugs to prioritize code reuse, minimalism, YAGNI principles, and root-cause fixes. Also use whenever the user says "ponytail", "be lazy", "lazy mode", "simplest solution", "minimal solution", "yagni"…