什么是 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