repo-docs

Installation
SKILL.md

Repo Docs

Keep repo docs aligned with code. Follow doc-first workflow. Keep docs concise. Prefer progressive disclosure.

Core Path

Read in this order:

  1. AGENTS.md
  2. This skill
  3. /docs/WORK_IN_PROGRESS.md
  4. Linked plan doc if one exists for active item
  5. Otherwise linked relevant spec docs
  6. Code only after docs path is clear

Read only next relevant doc.

Bootstrap

If repo is missing doc scaffold, create it.

If practical, ask user first. If not practical, create it anyway.

Bootstrap scaffold:

  • AGENTS.md
  • /docs/README.md
  • /docs/WORK_IN_PROGRESS.md
  • /docs/TODO.md
  • /docs/FEATURE_IDEAS.md
  • /docs/plans/
  • /docs/plans/archived/
  • /docs/specs/

Bootstrap rules:

  • If AGENTS.md exists but does not mention /repo-docs, add only: Always use the \/repo-docs` skill.`
  • If AGENTS.md does not exist, create minimal file with only that instruction.
  • Create /docs/README.md to explain the /docs directory for humans. Keep it short, under 50 lines.
  • Leave /docs/plans/ and /docs/specs/ empty until real docs are needed.
  • Create /docs/TODO.md and /docs/FEATURE_IDEAS.md during bootstrap only with placeholder checklist items
  • After bootstrap, treat /docs/TODO.md and /docs/FEATURE_IDEAS.md as read-only and maintained by humans.

Work In Progress

/docs/WORK_IN_PROGRESS.md is source of truth for current active work.

Required structure:

  • file title
  • ## Active Items
  • each item has:
    • short task line
    • Created and Last Updated timestamps in Los Angeles time
    • links to plan doc and/or relevant spec docs

Rules:

  • No status tags.
  • Timestamps belong to each item, not file header.
  • No direct code references.
  • Keep progressive disclosure intact by linking onward to plan/spec docs.

Plans

Do not require plan for every change.

Skip plan when change is small, localized, or already fully explained by existing spec docs.

Create or offer a plan when change is:

  • multi-step
  • cross-cutting
  • user-facing behavior change
  • unclear
  • risky
  • tradeoff-heavy

If task seems significant enough to warrant plan, prompt user and offer to create one.

Plan rules:

  • path: /docs/plans/
  • archive path: /docs/plans/archived/
  • filename: [relevant-part-of-code]-[brief-description]-plan.md
  • first line is title
  • next lines are Created and Last Updated in Los Angeles time
  • sections in order:
    • ## TLDR
    • ## Current State
    • ## Desired State
    • ## Goals
    • ## Options Considered
    • ## Unknowns / Risks / Questions
    • ## Changes To Be Made

Plan content rules:

  • Explain what and why.
  • Keep direct code references minimal or none.
  • Link to relevant spec docs from Current State.
  • Use checklist items in Changes To Be Made to track progress towards completion.

Archive rule:

  • When planned code/docs work is complete, ask user whether to archive plan.
  • Never ask user to archive unless all plan checklist items are completed.

Specs

Specs are source of truth for intended application behavior.

Rules:

  • path: /docs/specs/
  • filename: *-spec.md
  • first line is title
  • next lines are Created and Last Updated in Los Angeles time
  • required early sections:
    • ## TLDR
    • ## Contents
  • required last section:
    • ## Other Relevant Spec Documents

Spec structure rules:

  • Keep most important information near top.
  • Use headings, bold text, and links to add meaning to text (importance/hierarchy/relationships).
  • Link to relevant code files. Do not paste code into specs.
  • Keep enough detail to derive intended behavior, not 1:1 source mapping.

Spec ownership rules:

  • Default: update existing relevant spec docs.
  • Create new spec doc when no current spec cleanly owns feature or area.
  • Split, merge, move, or delete spec docs only when current structure hurts progressive disclosure enough to justify it.
  • When restructuring specs, update all affected links in same change.

Conflict Rule

If specs and code conflict, stop and ask user every time before changing either.

No exceptions.

Doc Style

Use caveman style.

Rules:

  • concise
  • no bloated background
  • answer what
  • answer why when needed
  • optimize for humans and agents
  • use markdown structure to add meaning to text and for progressive disclosure and discoverability

Closeout

When task changes code or repo docs:

  1. update relevant docs to final state
  2. run /repo-docs-audit
  3. if audit passes and relevant plan exists with all checkboxes complete, ask user whether to archive the plan
  4. if audit passes and plan is not complete, inform the user that the docs and code are in sync - "Validated that /docs and source code are in sync."
  5. if audit fails, notify user of discrepancies so they can provide the correct direction going forward

Skip audit for read-only research or question-only work.

Weekly Installs
2
First Seen
8 days ago
Installed on
amp2
cline2
opencode2
cursor2
kimi-cli2
warp2