apex-azure-artifacts
Skill220 starsChanged 2 months agoMITView on GitHub
**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". DO NOT USE FOR: Azure resource configuration (apex-azure-defaults), Bicep/Terraform patterns (apex-azure-bicep-patterns or apex-terraform-patterns).
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- apex-agent-authoringSkill
- apex-azure-adrSkill
- apex-azure-bicep-patternsSkill
- apex-azure-cloud-migrateSkill
- apex-azure-complianceSkill
- apex-azure-computeSkill
- apex-azure-cost-optimizationSkill
- apex-azure-defaultsSkill
- apex-azure-deploySkill
- apex-azure-diagnosticsSkill
- apex-azure-governance-discoverySkill
- apex-azure-kubernetesSkill
- apex-azure-kustoSkill
- apex-azure-prepareSkill
- apex-azure-quotasSkill
- apex-azure-rbacSkill
- apex-azure-reliabilitySkill
- apex-azure-resourcesSkill
- apex-azure-storageSkill
- apex-azure-upgradeSkill
- apex-azure-validateSkill
- apex-context-managementSkill
- apex-debug-log-exportSkill
- apex-entra-app-registrationSkill
- apex-github-operationsSkill
- apex-golden-principlesSkill
- apex-iac-commonSkill
- apex-mermaidSkill
- apex-microsoft-docsSkill
- apex-python-diagramsSkill
- apex-rfi-rfpSkill
- apex-terraform-patternsSkill
- apex-terraform-search-importSkill
- apex-terraform-testSkill
- apex-unslopSkill
- apex-vendor-promptingSkill
- apex-workflow-engineSkill
- apex-workflow-startSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 7 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 53
DO: Read the step-specific template before generating
- Very specific: line 55
DO: Keep agent-output/{project}/ root Markdown-only (layout_version: 2): write .md deliverables to root, canonical JSON contracts …
- Distinctive: line 62
DON'T: Use placeholder text like "TBD" or "Insert here"
- Distinctive: line 63
DON'T: Add custom H2 sections BEFORE the last required H2
- Very specific: line 67
Every project in agent-output/{project}/ MUST have a README.md.
- Distinctive: line 70
After saving step artifact(s), update the README:
- Very specific: line 73
Add artifact files to ## 📄 Generated Artifacts
- Very specific: line 74
Update Last Updated and derive progress from current required/optional graph nodes, including Governance for delivery mode.
- Distinctive: line 99
Use available targeted editing tools, preserve user work, and validate before dependent follow-up edits.
- Distinctive: line 103
Run a one-line shape check immediately after writing any non-markdown artifact, before moving to the next step.
- Very specific: line 129
All templates use single-brace {placeholder-name} syntax:
- Very specific: line 132
No Mustache/Handlebars {{double-braces}}
- Very specific: line 148
When an agent needs a quick "did I get the H2 structure right?" check *before* invoking the challenger, use the dedicated helper instead of …
- Distinctive: line 180
When generating a Step N artifact, read the corresponding template:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Azure Artifacts Skill
Owns artifact structures and styling, not workflow decisions. Required H2s
come from the heading registry; full templates live in templates/ and
references/ provide navigation summaries. Read the full template for current writes.
The workflow graph, role contract, current reviews and human approval own routing
and completion; templates never advance a step or authorize an operation.
Rules
For workflow_mode=assessment, use standalone assessment:
templates/01-assessment-brief.template.md, the existing WAF template and
templates/03-cost-management-report.template.md. The root is Markdown-only; normalized cost evidence
lives in contracts/03-cost-management.json. Do not require a deployment SKU manifest or synthesize
business requirements in evidence-only mode. Keep report coverage separate from acceptance.
Register-capable runs also use
Assessment Action Register and
templates/04-assessment-action-register.template.md: one validated source generates Excel and Markdown.
The register is nonbinding financial-impact reporting, not an implementation gate.
For ad hoc RFI, RFP, and BAFO pursuit packages authored with
.github/skills/apex-rfi-rfp/SKILL.md, follow
references/pursuit-advisory-packages.md: keep the exact
PROJECT-README H2 sequence in README.md, declare non-delivery workflow status, and avoid reserved
delivery-step filenames so artifact and challenger validators remain clean without synthetic sidecars.
Mandatory Compliance
| Rule | Requirement |
| Template skeleton | Read the full step template from templates/; summaries are navigation |
| 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} |
DO / DON'T
- DO: Read the step-specific template before generating
- DO: Copy H2 text character-for-character (including emoji)
- DO: Keep
agent-output/{project}/root Markdown-only (layout_version: 2): write.mddeliverables to root, canonical JSON contracts (sku-manifest.json,02-cost-estimate.json,04-policy-feasibility.json,04-governance-constraints.json,04-iac-contract.json,04-policy-property-map.json,04-environment-manifest.json,05-iac-handoff.json,09-lessons-learned.json) tocontracts/, challenger reviews (challenge-findings-*.json) toreviews/, diagrams (*.py,*.png,*.svg) toassets/, and session state / inputs / pricing requests / scratch to_meta/ - DON'T: Reorder H2 headings from the listed sequence
- DON'T: Use placeholder text like "TBD" or "Insert here"
- DON'T: Add custom H2 sections BEFORE the last required H2
Mandatory: Project README
Every project in agent-output/{project}/ MUST have a
README.md.
After saving step artifact(s), update the README:
- Reflect verified graph/session status in
## ✅ Workflow Progress; a write alone is not completion - Add artifact files to
## 📄 Generated Artifacts - Update
Last Updatedand derive progress from current required/optional graph nodes, including Governance for delivery mode. Standalone assessments use only their selected profile and terminate after accepted report/diagram/cost bundle; no pending Governance progress bar. Partial output, pending reviews and approval remain incomplete.
Steps
Artifact generation flow (per Step N):
- Read template — use the matching reference to locate the full
templates/*.template.md - Copy H2 skeleton — replicate every required H2 in the listed order, character-for-character
- Fill content — replace
{placeholder}tokens; never use "TBD" or "Insert here" - Add attribution —
> Generated by {agent} agent | {YYYY-MM-DD} - Save to
agent-output/{project}/with the prescribed filename - Update README — list validated artifacts and actual status; never mark complete before required checks, reviews and approval
- Delegate validation — do not invoke
npm run lint:artifact-templates,npm run lint:h2-sync, ormarkdownlint-cli2directly againstagent-output/**. The lefthookartifact-validationpre-commit hook (which wraps these scripts) and the10-Challengerreview own the artifact contract. Seeagent-authoring.instructions.md.
For revisions (challenger findings, user decisions, approval-gate fixes), follow
references/revision-workflow.md.
Use available targeted editing tools, preserve user work, and validate before dependent follow-up edits.
Post-write validation
Run a one-line shape check immediately after writing any non-markdown
artifact, before moving to the next step. Catches malformed output at
source instead of at deploy time. Markdown artifacts are owned by the
lefthook artifact-validation hook — do not duplicate that check here.
| Artifact type | Validation command (run after write) |
*.json | python -m json.tool <file> >/dev/null |
*.bicep | bicep build --stdout <file> >/dev/null |
*.tf | terraform fmt -check <file> + terraform validate (in module dir) |
challenge-findings-*.json (sidecar JSON) | node tools/scripts/validate-challenger-findings.mjs <file> |
challenge-findings-*-decisions.json (per-finding sidecar) | node tools/scripts/validate-challenge-findings-decisions.mjs <file> |
*.md | delegated to lefthook artifact-validation — do not run inline |
Fail closed: if the validator exits non-zero, fix the artifact and re-validate before continuing. Do not record the artifact in the project README or hand off to the next step until it passes.
For incremental IaC, apply the readiness-aware build checkpoints in
codegen-shared-workflow.md.
An incomplete scaffold has deferred checks, not successful validation;
all deferred checks must pass before completion or handoff. Use bounded validated batches
under the shared workflow; no routine per-file approval is required.
Placeholder Syntax
All templates use single-brace {placeholder-name} syntax:
- Lowercase, hyphen-separated:
{project-name},{monthly-cost} - No Mustache/Handlebars
{{double-braces}}
Automated Validation
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)Fast H2-order sanity check (agent-safe)
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.
Quality Checklist
Critical (always check):
- H2 headings match template exactly (text + order)
- Attribution header present with agent name and date
- No placeholder text (e.g. "TBD", "Insert here", task markers)
- File saved to
agent-output/{project}/with correct name
For the full structural / styling checklist (TOC, cross-nav table, traffic
lights, Mermaid, collapsible blocks) read
references/styling-standards.md.
Reference Index
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+) |
references/sku-manifest-details.md | SKU manifest coverage, projection, TTL and sync tooling |
references/pursuit-advisory-packages.md | Coexistence rules for RFI/RFP/BAFO packages in agent-output/ |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

