Skip to content

Captain Obvious - Setup Guide

Source: shmulc8/captain-obvious via skills.sh - 2.6K combined installs across 1 indexed listing; first seen 2026-11-30 (Nov 30 evening sweep)

GitHub: shmulc8/captain-obvious, 18 stars, MIT license, branch main, last pushed 2026-09-30, not archived. The skill lives in skills/captain-obvious/SKILL.md at the repo root.

Category: Testing - deterministic dead-test detection and cleanup for TypeScript and Python test suites.

Quality Tier: 🟢 Green - the single sampled listing passes Gen Agent Trust Hub, Socket and Snyk.

captain-obvious is a single skill published under shmulc8 on skills.sh. It is a deterministic scanner that finds and deletes tests that can never fail: assertions that re-state what the compiler or type checker already proved, tautologies, mock-echo tests, and other dead checks. Instead of asking an LLM whether a test is useful, it asks the tools that already know, the TypeScript compiler API and batched mypy reveal_type probes, plus AST passes for everything else.

The skill covers both TypeScript (Jest, Vitest, bun:test) and Python (pytest, mypy). Findings split into two tiers: proven findings, which cannot fail by construction, are auto-deleted by --fix with no LLM in the loop, while advisory findings are surfaced with a written reason for the coding agent to adjudicate. It also ships a PreToolUse hook that blocks newly introduced can-never-fail tests at write time, and a --check CI gate for new dead tests.

Installation

npx skills add shmulc8/captain-obvious@captain-obvious

The repo also ships a .claude-plugin/plugin.json manifest; alternatively copy skills/captain-obvious/ into ~/.claude/skills/. Then run the scanners directly:

# report-only (add --json out.json to save)
node    skills/captain-obvious/scripts/captain_obvious_ts.mjs --project <repo>
python3 skills/captain-obvious/scripts/captain_obvious_py.py  --path <repo> --mypy "uv run mypy"

# delete proven findings (needs a clean git tree - review the diff after)
node skills/captain-obvious/scripts/captain_obvious_ts.mjs --project <repo> --fix

Requirements from the README: Python 3.9+ for the Python scanner and hook; the TypeScript scanner uses the target repo's own typescript and requires 4.0+.

What It Provides

Skill Installs Use For
captain-obvious 2,636 Auditing TypeScript and Python tests for assertions that cannot fail, and deleting proven dead tests deterministically

Every indexed listing appears in the table above.

Why This Matters for Hermes Agents

AI-generated test suites are full of assertions that re-state what the compiler already proved or assert nothing at all. captain-obvious attacks this with a deterministic scanner: one script invocation asks the TypeScript compiler API or a batched mypy reveal_type run whether an assertion is a fact of the type, and AST passes catch the rest such as tautologies, mock-echo, dead asserts and duplicate bodies. The design choice that matters most for Hermes agents is the two-tier split: proven findings are auto-deleted with no LLM in the loop, while advisory findings are written down with a reason and left for the coding agent to adjudicate. The write-time PreToolUse hook and the --check CI gate are a prevention-over-cleanup model worth copying: catch dead tests before they land, fail open always, and never invent a CI failure. For a builder, the skill is also a catalog of the ways types can lie, with false-positive guards for cases such as toBeDefined on find results.

Usage

You say What happens
"Clean up the useless tests" Runs the scanner and deletes proven can-never-fail findings with --fix
"Audit this repo's tests for dead assertions" Report-only scan, no deletions, findings printed for review
"Delete proven dead tests" Runs --fix on a clean git tree so the diff is reviewable
"Catch dead tests as I write them" The PreToolUse hook blocks newly introduced proven can-never-fail patterns with a per-finding reason
"Gate new dead tests in CI" --check --base exits 1 only on newly introduced syntactic findings
"Promote rotten-green asserts with coverage" --coverage with lcov or coverage.json promotes conditional-assert to proven rotten

Verification

After install, confirm the skill directory landed in place:

ls ~/.claude/skills/

Review the SKILL.md before you rely on it:

curl -sL https://raw.githubusercontent.com/shmulc8/captain-obvious/main/skills/captain-obvious/SKILL.md

The repo is small and human-readable: one skill directory under skills/captain-obvious/ with a SKILL.md, two reference files (detectors.md, prevention.md) and a scripts tree of Python and TypeScript scanners.

Security

skills.sh verdicts for sampled skills (verified 2026-11-30) - re-check the security pages on skills.sh before production use:

Skill Gen Agent Trust Hub Socket Snyk
captain-obvious Pass Pass Pass

Across the one sampled skill the three scanners returned 3 Pass, 0 Warn and 0 Fail.

Integration with CorpusIQ

CorpusIQ is the connector layer that lets AI assistants read the systems a business already runs on - accounting, payments, CRM, email, files and analytics - and answer with the source named. It is read-only by design: it retrieves data and never writes to, or acts in, a connected system, which is what makes it safe to point at live accounts.

This page is part of the CorpusIQ directory, the reference we maintain for the MCP server and agent-skill ecosystem. Run alongside CorpusIQ, a third-party server like this one can be combined with a company's own business data in a single answer.

See what CorpusIQ connects

Limitations

  • Snapshot data, verified 2026-11-30: 2,636 combined installs across 1 indexed listing; 18 GitHub stars; MIT license; last pushed 2026-09-30. Counts drift over time.
  • Cannot catch weak-but-executing assertions (result.length >= 0 is caught, result.length < 1e9 is not); only mutation testing proves those useless.
  • Cross-file duplicates are advisory-only; coverage-subsumption is out of scope; dynamically-built assertions are invisible.
  • "Deleted nothing" does not mean "your suite is sound."
  • The scan runs the project's own toolchain (mypy with the repo's plugins, the repo's own typescript), so only scan code you trust.
  • Install counts are skills.sh metrics and may not reflect actual repository usage.

Skills Catalog | Skills Marketplace

Pro Tips

  • Run report-only first (no --fix) to see the findings before deleting anything.
  • Only run --fix on a clean git tree so the diff is reviewable; the proven tier is what gets deleted.
  • Install the plugin to get the write-time hook, which catches dead tests before they land.
  • Pair --coverage with your lcov, istanbul or coverage.py output to promote conditional-assert findings to proven rotten.
  • Treat scanning like running the repo's type checker: only on code you trust.

← Skills Catalog | Skills Marketplace → Powered by CorpusIQ

AI answers on your data. See where every number comes from.

Connect your tools and ask in ChatGPT, Claude, or Perplexity. Enterprise-grade answers in minutes. From $29.95/month.

Start free, no credit card
Contact Terms Privacy Pricing