From fix-error
Command: "fix this", "fix this error". This skill reads the Jira ticket, analyzes AWS logs, clones the affected service repo, plans a fix using TDD, implements it, and opens a PR. Use when a production error needs diagnosing and fixing from log errors.
How this skill is triggered — by the user, by Claude, or both
Slash command
/fix-error:fix-errorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Flow: Jira ticket → logs → root cause → TDD → fix → PR.
Flow: Jira ticket → logs → root cause → TDD → fix → PR.
Ask the user for the Jira ticket ID if not already provided. Invoke the /jira-ticket skill in read mode to fetch the ticket details. Extract and retain:
JIRA_TICKET_ID (e.g. ENG-4821) — used in branch name and PR titleIf no Jira ticket exists yet, ask the user whether to create one first (via /jira-ticket create) or proceed without one (branch and PR will use [NO-TICKET]).
Launch the aws-log-analyzer agent. Extract and retain:
SERVICE_NAME — service producing the errorERROR_TYPE — exception class or error codeERROR_MESSAGE — full error messageSTACK_TRACE — first 10 lines of the stack traceTIMESTAMP — when the error occurredSEVERITY — ERROR / CRITICAL / WARNSERVICE_NAME in Service Mapping to find the corresponding repo URL.
git clone <repo-url> /tmp/fix-error/<SERVICE_NAME>
/tmp/fix-error/<SERVICE_NAME> for all remaining steps.Read in priority order:
CLAUDE.md (may be empty — note and continue)docs/ recursively (may be empty — note and continue)README.md, package.json / pyproject.toml / pom.xml, entry-point source files, files referenced in STACK_TRACEGoal: understand the service's purpose, tech stack, entry points, and modules involved in the error.
Use the /postgresql skill (read-only) to investigate the database state relevant to the error:
Record any suspicious findings in FIX_PLAN.md under a "Database Observations" section. This step is informational only — do not modify any data.
Write FIX_PLAN.md at /tmp/fix-error/<SERVICE_NAME>/FIX_PLAN.md:
# Fix Plan: <SERVICE_NAME> (<JIRA_TICKET_ID>)
## Error Summary
- Service: <SERVICE_NAME>
- Jira: <JIRA_TICKET_ID>
- Error: <ERROR_TYPE>: <ERROR_MESSAGE>
- Timestamp: <TIMESTAMP>
## Root Cause Hypothesis
<!-- Why this error is likely occurring based on the code -->
## Files to Modify
<!-- Exact file paths and the changes needed in each -->
## Test Strategy
<!-- Behaviors to assert to prove the fix works -->
Launch the unittest-writer agent with:
FIX_PLAN.mdAfter tests are written:
If new tests pass before the fix, they are wrong — ask the agent to revise.
Follow FIX_PLAN.md exactly:
Run the full test suite:
If tests fail: diagnose → adjust fix → re-run. Maximum 3 iterations. If still failing after 3 attempts, halt and report state to the user.
Invoke /create-pr with:
fix/<JIRA_TICKET_ID>-<short-description> (e.g. fix/ENG-4821-null-payment-amount)[<JIRA_TICKET_ID>] fix(<SERVICE_NAME>): <one-line description>FIX_PLAN.md, files changed, tests addedReturn the PR URL to the user.
/tmp/fix-error/<SERVICE_NAME>main or develop — always use a fix/ branchProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub mikask1/fix-error-skill --plugin fix-error