foolproof-product

foolproof-product is a skill for Claude Code, Codex from sachinshelke/codevira. It costs 124 tokens per session (2,361 once invoked), scanned A, original, MIT.

A product-reliability skill that applies rules for safe changes to the commands users run in a software product.

In plain words
What is it for?
Use it when changing product code, especially command behavior, error handling, state updates, or result reporting in the specified project areas.
Why use it?
It helps prevent silent failures, inconsistent state, and other bugs that may only appear after a feature is released.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/sachinshelke/codevira/foolproof-product
Any agent
npx skills add sachinshelke/codevira --skill foolproof-product
Clone the repo
git clone --depth 1 https://github.com/sachinshelke/codevira

Made for: Claude Code, Codex.

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 foolproof-product

README.md
[![agentmods](https://agentmods.dev/badge/skills/sachinshelke/codevira/foolproof-product.svg)](https://agentmods.dev/skills/sachinshelke/codevira/foolproof-product)
Your own site
<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>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,361 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00124 $0.02361
Opus 5 $0.00062 $0.01180
Sonnet 5 $0.00025 $0.00472
Haiku 4.5 $0.00012 $0.00236

Measured 5d ago against content hash e37eaf640c65, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

.claude/skills/foolproof-product/SKILL.md · 274 lines

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_command field

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

Read the full file on GitHub · 274 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. 5d ago First seen · 274 lines · 124 tokens per session scan A e37eaf640c65

Subscribe to this mod's changes

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.

Related

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.

addyosmani/agent-skills · 50 tokens

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.

addyosmani/agent-skills · 43 tokens

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…

addyosmani/agent-skills · 75 tokens

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".

PeonPing/peon-ping · 64 tokens

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…

BV-Venky/excalidraw-architect-mcp · 101 tokens

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"…

GulajavaMinistudio/awesome-copilot-id · 146 tokens