elegy-doc-practices
Use when an agent or contributor needs to classify, place, scaffold, or validate documentation in the Elegy ecosystem — the central doctrine for ADRs, specs, guides, notes, and roadmap material across Elegy and downstream repos.
- License 许可
- Apache-2.0
- 所属仓库
- Sofreshx/Elegy
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- elegy-doc-practices
- description
- Use when an agent or contributor needs to classify, place, scaffold, or validate documentation in the Elegy ecosystem — the central doctrine for ADRs, specs, guides, notes, and roadmap material across Elegy and downstream repos.
02 资源文件 5
- 参考文档adoption/downstream-repo.md1.4 KB
- 参考文档readiness.json713 B
- 参考文档README.md311 B
- 参考文档templates/adr.md471 B
- 参考文档templates/spec.md579 B
03 SKILL.md 正文
Elegy Documentation Practices
Readiness: concept; not agent-routable. This source guidance has no reviewed clean-install and non-fixture task receipt.
Use when a contributor or agent needs to apply the central Elegy documentation doctrine: decide whether a change needs an ADR, spec, guide, note, or roadmap entry, scaffold it with the right template, and validate it objectively.
The central doctrine lives in Elegy. Downstream repos adopt it by referencing
this skill and configuring local paths and triggers through
.elegy/docs.yaml. The doctrine is durable; the per-repo configuration is local.
Quick start
- Classify the change — read the Documentation practices architecture doc and decide whether the work needs an ADR (durable decision), a spec (implementation-facing behavior), a guide (recurring instructions), a note (narrow local context), or a roadmap entry (multi-slice future work).
- Scaffold the artifact — use
elegy docs new adr --title "..."orelegy docs new spec --title "..."to get a file with required frontmatter. - Adopt locally — copy the snippets in
skills/elegy-doc-practices/adoption/into the consuming repo's.elegy/docs.yamland CI workflow. - Validate objectively — run
elegy-documentation check --project . --jsonto surface missing frontmatter, invalid statuses, broken links, unparseable dates, and freshness warnings. The CLI does not score prose quality. - Treat prose review as human work — automation covers objective failures only. Reasoning, structure, and architecture taste stay with humans.
Document types
| Type | When to use | Authority root | Status values |
|---|---|---|---|
| ADR | Durable architecture or governance decision with alternatives and consequences. | docs/adr/ |
proposed, accepted, superseded, rejected |
| Spec | Implementation-facing behavior with acceptance criteria and validation evidence. | docs/specs/ |
draft, active, completed, superseded, deprecated |
| Guide | Recurring contributor or operator instructions. | docs/architecture/ (current) |
active, superseded |
| Note | Narrow local context that does not justify stronger governance. | docs/architecture/ (current) |
active, archived |
| Roadmap | Ordered future work across multiple slices. | docs/roadmaps/ |
active, completed |
Use the lightest type that captures the work. Do not force every change into an ADR or spec.
Placement
- Shared doctrine and cross-project conventions belong in Elegy
(
docs/architecture/,docs/adr/,docs/specs/). - Product-specific ADRs and specs belong in the owning repo.
- Cross-repo decisions belong centrally and are linked locally from affected repos.
Do not duplicate the shared doctrine into every downstream repo.
Required frontmatter
Every current-authority doc must carry non-empty frontmatter for:
titlestatusowner
Every spec additionally needs doc_kind (one of adr, spec, guide,
reference, planning, research, generated, index, system).
created and updated are recommended for freshness tracking.
Local adoption
Downstream repos such as holon and elegy-copilot should:
- Reference this skill from their
.github/instructions/or equivalent. - Define only local path, trigger, and exception overrides in
.elegy/docs.yaml. - Keep product ADRs and specs local unless the decision is cross-repo.
See skills/elegy-doc-practices/adoption/ for copy-paste snippets.
Validation
elegy-documentation inspect --project . --json
elegy-documentation map --project . --json
elegy-documentation check --project . --json
elegy-documentation export llms --project . --output .elegy/llms.txt
elegy-documentation export bundle --project . --output .elegy/docs-bundle.json
The CLI covers only objective failures. Prose quality, architecture taste, and correctness of reasoning require human review.
Enforcement phases
- Phase 1 — PR checklist; contributor instructions for documentation impact.
- Phase 2 — non-blocking
elegy-documentation checkin CI. - Phase 3 — blocking CI only for objective failures and explicitly configured high-impact changes.
Do not block automatically on subjective document quality.
Companion skills
elegy-skill-authoring— for creating and auditing SKILL.md content.elegy-planning— for durable planning state (goals, roadmaps, plans).elegy-mcp— for MCP descriptor authoring and analysis.
Related
04 同仓库更多 Skills
elegy-skill-authoring
Doctrine for drafting, auditing, and fixing Elegy skills. Use when creating a new skill, running an audit against an existing one, or triaging structural and content findings.
elegy-plugin-authoring
Use when creating or reviewing an Elegy system-adapter plugin that connects an agent to a data source, database, platform, API, local system, or executable boundary.
elegy-obsidian
Read, write, and search a local Obsidian vault via the official Obsidian Desktop CLI (v1.12.7+). Non-authoritative convenience layer; durable planning state continues to flow through elegy-planning and SQLite. User-invoked; do not auto-load.
test-skill
A test skill for the app-binding fixture.
elegy-planning
Use when an agent needs to create, inspect, update, validate, or export durable planning state — goals, roadmaps, plans, work points, todos, issues, review points, insights, and project runs — through the dedicated elegy-planning CLI over SQLite.
elegy-observe
Observe desktop and OS state for agentic workflows. Snapshot running processes, track foreground and visible windows, capture screen, read clipboard, diff filesystem changes, and query system information.