Version: 1.7.10
The /docs workflow creates, reviews, and publishes technical documentation for PARA projects. It follows an internal-first approach: always create in the project's docs/ directory, then promote to repo/docs/ when ready.
/docs [project-name] [action]
| Action | Description |
|---|---|
new |
Analyze project and create appropriate docs |
review |
Audit existing docs for freshness and accuracy |
update |
Update specific doc to reflect current code |
publish |
Promote selected docs from docs/ to repo/docs/ |
Projects/[project-name]/
βββ docs/ β DEFAULT: All docs created here (internal)
β βββ README.md β Doc Index (required)
β
βββ repo/docs/ β PUBLISH ONLY: Promoted from docs/
| Criteria | docs/ (default) |
repo/docs/ (after publish) |
|---|---|---|
| Created | Always β /docs new |
Only via /docs publish |
| Audience | Internal team, AI agent | Developer, contributor |
| Git | β Not tracked | β Tracked in repo |
| Language | User's preferences.language |
Repo's language |
Every docs/ directory MUST have a README.md index β a ~10 line table listing all docs. The agent reads this single file instead of scanning the directory, saving tokens.
/docs new auto-creates this file if it doesn't exist.
- Agent Indices Pre-flight (v1.7.10) β Runs a Soft Dump script that force-loads
.agents/rules.mdand.agents/skills.mdinto context (Anti-Cognitive-Bypass). - Read
project.md(goal, tech stack, status) - Scan source code (structure, entry points)
- Classify project type β recommend appropriate docs
- Read Doc Index β skip docs that already exist
- Present doc plan β wait for user confirmation
- Create docs based on actual code, not assumptions
- Create/update Doc Index (
README.md) - Log in session
- Read Doc Index to list available docs
- User selects which docs to publish
- Adapt for repo audience:
- Detect repo language β translate if needed
- Condense to 40-100 lines
- Fix workspace-specific paths
- Copy to
repo/docs/ - Log in session
- Workflow Documentation β Workflow catalog and philosophy
- Development Guide β Daily workflow streams
Added in v1.4.10. Updated in v1.7.10 (Cognitive Bypass Fix β Soft Dump payload in Step 0).