Skills
Diagnose and correct technical defects with ak:fix
Use the Marketing package's ak:fix workflow for root-cause-first correction, verification, and review of technical defects.
Use ak:fix for a concrete technical defect in a marketing site, automation,
integration, test suite, or CI workflow. The Skill captures the expected
repaired behavior, scouts the affected code, proves a root cause, selects a
cause-aligned correction, changes the workspace, and verifies the original
reproduction and its blast radius.
This is a code-fixing workflow inside Marketing Kit. It does not diagnose poor campaign performance, revise positioning, or optimize a funnel unless the problem is a reproducible technical defect in the project.
Choose ak:fix for a reproducible defect
Use ak:fix when
- You have an exact error, failing test, type or lint failure, UI defect, log failure, or broken CI run.
- You can provide or collect reproduction steps and expected versus actual behavior.
- You authorize a minimal workspace correction after diagnosis.
- You need fresh verification, regression coverage, a side-effect sweep, and code review.
Choose another workflow when
- You need diagnosis only and no mutation. Use
ak:debuggingwith an explicit stop-after-diagnosis boundary. - The issue is a strategy or performance question without a reproducible technical failure. Use the relevant Marketing analysis or optimization Skill.
- Several product or marketing directions are viable after diagnosis. Use
ak:brainstormbefore choosing a correction. - You are implementing known feature scope rather than repairing a defect. Use
ak:cook. - You only need technical consultation. Use
ak:ask.
Prepare the failure evidence
Before starting:
- Complete Onboarding and confirm the Marketing Kit target and scope.
- Provide the exact error message, failing assertion, log excerpt, screenshot, or observable behavior without exposing secrets or personal data.
- State minimal reproduction steps, expected behavior, actual behavior, and the environment where the issue appears.
- Preserve unrelated work and identify sensitive paths, live services, and public contracts that must not change.
- Decide whether the assistant may edit files, add tests, and run the relevant validation commands.
| Runtime | Invocation | Availability boundary |
|---|---|---|
| Claude Code | /ak:fix ... | Available through native or explicit plugin delivery; dependent Skills and Agents must also resolve. |
| Cursor | /ak:fix ... | Projected as a slash-invoked Skill; broader dependency parity is not established. |
| Codex | $ak:fix ... | Uses native Codex Skill discovery; delegation and Hook behavior can differ. |
Run the Skill
/ak:fix "Signup submits the lead event twice after a failed first request. Reproduce with the existing integration test, preserve consent behavior, fix the root cause, and do not commit or deploy" --review/ak:fix "Signup submits the lead event twice after a failed first request. Reproduce with the existing integration test, preserve consent behavior, fix the root cause, and do not commit or deploy" --review$ak:fix "Signup submits the lead event twice after a failed first request. Reproduce with the existing integration test, preserve consent behavior, fix the root cause, and do not commit or deploy" --reviewSelect the fix mode
| Flag | Intended use | Review behavior |
|---|---|---|
--auto | Simple or moderate issues; this is the documented default | Can auto-approve a high-scoring review with no critical finding, but must escalate unresolved critical issues |
--review | Critical, production, security-sensitive, or architecture-affecting code | Pauses for human review at major steps |
--quick | Confirmed trivial type, lint, syntax, or single-file issue | Uses a shortened scout, diagnose, fix, verify, and review cycle |
--parallel | Two or more independent issues | Assigns separate issue scopes and requires non-overlapping ownership |
--advice | Adds kongming advisory supervision | Advice cannot approve gates, edit code, or expand authority |
--advice composes with the selected base mode. Do not choose --quick merely
because a symptom looks obvious; the root cause still must be confirmed.
Require exact root-cause evidence
Before proposing a correction, the workflow requires concrete answers for:
- The exact symptom or error.
- Minimal reproduction steps.
- Expected versus actual behavior.
- The root cause at a specific code or contract boundary.
- The change or condition that exposed it.
- Every path in the blast radius that shares the cause or broken behavior.
If any answer remains speculative, gather more logs, tests, source evidence, or environment detail. Three failed correction attempts are a stop condition: the workflow should question the architecture and discuss it with you before trying again.
Understand the fix stages
- Frame intent. Capture outcome, constraints, non-goals, and acceptance criteria without choosing a fix.
- Scout. Map affected files, direct callers and dependents, related tests, recent changes, and existing patterns.
- Diagnose. Preserve the pre-fix output, trace the data and call path, test hypotheses, and prove the root cause.
- Assess complexity. Route a simple, moderate, complex, or independent multi-issue workflow only after diagnosis.
- Choose a cause-aligned correction. Use a direct minimal repair when one safe option exists; brainstorm and plan only when meaningful alternatives remain.
- Implement. Change the smallest scope that addresses the confirmed cause.
- Verify and prevent recurrence. Re-run the exact reproduction, add or update a regression test, sweep the blast radius, confirm public contracts, and run relevant type, lint, build, and test checks.
- Review and finalize. Review correctness and side effects, reconcile plan and documentation impact, report evidence, and ask before a Git workflow.
Keep mutation and external effects controlled
A fix request authorizes only the scoped workspace correction
--auto does not authorize secret access, live provider changes, campaign
edits, publication, audience contact, spend, commit, push, pull request,
deployment, destructive actions, breaking public contracts, or acceptance of
a regression. Grant those permissions separately.
For CI diagnosis, gh access and network connectivity may be required to read
GitHub Actions logs. Reading a run does not authorize pushing a correction or
rerunning external workflows. For UI defects, browser or screenshot access is
evidence collection; it does not authorize publishing the page.
If verification reveals a side effect, stop and choose whether to revert, narrow the correction, update explicit dependents, preserve compatibility, or accept a documented contract change. The Skill must not silently patch around the failure.
Verify the result and evidence
A complete fix report should contain:
- The exact root cause and its evidence chain.
- The files changed and why each change is cause-aligned.
- Before-and-after output from the original reproduction.
- A regression test that covers the defect, plus blast-radius checks.
- Fresh type, lint, build, and test evidence relevant to the project.
- Review findings, side-effect assessment, public-contract status, and any remaining risk.
- Plan and documentation impact plus actions still awaiting approval.
Do not accept “seems fixed.” The original failure must no longer reproduce and the broader affected behavior must remain valid.
Troubleshoot the fix
| Symptom | Safe next step |
|---|---|
The runtime cannot find ak:fix | Confirm target and scope, restart the runtime, then follow Runtime cannot find a Skill or Agent. |
| The Skill proposes a fix before proving the cause | Stop and require the six root-cause facts. Use ak:debugging for systematic evidence collection. |
| The failure cannot be reproduced | Gather more logs, environment detail, inputs, timing, and component-boundary evidence; do not guess. |
A referenced ak:debug, ak:sequential-thinking, ak:problem-solving, or Engineer project-management surface is unavailable | Report the unresolved dependency and continue only with an evidence-equivalent local step you can verify. The resolved Marketing export list does not itself guarantee those referenced names are installed. |
| Verification fails after a correction | Return to diagnosis. After three failed attempts, stop and question the architecture with the user. |
| A side effect or contract change appears | Keep it visible and ask the user to choose a bounded recovery or compatibility path. |
| CI logs cannot be fetched | Verify gh, authentication, repository access, run identity, and network availability. Do not infer the cause from a missing log. |
Know the current limits
ak:fixis technical and code-oriented; it does not repair marketing strategy or guarantee campaign performance.- Its source references several Engineer-oriented or shared workflow names that are not separate Marketing exports. Runtime availability must be checked rather than assumed.
- Verification is limited by reproducibility, project checks, tools, test data, and environment access available in the session.
- The workflow cannot guarantee zero risk, provider behavior, conversion, revenue, deployment success, or compliance.
- Stable and beta contain identical
ak:fixsource content and flags.
Continue with ak:debugging for investigation, ak:cook
for known feature scope, or the Marketing Kit overview for
domain workflows.
Investigate failures systematically with ak:debugging
Use ak:debugging to reproduce a failure, trace its root cause, add appropriate defenses, and verify any approved correction.
Establish marketing project context with ak:init
Interview stakeholders, reconcile existing evidence, and create the minimum durable marketing context the project needs.