Install
$ agentstack add skill-kumaran-is-claude-code-onboarding-ai-decision-record ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
AI Feature Decision Record
> Iron Law: Do not proceed to implementation without a completed Decision Record written to docs/ai-decisions/.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/.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:
**Status**: Draft | Approved | Shipped | Deprecated
**Owner**:
**Last updated**:
## Problem & justification
- User problem: ...
- Why deterministic code is insufficient: ...
- Why AI is the right tool: ...
## Design
- Pattern:
- Risk tier:
- 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:
## Reviews
- Security review:
- Data governance review:
## 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/.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/.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
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: kumaran-is
- Source: kumaran-is/claude-code-onboarding
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.