·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