eliyce/paqad-ai/documentation-workflow
Claude Code and agent skill by eliyce/paqad-ai
- community
Checking that the SKILL.md file is still in the repository.
Runs the post-onboarding documentation workflow from the canonical tracker and the application manifests, in two stages: foundation (docs/instructions and module-map.yml) and module docs (docs/modules from the reviewed map). Use when instruction docs need creating or refreshing, or when the user has reviewed module-map.yml.
Install
npx vskill@latest install eliyce/paqad-ai/documentation-workflowSKILL.md
The same SKILL.md was published earlier as eliyce/paqad-ai/documentation-workflow.
What It Does
Runs the two-stage post-onboarding documentation workflow.
Stage 1, Foundation (`create documentation`) Generates docs/instructions/** (stack, architecture, design-system, registries, benchmarks, tech-debt) and writes docs/instructions/rules/module-map.yml. Module docs are explicitly deferred until the user reviews the map.
Stage 2, Module documentation (`create module documentation`) Reads docs/instructions/rules/module-map.yml as the sole authority for module and feature names, then generates docs/modules/**. Refuses to run if the map is absent.
Use This When
- `documentation-update` workflow: Run Stage 1. Use for post-onboarding, stack-validation, or drift-refresh runs where instruction docs need to be created or regenerated.
- `module-documentation` workflow: Run Stage 2. Use only after the user has reviewed
module-map.ymland confirmed business-language names.
Inputs
- Read
.paqad/project-profile.yaml,.paqad/detection-report.json, and.paqad/doc-progress.jsonif they exist. - For Stage 2: require
docs/instructions/rules/module-map.yml. Refuse if absent.
Procedure: Stage 1 (foundation)
- Validate the effective stack and capabilities against current manifests.
- Recover any interrupted tracker entries still marked in-progress.
- Generate or update
docs/instructions/stack/**,docs/instructions/architecture/**,docs/instructions/design-system/**,docs/instructions/registries/**,docs/instructions/benchmarks/**, anddocs/instructions/tech-debt/**. - Set up this team's git workflow rules with the git-workflow skill (first setup). Ship the files and their resolved decisions with this documentation change.
- Discover business modules from the codebase using the precedence order defined in the spec (user-provided → locked map entries → codebase-native containers → deterministic inference → LLM fallback).
- Write or update
docs/instructions/rules/module-map.yml. - Record
.paqad/doc-progress.jsonwithmoduleDocStage: pending_map_review. - Do not create or regenerate `docs/modules/`.\\
- End with the required message:
If any modules have low confidence, call them out explicitly in the final message.
Procedure: Stage 2 (module-docs)
- Run
scripts/check-stage2-prereq.sh: exits non-zero (with the canonical refusal message) ifdocs/instructions/rules/module-map.ymlis missing. - Read the map as the sole authority. Do not run discovery as a substitute.
- Generate or update
docs/modules/{slug}/index/summary.md,docs/modules/{slug}/features/{featureSlug}/business.md,docs/modules/{slug}/features/{featureSlug}/technical.md, and existing module support docs (database, api, integration, ui, error-catalog). - Update registries using map slugs, not raw folder names.
- Update
.paqad/doc-progress.jsonwithmoduleDocStage: complete. - Run
scripts/list-orphan-module-dirs.shand report any orphans under## Orphaned Directories. Do not delete them.
Onboarding Journey
Follow this section only when the brief you were given contains the line "Onboarding journey says auto-recommended." Without that line, ask as you always do. Outside the journey, run no paqad-ai onboarding command. With the line, run the stage your brief names without stopping to ask:
- Answer each pause, the git workflow decision included, with its recommended option:
paqad-ai onboarding decide <decision-id>. - Write only the pages that are missing. A page that already exists stays byte-identical: do not append to it, reformat it or correct it, and keep existing rules as they are. Name each kept page under
## Completed Stagesas kept for review, with any concern you found in it. - Record each unit as soon as it is done, with the files you wrote:
paqad-ai onboarding unit project_docs <area> --outputs <files>for a Stage 1 doc area,paqad-ai onboarding unit module_docs <slug> --outputs <files>for a Stage 2 module.
Output Contract
- Match
assets/output.template.md:## Workflow Status,## Completed Stages,## Blocked Stagesheadings. - Stage 1 output must end with the literal text in
assets/stage1-final-message.txt(verbatim). - Stage 2 output must include
## Orphaned Directorieswhenscripts/list-orphan-module-dirs.shreturned any. - Output must pass
scripts/lint-output.sh(exit 0).
Escalate / Stop Conditions
- Stop Stage 2 immediately if
module-map.ymlis missing. - Ask when manifests and the stored onboarding profile disagree on stack or capability context.
- Do not skip a stage silently because a partial doc already exists.
- Do not invent module names when the map is present, use the map.
Gotchas
- During the onboarding journey,
paqad-ai onboarding deciderefuses a decision opened before the journey and a decision with no recommended option. Do not ask the person and do not pick an option yourself: name that decision under## Blocked Stagesand stop, so a person answers it.
Resources
references/workflow-stages.mdscripts/check-stage2-prereq.shscripts/list-orphan-module-dirs.shscripts/lint-output.shassets/output.template.mdassets/stage1-final-message.txt.paqad/doc-progress.jsondocs/instructions/rules/module-map.ymlagents/openai.yaml
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingruntime/base/skills/documentation-workflow/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/eliyce/paqad-ai/documentation-workflow)