tapo: Skill for Claude Code

.claude/skills/pre-commit/SKILL.md

pre-commit is a skill for Claude Code from mihai-dinculescu/tapo. It costs 20 tokens per session (3,112 once invoked), scanned A, original, MIT.

A tool for running pre-commit checks on Rust, Python, and MCP projects, including formatting, linting, tests, and documentation checks.

In plain words
What is it for?
Check Rust and Python code, format files, run tests, build documentation, and fix issues found during those checks.
Why use it?
It finds code-quality and build problems before changes are committed.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: built for openclaw.

This is mihai-dinculescu/tapo's own configuration. It tells Claude Code how to work on tapo 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 tapo configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mihai-dinculescu/tapo. 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/mihai-dinculescu/tapo/main/.claude/skills/pre-commit/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mihai-dinculescu/tapo

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 pre-commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/mihai-dinculescu/tapo/pre-commit/github.svg)](https://agentmods.dev/skills/mihai-dinculescu/tapo/pre-commit)
Your own site
<a href="https://agentmods.dev/skills/mihai-dinculescu/tapo/pre-commit"><img src="https://agentmods.dev/badge/skills/mihai-dinculescu/tapo/pre-commit/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 pre-commit

Your own site · 80×15
<a href="https://agentmods.dev/skills/mihai-dinculescu/tapo/pre-commit"><img src="https://agentmods.dev/badge/skills/mihai-dinculescu/tapo/pre-commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,112 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 46
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00020 $0.03112
Opus 5.5 $0.00008 $0.01245
Sonnet 5.5 $0.00004 $0.00622
Haiku 4.5 $0.00002 $0.00311

Measured 8d ago against content hash 13eceba8d78a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pre-commit 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 8d 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/pre-commit/SKILL.md · 136 lines

How it starts

The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pre-Commit

Run all checks, fix any issues found, then present a summary table.

Checks

Rust checks

Run the following checks if there are changes in the tapo/, tapo-py/, or tapo-mcp/ directories. Fix all issues found. Run independent checks (cargo check, cargo clippy, cargo fmt, cargo test) in parallel. Unless otherwise specified, run checks at the workspace level (no -p flags) with --all-features to ensure cross-crate issues are caught. Link-free checks (check, clippy) take --workspace so they cover tapo-py too; cargo test must NOT — it links test binaries and examples, which fails with tapo-py's pyo3/extension-module, so it relies on default-members excluding tapo-py.

  • cargo check --workspace --all-features
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo fmt --all
  • cargo test --all-features
  • cargo clean --doc && RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --all-features
  • No unwrap() in non-test code without a // safe: comment
  • No unsafe in non-test code without a // SAFETY: comment
  • No unnecessary clones
  • No deeply nested use (max one level of {} nesting)
  • If a protocol puts a session token or other secret into a request URL in a new place, update redact_session_token in tapo/src/error.rs and its tests, because reqwest prints the full URL in its errors
  • Module layout, for every module added or touched by the change:
    • A module with submodules is declared by module_name.rs next to the module_name/ folder, never by module_name/mod.rs
    • module_name.rs holds only its mod declarations and use/pub use re-exports (plus //! docs and attributes such as #[cfg(...)] on them). Move any types, functions, impls, constants, or tests into a submodule file

Python checks

Run the following checks if there are changes in the tapo/ or tapo-py/ directories. Fix all issues found.

  • Update .pyi stubs if Python-exposed Rust types changed
  • Verify new #[pyclass] types are imported and registered in tapo-py/src/lib.rs
  • Verify Python examples in tapo-py/examples/ are updated to match corresponding Rust examples in tapo/examples/
  • cd tapo-py and activate the virtual environment
  • uv run mypy . — fix all type errors
  • uv run black . — fix all formatting issues

Read the full file on GitHub · 136 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. 8d ago Changed · -1 lines 13eceba8d78a
  2. 11d ago Changed · +17 lines 56317f894fdd
  3. 12d ago Changed · +32 lines 9476c7787f6a
  4. 17d ago Changed 599d06c336b4
  5. 20d ago Changed · -2 lines 137932e2602b
  6. 25d ago Changed · +4 lines e0cda4141520
  7. 1mo ago Changed · +23 lines f32ade0b71fb
  8. 1mo ago First seen · 63 lines · 20 tokens per session scan A b51604cf0aff

Subscribe to this mod's changes

pre-commit is a skill published in the GitHub repository mihai-dinculescu/tapo (865 stars, last pushed 2d ago), licensed MIT. It adds 20 tokens to every session and 3,112 once invoked, about $0.0001 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.