·guardrail
</>

guardrail

從架構模式產生自訂 lint 規則。 ESLint 本機插件 (JS/TS) 或 ast-grep YAML 規則 (Python/Go/Rust/any)。 呼叫時間:編寫導入邊界、執行 API 約定、 阻止已棄用的模式或任何「總是/從不」約束。

8安裝·0熱度·@phrazzld

安裝

$npx skills add https://github.com/phrazzld/claude-config --skill guardrail

如何安裝 guardrail

透過命令列快速安裝 guardrail AI 技能到你的開發環境

  1. 開啟終端機: 開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 執行安裝指令: 複製並執行以下指令:npx skills add https://github.com/phrazzld/claude-config --skill guardrail
  3. 驗證安裝: 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

來源:phrazzld/claude-config。

SKILL.md

查看原文

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
分類
</>開發工具
認證
收錄時間
2026-03-01
更新時間
2026-03-11

Browse more skills from phrazzld/claude-config

快速解答

什麼是 guardrail?

從架構模式產生自訂 lint 規則。 ESLint 本機插件 (JS/TS) 或 ast-grep YAML 規則 (Python/Go/Rust/any)。 呼叫時間:編寫導入邊界、執行 API 約定、 阻止已棄用的模式或任何「總是/從不」約束。 來源:phrazzld/claude-config。

如何安裝 guardrail?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/phrazzld/claude-config --skill guardrail 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

這個 Skill 的原始碼在哪?

https://github.com/phrazzld/claude-config