codevira: Skill for Claude Code

.claude/skills/foolproof-product/SKILL.md

foolproof-product is a skill for Claude Code 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 Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

This is sachinshelke/codevira's own configuration. It tells Claude Code how to work on codevira itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything codevira configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sachinshelke/codevira. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sachinshelke/codevira/main/.claude/skills/foolproof-product/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/sachinshelke/codevira

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/sachinshelke/codevira/foolproof-product/github.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/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 foolproof-product

Your own site · 80×15
<a href="https://agentmods.dev/skills/sachinshelke/codevira/foolproof-product"><img src="https://agentmods.dev/badge/skills/sachinshelke/codevira/foolproof-product.svg" alt="Reviewed on agentmods" width="80" 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. 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.00124 $0.02361
Opus 5.5 $0.00050 $0.00944
Sonnet 5.5 $0.00025 $0.00472
Haiku 4.5 $0.00012 $0.00236

Measured 1mo ago against content hash e37eaf640c65, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 1mo ago), licensed MIT. It adds 124 tokens to every session and 2,361 once invoked, about $0.0005 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-08-30.