什麼是 guardrail?
從架構模式產生自訂 lint 規則。 ESLint 本機插件 (JS/TS) 或 ast-grep YAML 規則 (Python/Go/Rust/any)。 呼叫時間:編寫導入邊界、執行 API 約定、 阻止已棄用的模式或任何「總是/從不」約束。 來源:phrazzld/claude-config。
從架構模式產生自訂 lint 規則。 ESLint 本機插件 (JS/TS) 或 ast-grep YAML 規則 (Python/Go/Rust/any)。 呼叫時間:編寫導入邊界、執行 API 約定、 阻止已棄用的模式或任何「總是/從不」約束。
透過命令列快速安裝 guardrail AI 技能到你的開發環境
來源:phrazzld/claude-config。
Generate custom lint rules that enforce architectural decisions at edit time.
Lint rules are the highest-leverage codification target. They're cheaper than hooks (no custom Python), more durable than CLAUDE.md (automated, not advisory), and work in CI too (not just Claude Code). A lint rule catches violations the moment code is written — and fast-feedback.py surfaces the error immediately so Claude self-corrects.
| Language | JS/TS only | Any (Python, Go, Rust, etc.) | | Fixable | Yes (auto-fix) | Yes (rewrite) | | Testing | RuleTester built-in | YAML snapshot tests | | Config | Flat config plugin | sgconfig.yml | | Speed | Fast | Very fast |
從架構模式產生自訂 lint 規則。 ESLint 本機插件 (JS/TS) 或 ast-grep YAML 規則 (Python/Go/Rust/any)。 呼叫時間:編寫導入邊界、執行 API 約定、 阻止已棄用的模式或任何「總是/從不」約束。 來源:phrazzld/claude-config。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/phrazzld/claude-config --skill guardrail從架構模式產生自訂 lint 規則。 ESLint 本機插件 (JS/TS) 或 ast-grep YAML 規則 (Python/Go/Rust/any)。 呼叫時間:編寫導入邊界、執行 API 約定、 阻止已棄用的模式或任何「總是/從不」約束。 來源:phrazzld/claude-config。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/phrazzld/claude-config --skill guardrail 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/phrazzld/claude-config