Infrastructure Documentation Sync
Keep Home Assistant and self-hosted infrastructure documentation aligned after operational changes. Discover the workspace's real documentation surfaces instead of assuming hostnames, paths, or products.
Discover Update Targets
Inspect the workspace and update only applicable surfaces:
- Workspace-level infrastructure instructions, such as a root
AGENTS.md or equivalent policy file.
- Repository-scoped instruction files affected by the change.
- User-facing
README.md files and architecture documentation.
- Dedicated runbooks or operational baseline documents.
- Dashboard, start-page, or service-catalog shortcuts.
- Machine-readable infrastructure inventory or assistant-facing environment snapshots.
Do not invent a missing surface solely to satisfy this list.
Workflow
- Collect current runtime truth from the relevant hosts, containers, compose files, service APIs, and repository state.
- Identify the authoritative source for host roles, service placement, URLs, ports, and storage.
- Update workspace instructions first when shared topology changed.
- Keep repository instructions limited to non-discoverable constraints and applicability gates.
- Move long procedures from agent instructions into dedicated runbooks when practical.
- Update user-facing documentation and shortcuts affected by the same change.
- Refresh machine-readable infrastructure inventory when the workspace uses one.
- Validate references against runtime and check that documentation surfaces do not conflict.
- Reload or restart only the specific documentation/dashboard service when explicitly authorized and necessary.
Instruction Quality Rules
- Prefer short constraints and checklists over narrative runbooks.
- Keep only high-impact, non-discoverable context in agent instruction files.
- Add applicability gates when guidance covers multiple scopes.
- Avoid duplicating the same policy across workspace and repository levels.
- Never publish credentials, tokens, private addresses, personal paths, or internal-only operational details.
Dashboard and Shortcut Rules
- Prefer stable service names or public URLs over raw private IP addresses.
- Preserve the existing category and naming conventions.
- Change only the affected shortcut entries.
- Validate the dashboard configuration before any targeted reload.
Inventory Content Rules
- Keep inventory content high-level and planning-focused.
- Record roles, relationships, and public-safe service identities.
- Avoid secrets, private file paths, and step-by-step recovery commands.
- Verify the rendered or API representation after writing when a live inventory surface exists.
Output Contract
Always report:
- Files and surfaces changed, with their purpose.
- Final intended topology or service placement.
- Dashboard or shortcut changes, or that none were needed.
- Whether runbook content moved out of agent instructions.
- Inventory/snapshot validation status, or that no such surface exists.
- Runtime validation performed and unresolved follow-up items.
1---2name: infrastructure-doc-sync3description: Use when Home Assistant, container, host, network, or service-placement changes require synchronized workspace instructions, README files, runbooks, dashboard shortcuts, and infrastructure inventories while keeping agent instructions concise and non-runbook.4---56# Infrastructure Documentation Sync78Keep Home Assistant and self-hosted infrastructure documentation aligned after operational changes. Discover the workspace's real documentation surfaces instead of assuming hostnames, paths, or products.910## Discover Update Targets1112Inspect the workspace and update only applicable surfaces:13141. Workspace-level infrastructure instructions, such as a root `AGENTS.md` or equivalent policy file.152. Repository-scoped instruction files affected by the change.163. User-facing `README.md` files and architecture documentation.174. Dedicated runbooks or operational baseline documents.185. Dashboard, start-page, or service-catalog shortcuts.196. Machine-readable infrastructure inventory or assistant-facing environment snapshots.2021Do not invent a missing surface solely to satisfy this list.2223## Workflow24251. Collect current runtime truth from the relevant hosts, containers, compose files, service APIs, and repository state.262. Identify the authoritative source for host roles, service placement, URLs, ports, and storage.273. Update workspace instructions first when shared topology changed.284. Keep repository instructions limited to non-discoverable constraints and applicability gates.295. Move long procedures from agent instructions into dedicated runbooks when practical.306. Update user-facing documentation and shortcuts affected by the same change.317. Refresh machine-readable infrastructure inventory when the workspace uses one.328. Validate references against runtime and check that documentation surfaces do not conflict.339. Reload or restart only the specific documentation/dashboard service when explicitly authorized and necessary.3435## Instruction Quality Rules3637- Prefer short constraints and checklists over narrative runbooks.38- Keep only high-impact, non-discoverable context in agent instruction files.39- Add applicability gates when guidance covers multiple scopes.40- Avoid duplicating the same policy across workspace and repository levels.41- Never publish credentials, tokens, private addresses, personal paths, or internal-only operational details.4243## Dashboard and Shortcut Rules4445- Prefer stable service names or public URLs over raw private IP addresses.46- Preserve the existing category and naming conventions.47- Change only the affected shortcut entries.48- Validate the dashboard configuration before any targeted reload.4950## Inventory Content Rules5152- Keep inventory content high-level and planning-focused.53- Record roles, relationships, and public-safe service identities.54- Avoid secrets, private file paths, and step-by-step recovery commands.55- Verify the rendered or API representation after writing when a live inventory surface exists.5657## Output Contract5859Always report:6061- Files and surfaces changed, with their purpose.62- Final intended topology or service placement.63- Dashboard or shortcut changes, or that none were needed.64- Whether runbook content moved out of agent instructions.65- Inventory/snapshot validation status, or that no such surface exists.66- Runtime validation performed and unresolved follow-up items.