Agent skill

fix-parallel

[Implementation] Analyze & fix issues with parallel fullstack-developer agents

Stars 6
Forks 1

Install this agent skill to your Project

npx add-skill https://github.com/duc01226/EasyPlatform/tree/main/.claude/skills/fix-parallel

SKILL.md

[IMPORTANT] Use TaskCreate to break ALL work into small tasks BEFORE starting — including tasks for each file read. This prevents context loss from long files. For simple tasks, AI MUST ask user whether to skip.

Understand Code First — Search codebase for 3+ similar implementations BEFORE writing any code. Read existing files, validate assumptions with grep evidence, map dependencies via graph trace. Never invent new patterns when existing ones work. MUST READ .claude/skills/shared/understand-code-first-protocol.md for full protocol and checklists.

Evidence-Based Reasoning — Speculation is FORBIDDEN. Every claim needs file:line proof. Confidence: >95% recommend freely, 80-94% with caveats, <80% DO NOT recommend — gather more evidence. Cross-service validation required for architectural changes. MUST READ .claude/skills/shared/evidence-based-reasoning-protocol.md for full protocol and checklists.

  • docs/project-reference/domain-entities-reference.md — Domain entity catalog, relationships, cross-service sync (read when task involves business entities/models) (content auto-injected by hook — check for [Injected: ...] header before reading)

Estimation Framework — SP scale: 1(trivial) → 2(small) → 3(medium) → 5(large) → 8(very large, high risk) → 13(epic, SHOULD split) → 21(MUST split). MUST provide story_points and complexity estimate after investigation. MUST READ .claude/skills/shared/estimation-framework.md for full protocol and checklists.

Red Flag STOP Conditions — STOP current approach when: 3+ fix attempts on same issue (root cause not identified), each fix reveals NEW problems (upstream root cause), fix requires 5+ files for "simple" change (wrong abstraction layer), using "should work"/"probably fixed" without verification evidence. After 3 failed attempts, report all outcomes and ask user before attempt #4. MUST READ .claude/skills/shared/red-flag-stop-conditions-protocol.md for full protocol and checklists.

Skill Variant: Variant of /fix — parallel multi-issue resolution using subagents.

Quick Summary

Goal: Fix multiple independent issues simultaneously using parallel fullstack-developer subagents.

Workflow:

  1. Triage — Classify issues and verify independence (no shared files)
  2. Assign — Distribute issues to parallel subagents with strict file ownership
  3. Execute — Subagents fix issues independently
  4. Merge — Review and integrate all fixes

Key Rules:

  • Debug Mindset: every claim needs file:line evidence
  • Issues MUST be independent (no overlapping file modifications)
  • Each subagent owns specific files; no cross-boundary edits

[MANDATORY] Read .claude/skills/shared/root-cause-debugging-protocol.md BEFORE proposing any fix. Responsibility attribution and data lifecycle tracing are required.

Frontend/UI Context (if applicable)

When this task involves frontend or UI changes,

UI System Context — For frontend/UI/styling tasks, MUST READ these BEFORE implementing: frontend-patterns-reference.md (component base classes, stores, forms), scss-styling-guide.md (BEM methodology, SCSS vars, responsive), design-system/README.md (design tokens, component inventory, icons). MUST READ .claude/skills/shared/ui-system-context.md for full protocol and checklists.

  • Component patterns: docs/project-reference/frontend-patterns-reference.md
  • Styling/BEM guide: docs/project-reference/scss-styling-guide.md
  • Design system tokens: docs/project-reference/design-system/README.md

Debug Mindset (NON-NEGOTIABLE)

Be skeptical. Apply critical thinking, sequential thinking. Every claim needs traced proof, confidence percentages (Idea should be more than 80%).

  • Do NOT assume the first hypothesis is correct — verify with actual code traces
  • Every root cause claim must include file:line evidence
  • If you cannot prove a root cause with a code trace, state "hypothesis, not confirmed"
  • Question assumptions: "Is this really the cause?" → trace the actual execution path
  • Challenge completeness: "Are there other contributing factors?" → check related code paths
  • No "should fix it" without proof — verify the fix addresses the traced root cause

⚠️ MANDATORY: Confidence & Evidence Gate

