necro-rules
/necro-rules
Write or change a necro rule in necro.yaml, and keep AGENTS.md in step with it. Use when adding a house rule, when a correction keeps repeating, when an AGENTS.md line could be checked mechanically, or when allows pile up on a rule.
- Author
- WahahaYes ↗
- Repository
- necronomicon ↗
- Licence
- Apache-2.0
- Last repository change
- 10.11.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 3
No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
What it does and when to use it
Write or change a necro rule in necro.yaml, and keep AGENTS.md in step with it. Use when adding a house rule, when a correction keeps repeating, when an AGENTS.md line could be checked mechanically, or when allows pile up on a rule.
Original author description
Write or change a necro rule in necro.yaml, and keep AGENTS.md in step with it. Use when adding a house rule, when a correction keeps repeating, when an AGENTS.md line could be checked mechanically, or when allows pile up on a rule.
How it works
- Writing one
- Keeping AGENTS.md in step
- Suggesting it for a pack
SKILL.md preview
---
name: necro-rules
description: Write or change a necro rule in necro.yaml, and keep AGENTS.md in step with it. Use when adding a house rule, when a correction keeps repeating, when an AGENTS.md line could be checked mechanically, or when allows pile up on a rule.
---
# Writing necro rules
A convention has one home. If a command can check it, it's a rule, whose words teach whoever trips it; judgment stays in `AGENTS.md` or a skill. [agents-and-rules.md](https://github.com/WahahaYes/necronomicon/blob/main/docs/agents-and-rules.md) says when to move one; [writing-rules.md](https://github.com/WahahaYes/necronomicon/blob/main/docs/writing-rules.md) has the format.
## Writing one
1. Check the packs first: `necro --list` shows what's on, and a pack rule may already cover it.
2. The command prints `path:line:col` per hit: `necro grep '<regex>' -- '<pathspec>'` for a pattern, a script (`uv run --script necro/<name>.py`) for more, or a tool the repo already runs.
3. The words: `message` says what's wrong in one line; `why` gives the reason, so a reader can judge an edge case; `fix` says what to do instead, concretely. Add `examples` (`bad`, `good`) and `details` for `--explain`.
4. Give it `files:` (prek's form: a regex, or `{glob: …}`) so a commit that touches none of them skips it.
5. Try it over the whole repo: `necro --rule <name>`, and read a few hits. Fix the real ones; for the rest, suggest the user baselines them (`necro --write-baseline --rule <name>`), which is theirs to run.
## Keeping AGENTS.md in step
- A rule that shapes the architecture gets a one-line pointer in `AGENTS.md`, naming it: "core never imports app; necro checks it (`core-isolated`)".
- An `AGENTS.md` line that said the same thing shrinks to that pointer, or goes.
- Allows piling up on a rule mean the rule is wrong: narrow it, or move the convention back to prose.
## Suggesting it for a pack
If the rule would suit any repo in that language, offer to suggest it for necro's packs with the [pack suggestion form](https://github.com/WahahaYes/necronomicon/issues/new?template=pack-suggestion.yml): the rule's YAML, the language, and its hit count here. Ask the user before filing.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · WahahaYes/necronomicon | 100 | Apache-2.0 |
| WahahaYes/necronomicon | 100 | Apache-2.0 |
Database snapshot: 13.11.2026 · package version aded0b937b66 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100necro
Work in a repo whose house rules necro checks (a necro.yaml at the top). Use when a commit or hook prints necro hits, before committing in such a repo, or when necro itself crashes or reports something wrong. - 100necro
Work in a repo whose house rules necro checks (a necro.yaml at the top). Use when a commit or hook prints necro hits, before committing in such a repo, or when necro itself crashes or reports something wrong. - 100add-rule
Adds rules on how to write the code to the folder of rules (ai/rules/ by default), which polix injects and checks. It runs only when the user or the workflow of polix asks for it. It never changes the code nor polix.yaml. - 100houserules
Learn this repository's house rules and write them down as evidence-checked docs (architecture, guidelines, AGENTS.md) that humans and agents can follow, keep the team's answers, and check changes against the rules. Use when the user asks to run houserules, to document or… - 100create-rule
为项目创建或沉淀规则约束文件(Rule)。当用户要求记录编码规范、固化团队开发约束、沉淀 Code Review 经验或在 .agents/rules/ 下新建规则时使用。 - 90cmk:rule
Use when the user asks to "add a rule that...", "make this a standard", "promote this learning to a rule", "update our coding conventions", "what are our engineering rules", or needs to codify engineering standards into docs/rules/ as enforceable rules and conventions that…