docsstructure
Use when: structuring documentation with Diátaxis, README anatomy, ADR format, or section ordering conventions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when: structuring documentation with Diátaxis, README anatomy, ADR format, or section ordering conventions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when: reviewing .prompt.md, .agent.md, SKILL.md, or .instructions.md files for contradictions, ambiguity, persona consistency, cognitive load, coverage gaps, and composition conflicts.
Use when: checking xanadAssistant workspace health, install status, repair reasons, or lockfile validity before proposing install, update, repair, or restore operations.
Use when: designing or reviewing CI/CD pipelines, GitHub Actions, stage design, environment gates, or artifact discipline.
Use when: writing or reviewing Dockerfiles, container images, multi-stage builds, layer caching, or image security.
Use when: writing or reviewing Infrastructure as Code for naming, state management, modularity, and drift detection.
Use when: reviewing DevOps changes for pipeline safety, secret hygiene, permissions, rollback, and deployment risk.
| name | docsStructure |
| description | Use when: structuring documentation with Diátaxis, README anatomy, ADR format, or section ordering conventions. |
| type | reference |
| version | 1.0 |
| license | MIT |
Skill metadata: version "1.0"; tags [docs, structure, diataxis]; recommended tools [].
Use this skill when planning, scaffolding, or reorganising documentation. Apply it before drafting to choose the right document type and section order.
docsReviewdocsStyleFour document types that serve different reader goals. Each type should be kept separate — do not mix tutorial steps with reference tables.
| Type | Reader goal | Characteristic |
|---|---|---|
| Tutorial | Learn by doing | Guided, outcome-oriented, no choices |
| How-to guide | Accomplish a specific task | Assumes knowledge; focused steps |
| Reference | Look something up | Accurate, complete, no narrative |
| Explanation | Understand why | Conceptual; broader context |
A project README should follow this section order:
# Project Name
One-sentence description.
## Overview
What the project does and who it is for (2–4 sentences).
## Quick start
Minimal steps to get from zero to working (copy-runnable commands).
## Installation
Full install options (OS variants, package managers, version constraints).
## Usage
Core usage patterns with examples.
## Configuration
All options, environment variables, flags — ideally in a table.
## Contributing
Link to CONTRIBUTING.md or inline brief guide.
## License
SPDX identifier and link to LICENSE file.
Sections before "Contributing" are required. Omit sections only if they genuinely do not apply.
Each exported symbol should document:
Use this template for ADRs:
# ADR-NNN: Title
**Status**: Proposed | Accepted | Deprecated | Superseded by ADR-NNN
## Context
What is the situation that required a decision?
## Decision
What was decided?
## Consequences
What becomes easier? What becomes harder? What is deferred?
Store ADRs in docs/decisions/ with filenames NNN-short-title.md.