mayurpise/draft/adr
Claude Code and agent skill by mayurpise/draft
- community
Checking that the SKILL.md file is still in the repository.
Create and manage Architecture Decision Records. Documents significant technical decisions with context, alternatives, and consequences. Also supports evaluate (assess proposals) and design (system design) modes.
Install
npx vskill@latest install mayurpise/draft/adrSKILL.md
The same SKILL.md was published earlier as mayurpise/draft/adr.
Architecture Decision Records
You are creating or managing Architecture Decision Records (ADRs) for this project.
Red Flags - STOP if you're
- Creating an ADR without understanding the decision context
- Documenting trivial decisions that don't warrant an ADR (e.g., variable naming)
- Writing an ADR after the fact without capturing the original reasoning
- Listing alternatives without genuine pros/cons analysis
- Skipping the "Consequences" section (the most valuable part)
- Not checking existing ADRs for conflicts or superseded decisions
ADRs capture WHY, not just WHAT. Every decision needs alternatives considered.
Pre-Check
- Verify Draft is initialized:
If draft/ doesn't exist:
- Tell user: "Project not initialized. Run
/draft:initfirst." - Stop here.
- Check for existing ADR directory:
If draft/adrs/ doesn't exist, create it:
Step 1: Parse Arguments
Check for arguments:
/draft:adr— Interactive mode: ask about the decision/draft:adr "decision title"— Create ADR with given title/draft:adr list— List all existing ADRs/draft:adr supersede <number>— Mark an ADR as superseded
List Mode
If argument is list:
- Prefer the deterministic
adr-index.shwrapper for the listing — it returns a structured JSON{adrs:[{id,title,date,status,path,related_tracks}]}derived from each ADR's frontmatter. Resolve via the canonical tool resolver (see core/shared/tool-resolver.md):
``bash DRAFT_TOOLS="${DRAFT_PLUGIN_ROOT:-$(cat ~/.cache/draft/plugin-root 2>/dev/null)}/scripts/tools" [ -d "$DRAFT_TOOLS" ] || DRAFT_TOOLS="$(ls -d ~/.claude/plugins/cache/*/draft/*/scripts/tools 2>/dev/null | sort -V | tail -1)" [ -d "$DRAFT_TOOLS" ] || DRAFT_TOOLS="$(ls -d ~/.claude/plugins/marketplaces/*draft*/scripts/tools 2>/dev/null | tail -1)" [ -d "$DRAFT_TOOLS" ] || DRAFT_TOOLS="$PWD/scripts/tools" if [ -x "$DRAFT_TOOLS/adr-index.sh" ]; then bash "$DRAFT_TOOLS/adr-index.sh" --root draft/adrs else ls draft/adrs/ # fallback: enumerate files manually fi ``
- Display summary table:
Stop here after listing.
Supersede Mode
If argument is supersede <number>:
- Read the ADR file
draft/adrs/<number>-*.md - Change status from
AcceptedtoSuperseded by ADR-<new_number> - In the OLD ADR's References section, add: "Superseded by ADR-<new_number>"
- Ask what new ADR supersedes it, or create the new one
- In the NEW ADR's References section, add: "Supersedes ADR-<old_number>"
- Stop here after updating.
Evaluate Mode
If argument starts with evaluate:
/draft:adr evaluate <proposal or description>— Evaluate a design proposal
- Read the proposal (from arguments, pasted text, file path, or ask user to describe)
- Load project context:
draft/tech-stack.md,draft/.ai-context.md,draft/architecture.md - Check existing ADRs in
draft/adrs/for related decisions - Evaluate against six dimensions:
- Architecture alignment: Does it fit current patterns?
- Tech stack consistency: Does it introduce technology not in tech-stack.md?
- Invariant impact: Does it affect critical invariants from .ai-context.md?
- Scalability: How does it scale with data/users/team growth?
- Operational complexity: What new operational burden does it add?
- Team familiarity: Does the team have experience with this approach?
- Output evaluation report (do not save to file — display directly):
Stop here after evaluation.
Design Mode
If argument starts with design:
/draft:adr design <system or component>— Full system/component design
- Gather requirements:
- Ask user or extract from arguments: What does it need to do?
- Functional requirements — Features and behaviors
- Non-functional requirements — Scale, latency, availability, cost targets
- Constraints — Team size, timeline, existing tech stack (from
draft/tech-stack.md)
- Load project context: same as ADR creation (Step 3 of main flow)
- Design using 5-section framework:
Section 1: Requirements
- Functional requirements (bulleted list)
- Non-functional requirements (table: dimension, target, rationale)
- Constraints and assumptions
Section 2: High-Level Design
- Component diagram (ASCII)
- Data flow description
- API contracts (key endpoints/interfaces)
- Storage choices with rationale
Section 3: Deep Dive
- Data model design (key entities and relationships)
- API endpoint design (REST/GraphQL/gRPC with examples)
- Caching strategy (what, where, TTL, invalidation)
- Queue/event design (if applicable)
- Error handling and retry logic
Section 4: Scale & Reliability
- Load estimation (requests/sec, data growth)
- Scaling strategy (horizontal vs vertical)
- Failover and redundancy
- Monitoring and alerting requirements
Section 5: Trade-off Analysis
- Key trade-offs made (table: decision, alternative, why this choice)
- What to revisit as the system grows
- Risks and mitigations
- Determine design document number using same ADR numbering (Step 4 of main flow)
- Save to
draft/adrs/<number>-design-<kebab-case-title>.mdwith YAML frontmatter and git metadata (same format as ADR creation, Step 5) - Present for review (same as Step 6 of main flow)
Stop here after design.
Step 2: Gather Decision Context
If in interactive mode (no title provided), ask:
- "What technical decision needs to be documented?"
- "What's the context? What forces are driving this decision?"
- "What alternatives did you consider?"
If title provided, proceed directly with the title.
2.1 HLD Handoff (when invoked from a track context)
If an active track exists and draft/tracks/<id>/hld.md is present:
- Read HLD §Alternatives Considered table.
- If any row is marked
Promote to ADR? yesand has not been promoted yet (no matching ADR exists), offer:
```text Found 1 unpromoted alternative in <track>/hld.md:
- {alternative} — rejected because: {reason}
Promote to ADR? [Y/n] ```
- When promoting:
- Pre-fill ADR §Context from HLD §Background and the §High-Level Design / Key Design Decisions row that drove this rejection.
- Pre-fill ADR §Decision from the HLD §Key Design Decision that was selected over this alternative.
- Pre-fill ADR §Alternatives Considered with the rejected alternative.
- Set frontmatter
originating_hld: draft/tracks/<id>/hld.md.
- After ADR creation, edit HLD §Alternatives Considered table: change the
Promote to ADR?cell toADR-<number>(linking back). Surface the diff to the user for confirmation.
If invoked outside a track context, skip 2.1 and proceed with normal interactive flow.
Step 3: Load Project Context
Follow the base procedure in core/shared/draft-context-loading.md.
Read relevant Draft context:
draft/.ai-context.md— Current architecture patterns, invariants, data paths, and constraints. Falls back todraft/architecture.mdfor legacy projects.draft/tech-stack.md— Current technology choicesdraft/product.md— Product requirements that influence the decision
Cross-reference the decision against existing context:
- Does it align with documented architecture patterns?
- Does it introduce a new technology not in tech-stack.md?
- Does it affect product requirements?
Step 4: Determine ADR Number
Next number = highest existing ADR number + 1, zero-padded to 3 digits (001, 002, ...). If no ADRs exist, start at 001.
Verify the target filename draft/adrs/<number>-<kebab-case-title>.md does not already exist. If collision, increment the number until a free slot is found.
Step 5: Create ADR File
MANDATORY: Include YAML frontmatter with git metadata. Gather git info first:
Create draft/adrs/<number>-<kebab-case-title>.md:
Step 6: Present for Review
Present the ADR to the user for review:
Step 7: Update References (if applicable)
If the decision affects existing Draft context:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/adr/SKILL.md
Popularity
- Repository stars
- 39
- Repository forks
- 6
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 7 Aug 2026, 3 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mayurpise/draft/adr)