# Rule

> 基于规则的合规检查 —— 找出问题、保证最低质量。与 `x rule` 配对使用 shell 工作流；rule vs score 的取舍见 rule-vs-score.md。

- Skill: `x-cmd/rule-4` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add x-cmd/rule-4`
- Raw SKILL.md: https://api.skillmd.com/api/skills/x-cmd/rule-4/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: x-cmd (https://skillmd.com/u/x-cmd)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/x-cmd/rule-4

---



# Rule

基于规则的合规检查。找出问题、保证最低质量。

rule vs score 的取舍见 [rule-vs-score.md](rule-vs-score.md)。

## Related

- [score](../score/SKILL.md) — 配对的评分伴侣（见 rule-vs-score）
- [naming](../naming/SKILL.md) — 命名候选用 rule 校验
- [ontology-database](../ontology-database/SKILL.md) — rule 强制 ondb 的 schema 约束
- [devloop](../devloop/SKILL.md) — rule.yml 是 devloop 的验证产物
