agentleFS
mystilleefmystilleef/spae-framework/skills/document/SKILL.md

document

Skill2 starsChanged 14 days agoMITView on GitHub

Document code APIs, modules, and behavior.

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

  • Harut8Skill

    architect

    Also in 9 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 50 edited versions we read keep these.

  • 13

    Distinctive

    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:

    Document code so callers understand purpose, usage, constraints, and failure behavior.

    line 24
  2. Distinctive:

    Keep documentation co-located, current, minimal, and aligned with the implementation.

    line 26
  3. Distinctive:

    Add or update docs for purpose, parameters, returns, errors, side effects, invariants, and examples.

    line 52
  4. Distinctive:

    Delete stale, speculative, duplicate, or implementation-repeating prose.

    line 54
  5. Distinctive:

    Lead with Purpose: Start each block with a one-line caller-facing summary.

    line 65
  6. Distinctive:

    Explain Why: Document rationale, constraints, tradeoffs, and caller obligations.

    line 67
  7. Distinctive:

    Use Examples: Add runnable examples when they clarify usage or prevent misuse.

    line 73
  8. Distinctive:

    Match Idioms: Follow language, framework, and repository documentation style.

    line 75
  9. Distinctive:

    Maintain Vocabulary: Use domain terms consistently with the code and existing docs.

    line 77
  10. Distinctive:

    Public Focus: Document caller-facing contracts.

    line 85
  11. Distinctive:

    No Behavioral Changes: Don't alter runtime behavior while documenting.

    line 91
  12. Distinctive:

    Keep prose terse while ensuring clarity.

    line 107
  13. Distinctive:

    Use lists and sub-lists for long sentences and dense paragraphs.

    line 110

“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

Documentation agent

When to use

  • Public APIs, modules, commands, configuration, or workflows lack caller-facing documentation.
  • Code changes alter contracts, side effects, errors, or operational constraints.
  • Existing documentation drifts from observed behavior.
  • Maintainers need rationale, invariants, edge cases, or runnable examples near the code.

Goal

  • Improve code comprehension through concise, accurate, idiomatic documentation explaining intent, contracts, safety constraints, and maintenance obligations.
  • Document code so callers understand purpose, usage, constraints, and failure behavior.
  • Keep documentation co-located, current, minimal, and aligned with the implementation.

Input

Determine scope by the first available source:

  • Files or folders provided by the user.
  • Current changes in the repository.

Abort if no scope exists.

Current changes: staged and unstaged edits, deletions, and renames of tracked files, plus new untracked files. Requires a versioned project. Abort with a clear message if none detected.

Workflow

  1. GATE—Confirm scope exists (user-provided files or current repository changes). Abort immediately if none.
  2. ORIENT—State target scope and documentation goal in one sentence. Runtime behavior stays unchanged.
  3. PLAN—Declare the minimal documentation change:
    • Identify target files, exported interfaces, modules, and commands.
    • Find missing, stale, redundant, or misleading documentation.
  4. ACT—Execute PLAN only:
    • Add or update docs for purpose, parameters, returns, errors, side effects, invariants, and examples.
    • Delete stale, speculative, duplicate, or implementation-repeating prose.
  5. VERIFY—Compare every documentation claim against code, tests, and project conventions. Iterate on failures.
  6. PERSIST—Write all modified documentation files atomically after VERIFY passes.
  7. REPORT—Emit the result following the result directives and using the result template.

Directives

  • Lead with Purpose: Start each block with a one-line caller-facing summary.
  • Explain Why: Document rationale, constraints, tradeoffs, and caller obligations; skip routine mechanics.
  • Describe Interfaces: Cover parameters, return values, errors, side effects, performance costs, and concurrency or ordering constraints.
  • Capture Safety: Record invariants, preconditions, edge cases, failure modes, and recovery expectations.
  • Use Examples: Add runnable examples when they clarify usage or prevent misuse.
  • Match Idioms: Follow language, framework, and repository documentation style.
  • Maintain Vocabulary: Use domain terms consistently with the code and existing docs.

Constraints

  • Accuracy First: Describe observed behavior only. Never speculate.
  • Minimal Prose: Omit boilerplate, history, redundant type information, and implementation narration.
  • Public Focus: Document caller-facing contracts. Hide private implementation details unless maintainers need an invariant.
  • One Concept per Block: Split unrelated ideas instead of writing dense paragraphs.
  • No Stale Markers: Move TODOs and FIXMEs to the issue tracker when possible; otherwise preserve only actionable context.
  • No Behavioral Changes: Don't alter runtime behavior while documenting.

Verification

  • Public APIs, modules, commands, and changed behavior have accurate caller-facing documentation.
  • Documentation matches code, tests, and repository conventions.
  • Examples run or state required context.
  • Changes remove stale, redundant, speculative, or implementation-repeating docs.
  • Formatting and documentation lint checks pass when available.

Result directives

  • Minimum words. Maximum signal.
  • Keep prose terse while ensuring clarity.
  • Optimize prose for agent, token, and context efficiency.
  • Split actions, findings, and summaries into terse bullet points.
  • Use lists and sub-lists for long sentences and dense paragraphs.
  • Emit the result template as live markdown—never in a code fence.
  • Output nothing outside the template.

Result template

<!-- prettier-ignore-start -->
### Execution Summary

- **Actions**:
  - [Terse list of actions taken]
- **Files**:
  - [Terse list of affected files]
- **Findings**:
  - [Terse list of notable findings]
- **Summary**:
  - [Terse list of summary of changes]

> **Document Status** • `[scope]`
> **Result**: [Documented | No Action | Failed]
> **Impact**: [Terse impact statement]
<!-- prettier-ignore-end -->

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.