This skill should be used when the user says "document infra change", "infrastructure documentation", "generate runbook", "infra docs", "arn infra document", "create infra changelog", "document infrastructure", "generate infrastructure docs", "infra documentation", "create runbook", "generate changelog", "arn-infra-document-change", or wants to generate operational documentation (runbooks, architecture updates, changelogs, environment docs) from completed infrastructure changes.
86
83%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Generate comprehensive operational documentation from completed infrastructure changes. This skill reads the change spec, plan, execution reports, and review report, then produces runbooks, architecture updates, operational playbooks, environment documentation, and changelog entries -- all written to the configured Infra docs directory.
This is the final step in the infrastructure change pipeline: change-spec -> change-plan -> save-plan -> execute-change -> review-change -> document-change.
Read ## Arness from the project's CLAUDE.md. If no ## Arness section exists or Arness Infra fields are missing, inform the user: "Arness Infra is not configured for this project yet. Run /arn-infra-wizard to get started — it will set everything up automatically." Do not proceed without it.
Check the Deferred field. If Deferred: yes, inform the user: "Infrastructure is in deferred mode. Documentation generation is not available until infrastructure is fully configured. Run /arn-infra-assess to un-defer." Stop.
Extract:
.arness/infra-docs).arness/infra-plans).arness/infra-specs)~/.arness/user-profile.yaml (or .claude/arness-profile.local.md if it exists — project override takes precedence). Apply the experience derivation mapping from ${CLAUDE_PLUGIN_ROOT}/skills/arn-infra-ensure-config/references/experience-derivation.md. If no profile exists, check for legacy Experience level in ## Arness as fallback.Resolve Infra docs directory (default: .arness/infra-docs). If the directory does not exist on disk, offer to create it: "The infra docs directory <path> does not exist yet. I can create it now. Proceed?"
Search for completed change projects:
Glob <infra-plans-dir>/*/PROGRESS_TRACKER.jsonFilter to projects where overallStatus === "completed" or where at least one phase has execution.status === "completed".
If one eligible project found: Auto-select it.
If multiple eligible projects found: Present the list. Ask the user to select.
If no eligible project found: Inform the user: "No completed change projects found. Run /arn-infra-execute-change to execute a change plan first."
Read all artifacts from the selected project:
INFRA_CHANGE_*.md specificationSOURCE_PLAN.md from the project directoryINFRA_CHANGE_REPORT_PHASE_N.json filesINFRA_REVIEW_REPORT.json (if available -- review is recommended but not required)Present a documentation scope summary: "Documentation scope:
I will generate the following documentation:
Ask (using AskUserQuestion):
"Proceed with generating documentation?"
Options:
Before generating documentation artifacts in Steps 2-6, note the user's experience level (derived from user profile) and apply these principles:
Read
${CLAUDE_PLUGIN_ROOT}/skills/arn-infra-document-change/references/runbook-template.mdfor the runbook template.
Generate a runbook following the template structure with infrastructure-specific content from the phase reports and plan.
Populate all 8 sections:
Write to: <infra-docs-dir>/runbook-<project-name>.md
Generate an updated architecture document reflecting the current infrastructure state:
Write to: <infra-docs-dir>/architecture-<project-name>.md
Generate a day-2 operations playbook:
Write to: <infra-docs-dir>/playbook-<project-name>.md
For each environment that was deployed to:
Write to: <infra-docs-dir>/env-<environment-name>-<project-name>.md (one per environment)
Read
${CLAUDE_PLUGIN_ROOT}/skills/arn-infra-document-change/references/changelog-template.mdfor the changelog template.
Generate a structured changelog entry following the template. If an existing changelog file exists at <infra-docs-dir>/CHANGELOG.md, prepend the new entry. If no changelog exists, create it with the entry.
Populate all 10 fields:
Write to: <infra-docs-dir>/CHANGELOG.md (prepend if exists, create if not)
"Documentation generated:
| Document | Path | Sections |
|---|---|---|
| Runbook | <path> | [N] sections |
| Architecture | <path> | [N] sections |
| Playbook | <path> | [N] sections |
| Environment docs | <paths> | [N] per env |
| Changelog | <path> | 1 entry added |
Total files: [N] created/updated in <infra-docs-dir>/
Next steps:
/arn-infra-monitor if monitoring is not yet configured"## Arness config missing: Suggest running /arn-infra-wizard to get started. Stop./arn-infra-save-plan to create a structured project. Stop./arn-infra-execute-change first."1fe948f
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.