fix-decision-router
Post-documentation decision menu for fix-reporter. Routes to critical patterns, skill updates, cross-references, or discovery enablement.
What this skill does
# fix-decision-router Skill **Purpose:** Present post-capture options and execute user's choice after fix-reporter creates documentation. ## Decision Menu Present after successful documentation: ``` Solution documented File created: - .agents/lessons/[category]/[filename].md What's next? 1. Continue workflow (recommended) 2. Add to Critical Patterns 3. Link related issues 4. Add to existing skill 5. Create new skill 6. View documentation 7. Enable discovery 8. Other ``` ## Option Handlers ### Option 1: Continue workflow - Return to calling skill/workflow - Documentation complete, no further action ### Option 2: Add to Critical Patterns **When user selects:** Pattern is non-obvious but must be followed every time. ``` 1. Extract pattern from the documentation 2. Format as WRONG vs CORRECT (use template below) 3. Append to .agents/lessons/patterns/critical-patterns.md 4. Add cross-reference back to source doc 5. Confirm: "Added to Critical Patterns" ``` **Template:** ```markdown ## N. [Pattern Name] (Required) ### WRONG ([Will cause X error]) ```[language] [code showing wrong approach] ``` ### CORRECT ```[language] [code showing correct approach] ``` **Why:** [Technical explanation] **Context:** [When this applies] **Source:** `.agents/lessons/[category]/[filename].md` ``` ### Option 3: Link related issues ``` 1. Prompt: "Which doc to link? (filename or describe)" 2. Search .agents/lessons/ for matching doc 3. Add cross-reference to both docs under "## Related Issues" 4. Confirm: "Cross-reference added to both files" ``` ### Option 4: Add to existing skill ``` 1. Prompt: "Which skill?" 2. Find skill in plugins/*/skills/ 3. Determine target: resources.md, patterns.md, or examples.md 4. Add link and brief description 5. Confirm: "Added to [skill-name] in [file]" ``` ### Option 5: Create new skill ``` 1. Prompt: "Skill name?" 2. Create directory: plugins/majestic-engineer/skills/[name]/ 3. Create SKILL.md with basic structure 4. Add solution as first example in references/ 5. Confirm: "Created [skill-name] skill" ``` ### Option 6: View documentation ``` 1. Read and display the created file 2. Present decision menu again ``` ### Option 7: Enable discovery Make lesson discoverable by lessons-discoverer agent: ``` 1. Prompt workflow phases: [planning, debugging, review, implementation] 2. Prompt tech stacks: [rails, python, react, node, generic] 3. Prompt lesson type: [antipattern, gotcha, pattern, setup, workflow] 4. Update YAML frontmatter with: - workflow_phase: [selected phases] - tech_stack: [selected stacks] - lesson_type: [selected type] - impact: Derive from severity - keywords: Extract from tags + symptoms 5. Confirm: "Lesson discoverable during [phases] workflows" ``` **Impact mapping:** - critical → blocks_work - high → major_time_sink - medium/low → minor_inconvenience ### Option 8: Other Prompt for custom action and execute. ## Integration **Invoked by:** fix-reporter (after Step 7) **Invokes:** None (terminal options) ## Input Schema ```yaml doc_path: string # Path to created documentation category: string # Problem category from fix-reporter ```
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.