create-adr
Creates a NEW Architectural Decision Record (ADR) documenting a specific architectural decision. Use when the user requests "Create ADR for [topic]", "Document decision about [topic]", "Write ADR for [choice]", or when documenting technology choices, patterns, or architectural approaches. Do NOT use for reviews (use architecture-review or specialist-review), checking existing ADRs (use architecture-status), or general documentation.
What this skill does
# Create Architectural Decision Record (ADR) Creates structured ADRs following the framework's template. ## Process ### 1. Gather Context Ask if needed: - What decision is being made? - What problem does it solve? - What alternatives were considered? - What are the trade-offs? ### 2. Generate ADR Number ```bash # Find highest ADR number ls .architecture/decisions/adrs/ | grep -E "^ADR-[0-9]+" | sed 's/ADR-//' | sed 's/-.*//' | sort -n | tail -1 ``` New ADR = next sequential number (e.g., if highest is 003, create 004) ### 3. Validate and Sanitize Input **Security**: Sanitize user input to prevent path traversal and injection: - Remove or replace: `..`, `/`, `\`, null bytes, control characters - Convert to lowercase kebab-case: spaces → hyphens, remove special chars - Limit length: max 80 characters for filename portion - Validate result: ensure filename contains only [a-z0-9-] ### 4. Create Filename Format: `ADR-XXX-kebab-case-title.md` Examples: - `ADR-001-use-react-for-frontend.md` - `ADR-002-choose-postgresql-database.md` **Valid input**: "Use React for Frontend" → `use-react-for-frontend` **Invalid blocked**: "../etc/passwd" → sanitized or rejected ### 5. Check Configuration - Read `.architecture/config.yml` to check if pragmatic_mode is enabled - If enabled and applies to ADR creation, include Pragmatic Enforcer analysis ### 6. Write ADR Use the template from `.architecture/templates/adr-template.md`: **Core sections**: - Status, Context, Decision Drivers, Decision, Consequences - Implementation, Alternatives Considered, Validation, References **If pragmatic_mode is enabled**: Add Pragmatic Enforcer Analysis section: - Necessity Assessment (0-10): Current need, future need, cost of waiting, evidence - Complexity Assessment (0-10): Added complexity, maintenance, learning curve, dependencies - Alternative Analysis: Review if simpler alternatives adequately considered - Simpler Alternative Proposal: Concrete proposal for simpler approach - Recommendation: Approve / Approve with simplifications / Defer / Recommend against - Pragmatic Score: Necessity, Complexity, Ratio (target <1.5) - Overall Assessment: Appropriate engineering vs over-engineering **If deferrals enabled**: Track deferred decisions in `.architecture/deferrals.md` ### 7. Save ADR Write to: `.architecture/decisions/adrs/ADR-XXX-title.md` ### 8. Report to User ``` Created ADR-XXX: [Title] Location: .architecture/decisions/adrs/ADR-XXX-title.md Status: [Status] Key Points: - Decision: [Summary] - Main benefit: [Key benefit] - Main trade-off: [Key trade-off] Next Steps: - [Immediate action 1] - [Immediate action 2] ``` ## When to Create ADRs **Do create for**: - Technology choices (frameworks, databases, languages) - Architectural patterns (microservices, event-driven, etc.) - Infrastructure decisions (cloud provider, deployment) - Security approaches (authentication, encryption) **Don't create for**: - Implementation details (function names, variable names) - Temporary decisions - Minor decisions with limited impact ## Status Lifecycle - **Proposed**: Documented but not approved - **Accepted**: Approved and should be implemented - **Deprecated**: No longer best practice - **Superseded**: Replaced by newer ADR (reference it) ## Related Skills **Before Creating ADR**: - "What's our architecture status?" - Check existing ADRs to avoid duplication - "List architecture members" - See who should review the decision **After Creating ADR**: - "Ask [specialist] to review [the ADR]" - Get focused expert review - "Start architecture review for [version]" - Include in comprehensive review **Workflow Examples**: 1. Create ADR → Ask Security Specialist to review → Revise ADR 2. Architecture review → Create ADRs for key decisions → Status check ## Notes - Focus on "why" more than "what" - Be honest about trade-offs - Keep it concise but complete - ADRs can be updated as new information emerges
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.