Docstruct
Skill aetox-skills/docstruct
AI documentation architecture skill for clear, non-duplicated, source-of-truth driven, token-efficient project documentation.
npx -y skills add aetox-skills/docstructAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Documentation architecture discipline for AI agents. Use when creating, updating, auditing, or organizing software project documentation so docs stay clear, non-duplicated, source-of-truth driven, and token-efficient.
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
3.8 KB, as published. Nobody here has run it
DocStruct
Purpose
Use DocStruct to create, update, audit, and organize project documentation without duplicate Markdown files, unclear ownership, unnecessary length, or token waste.
When To Use
Use this skill when the task involves:
- initializing project documentation
- auditing existing docs
- deciding where documentation belongs
- reducing duplicated docs
- documenting APIs, features, architecture, or handoff state
- preparing docs so humans and agents can continue work safely
When Not To Use
Do not use DocStruct when:
- a short README update is enough
- the user asks for marketing copy, a website, or a full docs platform
- legal, compliance, or regulated docs require a formal external standard
- the project already has a clear maintained documentation system
Core Rules
- Read existing docs and nearby source files before writing.
- Update existing docs before creating new files.
- Create a file only when it has a clear responsibility.
- Keep one source of truth for each durable fact.
- Link instead of copying repeated details.
- Keep docs short by default; expand only when complexity requires it.
- Mark uncertain information as
UNKNOWN. - Mark required work as
TODO. - Do not invent missing implementation details.
- Remove or shorten documentation that does not help future work.
Decision Flow
Before writing:
- Find existing docs and README files.
- Decide whether the information is useful for future work.
- If a responsible file exists, update it.
- If content is duplicated, keep the best source and replace copies with links.
- If no responsible file exists, create the smallest useful document.
- If information is uncertain, write
UNKNOWNand state what to verify.
For more detail, read references/decision-flow.md.
Single Source of Truth
Put each type of information in its responsible place:
- API behavior belongs in API docs.
- Database behavior belongs in database docs.
- UI behavior belongs in frontend docs.
- Deployment behavior belongs in deployment docs.
- Cross-system behavior belongs in architecture or integration docs.
Other files may link to the responsible source. Do not copy the same details into multiple files.
Output Style
Write direct, compact Markdown. Prefer short sections, bullet lists, explicit status, and links to related files. Avoid decorative prose, long theory, placeholder files, and repeated background context.
Status Labels
Use status labels to make continuation safe:
Current State: what exists nowImplementation: implemented, partial, planned, or unknownDependency: required related file, system, or decisionDone: confirmed completed workNot Done: known remaining workTODO: action requiredUNKNOWN: must be verified
For label guidance, read references/status-labels.md.
Minimal Template
# Title
## Purpose
## Status
- Current State:
- Implementation:
- Dependency:
## Notes
- ...
## Done
- [ ] ...
## Not Done
- [ ] ...
## Related Files
- `...`
## Notes for Agent
- ...
References
references/decision-flow.md: detailed documentation placement flowreferences/status-labels.md: status labels and examplesreferences/docstruct-principles.md: concise DocStruct principlestemplates/: reusable Markdown templatesprompts/: ready-to-use initialization and audit promptsadapters/: Cursor and AGENTS.md examples
Final Instruction
The best documentation is the smallest structure that preserves clarity, ownership, and continuity.