CommunityEscrita e Ediçãogithub.com

matheusmlopess/docs-system

Portable documentation system: taxonomy + category folders + MEMORIAL compendiums, packaged as an AgentFactory agent/skill with bootstrap/migrate/compile/append scripts.

Funciona com~Claude Code~Codex CLI~Cursor
npx skills add matheusmlopess/docs-system

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentação

docs-system — v1.0.0

Installs and maintains a complete documentation system in any repository. Use this skill when a project needs its docs organized, classified, indexed, and kept in sync — or when asked to "set up the documentation system / doc taxonomy / doc compendiums".

The skill is implemented by four scripts (in scripts/); you invoke them in order. All are idempotent and history-preserving (git mv); migration is review-gated (--dry-run first).


When to use

  • A repo has loose, unclassified docs → install the system + migrate them.
  • A doc was created/edited → regenerate that folder's compendium (mandatory step).
  • Someone asks for a doc index / glossary / "memorial" / taxonomy.

Commands (scripts)

CommandScriptPurpose
bootstrapscripts/docs-bootstrap.sh <repo>Install kit: scaffold category folders, copy governance docs (taxonomy/templates/quick-start/registry/glossary), install the 4 scripts, append the doc rule to the agent file. Idempotent.
migratescripts/docs-migrate.sh [--dry-run|--apply] <repo>Classify existing docs by filename prefix, date them (marker→git→filename), and move to TYPE-NAME-DATE.md in the right folder. --dry-run (default) prints the plan; --apply does git mv + markers + a reference sweep. Unknown prefixes → NEEDS-REVIEW (never auto-moved).
compilescripts/docs-compile.sh <folder>(Re)build <folder>/MEMORIAL.md — a date-ordered compendium of every doc with index + glossary link + full bodies. Deterministic rebuild: idempotent / auto-append / dedup / re-order. --clean <folder> removes it.
appendscripts/docs-append.sh <doc> ["summary"]Add one link line for a doc to its folder README.md index (idempotent).

Standard workflow

# 1. configure (once per repo)
cp docs-system.conf.example .docs-system.conf   # edit PROJECT_NAME, AGENT_RULES, PLAN_BUCKET

# 2. install
scripts/docs-bootstrap.sh .

# 3. migrate existing docs — DRY-RUN FIRST, review, then apply
scripts/docs-migrate.sh --dry-run .
scripts/docs-migrate.sh --apply .

# 4. build compendiums
for d in documentation features testing reviews changes PLANS; do
  scripts/docs-compile.sh "docs/$d"
done

# 5. finish: reseed docs/documentation/DOCUMENTATION-REGISTRY.md, edit GLOSSARY.md project terms

MANDATORY ongoing rule

After you create or edit ANY doc under docs/<folder>/, run scripts/docs-compile.sh docs/<folder> and commit the regenerated MEMORIAL.md with the doc. Do not hand-edit MEMORIAL.md (it is generated). This is also written into the target repo's agent rules file by bootstrap.

Doc header markers (enforced)

Every .md carries, under its H1: <!-- version --> · <!-- classification: TYPE --> · <!-- date --> · <!-- last-updated -->. date is set once (creation); only last-updated changes on edits. Types: FEATURE / TESTING / DESIGN / GAPS / ANALYSIS / CHANGE / STUDY / REVIEW / ARCHITECTURE / SUMMARY / PLAN.

Safety / revert

  • docs-migrate.sh defaults to --dry-run; review the table before --apply.
  • Revert compendiums: scripts/docs-compile.sh --clean docs/<folder> or find docs -name MEMORIAL.md -delete.
  • Everything is git-tracked; git revert undoes a run. Moves are renames (history preserved).

References

  • references/PLAYBOOK.md — full procedure, configuration knobs, verification, revert.

Habilidades Relacionadas

opendatalab/MinerU

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

community

psreek-ai/codebase-mooc

I-generated engineering education embedded in your codebase. Takes any developer from novice to owner without going anywhere else.

community

recoupable/setup-artist

Set up the workspace for a new artist inside a sandbox. Creates the directory structure, context files, memory system, and placeholder content so agents can immediately start working. Use after setup-sandbox has created the org/artist folders, when RECOUP.md has status not-setup. Triggers on "set up artist", "create artist workspace", "initialize artist", or "onboard new artist".

community

LinLin00000000/aiops-vault-template

Local-first, agent-friendly AIOps vault template with Markdown/JSONL truth sources and thin companion skills.

community

tavily-ai/tavily-search

Search the web with LLM-optimized results via the Tavily CLI. Use this skill when the user wants to search the web, find articles, look up information, get recent news, discover sources, or says "search for", "find me", "look up", "what's the latest on", "find articles about", or needs current information from the internet. Returns relevant results with content snippets, relevance scores, and metadata — optimized for LLM consumption. Supports domain filtering, time ranges, and multiple search depths.

community

sunrisever/pdf-4in1

4-in-1 print layout for PDF/PPT lecture handouts | PDF/PPT 讲义四合一打印排版

community