**UTILITY SKILL** — Artifact template structures, H2 compliance rules, and documentation styling for agent outputs (Steps 1-7). WHEN: "generate artifact", "check H2 structure", "artifact template", "step 7 as-built". USE FOR: generating any agent artifact, checking H2 structure compliance. DO NOT USE FOR: Azure resource configuration (use azure-defaults), Bicep/Terraform patterns (use azure-bicep-patterns or terraform-patterns).
72
87%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Single source of truth for artifact template structures and styling.
Per-step H2 definitions live in references/ — load only the step
you are generating.
| Rule | Requirement |
|---|---|
| Template skeleton | Read step template from references/ and replicate |
| Exact text | Use H2 text from templates verbatim |
| Exact order | Required H2s appear in the order listed |
| Anchor rule | Extra sections allowed ONLY after last required H2 |
| No omissions | Every H2 listed must appear in output |
| Attribution | > Generated by {agent} agent | {YYYY-MM-DD} |
agent-output/{project}/Every project in agent-output/{project}/ MUST have a
README.md.
After saving step artifact(s), update the README:
## ✅ Workflow Progress## 📄 Generated ArtifactsLast Updated date and progress bar percentageArtifact generation flow (per Step N):
references/0N-*-template.md for the step you are generating{placeholder} tokens; never use "TBD" or "Insert here"> Generated by {agent} agent | {YYYY-MM-DD}agent-output/{project}/ with the prescribed filenameLast Updated datenpm run lint:artifact-templates,
npm run lint:h2-sync, or markdownlint-cli2 directly against
agent-output/**. The lefthook artifact-validation pre-commit hook (which
wraps these scripts) and the 10-Challenger review own the artifact
contract. See
agent-authoring.instructions.md.For revisions (challenger findings, user-decision Apply/Skip/Defer, approval-gate fixes), see references/revision-workflow.md — bundle all fixes into a single multi_replace_string_in_file call.
All templates use single-brace {placeholder-name} syntax:
{project-name}, {monthly-cost}{{double-braces}}These npm scripts are invoked by the lefthook artifact-validation pre-commit
hook and by CI — not by agents directly (see
agent-authoring.instructions.md).
npm run lint:artifact-templates # H2 order and required headings (pre-commit + CI only)
npm run lint:h2-sync # Template ↔ artifact sync (pre-commit + CI only)
npm run validate:all # All validators together (humans / CI only)When an agent needs a quick "did I get the H2 structure right?" check
before invoking the challenger, use the dedicated helper instead of
improvising node -e '…' one-liners (which trip shell quoting and waste
context on retries):
npm run check:h2-order -- <project> # defaults to 01-requirements.md
npm run check:h2-order -- <project> 04-implementation-plan.md
node tools/scripts/check-h2-order.mjs agent-output/<project>/02-architecture-assessment.mdExit 0 = match (prints OK: …). Exit 1 = mismatch (prints structured
JSON with expected/got/missingAt). Exit 2 = bad arguments or
unknown artifact filename. The helper reads the canonical heading
registry from tools/scripts/_lib/artifact-headings.mjs
so it never drifts from the template source of truth.
Critical (always check):
agent-output/{project}/ with correct nameFor the full structural / styling checklist (TOC, cross-nav table, traffic
lights, Mermaid, collapsible blocks) read
references/styling-standards.md.
When generating a Step N artifact, read the corresponding template:
| Reference | When to Load |
|---|---|
references/01-requirements-template.md | Generating Step 1 requirements |
references/02-architecture-template.md | Generating Step 2 assessment or Step 3 cost estimate |
references/04-plan-template.md | Generating Step 4 plan, governance, or preflight |
references/05-code-template.md | Generating Step 5 implementation reference |
references/06-deploy-template.md | Generating Step 6 deployment summary |
references/07-docs-template.md | Generating Step 7 workload documentation |
references/styling-standards.md | Applying callouts, badges, emoji, navigation |
references/cost-estimate-sections.md | Cost estimate H2 structure and formatting rules |
references/revision-workflow.md | Detailed targeted-edit revision procedure (Step 7+) |
05d7617
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.