agentleFS
Dowon-Kim7949Dowon-Kim7949/llm-wiki-governance/.cursor/rules/llm-wiki-bootstrap.mdc

llm-wiki-governance / rules

Cursor rule0 starsChanged 3 months agoMITView on GitHub

Enrich a newly initialized LLM-WIKI from actual source evidence while keeping documents needs_review.

The file

We split this llm-wiki-bootstrap.mdc into the rules it gives an agent

11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the nearest AGENTS.md (or your agent's instruction file) and docs/llm-wiki/index.md first.

    line 18
  2. Very specific:

    Read a large file by line range or section instead of whole.

    line 25
  3. Distinctive:

    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 …

    line 26
  4. Distinctive:

    Update every affected document in the same task, and refresh its source_files and evidence anchors so the mapping still resolves.

    line 35
  5. Distinctive:

    Verify each claim you leave behind against the actual source.

    line 36
  6. Very specific:

    Run the relevant checks before finishing ('llm-wiki validate', plus 'llm-wiki impact --since <ref>' for the documents your diff touched) …

    line 37
  7. Distinctive:

    When a domain document mentions API usage, include this API Services inventory:

    line 41
  8. Distinctive:

    Never write sensitive raw values into documents or reports.

    line 55
  9. Distinctive:

    Keep every created or edited wiki document at status: needs_review.

    line 56
  10. Distinctive:

    Do not promote anything to verified — verified is human-approved only.

    line 57
  11. Distinctive:

    When finished, run the appropriate validate / audit / stats checks and summarize the results, and call out the areas with thin or missing …

    line 59

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
llm-wiki-bootstrap.mdc
---
description: Enrich a newly initialized LLM-WIKI from actual source evidence while keeping documents needs_review.
alwaysApply: false
---

<!-- estimated-tokens: 1674 (chars/4 proxy of the skill body, not a measured token count) -->

Project domain map: none detected yet — read docs/llm-wiki/index.md and browse docs/llm-wiki/domains/ to find the relevant area.

You are a senior engineer bootstrapping an LLM-WIKI from real source evidence.

Task:
Enrich the freshly initialized LLM-WIKI (created by 'llm-wiki init --write') so every document is backed by real code. The project type is library. Active profiles: core, library.
Preconditions: this runs after init has generated docs/llm-wiki/index.md, the core/profile documents, and (when detected) docs/llm-wiki/domains/*.md.

Required workflow:
Documentation language: write all LLM-WIKI document content — prose, headings, summaries, review notes, and the log.md entry — in English. Keep technical identifiers (paths, code symbols, JSON keys, frontmatter fields, status values, CLI commands, and evidence locators) unchanged.
1. Read the nearest AGENTS.md (or your agent's instruction file) and docs/llm-wiki/index.md first.
2. Review the init-generated documents and their source_files to see what still needs grounding.
3. Investigate the actual code, config, routing, public APIs, data models, and key workflows before making any claim.
Library evidence focus:
- Inspect public exports, package entrypoints, type declarations, examples, versioning policy, compatibility guarantees, and release flow.
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.
Delegation budget (spend the expensive context on judgment, not on reading):
- Locating and scoping is dispatchable: when an answer needs a sweep across many documents or files, send a read-only subagent on a cheaper model and take back a brief — findings, file:line evidence, and what stayed unconfirmed — instead of pulling the raw material into this context.
- Judgment is not dispatchable: the design decision, the regression call, the edit itself, and the wiki/log prose stay here. A cheaper agent can apply text you already wrote; it cannot write the sentence that explains why the change was made.
- Mechanical finishing is dispatchable: running the checks, writing the run manifest, and applying edits you have already decided on.
- Dispatch only when it pays: a brief plus its dispatch costs more than reading one file, and a delegate that hands back the raw material has bought nothing. When the harness can choose a model per dispatch, send the dispatch to the cheaper one and keep the session's own model fixed — switching the session model mid-task re-reads the conversation so far at the new model's price.
- Delegation never buys an unverified claim: either the delegate reads the actual source and reports the evidence, or you read it yourself — never skip the source because a dispatch felt expensive.
Governance budget (strict — completeness and verification are the deliverable):
- Update every affected document in the same task, and refresh its source_files and evidence anchors so the mapping still resolves.
- Verify each claim you leave behind against the actual source. A document you could not verify is a review item, not a finished one — say which.
- Run the relevant checks before finishing ('llm-wiki validate', plus 'llm-wiki impact --since <ref>' for the documents your diff touched) and report what they said.
- Generated for governance mode strict; 'llm-wiki mode' shows the current one, and 'llm-wiki init --write --skills --refresh' regenerates this workflow after a change.
4. Replace placeholder content with descriptions backed by real source evidence. Do not guess — leave anything uncertain as an explicit review item instead of inventing detail.
5. For backend/fullstack projects, also enrich the related docs/llm-wiki/domains/*.md documents.
When a domain document mentions API usage, include this API Services inventory:
- API service name.
- Endpoint or client module.
- HTTP method or call signature.
- Request params or payload.
- Response shape.
- Auth, session, token, or cookie dependency.
- Error handling.
- Retry or timeout behavior.
- Cache or state update behavior.
- Related UI or domain workflow.
- `source_files` evidence, plus optional `evidence` references for specific files, lines, symbols, sections, or routes; mirror precise references in the body `## Evidence` section.
6. Tidy the related frontmatter entries and local Markdown links between related documents.
7. Record broad evidence in source_files and precise evidence in the frontmatter evidence entries, mirrored in the body ## Evidence section.
8. Never write sensitive raw values into documents or reports; describe them only in redacted form when necessary.
9. Keep every created or edited wiki document at status: needs_review.
10. Do not promote anything to verified — verified is human-approved only.
11. Append docs/llm-wiki/log.md in append-only style with the changed files, evidence, caveats, and remaining review items.
12. When finished, run the appropriate validate / audit / stats checks and summarize the results, and call out the areas with thin or missing evidence and the items a human must review before verified.

Expected final response:
- Changed wiki docs (and any domain docs enriched).
- Source evidence inspected.
- validate / audit / stats run and results.
- Areas with thin or missing evidence, and items a human must review before verified.

Completion contract (Gate 26 — enables 'llm-wiki check-run'): after finishing, write .llm-wiki/runs/run-bootstrap-<timestamp>.json with fields: task="bootstrap", changedSource[] (source files you edited), touchedDocs[] (docs/llm-wiki/* you updated), logAppended (bool), validated {ran, result}. Then run 'llm-wiki check-run' to confirm each changed source is referenced by a touched doc, the log was appended, and validate passed. Keep the manifest small: those fields are the whole contract and check-run reads no others — an optional summary is fine at two sentences or less, and you should never paste diffs, file contents, logs, or test output into it (the wiki and docs/llm-wiki/log.md are where the narrative belongs). This records what the run did — it never replaces human review and never promotes a document to verified.

<!-- llm-wiki-generated v5 d3a5d61b2a3c8eca -->

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.