MANDATORY IMPORTANT MUST declare Confidence: X% with evidence list + file:line proof for EVERY claim. 95%+ recommend freely | 80-94% with caveats | 60-79% list unknowns | <60% STOP — gather more evidence.

⚠️ Validate Before Fix (NON-NEGOTIABLE): After root cause analysis + plan creation, MUST present findings + proposed fix plan to user via AskUserQuestion and get explicit approval BEFORE any code changes. No silent fixes.

Ultrathink parallel to fix: $ARGUMENTS

IMPORTANT: Activate needed skills. Ensure token efficiency. Sacrifice grammar for concision.

Workflow

1. Issue Analysis

  • Use debugger subagent to analyze root causes
  • Use /scout-ext to find related files
  • Categorize issues by scope/area (frontend, backend, auth, payments, etc.)
  • Identify dependencies between issues
  • External Memory: Each parallel agent writes findings to .ai/workspace/analysis/{issue-name}-{agent}.analysis.md. Main agent re-reads all before coordinating fixes.

2. Parallel Fix Planning

  • Trigger /plan-parallel <detailed-fix-instructions> for parallel-executable fix plan
  • Wait for plan with dependency graph, execution strategy, file ownership matrix
  • Group independent fixes for parallel execution
  • Sequential fixes for dependent issues
  • 🛑 Present root cause + fix plan → AskUserQuestion → wait for user approval before launching agents.

3. Parallel Fix Implementation

  • Read plan.md for dependency graph
  • Launch multiple fullstack-developer agents in PARALLEL for independent fixes
    • Example: "Fix auth + Fix payments + Fix UI" → launch 3 agents simultaneously
    • Pass phase file path: {plan-dir}/phase-XX-*.md
    • Include environment info
  • Wait for all parallel fixes complete before dependent fixes
  • Sequential fixes: launch one agent at a time

Subagent Context Discipline:

  • Provide full task text — paste task content into subagent prompt; don't make subagent read plan file
  • "Ask questions before starting" — subagent should surface uncertainties before implementing
  • Self-review before reporting — subagent checks completeness, quality, YAGNI before returning results

4. Testing

  • Use tester subagent for full test suite
  • NO fake data/mocks/cheats
  • Verify all issues resolved
  • If fail: use debugger, fix, repeat

5. Code Review

  • Two-stage review (see .claude/skills/shared/two-stage-task-review-protocol.md):
    1. First: dispatch spec-compliance-reviewer to verify each fix matches its spec
    2. Only after spec passes: dispatch code-reviewer for quality review
  • Verify fixes don't introduce regressions
  • If critical issues: fix, retest

6. Project Management & Docs

  • If approved: use project-manager + docs-manager in parallel
  • Update plan files, docs, roadmap
  • If rejected: fix and repeat

7. Prove Fix

  • MANDATORY: Run /prove-fix for EACH parallel fix
  • Build code proof traces per change with confidence scores
  • If any change scores < 80%, return to debug for that fix

8. Final Report

  • Summary of all fixes from parallel phases
  • Verification status per issue (include prove-fix confidence scores)
  • Ask to commit (use git-manager if yes)

Example: Fix 1 (auth) + Fix 2 (payments) + Fix 3 (UI) → Launch 3 fullstack-developer agents → Wait → Prove each fix → Fix 4 (integration) sequential


Closing Reminders

  • MUST break work into small todo tasks using TaskCreate BEFORE starting
  • MUST search codebase for 3+ similar patterns before creating new code
  • MUST cite file:line evidence for every claim (confidence >80% to act)
  • MUST add a final review todo task to verify work quality
  • MUST STOP after 3 failed fix attempts — report outcomes, ask user before #4 MANDATORY IMPORTANT MUST READ the following files before starting:
  • MUST READ .claude/skills/shared/understand-code-first-protocol.md before starting
  • MUST READ .claude/skills/shared/evidence-based-reasoning-protocol.md before starting
  • MUST READ .claude/skills/shared/estimation-framework.md before starting
  • MUST READ .claude/skills/shared/red-flag-stop-conditions-protocol.md before starting
  • MUST READ .claude/skills/shared/ui-system-context.md before starting

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results