ai-decision-record
Skill36 starsChanged 6 months agoMITView on GitHub
Fill out the AI Feature Decision Record before building any AI feature. Use when the user explicitly runs /ai-decision-record or asks to "start a new AI feature", "create a decision record", "kick off an AI design", or similar ritual phrasing.
In this repository157 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a2ui-angularSkill
- accessibility-auditSkill
- adk-deploy-guideSkill
- adk-dev-guideSkill
- adk-eval-guideSkill
- adk-observability-guideSkill
- agentic-ai-coding-standardSkill
- agentic-ai-devSkill
- ai-auditSkill
- ai-chatSkill
- ai-incident-responseSkill
- ai-launch-checkSkill
- ai-playbookSkill
- angular-best-practicesSkill
- angularSkill
- angular-spaSkill
- angular-ui-patternsSkill
- api-design-principlesSkill
- app-store-optimizationSkill
- architect-reviewSkill
- architecture-decision-recordsSkill
- architecture-designSkill
- asc-cli-usageSkill
- asc-crash-triageSkill
- asc-id-resolverSkill
- asc-release-flowSkill
- asc-signing-setupSkill
- asc-submission-healthSkill
- asc-testflight-orchestrationSkill
- browser-testingSkill
- changelog-generatorSkill
- claude-actions-auditorSkill
- clean-codeSkill
- codebase-onboardingSkill
- code-explainerSkill
- code-reviewerSkill
- code-simplifierSkill
- comment-analyzerSkill
- database-schema-designerSkill
- ddd-architectSkill
- decision-frameworksSkill
- dedup-code-agentSkill
- deployment-ci-cdSkill
- design-systemSkill
- dockerSkill
- documentation-generationSkill
- domain-finderSkill
- error-detectiveSkill
- eval-guideSkill
- feature-forgeSkill
- firebase-basicsSkill
- firebase-hosting-basicsSkill
- fixing-accessibilitySkill
- fixing-motion-performanceSkill
- flutter-animationsSkill
- flutter-genuiSkill
- flutter-mobileSkill
- flutter-security-expertSkill
- frontend-designSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Ask the questions below one at a time.
- Distinctive: line 23
No fallback is named.
- Distinctive: line 24
No named human owner.
- Very specific: line 25
After all questions are answered, write the Decision Record to docs/ai-decisions/<feature-slug>.md in the repo (create the directory if …
- Distinctive: line 30
Ask these in order. Do not batch them.
- Distinctive: line 120
After writing the Decision Record:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
AI Feature Decision Record
Iron Law: Do not proceed to implementation without a completed Decision Record written to
docs/ai-decisions/<feature-slug>.md. It is a required artifact — not optional documentation.
Walk the user through filling out the Decision Record from the AI Playbook (Layer 3 §3.3). This is a required artifact before building any AI feature.
Procedure
- Confirm the user is starting a new AI feature, not modifying an existing one. If modifying: load the existing Decision Record and update it; do not start fresh.
- Ask the questions below one at a time. Do not skip ahead.
- For each answer, validate it against the playbook's principles. Push back when:
- The answer suggests AI is being added where deterministic code would work better (cross-check Layer 1 §1.6 Red Flag Matrix).
- The risk tier proposed is lower than the blast radius justifies (cross-check Layer 2 §2.2 Autonomy Ladder).
- The pattern (assistant / workflow / agent / autonomous) is more complex than needed (apply Layer 1 §1.4: start one tier below where you think you need to be).
- No fallback is named.
- No named human owner.
- After all questions are answered, write the Decision Record to
docs/ai-decisions/<feature-slug>.mdin the repo (create the directory if needed). - Output a summary of the three biggest risks in the Decision Record and recommend whether to proceed, scope down, or rethink.
The questions
Ask these in order. Do not batch them. Wait for an answer before moving on.
- What is the user problem this AI feature solves? (Not "what AI tech we're using" — what the user gets out of it.)
- Why is deterministic code insufficient? (If you can't answer this in one sentence, the answer might be "it's not.")
- Why is AI the right tool here? (Pattern recognition, ambiguity, ranking, summarization, etc. Map to Layer 1 §1.5 Green Light Matrix.)
- What pattern fits: assistant, workflow, agent, or autonomous? (Default to the lower tier. Most "agent" problems are workflows.)
- What is the risk tier (0–5)? (Reference Layer 2 §2.2 Autonomy Ladder. Sum blast radius across a session, not per action.)
- What is the fallback when AI fails? (Timeout, vendor outage, low confidence, schema violation → what happens? A specific deterministic path.)
- What is the primary eval metric and target value?
- How large is the eval set and where does it come from? (Default floor is 100; check Layer 2 §2.14 for risk-tiered minimums.)
- What gets human review? Who reviews it? What's the SLA? (Reference Layer 2 §2.1 default SLA table.)
- What is the cost ceiling per task? (Reference Layer 2 §2.10 cost tiers.)
- What is the p95 latency target?
- Which model? Smallest viable, or routing strategy with fallback? (Reference Layer 2 §2.9.)
- Has a security review covered prompt injection, tool-output injection, exfiltration, and tenant isolation? (Reference Layer 2 §2.5.)
- Has a data governance review covered: what enters context, what's logged, retention, training-use, tenant isolation, deletion propagation? (Reference Layer 2 §2.13.)
- Where is the kill switch / feature flag? Has it been tested? (Reference Layer 4 §4.4.)
- What is the rollback plan?
- What is the 12-month AI tax estimate? (Model spend + evals + review queue + observability + drift fighting + security + compliance + on-call. Reference Layer 2 §2.11.)
- Who is the named human owner — not a team, a person — accountable for the eval metric?
Output format
# Decision Record: <Feature Name>
**Status**: Draft | Approved | Shipped | Deprecated
**Owner**: <Named Person>
**Last updated**: <Date>
## Problem & justification
- User problem: ...
- Why deterministic code is insufficient: ...
- Why AI is the right tool: ...
## Design
- Pattern: <assistant | workflow | agent | autonomous>
- Risk tier: <0-5>
- Model and routing: ...
- Fallback when AI fails: ...
## Evaluation
- Primary metric: ... (target: ...)
- Eval set size & source: ...
## Operating envelope
- Cost ceiling per task: $...
- p95 latency target: ...
- Human review: <what / who / SLA>
## Reviews
- Security review: <date, reviewer, link to adversarial test results>
- Data governance review: <date, reviewer>
## Operations
- Kill switch location: ...
- Rollback plan: ...
- 12-month AI tax estimate: $...
## Risks (top 3)
1. ...
2. ...
3. ...After completion
Recommend the next step:
- Proceed: ship the Implementation Minimum (Layer 2 §2.3), then run
/ai-launch-checkbefore going to production. - Scope down: list specific items to defer or remove.
- Rethink: list the questions whose answers indicate AI is the wrong tool here.
If this skill cannot proceed
Abort condition: user cannot answer Q2 ("Why is deterministic code insufficient?")
→ Stop. Output: "If you can't answer this in one sentence, AI may be the wrong tool.
Re-evaluate with /ai-playbook before creating a Decision Record."
Abort condition: risk tier proposed is Tier 3+ but no named human owner for Q18
→ Hard stop on that question. Do not write the Decision Record without a named owner.
Output: "Tier 3+ features require a named human owner. A team is not an owner."
Abort condition: modifying an existing feature, existing Decision Record not found
→ Output: "No Decision Record found at docs/ai-decisions/<feature-slug>.md.
Either the slug is wrong or this feature was built without one. Run /ai-audit to reverse-engineer it."Verify
After writing the Decision Record:
✅ Verify: docs/ai-decisions/<feature-slug>.md exists and is non-empty
✅ Verify: all 18 questions have answers (no blank fields)
✅ Verify: risk tier matches blast-radius described in the answers
✅ Verify: owner is a named person, not "the team" or "engineering"References
- AI Playbook Layer 1 §1.6 Red Flag Matrix:
.claude/skills/ai-playbook/playbook.md - AI Playbook Layer 2 §2.2 Autonomy Ladder:
.claude/skills/ai-playbook/playbook.md - AI Playbook Layer 2 §2.14 Eval sizing:
.claude/skills/ai-playbook/playbook.md - AI Playbook Layer 4 §4.4 Kill switch:
.claude/skills/ai-playbook/playbook.md - Next step after Decision Record:
/ai-launch-check
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.

