From knowzcode
Execute a targeted micro-fix for single-file changes under 50 lines. Use when asked to fix a small bug, typo, or localized issue. Redirects to /knowzcode:work for larger changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/knowzcode:fixThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Execute a targeted micro-fix within the KnowzCode framework.
Execute a targeted micro-fix within the KnowzCode framework.
Usage: /knowzcode:fix <target> <summary>
Example: /knowzcode:fix src/auth/login.ts "Fix null reference in password validation"
/knowzcode:work/knowzcode:explore/knowzcode:auditThis command is for micro-fixes only. Before proceeding, verify:
| Criteria | Required |
|---|---|
| Change affects ≤1 file | ✓ |
| Change is <50 lines | ✓ |
| No ripple effects to other components | ✓ |
| No new dependencies introduced | ✓ |
| Existing tests cover the change area | ✓ |
If ANY criteria fails: Stop and suggest /knowzcode:work for full orchestration.
/knowzcode:work⛔ DO NOT skip verification. DO NOT claim "done" without passing tests.
REPEAT until all checks pass:
1. Run relevant tests:
- Unit tests covering the changed code
- Integration tests if the fix touches boundaries
- E2E tests if the fix affects user-facing behavior
2. If tests FAIL:
- Analyze failure
- Apply corrective fix
- RESTART verification from step 1
3. If tests PASS:
- Run static analysis / linter
- If issues found, fix and RESTART from step 1
4. All checks pass → Exit loop
Test Selection Guidance:
| Fix Type | Required Tests |
|---|---|
| Logic bug in function | Unit tests for that function |
| API endpoint fix | Unit + Integration tests |
| UI/UX fix | Unit + E2E tests |
| Configuration fix | Integration tests |
| Data handling fix | Unit + Integration tests |
knowzcode/knowzcode_log.mdfix: prefixtarget (required): NodeID or file path that requires the micro-fixsummary (required): One-line description of the requested change/knowzcode:fix src/auth/login.ts "Fix null reference in password validation"
/knowzcode:fix NODE_AUTH_123 "Update error message formatting"
Delegate to the microfix-specialist agent via Task() with these parameters:
subagent_type: "microfix-specialist"prompt: Task-specific context only (role definition is auto-loaded from agents/microfix-specialist.md):
Target: {target file or NodeID} Fix summary: {summary} Validate scope, implement the minimal fix, run the verification loop, log the outcome, and commit.
description: "Micro-fix: {summary}"mode: "bypassPermissions"Note: Micro-fixes use subagent delegation only. Agent Teams overhead is not justified for single-file, <50 line fixes.
/knowzcode:work — Full workflow for multi-file or >50 line changes/knowzcode:explore — Research before deciding on a fix approach/knowzcode:audit — Read-only scan to find issuesnpx claudepluginhub knowz-io/knowz-skills --plugin knowzcodeCreates minimal patch plans for targeted code fixes from reviews or bugs, analyzing with git/grep and templating precise changes with validation steps.