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.
curl -O https://raw.githubusercontent.com/mihai-dinculescu/tapo/main/.claude/skills/pre-commit/SKILL.mdgit clone --depth 1 https://github.com/mihai-dinculescu/tapoWrote 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/mihai-dinculescu/tapo/pre-commit)<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.
<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>- NVIDIA SkillSpector warn
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]
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.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 |
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.
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-featurescargo clippy --workspace --all-targets --all-features -- -D warningscargo fmt --allcargo test --all-featurescargo clean --doc && RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --all-features- No
unwrap()in non-test code without a// safe:comment - No
unsafein 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_tokenintapo/src/error.rsand 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.rsnext to themodule_name/folder, never bymodule_name/mod.rs module_name.rsholds only itsmoddeclarations anduse/pub usere-exports (plus//!docs and attributes such as#[cfg(...)]on them). Move any types, functions, impls, constants, or tests into a submodule file
- A module with submodules is declared by
Python checks
Run the following checks if there are changes in the tapo/ or tapo-py/ directories. Fix all issues found.
- Update
.pyistubs if Python-exposed Rust types changed - Verify new
#[pyclass]types are imported and registered intapo-py/src/lib.rs - Verify Python examples in
tapo-py/examples/are updated to match corresponding Rust examples intapo/examples/ cd tapo-pyand activate the virtual environmentuv run mypy .— fix all type errorsuv run black .— fix all formatting issues
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.
- 8d ago Changed · -1 lines 13eceba8d78a
- 11d ago Changed · +17 lines 56317f894fdd
- 12d ago Changed · +32 lines 9476c7787f6a
- 17d ago Changed 599d06c336b4
- 20d ago Changed · -2 lines 137932e2602b
- 25d ago Changed · +4 lines e0cda4141520
- 1mo ago Changed · +23 lines f32ade0b71fb
- 1mo ago First seen · 63 lines · 20 tokens per session scan A b51604cf0aff
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.
Other skills, from other repositories
create-pr
Creates a GitHub PR with a Linear-ticket-prefixed title and a decision-led, narrative description for Prisma 8. Use when the user wants to create a pull request, open a PR, or submit changes for review.
git-commit
Generate well-formatted git commit messages following conventional commit standards.
repo-sync
Manage automatic Git syncing on macOS with repo-sync. Use only when the user explicitly invokes /repo-sync.
mcore-split-pr
Split a PR into multiple PRs to reduce the number of required CODEOWNERS reviewer groups.
engineer-bot-ops
A workflow for carrying an engineering task from scope through implementation and reviewable delivery. It works with a repository's branch, existing changes, rules, checks, and permissions while separating completed, unverified, and next-step work.
git-commit-writer
Trigger when the user asks to write a commit message, generate a commit from staged changes, review a diff before committing, or says "/commit". Reads git diff --staged and produces an opinionated, convention-matching commit message.