linuxdo-idea-ui
為 linux.do 提供全新外觀的油猴腳本合集:包含 JetBrains/Darcula IDE 風格、飛書 IM 以及釘釘 IM 三種外觀,僅進行介面換皮而不觸及任何數據。
AI 翻譯
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Claude Code PreToolUse hook that stops the agent from printing your API keys. MIT, no dependencies.
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
A Claude Code PreToolUse hook that stops the agent from printing your API keys.
Coding agents with shell access will sometimes "check" a credential by echoing it. That puts the key in the transcript, in logs, and in anything you share. This hook blocks the common paths and tells Claude why, so it changes approach.檢視完整 README ↗A Claude Code PreToolUse hook that stops the agent from printing your API keys.
Coding agents with shell access will sometimes "check" a credential by echoing it. That puts the key in the transcript, in logs, and in anything you share. This hook blocks the common paths and tells Claude why, so it changes approach.
echo / printf / Write-Output of variables named like *KEY*, *TOKEN*, *SECRET*, *PASSWORD*, *CREDENTIAL*$env:SECRET in PowerShell, GetEnvironmentVariable('..._KEY')printenv, env, set, bare export, declare -p/-x, Get-ChildItem env:.env, .env.local, .env.production, … (cat, head, grep, sed, awk, sort, xxd, Get-Content, Select-String, < .env redirects, …)Read and Grep tools on .env* filesWrite / Edit content containing live-looking Google, Anthropic, OpenAI, GitHub or Slack keys, or private key blocks[ -n "$GEMINI_API_KEY" ] && echo set, [bool]$env:GEMINI_API_KEY.env.exampleIn Claude Code:
/plugin marketplace add fable-and-fuse/claude-secret-guard
/plugin install secret-guard@fable-and-fuse
Restart Claude Code, then ask it to echo $SOME_API_KEY: it will be blocked with a reason. The plugin needs bash (Git Bash on Windows, which Claude Code already uses) and Python 3.8+. If no Python is found, the hook prints a warning and lets the call through.
The hook already blocks reading .env files. Plugins can't add permission rules, so if you also want the permissions.deny backstop shown below, add it to your settings yourself.
.claude/hooks/guard_secrets.py into your project..claude/settings.json, or merge it into the existing file:{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash|PowerShell|Read|Grep|Write|Edit|MultiEdit|NotebookEdit",
"hooks": [{ "type": "command", "command": "python .claude/hooks/guard_secrets.py", "timeout": 10 }]
}
]
},
"permissions": { "deny": ["Read(./.env)", "Read(./.env.*)"] }
}
echo $SOME_API_KEY and it will be blocked with a reason.Requires Python 3.8+. No dependencies.
This is pattern matching. A command that reads the environment in an unusual way (for example, a one-off script that prints os.environ) can get past it. Use it as a seatbelt, and layer it with a pre-commit secret scanner, scoped and rotatable keys, provider billing alerts, and the habit of never pasting keys into chats or screenshots.
Found a bypass? Open an issue with the command. It becomes a test case in tests/test_guard_secrets.py.
pip install pytest && python -m pytest
This hook ships inside Switchboard, a Claude Code + Gemini multi-model kit with a resilient Gemini broker (fallback chain, quota circuit breaker, usage telemetry), a research subagent, and /research and /second-opinion commands, sold by Fable & Fuse Studios: https://fable-and-fuse.github.io/brainrot-colour-chaos-site/switchboard/
MIT licensed. Not affiliated with Anthropic.