agentleFS
po4ykapo4yka/llm-wiki-skills/skills/llm-wiki-repo-docs/SKILL.md

llm-wiki-repo-docs

Skill3 starsChanged 5 months agoMITView on GitHub

Build or maintain an LLM-Wiki for codebase documentation. Use when the user wants agent-readable repo docs, architecture maps, module pages, ADR links, OpenWiki-style output, or AGENTS.md/CLAUDE.md pointer patterns for Claude Code, Codex, Cursor, or other coding agents.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 8 are distinctive, and 0 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create or improve a repository LLM-Wiki that helps coding agents understand and modify the codebase safely.

    line 16
  2. Distinctive:

    Do not mix repo docs with personal second-brain material.

    line 55
  3. Distinctive:

    Create or update pages for:

    line 59
  4. Distinctive:

    Keep AGENTS.md/CLAUDE.md short.

    line 72
  5. Distinctive:

    Do not claim code behavior without checking source files.

    line 108
  6. Distinctive:

    Do not overwrite hand-written ADRs.

    line 109
  7. Distinctive:

    Do not put secrets or internal URLs in broadly readable docs.

    line 110
  8. Distinctive:

    Do not generate direct commits to team repos when PR workflow is expected.

    line 111

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
SKILL.md

LLM-Wiki Repo Docs

Goal

Create or improve a repository LLM-Wiki that helps coding agents understand and modify the codebase safely.

When to use

  • The user asks for an LLM-Wiki, agent-readable repo docs, or architecture maps for a codebase.
  • Setting up or refreshing AGENTS.md/CLAUDE.md pointer patterns for Claude Code, Codex, Cursor, or similar coding agents.
  • Module/package maps or ADR links have gone stale after a major refactor and need a maintenance pass.
  • Preparing OpenWiki-style repo documentation for a team repo where changes should land via PR.

Inputs

  • Repository path.
  • Existing docs, README, ADRs, package manifests and project instructions.
  • Target agent(s).
  • Desired mode: plan, apply, or PR-ready changes.

Procedure

1. Inspect repository shape

Identify:

  • languages and package managers;
  • major modules/services/packages;
  • tests and build commands;
  • existing docs and ADRs;
  • current AGENTS.md/CLAUDE.md;
  • generated docs folders that should not be edited.

2. Choose output location

Use one of:

wiki/          general LLM-Wiki docs
openwiki/      OpenWiki-style repo docs
_docs/wiki/    if project docs live under docs

Do not mix repo docs with personal second-brain material.

3. Generate repo wiki map

Create or update pages for:

  • architecture overview;
  • module/package index;
  • data flow;
  • build/test/deploy map;
  • common change workflows;
  • conventions and gotchas;
  • ADR/decision history;
  • agent entrypoints.

4. Use pointer pattern

Keep AGENTS.md/CLAUDE.md short. Add pointers to wiki pages instead of embedding large docs.

Example:

For architecture and module maps, read `wiki/index.md` first.

5. Add maintenance loop

Recommend:

  • wiki-lint after major refactors;
  • scheduled docs health check;
  • PR-based documentation updates;
  • CODEOWNERS for important domains;
  • stale markers for generated architecture pages.

Output

## Repo docs summary

## Pages created or proposed

## Instruction-file updates

## Architecture gaps

## Maintenance plan

## Next skill

Safety gates

  • Do not claim code behavior without checking source files.
  • Do not overwrite hand-written ADRs.
  • Do not put secrets or internal URLs in broadly readable docs.
  • Do not generate direct commits to team repos when PR workflow is expected.
  • Re-verify architecture and module descriptions against current source files before publishing pages, since generated maps drift quickly after refactors.

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.