agentleFS
jimtinjimtin/production-ai/skills/repo-technical-documentation/SKILL.md

repo-technical-documentation

Skill1 starsChanged 5 months agoMITView on GitHub

Exhaustively document an existing repository's technical architecture and implementation details. Use when asked to work through a whole repo and create, update, reconcile, or refresh technical docs covering API endpoints, UI routes and choices, frameworks, libraries and rationale, data models, integrations, jobs, testing, deployment, observability, operational scripts, or stale documentation.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to produce durable, repo-grounded technical documentation.

    line 10
  2. Distinctive:

    Start from repo truth: applicable AGENTS.md, tracked files, manifests, source entrypoints, tests, docs, configs, scripts, workflows, and …

    line 16
  3. Very specific:

    Never print or document secret values.

    line 18
  4. Very specific:

    Prefer updating existing technical docs over creating duplicate docs.

    line 21
  5. Distinctive:

    Keep generated artifacts deterministic and repo-contained.

    line 22
  6. Distinctive:

    Read parent and repo-local instructions.

    line 27
  7. Very specific:

    Run this skill's helper, scripts/repo_inventory.py <repo> --format json, resolved relative to this skill directory, for a deterministic …

    line 30
  8. Very specific:

    Use references/documentation-schema.md for required sections and confidence labels.

    line 43
  9. Very specific:

    Use references/output-templates.md for the split-doc package.

    line 44
  10. Very specific:

    Default files under docs/repo-map/ are:

    line 45
  11. Distinctive:

    If existing docs cover the same subjects, update those files and add only missing companion files.

    line 53
  12. Distinctive:

    Run lightweight doc checks available in the repo, such as markdown lint or link checks, before broader validation.

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Repo Technical Documentation

Purpose

Use this skill to produce durable, repo-grounded technical documentation. The default output is split Markdown docs plus a machine-readable evidence file. Existing technical docs are updated in place when they exist; otherwise create the standard package under docs/repo-map/.

This is a documentation and inventory skill, not a remediation review. Use $full-app-review when the user wants prioritized findings or a fix plan.

Operating Rules

  • Start from repo truth: applicable AGENTS.md, tracked files, manifests, source entrypoints, tests, docs, configs, scripts, workflows, and deployment files.
  • Enumerate git-tracked files by default with git ls-files. Consider every tracked file, but path-inventory only for secret-like, generated/build, binary, unreadable, or oversized files.
  • Never print or document secret values. Do not read .env*, credential, token, private-key, local provider state, or similar files unless the user explicitly provides a safe fixture.
  • Tag every material claim as confirmed, inferred, stale-doc, or unknown. Do not present inferred rationale as fact.
  • In Plan Mode or report-only requests, do not write docs. Return the proposed doc targets and update plan instead.
  • Prefer updating existing technical docs over creating duplicate docs. If no suitable docs exist, create docs/repo-map/.
  • Keep generated artifacts deterministic and repo-contained. Do not dirty unrelated tracked files.

Workflow

  1. Baseline the repo.
    • Read parent and repo-local instructions.
    • Check git status --short --untracked-files=all.
    • Identify existing technical docs, source roots, test roots, package managers, deployment targets, and canonical validation commands.
    • Run this skill's helper, scripts/repo_inventory.py <repo> --format json, resolved relative to this skill directory, for a deterministic first-pass fact inventory when useful.
  2. Build the evidence map.
    • Use references/discovery-checklist.md.
    • Map API endpoints, UI routes, user actions, frameworks, libraries, data schemas, integrations, auth/roles, jobs, scripts, tests, deployment/runtime, observability, and docs.
    • Record evidence as file paths, line references when inspected directly, manifest entries, config files, and test/doc references.
  3. Reconcile existing docs.
    • Find docs that already describe architecture, APIs, routes, dependencies, operations, testing, or runbooks.
    • Compare documented claims with current repo evidence.
    • Mark missing current facts as confirmed, outdated claims as stale-doc, inferred rationale as inferred, and unresolved rationale or ownership as unknown.
  4. Write or propose docs.
    • Use references/documentation-schema.md for required sections and confidence labels.
    • Use references/output-templates.md for the split-doc package.
    • Default files under docs/repo-map/ are:
      • README.md
      • api-inventory.md
      • ui-inventory.md
      • dependencies-and-rationale.md
      • data-integrations-and-jobs.md
      • validation-and-operations.md
      • evidence.json
    • If existing docs cover the same subjects, update those files and add only missing companion files.
  5. Validate the documentation.
    • Confirm every material statement has evidence or an explicit unknown.
    • Re-run the inventory helper after writes and verify evidence.json is current.
    • Run lightweight doc checks available in the repo, such as markdown lint or link checks, before broader validation.

Output Expectations

Completion reports must include:

  • Docs created or updated.
  • Repo truth discovered.
  • Existing docs reconciled and stale claims removed or marked.
  • Evidence commands run.
  • Gaps left as unknown.
  • Validation results and any blocked checks.

References

  • references/discovery-checklist.md: what to inspect during the repo pass.
  • references/documentation-schema.md: confidence tags, evidence rules, and required doc sections.
  • references/output-templates.md: Markdown and JSON output templates.
  • scripts/repo_inventory.py: deterministic tracked-file inventory helper.

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.