Logo: Repo Docs

Repo Docs

Communautéit
YurunChen
repo-docs

Build and maintain a Markdown guide that helps humans understand a repository through real behavior, concepts, and evidence. Use when a user asks to understand a repo, generate or update repo-docs, answer repo-architecture/onboarding questions, seed docs for a new project, sync docs after code changes, or delete generated repo docs.

Iwwersiicht

EditeurYurunChen
Repositoryrepo-docs-skills
Skill-Nummrepo-docs
Stären
433
Forks
8
Matgeliwwert Dateien
49
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 49 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    YurunChen huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Repo Docs an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/YurunChen/repo-docs-skills/tree/main/docs
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/YurunChen/repo-docs-skills.git /tmp/repo-docs-skills
mkdir -p .claude/skills
cp -r /tmp/repo-docs-skills/docs .claude/skills/repo-docs
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Repo Docs an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Repo Docs automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Repo Docs net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Repo-Docs

Mission

repo-docs explains a repository to a human reader.

Do not start with a tree tour. Build a reader model first: what problem the repo solves, one real behavior it performs, the concepts behind that behavior, where those responsibilities live in code, where source truth lives, and how to verify the understanding.

Load Order

  1. Read this file first.
  2. Open REFERENCE.md for task routing when detailed rules are needed.
  3. Open only the topic file the router points to.
  4. Open EXAMPLES.md only for finished-page tone or output-shape examples.
  5. Prefer bundled scripts over rewriting deterministic checks.

Keep the routing narrow. SKILL.md defines the contract; topic files carry the detailed rules. If a detail appears in two places, keep it in the topic file and leave a pointer here.

Document Contract

FileRole
SKILL.mdEntry: mission, core laws, output contract, mode router, finish gate
REFERENCE.mdRouter to topic files; open only when detail is needed
WRITING.mdExplanation design, voice, evidence discovery
PAGE_RULES.mdBuild workflow, reader paths, page types, output shape, navigation
SCOPE_MODES.mdSeed, large/monorepo scope, specialized repos
SYNC_RULES.mdSync decision gate, question loop, change sync, widened content alignment
ROOT_AGENT_RULES.mdRoot AGENTS.md / CLAUDE.md routing block and install contract
QUALITY_RULES.mdEvidence labels, source truth, quality bar
EXAMPLES.mdFinished-page tone and output-shape examples
scripts/validate_repo_docs.pyStructure, links, sync anchors, freshness, evidence, references scope, and quality-review checks
validate_repo_docs.pyCompatibility wrapper for older invocations
evals/Source-repository regression fixtures and assertions for this skill; not required at runtime
../repo-docs-zh/SKILL.mdChinese language overlay

Core Laws

  • Behavior before inventory: teach one real workflow, request, task, failure, or data path before describing the tree.
  • Code location after behavior: once the reader understands one real path, map every in-scope first-party source directory and the key files or symbols needed to locate changes without repeating module explanations.
  • Representative case before abstraction: when a module explains a mechanism whose meaning depends on inputs, state changes, outputs, decisions, or boundaries, include a compact evidence-backed case or explicitly state why a case would mislead.
  • Shape follows reader need: prose explains why; structure shows what. Use tables, lists, timelines, fenced blocks, or flowcharts when they make comparisons, cases, sequences, commands, or lookup easier to scan.
  • Evidence before claims: inspect source, tests, config, data, commands, or artifacts before writing durable statements.
  • One durable fact, one home: code location lives in code-map.md; concept knowledge and mechanism details live in modules/; fixed generated audit artifacts live in references/; terms live in glossary.md; guide history lives in change-log.md.
  • Sync only when the guide would mislead: ordinary repo questions require a foreground decision, not automatic doc edits.
  • Validate before delivery: run the validator or state why it could not run.

Red flags that mean stop and re-route:

Thought or draft moveBetter action
"I'll start with the file tree."Pick the behavior the reader should follow.
"The path/function name explains it."Write the reader handle first; use source as proof.
"This schema/catalog deserves a references page."Put details in the owning module; keep references/ fixed.
"A repo question always means patch docs."Run the sync decision gate and use answer-only when the guide is already safe.
"The docs look fine; no validator needed."Run the validator or report the blocker.

Output Contract

Use the smallest package that teaches the repo honestly.

  • Standard: README.md, walkthroughs/one-real-run.md, code-map.md, modules/, references/source-evidence.md, glossary.md, change-log.md; add references/quality-review.md when the guide is source-heavy, high-risk, generated, or handoff-sensitive.
  • Lite: README.md, walkthroughs/one-real-run.md, references/source-evidence.md, change-log.md; use for small repos with little durable terminology. Add code-map.md when the small repo still has multiple first-party implementation areas or the reader needs a change-location index.
  • Seed: README.md, change-log.md, optional glossary.md; label facts as Confirmed, Planned, or Unknown.

Page Ownership

