llm-wiki-governance / rules
Cursor rule0 starsChanged 3 months agoMITView on GitHub
Scope a feature/fix from the LLM-WIKI (relevant docs, source, tests, risks) before implementing (read-only).
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,527 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/llm-wiki-backfill.mdcCursor rule
- .cursor/rules/llm-wiki-bootstrap.mdcCursor rule
- .cursor/rules/llm-wiki-docs-sync.mdcCursor rule
- .cursor/rules/llm-wiki-feature.mdcCursor rule
- .cursor/rules/llm-wiki-fix.mdcCursor rule
- .cursor/rules/llm-wiki-onboard.mdcCursor rule
- llm-wiki-backfillSkill
- llm-wiki-bootstrapSkill
- llm-wiki-docs-syncSkill
- llm-wiki-featureSkill
- llm-wiki-fixSkill
- llm-wiki-onboardSkill
- llm-wiki-prepareSkill
- llm-wiki-backfillSkill
- llm-wiki-bootstrapSkill
- llm-wiki-docs-syncSkill
- llm-wiki-featureSkill
- llm-wiki-fixSkill
- llm-wiki-onboardSkill
- llm-wiki-prepareSkill
The file
We split this llm-wiki-prepare.mdc into the rules it gives an agent
12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Run 'llm-wiki prepare --task "<the task>"' and use its candidates as your starting map.
- Distinctive: line 18
Verify the related documents and the actual source before drawing any conclusion.
- Distinctive: line 21
Call out the areas that should NOT change.
- Distinctive: line 23
If the docs conflict with the code, report the conflict and do NOT implement.
- Distinctive: line 24
If evidence is missing, do not guess — produce confirmation questions instead.
- Distinctive: line 26
Prefer the deterministic CLI result as your starting map, then confirm against the ACTUAL source — the code is the source of truth.
- Distinctive: line 28
Do not guess. Mark anything you cannot confirm from the code or docs as "needs confirmation".
- Distinctive: line 29
Do not treat a needs_review or stale document as trusted fact — call out its status.
- Distinctive: line 30
Never write sensitive raw values.
- Distinctive: line 31
Read-only by default: do not modify files in this workflow.
- Very specific: line 34
Read a large file by line range or section instead of whole.
- Distinctive: line 35
Never trade evidence for brevity: read a file in full when the change depends on it, and read more whenever narrowing would leave a claim …
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
description: Scope a feature/fix from the LLM-WIKI (relevant docs, source, tests, risks) before implementing (read-only).
alwaysApply: false
---
<!-- estimated-tokens: 788 (chars/4 proxy of the skill body, not a measured token count) -->
Get the current wiki map at RUN TIME (not a snapshot): run `llm-wiki onboard` (add --domain <area>), then read the docs it points to and confirm against the source.
You are a senior engineer scoping a change before any code is written.
Task:
Investigate the scope of a requested change (project type: library; active profiles: core, library) so an implementer starts with the right documents, source, risks, and tests.
Required workflow:
1. Restate the requested task in one clear sentence.
2. Run 'llm-wiki prepare --task "<the task>"' and use its candidates as your starting map.
3. Verify the related documents and the actual source before drawing any conclusion.
4. Explain the CURRENT behavior with evidence (docs + source).
5. Present the expected impact as CANDIDATES ("the docs reference this file", "this looks like a candidate"), never as "you must edit X" or "this is the cause".
6. Call out the areas that should NOT change.
7. Find the tests and validation a change here would need.
8. If the docs conflict with the code, report the conflict and do NOT implement.
9. If evidence is missing, do not guess — produce confirmation questions instead.
10. To implement, hand off to the /llm-wiki-feature or /llm-wiki-fix skill (this skill does not change code).
- Prefer the deterministic CLI result as your starting map, then confirm against the ACTUAL source — the code is the source of truth; the wiki is a compressed map to it.
- Attach a document or source reference to every claim; never present an unverified statement as fact.
- Do not guess. Mark anything you cannot confirm from the code or docs as "needs confirmation".
- Do not treat a needs_review or stale document as trusted fact — call out its status.
- Never write sensitive raw values; describe them only in redacted form when necessary.
- Read-only by default: do not modify files in this workflow.
Context budget (spend tokens on evidence, not on volume):
- Locate before reading: search/grep, or 'llm-wiki prepare --task "<the task>" --compact', then open only what the task needs.
- Read a large file by line range or section instead of whole; for wiki docs use 'llm-wiki get-doc <path> --section "<heading>" --strict-section --max-chars <n>'.
- Never trade evidence for brevity: read a file in full when the change depends on it, and read more whenever narrowing would leave a claim unverified.
- Report tests as the failures plus the summary line (prefer the project's quiet/compact reporter when it has one), not the full passing output.
Expected final response:
- The restated task.
- Relevant docs, candidate source files, and candidate tests (as candidates).
- Current behavior, with evidence.
- Areas not to touch, recorded invariants/risks, and freshness warnings.
- Open questions to confirm before implementing, and the recommended next skill.
Read-only workflow: this skill investigates and explains — it does not change files, and it writes no run manifest. When you are ready to implement, hand off to /llm-wiki-feature or /llm-wiki-fix, which record their run for 'llm-wiki check-run'. Never promote a document to verified; that is human-approved only.
<!-- llm-wiki-generated v5 e88ca82fd80b1ea5 -->
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

