Agent skill

docs

(ePost) Use when user says "write docs", "update docs", "document this", "init docs", "reorganize documentation", or "add component docs" — detects docs intent (init, update, migrate, component) and runs the right workflow

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/docs-klara-copilot-epost-agent-kit

Metadata

Additional technical details for this skill

connections
{
    "enhances": [],
    "requires": [
        "knowledge-retrieval"
    ]
}
argument hint
[--init | --migrate | --reorganize | --scan | --verify | --batch [category]]

SKILL.md

Docs — Unified Documentation Command

Auto-detect and execute the appropriate documentation workflow following knowledge-retrieval/references/knowledge-base.md structure.

Step 0 — Flag Override

If $ARGUMENTS starts with --init: load references/init.md, execute in generation mode. If $ARGUMENTS starts with --migrate: load references/init.md, execute in migrate mode. If $ARGUMENTS starts with --reorganize: load references/update.md, execute in reorganize mode. If $ARGUMENTS starts with --scan: load references/update.md, execute in scan mode. If $ARGUMENTS starts with --verify: load references/update.md, execute in verify mode. If $ARGUMENTS starts with --batch: load references/component.md, execute in batch mode. Pass remaining args as category filter. Otherwise: continue to Auto-Detection.

Aspect Files

File Purpose
references/init.md Scan codebase and generate or migrate KB documentation
references/update.md Update, scan, verify, or reorganize existing documentation
references/component.md Document a klara-theme component (Figma data + prop mapping)

Auto-Detection

  1. Check if docs/index.json exists in the project root
  2. Check intent signals in $ARGUMENTS or user message
  3. Check if args reference a specific component or library key
  4. Check platform-specific paths (web: packages/, iOS: Sources/, Android: app/)

Decision Matrix

Condition Load Reference Mode
docs/index.json absent, flat docs present references/init.md migrate
docs/index.json absent, no docs references/init.md generation
Intent: reorganize, structure, orphan, inconsistent, KB audit references/update.md reorganize
Intent: migrate, convert flat docs, restructure references/init.md migrate
Intent: scan, staleness, health, gaps references/update.md scan
Args match a component/library key AND component source exists references/component.md
docs/index.json present (default) references/update.md update

Execution

Load the reference file and execute its workflow.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results