PageJob
README.mdOrient the reader and point to the first useful path.
walkthroughs/one-real-run.mdFollow one real behavior end to end with numbered ## Step N: behavior headings.
code-map.mdMap in-scope first-party directories to responsibilities, key files or symbols, main-path connections, and change locations after the behavior model is established.
modules/<concept>.mdExplain one durable concept named by the walkthrough, including details, representative cases, call/data shapes, commands, fields, caveats, and verification hooks needed to understand it.
references/source-evidence.mdFixed generated evidence base: traversal log, coverage notes, claim/evidence/confidence/caveat rows, and source material later pages may use.
references/quality-review.mdOptional fixed generated audit note for source-heavy, high-risk, generated, or handoff-sensitive guides.
glossary.mdThree columns only: `Term
change-log.mdMeaningful guide changes and sync anchors.

references/ is not a lookup layer. Code location belongs in code-map.md; do not hide it in an audit artifact. Do not add extra files under references/ for schemas, contracts, metrics, task catalogs, command lists, scripts, artifacts, or exact-name lookup. If a detail helps understanding, put it in the owning module. If it only proves a claim, put it in references/source-evidence.md.

Modes

Modes name common situations, not detached jobs. Use REFERENCE.md to open details only when the current mode needs them.

ModeUse whenWhat to do
SeedNo real source/runtime/test/data contract yetStatus-labeled project memory; do not describe plans as implemented
BuildFirst repo docs or onboarding materialFollow PAGE_RULES.md, wire root agent rules from ROOT_AGENT_RULES.md, run validator, deliver
SyncInteraction, repo state, user uncertainty, surfaced conversation knowledge, or memory updates may make the guide stale or incompleteFollow SYNC_RULES.md; decide none, answer-only, foreground patch, or background sync before answering
Cleanup / removalUser asks to delete generated repo docsRemove the package and stale root pointers; do not recreate docs unless explicitly asked
Question refinementA repo question shows the guide built the wrong modelPatch the smallest stable owning page, anchor in change-log.md, answer with a link

Sync Gate

When repo-docs/ exists and a repo-docs trigger appears, ask: what would a new reader misunderstand if they read the guide as it stands?

The foreground gate must end in one decision:

DecisionUse when
noneThe turn is unrelated to guide-covered knowledge or the guide is absent/out of scope.
answer-onlyThe guide is current enough, or the gap is transient, non-durable, not answer-critical, and not a small local patch. Answer from inspected guide/source without editing docs.
foreground patchThe current answer or code change would mislead without a small owning-page update, the guide says the opposite, or a stable knowledge gap is small and belongs in the guide now.
background syncThe gap is durable but broader than the current answer needs, the answer remains correct, and the platform has a trackable handoff.

Do not patch for one-off debug state, local environment quirks, or personal preference unless the user asks to preserve it.

Build Summary

Detailed Build rules live in PAGE_RULES.md. The short version:

  1. Inspect project instructions, README, entrypoints, scripts, tests, schemas, config, data, artifacts, and existing docs.
  2. Choose one representative real behavior.
  3. Build references/source-evidence.md as the evidence base with at least two traversal passes.
  4. Draft the reader model, then write README and the walkthrough; build the code map from the now-understood behavior before writing deeper modules, glossary, and change log.
  5. Wire root agent instructions from ROOT_AGENT_RULES.md.
  6. Run the validator and fix structure, links, evidence, references scope, and reading-experience issues.

For large repos or monorepos, scope the guide to one subsystem or workflow and say what is not covered.

Writing Rules

Use WRITING.md for voice and explanation rules. The short version:

  • Start with the situation a reader can recognize, then explain the reason, mechanism, check, and caveat.
  • Keep README and walkthrough openings low in code names.
  • Never let a path, function, field, or metric carry the explanation.
  • Follow the display-shape router in PAGE_RULES.md when structure helps the reader scan.
  • Use flowcharts only for phase handoffs, branching paths, or state changes.
  • Put page-level evidence status at the end of narrative pages: Evidence status: Confirmed unless noted.

Finish Checklist

Before delivery, confirm:

  • The reader can start from repo-docs/README.md and reach the main walkthrough.
  • walkthroughs/one-real-run.md follows one real behavior with numbered steps.
  • Standard packages include code-map.md; it covers every first-party source directory inside the declared scope, names the important code inside each area, states exclusions, and routes deeper mechanism questions to modules.
  • The walkthrough names a non-trivial pressure, a real boundary/failure/caveat when evidence exists, and one verification hook.
  • Source links prove the explanation instead of replacing it.
  • references/source-evidence.md exists and includes Pass 1/Pass 2 traversal rows, coverage/exclusion notes, a falsifying check, a likely reader follow-up, and a Claim | Evidence | Confidence | Caveat | Used by audit table.
  • Optional references/quality-review.md, when present, stays an audit note rather than a second walkthrough.
  • Modules carry the knowledge and details a reader needs to understand the repo; references/ contains only fixed generated artifacts.
  • Mechanism modules include a representative case for the key input, state change, output, decision, or boundary, unless the page states why a case would be misleading or unsupported by evidence.
  • Project agent instruction Markdown contains the short Repo docs routing block, or the build explicitly explains why it was not written.
  • change-log.md records meaningful guide work and includes Synced through <sha> when git is available.
  • The validator ran, or the reason it could not run is stated.

Verification

Before finishing, check structure, local links, source links, narrative flow, module ownership, fixed references scope, evidence maps, and quality review.

Run:

bash
python scripts/validate_repo_docs.py <path-to-repo-docs> --repo-root <repo-root>

Delivery

First build: tell the user what the reader can now do, where to start, the key pages, scope, validator result, and root agent-file status. Keep durable history in change-log.md, not in chat.

Cleanup: if the user asks to remove repo docs, delete the generated docs package and stale root-agent pointers. Do not recreate docs in the same turn unless explicitly asked.

Widened sync closeout: when the user explicitly asks to sync, tidy, hand off, or repair stale docs, follow SYNC_RULES.md and summarize by changed layer, not as a substitute for per-turn sync decisions.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Repo Docs?

Build and maintain a Markdown guide that helps humans understand a repository through real behavior, concepts, and evidence. Use when a user asks to understand a repo, generate or update repo-docs, answer repo-architecture/onboarding questions, seed docs for a new project, sync docs after code changes, or delete generated repo docs.

Firwat Repo Docs op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Repo Docs besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Repo Docs an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/YurunChen/repo-docs-skills/tree/main/docs an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Repo Docs benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Repo Docs benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Repo Docs domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Repo Docs gratis?

YurunChen huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