plugins/harness-powers/skills/harness-fix/SKILL.md
Own bug, regression, incident, and flaky-path repair inside a Harness Powers control plane. Use when repository work requires a bug brief, reproduction evidence, root-cause isolation, minimal fix, regression protection, plan archival, and handoff through harness-verify.
npx skillsauth add Refinex-Space/Refinex-Skills harness-fixInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Diagnose and repair broken behavior with evidence. This skill is the Harness Powers lifecycle owner for bugs, regressions, incidents, build failures, and flaky paths.
Announce at start: I'm using harness-fix to reproduce, isolate, and repair this failure.
NO FIX WITHOUT REPRODUCTION EVIDENCE
NO ROOT CAUSE CLAIM WITHOUT EXPLICIT EVIDENCE
THREE FAILED FIX ATTEMPTS MEAN STOP AND REPLAN
If any rule is violated, the workflow has degraded into guessing.
Use harness-fix when:
Do not use it for:
harness-featharness-brainstormharness-reviewharness-verifyFollow these steps in order.
Preflight
AGENTS.md.AGENTS.md files when present.docs/PLANS.md, docs/ARCHITECTURE.md, and docs/OBSERVABILITY.md when present.python3 scripts/check_harness.py when available and record failures.Bug Brief
references/bug-brief-template.md.Reproduction
docs/exec-plans/active/ and register it in docs/PLANS.md.Root Cause Isolation
references/systematic-debugging.md and references/root-cause-techniques.md.references/root-cause-tracing.md when the symptom is deep in a call stack.references/condition-based-waiting.md for timing or flaky behavior.Minimal Fix
Regression Protection And Verification
harness-review for risky or broad fixes.Archive And Handoff
docs/exec-plans/completed/ when done.docs/PLANS.md.harness-verify before any final success claim.harness-finish for merge, PR, keep, or discard decisions.Stop and replan when:
docs/PLANS.md| Reference | Use |
| --- | --- |
| references/bug-brief-template.md | Structuring the bug report |
| references/fix-plan-template.md | Active fix plan shape |
| references/hypothesis-log-template.md | Recording hypothesis loops |
| references/systematic-debugging.md | Root-cause investigation discipline |
| references/root-cause-techniques.md | Choosing diagnosis techniques |
| references/root-cause-tracing.md | Backward tracing from symptom to source |
| references/condition-based-waiting.md | Flaky/timing investigation |
| references/defense-in-depth.md | Follow-up hardening after root cause |
| references/regression-test-patterns.md | Regression protection |
development
Deep initialization of project AGENTS.md hierarchy and control plane for AI coding agents. Use this skill whenever the user wants to set up, initialize, bootstrap, or create AGENTS.md / CLAUDE.md files for their project, or when they mention "init-deep", "harness setup", "control plane", "agent context", "project initialization for agents", or want to make their codebase agent-ready. Also trigger when a user says things like "set up my repo for Claude Code", "make this project work better with agents", "create agent instructions", "bootstrap harness", or "initialize agent docs". This skill handles both existing large codebases (where hierarchical, module-scoped AGENTS.md files are needed) and new/small projects (where brainstorming with the user comes first). Do NOT use this skill for routine code changes, bug fixes, or general documentation — it is specifically for creating the structured agent control plane.
development
Detect and fix drift in project AGENTS.md files and agent control plane. Use this skill whenever the user wants to audit, recalibrate, refresh, update, or fix their existing AGENTS.md files, or when they mention "drift", "stale AGENTS.md", "outdated agent instructions", "recalibrate", "sync agents", "audit control plane", "AGENTS.md is wrong/old/broken", or when they suspect their agent harness has fallen out of sync with the codebase. Also trigger when a user says things like "my agents keep making wrong assumptions", "Claude doesn't understand the new structure", "we refactored but the AGENTS.md is old", "check if my AGENTS.md is still accurate", or "update my agent docs". This skill is the companion to init-deep — init-deep creates the control plane from scratch, drift-doctor maintains it over time. Do NOT use for initial creation of AGENTS.md (use init-deep instead). Do NOT use for general code review or documentation updates unrelated to agent context.
development
Use when adding, fixing, reviewing, or generating code comments, docstrings, Javadoc, JSDoc/TSDoc, rustdoc, SQL comments, or documentation comments for source, markup, configuration, or database files.
development
Enforce production-grade Java development standards when writing, reviewing, or architecting Java code. Covers commenting, core Java idioms (Stream, collections, concurrency, generics), 23 GoF design patterns, SonarQube/Alibaba p3c/Lombok rules, Spring Boot MVC structure, Spring Cloud DDD microservices, MyBatis/JPA/transaction management, exception handling, logging, REST API design, testing, and security. Trigger whenever the user writes Java code, reviews Java code, designs a Spring Boot or Spring Cloud project, implements a design pattern, fixes code smells, discusses architecture, or asks about Java best practices. Also trigger when Java code is pasted for feedback or the user asks about package structure, DTO/VO/PO conventions, or coding standards.