一键导入
ad
Scaffold a new Architecture Decision Record (ADR). Use when documenting architectural choices, technology selections, or significant design trade-offs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold a new Architecture Decision Record (ADR). Use when documenting architectural choices, technology selections, or significant design trade-offs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Audit Ansible playbooks, roles, collections, and inventories for production readiness. Use when reviewing an Ansible repo, before merging IaC PRs, before promoting a role to a collection, or when the user mentions ansible-lint, idempotency, vault, or molecule.
Enter planning mode — interview the user, design a phased approach, and produce an implementation plan before writing code.
Execute an approved /plan unattended — phases, agents, commits — stopping only on hard safety failures (hook exit 2, sandbox/network deny, repeated test failures). Use after /plan when the user wants hands-off execution.
Run a full read-only audit of the current project — code review, security analysis, and documentation freshness check. Use to assess project health without making changes.
Start implementing a feature with user story validation, phased execution, and quality gates. Use after planning is complete.
Take a project from "it works" to "it's shippable." Runs audit, fixes findings, walks the Definition of Done checklist, and generates a release readiness score. Use before releasing, after feature-complete, or when quality feels prototype-y.
| name | ad |
| description | Scaffold a new Architecture Decision Record (ADR). Use when documenting architectural choices, technology selections, or significant design trade-offs. |
| model | haiku |
| allowed-tools | Read, Write, Glob, Grep |
Create a new Architecture Decision Record (ADR) in the standard location using the Michael Nygard format.
Before anything, check if docs/decisions/.opted-out exists:
if [ -f docs/decisions/.opted-out ]; then
# Tell user: "This project has opted out of architecture decision documentation."
# Ask if they want to remove the opt-out marker, otherwise stop.
fi
Scan existing ADRs to auto-assign the next number:
ls docs/decisions/*.md 2>/dev/null | grep -oE '[0-9]+' | sort -n | tail -1
Ask the user (skip questions they already answered in their prompt):
Read the template from templates/ad-template.md (if available in the repo) or use the standard ADR format:
number, title, status: proposed, date: [today]supersedes field and update the old AD's superseded-by and status: supersededdocs/decisions/{NNN}-{slug}.mdCreate the directory if needed: mkdir -p docs/decisions
Walk through each section with the user:
Write the completed ADR to the file.
docs/cujs/ exists, check if any CUJ is affected by this decision and mention itPresent the completed ADR and confirm:
docs/decisions/{NNN}-{slug}.md with status: proposed"accepted once the team agrees on this decision"superseded"