CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

trysac/secrets-precommit

Scan files for leaked secrets (cloud, GitHub, Slack, Stripe, Google, AI keys, private keys, high-entropy assignments) with output that never prints the secret. Use when the user asks to check staged files or a repo for secrets before committing.

Quality

95%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

Quality

Scored by GLM 5.3

Content

100%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body is an exemplary lean skill document: executable commands with an explicit re-run-until-clean feedback loop, a useful exit-code contract, and well-signaled one-level references that were verified to exist. Every section adds information Claude could not infer, and nothing is padded or misplaced.

DimensionReasoningScore

Conciseness

The body is lean throughout: "Detects ten kinds of secrets in text files and reports where they are without ever printing the full value (at most four leading characters plus `****`)" and "Python 3.10+, nothing to install or compile, no network" convey only operational facts Claude could not infer. No concept explanations, no padding, and the Limits section replaces verbose caveats with three tight statements, matching the 5 anchor where every token earns its place.

5 / 5

Actionability

Guidance is fully executable and copy-paste ready: the exact staged-file command ("git diff --cached --name-only --diff-filter=ACM" then "python3 scripts/scan_secrets.py path/one.py path/two.env"), the concrete output format ("path:line:column: rule-id: redacted"), a full options block, an exit-code table, and a specific suppression marker ("secrets-precommit:allow"). This covers the common cases exactly as the 5 anchor requires.

5 / 5

Workflow Clarity

The five-step workflow has an explicit feedback loop — "Re-run the same command until it exits 0" — plus decision checkpoints at steps 3 and 4 (real secret → remove and rotate; placeholder → three concrete remediation options) and exit-code semantics for error recovery. Validation is present, so the missing-validation cap for batch operations does not apply, and this matches the 5 anchor's explicit validation steps with error-recovery loops.

5 / 5

Progressive Disclosure

The body is a ~60-line overview that cleanly splits detail into one-level-deep, clearly-signaled references — "see `references/config.md`", "Patterns and entropy threshold: `references/rules.md`", "Running it automatically on each commit ... `references/hook.md`" — all of which exist as real files alongside scripts/scan_secrets.py. Each pointer states what the file contains, matching the 5 anchor's well-signaled navigation with no nested references.

5 / 5

Total

20

/

20

Passed

Description

87%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description that explicitly states what the skill does, what it detects, and when to use it, with a clear distinct niche. The only gaps are a few natural trigger synonyms (token, credentials, .env) and a single-action capability list rather than multiple distinct actions.

DimensionReasoningScore

Specificity

"Scan files for leaked secrets (cloud, GitHub, Slack, Stripe, Google, AI keys, private keys, high-entropy assignments) with output that never prints the secret" gives one concrete, well-specified action with a comprehensive enumeration of detection targets and a concrete output behavior. It falls short of the 5 anchor because it lists a single action verb rather than multiple distinct concrete actions; it is clearly above 3 because the coverage of what is detected is comprehensive, not partial.

4 / 5

Completeness

Both parts are explicit: what ("Scan files for leaked secrets (...) with output that never prints the secret") and when ("Use when the user asks to check staged files or a repo for secrets before committing") with concrete trigger phrases. This matches the 5 anchor exactly; the when-clause is explicit, not weakly implied as at 4.

5 / 5

Trigger Term Quality

Natural trigger phrases are present — "check staged files", "a repo for secrets", "before committing", plus provider keywords (GitHub, Slack, Stripe, Google, private keys). Common synonyms like "token", "credentials", "API key" (as a phrase) and file extensions like ".env" are missing, which matches the 4 anchor (good coverage, a few natural terms missing) rather than the 5 anchor's comprehensive synonyms-and-extensions coverage.

4 / 5

Distinctiveness Conflict Risk

The pre-commit secret-scanning niche ("leaked secrets", "check staged files ... before committing") is distinct with trigger phrases unlikely to fire for other skills, matching the 5 anchor's clear niche with minimal conflict risk. It is not a 4 because the enumerated secret types and commit-specific triggers leave no meaningful overlap with closely related skills.

5 / 5

Total

18

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Reviewed

On this page