一键导入
validate
Validate workflow markdown documents such as plans, reviews, implementation reports, and audits against the required format contract.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Validate workflow markdown documents such as plans, reviews, implementation reports, and audits against the required format contract.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Audit a feature implementation against its approved plan and implementation report, then produce the architect verdict and follow-up direction.
Create a feature document covering business context and initial architecture for a new feature using the PM and Architect workflow.
Execute a review-approved feature plan and produce or refine the implementation report for that feature.
Orchestrate the full feature workflow loop by detecting artifact state and routing through review, implementation, audit, and follow-up steps.
Create or update a feature implementation plan with concrete steps, risks, and acceptance criteria for the Architect workflow.
Revise an existing feature plan after review findings, implementation issues, or manual edits while preserving plan history.
| name | validate |
| description | Validate workflow markdown documents such as plans, reviews, implementation reports, and audits against the required format contract. |
Purpose: Check that workflow Markdown matches the documented format contract (plans, reviews, implementation reports, audits).
Audience — read carefully:
/validate): you may use the Commands section and internal implementation details below./plan, /replan, /review, /implement, /audit, /loop orchestrator): do not memorize or paste shell commands. Delegate to a Validator subagent using only the handoff block in § Validator subagent (delegation), or use inline fallback by opening this skill file and running the procedure here once for the target path.Normative formats: .claude/skills/workflow/references/plan-format.md, review-format.md, implementation-format.md, audit-format.md.
Implementation / operator reference: scripts/README-validate-workflow-doc.md
| Pattern | Type |
|---|---|
*.plan.md | plan |
*.review.md | review |
*.implementation.md | implementation |
*.audit.md | audit |
If the basename does not end with one of these suffixes, pass --type plan|review|implementation|audit.
The subsections below are not for /plan, /review, etc. Parents delegate via § Validator subagent (delegation).
Run without redirecting output into the repository (no > out.txt, tee log.txt, etc.).
bash scripts/validate-workflow-doc.sh /absolute/path/to/file.md
bash scripts/validate-workflow-doc.sh file1.md file2.md
bash scripts/validate-workflow-doc.sh --type plan /path/to/unusual.md
bash scripts/validate-workflow-doc.sh --mdlint /path/to/file.plan.md # optional; requires markdownlint on PATH
Arguments may be absolute or relative paths to .md files. Run the script from this repository root so scripts/ resolves correctly.
0 — all checked files passed the workflow-doc contract check.1 — contract violation (see stderr; each line should include a [rule_id]).2 — usage error, missing file, or unknown type.0 in this session (Validator subagent counts)..txt / .log captures, no > / >> / tee into the repo tree, no scratch files next to the workflow doc. The official shell entrypoint only reads the target .md and prints diagnostics to the terminal (stderr). Report exit code and stderr in the chat from the live command stream only.Parent skills (/plan, /replan, /review, /implement, /audit, /loop) should run workflow-doc validation in a separate context when the host supports subagents (Task tool or equivalent). Parents must not paste shell commands into their prompts — only paths and this handoff text.
bash lines here)You are the Validator subagent.
1. Open and follow ONLY the /validate skill at this absolute path:
{ABS_PATH_TO_VALIDATE_SKILL}
(e.g. …/.agents/skills/validate/SKILL.md or …/.claude/skills/validate/SKILL.md in this repo.)
2. Validate exactly this workflow Markdown file (absolute path):
{ABS_PATH_TO_WORKFLOW_MD}
3. Execute the validation procedure defined inside that skill (which checkout to use, env vars if any — all details are in the skill, not in this message). Do not edit the Markdown file. **Do not** write any files (no logs, no redirects into the workspace).
4. Reply with: (a) exit code, (b) full stderr if non-zero, (c) one line: PASS or FAIL.
If “spawn Validator subagent” is ambiguous: plan, replan, review, implement, audit, and loop each document (Concrete tooling — …) under their Validation (or orchestrator) section — Task / subagent_type (e.g. generalPurpose or the same profile /loop uses) and handoff-only delegated bodies (role-specific “do not paste …” lines). .agents/skills/review/SKILL.md shows the full pattern for Reviewer; use the same mechanics for other roles.
0, or you used inline fallback: you opened {ABS_PATH_TO_VALIDATE_SKILL} yourself and completed one validation run for {ABS_PATH_TO_WORKFLOW_MD} per that document, then reported exit code + stderr.[rule_id] lines to the authoring role for fixes, then re-run Validator.When /loop spawns Reviewer / Developer / Audit subagents, the orchestrator should run the Validator subagent (or inline fallback) on the artifact after that subagent returns and before parsing verdicts or routing — see /loop skill.
| Role / action | Artifact |
|---|---|
| After Architect creates or revises a plan | *.plan.md |
| After Reviewer writes a round | *.review.md |
| After Developer updates implementation report | *.implementation.md |
| After Architect writes audit | *.audit.md |
[rule_id], compare with the format spec, patch the Markdown, re-run this skill until exit 0.--mdlint is hygiene only; the default run is the format contract.scripts/validate-plan.sh — plan-only (also invoked by the dispatcher).scripts/validators/ — review / implementation / audit profiles.