hook-protect-secrets
80 / 100 · Low risk
Fine to try. Some of what it can do is expected: a coding skill usually runs build and test commands.
Pattern guide for writing PreToolUse hooks that block secret file access, credential exfiltration, and environment variable dumps. Use when: auditing token-scope-guard.sh, adding new sensitive file patterns, reviewing what secret paths are protected. Covers 33 file patterns + 24 bash patterns + 15 exfiltration patterns. Inspired by: karanb192/claude-code-hooks protect-secrets pattern (MIT).
What this skill can do
Reads your saved credentials, such as SSH keys or .env files
Runs commands on your computer
Sends data to these websites: ...
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'hook-protect-secrets' ] || [ -L ~/.agents/skills/'hook-protect-secrets' ]; then echo 'A skill folder named hook-protect-secrets already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/yanacuti1121/Yana-AI' "$d" && git -C "$d" checkout --quiet '54d4aa9fa3241319f4d37212bd23826658bf6bed' -- '.claude/skills/hook-protect-secrets' && mkdir -p ~/.agents/skills && cp -R "$d"/'.claude/skills/hook-protect-secrets' ~/.agents/skills/'hook-protect-secrets' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'hook-protect-secrets' ~/.claude/skills/'hook-protect-secrets' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
[](https://zalavijaysinh.github.io/skilltrust/repos/yanacuti1121/Yana-AI/)
Score history
| Date | Version | Score |
|---|---|---|
| 2026-11-13 | 54d4aa9 | 80 |
| 2026-11-08 | 4a78f20 | 80 |
Also found in
- yanacuti1121/Yana-AI/core/skills/hook-protect-secrets