agentleFS
elfrostelfrost/ai-patchlab/.agents/skills/document/SKILL.md

document

Skill1 starsChanged 30 days agoMITView on GitHub

Auto-generate or update project documentation from code — API reference, data dictionary, architecture overview, module docs. Mechanical extraction; never overwrites manual content marked with `<!-- manual -->`.

54 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use develop, scope and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • hong9LeeSkill

    develop

    빌드, 아키텍처, git 관련 작업 시 OMS MSA 공통 인프라 규칙을 적용한다. 기술 스택, 빌드 명령, 헥사고날 아키텍처 구조, git 워크플로우, AI Context 동기화 규칙을 다룬다. 코드 작성 컨벤션은 /convention, 테스트 컨벤션은 /test-guide 스킬을 참조.

    Also in 5 projects that use this

  • YuriNachosSkill

    scope

    Configure claude-scope status line widgets for Claude Code. Use when user wants to customize widgets, change theme, reorder elements, or modify display style.

    Also in 5 projects that use this

  • ralphkraussSkill

    resolve-conflicts

    Resolve git merge conflicts or re-apply changes from a stale branch onto current main. Use when user says "resolve conflicts", "merge conflicts", "rebase branch", "branch is behind", "re-apply changes", "port branch", or a branch is too far behind main to merge cleanly.

    Also in 3 projects that use this

  • MicrosoftSkill

    sync

    Sync the current session branch with its upstream branch, or publish the current session branch to a remote. Use when the user asks to sync a branch, pull latest changes, rebase onto upstream, push current branch, publish branch, or set upstream.

    Also in 5 projects that use this

  • kt057Skill

    check

    lint, typecheck, test を一括実行して結果をサマリーする

    Also in 7 projects that use this

  • Microsoft AzureSkill

    test

    Also in 12 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 50 edited versions we read keep these.

  • 6

    Distinctive

    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:

    Read CLAUDE.md for stack type

    line 9
  2. Very specific:

    Read docs/schema.sql if it exists (data dictionary source)

    line 11
  3. Very specific:

    Read existing docs/ files — preserve sections marked <!-- manual -->

    line 12
  4. Very specific:

    Read DECISIONS.md for ADRs (architecture overview source)

    line 13
  5. Very specific:

    Read examples/ for pattern descriptions

    line 14
  6. Very specific:

    Default scope: all ($ARGUMENTS can narrow to api, data, architecture, or modules).

    line 23
  7. Distinctive:

    Verify all referenced files / classes / functions exist

    line 31
  8. Very specific:

    NEVER overwrite sections marked <!-- manual -->

    line 39
  9. Distinctive:

    ALWAYS verify generated references point to real code

    line 40
  10. Distinctive:

    If a public function has no docstring, generate one and add it to the source

    line 41
  11. Distinctive:

    Use Google-style docstrings to match the project convention

    line 43
  12. Distinctive:

    Keep generated docs concise (tables over paragraphs)

    line 44

“Common” is measured: kept by at least 6 in 10 of the 50 edited versions of this file we could read. “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

Document

Phase 1: Discover

  1. Read CLAUDE.md for stack type
  2. Scan src/ for modules, classes, functions
  3. Read docs/schema.sql if it exists (data dictionary source)
  4. Read existing docs/ files — preserve sections marked <!-- manual -->
  5. Read DECISIONS.md for ADRs (architecture overview source)
  6. Read examples/ for pattern descriptions

Phase 2: Extract

  • Code: docstrings (Google-style), type hints, function signatures
  • Schema: CREATE TABLE statements, columns, indexes, comments
  • ADRs: title + decision + status from DECISIONS.md
  • ROADMAP: current phase + completed features

Phase 3: Generate

Default scope: all ($ARGUMENTS can narrow to api, data, architecture, or modules).

  • API reference (api / ai-agent stacks): list endpoints with method, path, parameters, response model. Output: docs/api-reference.md
  • Data dictionary (MySQL in stack): tables, columns, types, constraints, FKs, indexes. Output: docs/data-dictionary.md
  • Architecture overview: module dependency graph, key patterns, active ADRs. Output: docs/architecture.md
  • Module docs: per module — purpose, public API, usage examples. Output: docs/modules.md

Phase 4: Quality check

  • Verify all referenced files / classes / functions exist
  • Flag stale references (deleted code)
  • Flag undocumented public functions (missing docstrings)

Phase 5: Report + commit

Show the user a coverage summary (documented vs undocumented public APIs). Ask before writing. Commit separately: docs: auto-generate documentation.

Rules

  • NEVER overwrite sections marked <!-- manual -->
  • ALWAYS verify generated references point to real code
  • If a public function has no docstring, generate one and add it to the source
  • Show diffs before writing
  • Use Google-style docstrings to match the project convention
  • Keep generated docs concise (tables over paragraphs)
  • Include the generation date for staleness tracking

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.