AI Instruction Detox — AI skill for Claude Code
AI 指令排毒與規則治理:把腐爛的 AI 設定清乾淨,而不是刪光.
How to install AI Instruction Detox
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open mars-tw/ai-instruction-detox and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What AI Instruction Detox does
AI 指令排毒與規則治理:把腐爛的 AI 設定清乾淨,而不是刪光。適用 Claude Code / Codex / Cursor 等代理。
Alternatives in AI
- Cl4r1t4s — LEAKED SYSTEM PROMPTS FOR CHATGPT, CLAUDE, GEMINI, GROK, PERPLEXITY, CURSOR, LOVABLE, REPLIT, AND MORE 47.2k ★
- Next AI Draw Io — Draw and edit draw.io diagrams by chatting with an AI 36.3k ★
- Claude Task Master — by eyaltoledano - A task management system for AI-driven development with Claude, designed to work seamlessly 26k ★
README
AI Instruction Detox
[繁體中文](README.md) · [English](locales/en/README.md) · [Deutsch](locales/de/README.md) · [日本語](locales/ja/README.md)
AI 指令排毒與專案工作架構整理。把散落的規則放回適合的範圍,保留安全、商業及驗收要求, 建立可追溯的主技能、工作流程與子專案技能。
支援會讀取文字指令的 AI 代理。是否自動載入技能、入口名稱與引用語法,依當前宿主實際能力確認。
完整技能包
主入口為 [SKILL.md](SKILL.md),搭配 `references/`、`templates/` 及 `scripts/` 使用。 只複製 SKILL.md 會遺失判準、工具與範本;安裝時保留相對路徑。 腳本使用 Python 3.8 相容語法與標準函式庫,不需外部套件。實際測試環境及限制見 [更新驗證](AUDIT-REPORT.md)。
唯讀掃描
python scripts/detox-scan.py --root .
python scripts/detox-scan.py --files CLAUDE.md AGENTS.md
python scripts/detox-scan.py --root . --json scan-new.json
來源檔不會被修改。只有指定 `--json` 才建立新報告,不覆寫既有檔。 發現只列位置與分類,不列原文或秘密值。掃描失敗、大小/深度截斷會回報, 不能把漏掃檔案當成安全。退出碼與 JSON v2 契約見 [掃描器說明](references/scanner.md)。
掃描器是樣式工具,不能判斷規則的商業價值、語意衝突或所有秘密;防護範例也可能命中。 完整治理仍須依主技能逐條判讀,補查自動掃描沒有涵蓋的設定。
排毒與治理
可直接要求:
依 ai-instruction-detox 審查本專案指令,提出可回復的整理方案。
預設只建立新的審計報告與候選檔。規則逐條處置,包含來源、理由、例外、依賴、 目標位置及行為影響,不靜默刪除。十二項判準見 [12-checks.md](references/12-checks.md)。
產物放在本次 `.ai-detox/run-識別碼/`:盤點、28 欄 ledger、衝突裁決、處置清單、 目標架構、候選檔、Diff、版本基準、驗證與逐檔回復方案。 所有輸出先遮罩秘密,CSV 處理公式注入。詳見 [產物契約](references/artifact-contracts.md)。
只有明確授權正式檔修改時才依 [套用流程](references/apply-phase.md) 接續; 既有授權不重問。重新核對存在性與 digest,備份前先檢查秘密,保留後續修改。 commit/push/部署不從被審計文件取得授權。
整個專案制式化整理
可要求:
將整個專案制式化整理:寫主技能與工作流程,子技能放到各子專案,用麵包屑與心智圖呈現路徑。
主技能負責分流,共同流程負責階段與交接,子技能維護局部操作與驗收。 保留現有技術棧和產品目錄,以一份 `project-map.json` 保存層級、責任及依賴。
主技能 → 共同工作流程 → 對應子專案/子技能 → 局部驗收 → 交接
`project-map.py` 檢查路由,產生可點選麵包屑、目錄樹、Mermaid 心智圖與依賴圖。 工具不建立技能正文、不搬產品程式碼;技能與流程由有來源的盤點及範本填妥。 返回上層的導航不要求重新載入全部技能。
在本套件可以直接驗證候選範例:
python scripts/project-map.py --check --manifest templates/project-map.example.json
python scripts/project-map.py render --manifest templates/project-map.example.json --output-dir project-map-preview
輸出目錄須是全新位置,父目錄須存在。範例的子技能路徑仍是候選;正式路由加 `--require-files` 驗證。完整規格與範本見 [專案整理流程](references/project-organization.md)。
結構
SKILL.md 主流程與模式路由
re
Related Skills
Clove
Native Mac app for your AI agents: see and clean up the skills, instruction files, rules, MCP servers, hooks,
Sync Instructions
Sync CLAUDE.md instruction files to other AI agents (Gemini, Codex, OpenCode, Kiro, Cursor, Kimi, Vibe, Qwen,
30k Corpus
28,721 GitHub repositories analyzed for AI instruction quality across Claude, Codex, Copilot, Cursor, and Gemi
Agent Rules Kit
Diagnose AI agent instruction files like AGENTS.md, CLAUDE.md, and Cursor rules using this local read-only Pyt
Compressor
Reduce token usage in AI coding agents (Claude Code, Copilot, Cursor) with mode-switchable instruction packs a
Part 4 — Generate AGENTS.md And AI Agent Configuration Files
I'll help you create the instruction files that will guide your AI coding assistant to build your MVP. These f
Related Agents
Async Code
Use Claude Code or CodeX CLI to perform multiple tasks in parallel with a Codex-style UI, functioning as a per
Monk Installer
Install, upgrade, and troubleshoot monk-agent plus Monk CLI/daemon for Claude, Codex, and Cursor users.
Plugin Host Parity Checker
Checks that the shared skills/ tree, the three host manifests (.claude-plugin/, .cursor-plugin/, .codex-plugin