check-secret
Skill0 starsChanged 26 days agoMITView on GitHub
Check a text fragment for potential secrets (API keys, tokens, passwords)
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- TserenTserenov/FMT-exocortex-templateedited, first seen Nov 2, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- TserenTserenov/FMT-exocortex-template★ 6417% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository51 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-faultSkill
- apply-capturesSkill
- archgateSkill
- artifactorSkill
- audit-docsSkill
- audit-installationSkill
- author-modeSkill
- bottleneck-pickSkill
- consentSkill
- day-closeSkill
- day-openSkill
- decomposeSkill
- diagnoseSkill
- discovery-sessionSkill
- extendSkill
- fpfSkill
- integration-gateSkill
- iwe-bug-reportSkill
- iwe-platform-redteamSkill
- iwe-restoreSkill
- iwe-rules-reviewSkill
- iwe-updateSkill
- keSkill
- kimi-peer-writerSkill
- local-llmSkill
- month-closeSkill
- org-devSkill
- pack-creatorSkill
- pack-newSkill
- peer-conversationSkill
- personal-guide-renderSkill
- personal-guide-startSkill
- platform-bottleneckSkill
- repo-newSkill
- restore-exocortexSkill
- run-protocolSkill
- setup-wakatimeSkill
- skill-creatorSkill
- strategy-sessionSkill
- skill-idSkill
- thinkSkill
- transcribeSkill
- vdvSkill
- verify-hypothesesSkill
- verifySkill
- week-close-pilotSkill
- week-closeSkill
- wp-newSkill
- w-reflectionSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
If no argument is provided — ask the user to paste the text.
- Very specific: line 56
If it is a placeholder / test value / documentation — add a # secret-ok marker on the line or use a [REDACTED] placeholder.
- Very specific: line 57
If it is a real secret — do NOT publish.
- Distinctive: line 58
After redaction — repeat the check.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Check Secret — manual gate (WP-212)
Principle (issue #410, updated 2026-08-12): the delivery includes exactly one automatic layer — the pre-commit hook (
scripts/pre-commit-secret-scan.sh), which checks only what enters a git commit. This Skill closes the adjacent gap — checking arbitrary text before publication (commit message, Slack post, docs paragraph, chat response) that will never go into a commit and therefore bypasses the hook. B7.7a (Bash command block with secrets) and B7.7b (PostToolUse redact tool output) do not exist in the delivery — if they appear, restore the "third layer" wording.Covered patterns: Better Stack
ust_, Telegram bot token, hex secret in env, Neonnapi_, DATABASE_URL with user:pass, Anthropicsk-ant-api, GitHubghp_/gho_/ghs_/ghr_/ghu_, AWSAKIA, generic 40+ char API token.Architectural Constraint (see B7.7 in WP-212): does not cover Claude-generated text without tool-use — that requires an external wrapper over Claude Code.
Step 1. Receive input
The $ARGUMENTS value is either:
- (a) a file path (if
$ARGUMENTSexists as a file) — read the file contents; - (b) the text itself (inline) — use as-is.
If no argument is provided — ask the user to paste the text.
Step 2. Run the check
bash "$IWE_SCRIPTS/route-task.sh" --skill check-secret --args "$ARGUMENTS"The Script accepts either a path or text. It returns:
- exit 0 +
OK: no secrets detected— if nothing is found; - exit 1 + list of matched patterns with line numbers — if potential secrets are found.
Step 3. Interpret the result
If OK: report "✅ Text is safe to publish" — the user may commit / post.
If secrets are found:
- List the matched patterns (with labels: Neon API key, GitHub token, etc.).
- For each one — provide a recommendation:
- If it is a placeholder / test value / documentation — add a
# secret-okmarker on the line or use a[REDACTED]placeholder. - If it is a real secret — do NOT publish; run cascade rotation (see
DP.RUNBOOK.003-cascade-secret-rotation.md); see rule 25 infeedback_behaviour.md.
- If it is a placeholder / test value / documentation — add a
- After redaction — repeat the check.
Step 4. Log
Each Skill invocation is logged to ${IWE_WORKSPACE:-$HOME/IWE}/.claude/logs/check-secret.jsonl (metadata only: timestamp, argument hash, decision; not the secrets themselves).
Relations
- Protection layers (issue #410, updated 2026-08-12): exactly two, not three — the pre-commit hook (
scripts/pre-commit-secret-scan.sh, automatic) and this Skill (manual, before pasting into chat or publishing). B7.7a (Bash block) and B7.7b (PostToolUse redact) do not exist in the delivery — if they appear, add them here as the third layer. - Behavioral rule: secrets are never published to chat as plaintext (if a personal behavioral rules log is maintained — record this there as well).
- Runbook:
DP.RUNBOOK.003-cascade-secret-rotation.mdfor the reactive rotation procedure. - Pattern canon:
$IWE_SCRIPTS/pre-commit-secret-scan.sh— single source of truth for regex patterns; check.sh uses the same set.
<!-- USER-SPACE --><!-- /USER-SPACE -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

