一键导入
ak-fix
Fix bugs, errors, test failures, and CI/CD issues with intelligent routing. Use for type errors, lint issues, log errors, UI bugs, code problems.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Fix bugs, errors, test failures, and CI/CD issues with intelligent routing. Use for type errors, lint issues, log errors, UI bugs, code problems.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Automate browsers with Puppeteer CLI scripts and persistent sessions. Use for screenshots, performance analysis, network monitoring, web scraping, form automation, JavaScript debugging.
Autoresearch is the upstream meta-framework (Udit Goenka, MIT) for autonomous goal-directed iteration with safety guardrails. Locally split into 4 specialized skills. Start here to learn the pattern, then route to the right specialized skill.
Open the ClaudeKit plans dashboard in the CLI config UI. Use for plan kanban views, progress tracking, timeline checks, and quick navigation into plan files.
UI/UX design intelligence for web and mobile: style selection, color systems, typography, layout, accessibility, interaction states, responsive behavior, forms, charts, design systems, and code review across React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, and HTML/CSS.
Interview-driven advisory skill. Analyzes a prompt or URL (GitHub issue, spec, doc), scouts the codebase, interviews the user one question at a time to reframe the problem into exact requirements and goals, then delivers honest advice: what to do, what to avoid, better alternatives, benefits and trade-offs. Use when the user asks for advice, a second opinion, a sanity check, or requirement reframing before committing to a direction.
Task router for AgentKit installs. Classifies the task, activates the right installed skills, chains them into the shortest workflow that fits, and spawns installed subagents at defined trigger points to raise output quality. Use at the start of multi-step, multi-domain, or ambiguous work, or when unsure which skill or agent applies.
| name | ak:fix |
| description | Fix bugs, errors, test failures, and CI/CD issues with intelligent routing. Use for type errors, lint issues, log errors, UI bugs, code problems. |
| user-invocable | true |
| when_to_use | Invoke when there is a concrete bug, error, or CI failure. |
| category | utilities |
| keywords | ["bugfix","error","test-failure","CI","lint"] |
| argument-hint | [issue] --auto|--review|--quick|--parallel |
| metadata | {"author":"agentkit","version":"2.1.0"} |
Unified skill for fixing issues of any complexity with intelligent routing.
--auto - Activate autonomous mode (default)--review - Activate human-in-the-loop review mode--quick - Activate quick mode--parallel - Activate parallel mode: route to parallel fullstack-developer agents per issueState a 3-6 bullet codebase-context summary to the user before asking questions.
Do NOT propose a fix until you can answer ALL of these in one concrete sentence each:If ANY item is vague ("probably", "I think", "something with…"), use ask_user capability to gather missing facts (logs, repro, env) OR run more scout/debug — never guess.
Use ask_user capability with options grounded in scout findings (specific files, specific commits, specific functions) — never abstract.
If verification reveals a side effect, regression, or broken workflow, STOP. Do NOT silently patch around it. Use ask_user capability to present:
Let the user decide. Do not assume.
| Thought | Reality |
|---|---|
| "I can see the problem, let me fix it" | Seeing symptoms ≠ understanding root cause. Scout first. |
| "Quick fix for now, investigate later" | "Later" never comes. Fix properly now. |
| "Just try changing X" | Random fixes waste time and create new bugs. Diagnose first. |
| "It's probably X" | "Probably" = guessing. Use structured diagnosis. Verify first. |
| "One more fix attempt" (after 2+) | 3+ failures = wrong approach. Question architecture. |
| "Emergency, no time for process" | Systematic diagnosis is FASTER than guess-and-check. |
| "I already know the codebase" | Knowledge decays. Scout to verify assumptions before acting. |
| "The fix is done, tests pass" | Without prevention, same bug class will recur. Add guards. |
flowchart TD
A[Issue Input] --> B[Step 0: Mode Selection]
B --> C[Step 1: Scout - Understand Context]
C --> D[Step 2: Diagnose - Structured Root Cause Analysis]
D --> E[Step 3: Complexity Assessment + Task Orchestration]
E -->|Simple| F[Quick Workflow]
E -->|Moderate| G[Standard Workflow]
E -->|Complex| H[Deep Workflow]
E -->|Parallel| I[Multi-Agent Fix]
F --> J[Step 4: Fix Implementation]
G --> J
H --> J
I --> J
J --> K[Step 5: Verify + Prevent]
K -->|Pass + Prevention in place| L[Step 6: Finalize]
K -->|Fail, <3 attempts| D
K -->|Fail, 3+ attempts| M[Question Architecture]
M --> N[Discuss with User]
L --> O[Report + Docs + Journal]
This diagram is the authoritative workflow. If prose conflicts with this flow, follow the diagram.
First action: If there is no "auto" keyword in the request, use ask_user capability to determine workflow mode:
| Option | Recommend When | Behavior |
|---|---|---|
| Autonomous (default) | Simple/moderate issues | Auto-approve if score >= 9.5 & 0 critical |
| Human-in-the-loop Review | Critical/production code | Pause for approval at each step |
| Quick | Type errors, lint, trivial bugs | Fast scout → diagnose → fix → review cycle |
See references/mode-selection.md for ask_user capability format.
Purpose: Understand the affected codebase BEFORE forming any hypotheses.
Mandatory skill chain:
ak:scout skill OR launch 2-3 parallel Explore subagentsgit log)./docs for project context if unfamiliarQuick mode: Minimal scout — locate affected file(s) and their direct dependencies only. Standard/Deep mode: Full scout — map module boundaries, test coverage, call chains.
Output: ✓ Step 1: Scouted - [N] files mapped, [M] dependencies, [K] tests found
Purpose: Structured root cause analysis. NO guessing. Evidence-based only.
Mandatory skill chain:
ak:debug skill (systematic-debugging + root-cause-tracing techniques).ak:sequential-thinking skill — form hypotheses through structured reasoning, NOT guessing.Explore subagents to test each hypothesis against codebase evidence.ak:problem-solving skill for alternative approaches.Use the root-cause checklist above as the authoritative diagnosis protocol.
Output: ✓ Step 2: Diagnosed - Root cause: [summary], Evidence: [brief], Scope: [N files]
Classify before routing. See references/complexity-assessment.md.
| Level | Indicators | Workflow |
|---|---|---|
| Simple | Single file, clear error, type/lint | references/workflow-quick.md |
| Moderate | Multi-file, root cause unclear | references/workflow-standard.md |
| Complex | System-wide, architecture impact | references/workflow-deep.md |
| Parallel | 2+ independent issues OR --parallel flag | Parallel fullstack-developer agents |
Task Orchestration (Moderate+ only): After classifying, create native Claude Tasks for all phases upfront with dependencies.
manage_plan capability with addBlockedBy for dependency chainsmanage_plan capability as each phase completesmanage_plan capability/manage_plan capability/manage_plan capability/manage_plan capability) are CLI-only — unavailable in VSCode extension. If they error, use manage_plan capability for progress tracking. Fix workflow remains fully functional without them.Purpose: Prove the fix works, has NO side effects, and prevents the same bug class from recurring. See HARD-GATE-NO-SIDE-EFFECTS.
Mandatory skill chain:
code-reviewer subagent with explicit instructions to check: (a) root cause actually addressed (not symptom-patched), (b) no broken business logic in blast radius, (c) no new failure modes, (d) follows existing patterns from scout. Pass scout summary + diagnosis report as context.run_shell capability agents for typecheck + lint + build + test.If verification fails OR a side effect is detected: Use ask_user capability per HARD-GATE-NO-SIDE-EFFECTS — present what broke, why, and 2-4 concrete options (revert, narrow scope, update dependents, accept). Never silently patch.
If verification fails: Loop back to Step 2 (re-diagnose). After 3 failures → question architecture, discuss with user.
Use the verification checklist above for prevention requirements.
Output: ✓ Step 5: Verified + Prevented - [before/after comparison], [N] tests added, [M] guards added
the engineer project-management skill skill (MANDATORY) → sync plan/task status (if fix is part of a plan), update progress, hydrate Claude Tasks, generate status reportdocs-manager subagent → update ./docs if changes warrant (NON-OPTIONAL)manage_plan capability → mark ALL Claude Tasks completed (skip if Task tools unavailable)git-manager subagent/ak:journal to write a concise technical journal entry upon completionSee references/skill-activation-matrix.md for complete matrix.
Always activate (ALL workflows):
ak:scout (Step 1) — understand before diagnosingak:debug (Step 2) — systematic root cause investigationak:sequential-thinking (Step 2) — structured hypothesis formationAlways activate (Step 6 Finalize):
ak:project-management — MANDATORY for sync-back and progress tracking, every fixConditional:
ak:problem-solving — auto-triggers when 2+ hypotheses fail in Step 2ak:brainstorm — multiple valid approaches, architecture decision (Deep only)ak:context-engineering — fixing AI/LLM/agent codeSubagents: debugger, researcher, planner, code-reviewer, tester, run_shell capability
Parallel: Multiple Explore agents for scouting, run_shell capability agents for verification
Unified step markers:
✓ Step 0: [Mode] selected
✓ Step 1: Scouted - [N] files, [M] deps
✓ Step 2: Diagnosed - Root cause: [summary]
✓ Step 3: [Complexity] detected - [workflow] selected
✓ Step 4: Fixed - [N] files changed
✓ Step 5: Verified + Prevented - [tests added], [guards added]
✓ Step 6: Complete - [action taken]
Load as needed:
references/mode-selection.md - ask_user capability format for modereferences/complexity-assessment.md - Classification criteriareferences/workflow-quick.md - Quick: scout → diagnose → fix → verify+prevent → reviewreferences/workflow-standard.md - Standard: full pipeline with Tasksreferences/workflow-deep.md - Deep: research + brainstorm + plan with Tasksreferences/review-cycle.md - Review logic (autonomous vs HITL)references/skill-activation-matrix.md - When to activate each skillreferences/parallel-exploration.md - Parallel Explore/run_shell capability/Task coordination patternsSpecialized Workflows:
references/workflow-ci.md - GitHub Actions/CI failuresreferences/workflow-logs.md - Application log analysisreferences/workflow-test.md - Test suite failuresreferences/workflow-types.md - TypeScript type errorsreferences/workflow-ui.md - Visual/UI issues (requires design skills)Typically follows: the engineer debug skill (after root cause analysis), /ak:scout (after locating affected code)
Typically precedes: the installed code-review skill (review the fix), the installed test skill (validate the fix)
Related: /ak:cook (alternative for feature work), the engineer debug skill (diagnose before fixing)