사용 방법
- 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
- 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
- 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/playful-design/router --skill rule시작 전 확인
- 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
- 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.
Rule
This skill turns a correction into a written rule. It writes the rule once in the right file, then fixes the code that already breaks it.
Twice is a rule
When the user says "make it a rule", "always", "never" or "remember this", write it down. When they correct the same thing twice, propose a rule. A rule is a pair, short enough to read before every edit.
Following the rules while editing belongs to scope. Reviewing a codebase against all of them runs in audit.
1. Read what exists
Read AGENTS.md, CLAUDE.md and the editor rule folders before acting. Acting against a written rule is rule-read-before-acting.
2. Write the pair
State the rule in one sentence, then the broken line and the line that replaces it. A rule with no example is rule-write-the-pair.
3. Keep it short
One rule is one to three sentences plus its pair. A paragraph of reasoning is rule-keep-it-short.
4. Give it one home
Put the rule in the file that owns its topic. Copying it into a second file is rule-one-home. When a new rule contradicts an old one, replace the old one and say so. Two contradicting rules left side by side is rule-resolve-conflicts.
5. Sweep the code
Search for code that breaks the new rule, fix it and list the files. A rule written with old violations left in place is rule-sweep-existing.
The pair
Every check is a pair. The broken line sits beside the line that replaces it.
| Rule | Broken | Replacement |
|---|---|---|
rule-read-before-acting | A pill button added in a repo whose rules forbid pills | Rules read first, rounded button |
rule-write-the-pair | "Use good casing" | "Labels take Title Case. Add to library becomes Add to Library" |
rule-keep-it-short | A paragraph of reasoning | One sentence and a pair |
rule-one-home | One rule in three files | One file, the others point at it |
rule-resolve-conflicts | "Use borders" beside "never use borders" | The old rule replaced, the change noted |
rule-sweep-existing | The rule added, twelve violations left | The violations fixed and listed |
Reporting
Severity. HIGH is an edit that breaks a written rule, or two rules that contradict. MEDIUM is a rule with no pair, or old violations left after a new rule. LOW is a rule longer than it needs.
Format. One finding per root cause:
file:line - [rule-id] what is wrongThen a Rule | Count | Severity summary. Block when any HIGH remains, Approve otherwise. Mark every rule file you could not read as Not verified.

