plugins/harness-powers/skills/harness-using/SKILL.md
Use when starting any repository-work conversation that may involve Harness Engineering routing, control plane setup, drift repair, feature delivery, bug fixing, or completion verification. Invoke before clarifying questions or code changes whenever there is any reasonable chance a Harness skill applies. Especially relevant for prompts such as `初始化 Harness`, `控制面坏了`, `文档漂移了`, `做这个功能`, `修复这个 bug`, `排查回归`, or `确认现在能不能宣称完成`.
npx skillsauth add Refinex-Space/Refinex-Skills harness-usingInstall 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.
Route repository work into the correct Harness Powers skill before doing anything else. This skill is the entry discipline for the Harness family: it decides which skill should take control, in what order, and when direct action is forbidden.
This is a low-freedom skill. Its job is routing and guardrails, not implementation.
Announce at start: I'm using harness-using to route this repository task.
Apply instructions in this order:
AGENTS.md, direct user constraints, local policies)If the repo says "don't create new plans" or "don't touch docs/", follow the repo. Harness Powers does not override explicit repository or user constraints.
Before any substantive reply, exploration, or code change, check whether a Harness Powers skill applies. If there is a reasonable chance that one applies, route through it before acting.
Process skills run before domain skills:
harness-brainstorm, harness-plan, harness-execute, harness-feat, harness-fix) to own the work.harness-frontend only inside the owning lifecycle.harness-verify before any success claim.Before any substantive reply, exploration, or code change, ask:
harness-verify be required before any success claim?If the answer to (1) is "maybe", inspect the routing table below before acting.
| Situation | Primary skill | Why |
| --- | --- | --- |
| Repo has no control plane or the control plane is obviously incomplete | harness-bootstrap | Build the baseline before any repo-scale work |
| Control plane exists but may be stale, broken, or misleading | harness-garden | Restore truth before trusting docs |
| Requirements are unclear or need design exploration | harness-brainstorm | Design approval comes before planning or implementation |
| Approved design or requirements need an execution plan | harness-plan | Plans belong in docs/exec-plans/active/ and docs/PLANS.md |
| Existing active plan needs execution | harness-execute | Plan execution updates checkboxes, evidence, and review gates |
| Need to deliver a feature, enhancement, or structured refactor | harness-feat | Feature work belongs inside execution plans |
| Need to diagnose a bug, regression, flaky path, or incident | harness-fix | Fix work requires reproduction and root cause discipline |
| Need code review or review feedback handling | harness-review | Review has one request/response workflow |
| Need independent subagent or parallel work | harness-dispatch | Delegation must preserve plan ownership and disjoint scope |
| Need isolated branch/worktree setup | harness-worktree | Execution should not happen on the main branch by accident |
| Need final merge, PR, keep, or discard decision | harness-finish | Finishing is a structured integration choice |
| About to claim "done", "fixed", "passing", or "ready" | harness-verify | Completion claims require fresh evidence |
harness-verify is cross-cutting. It does not replace the primary workflow; it gates completion inside that workflow.
Use these combinations when multiple conditions apply:
Missing control plane + any other work
harness-bootstrap first.harness-feat or harness-fix.Suspected drift + feature or fix work
harness-garden first unless the user explicitly wants diagnosis on the broken state.harness-feat or harness-fix.Feature or fix work nearing completion
harness-verify before declaring success.Approved design to implementation
harness-plan.harness-execute, with harness-dispatch only for independent subtasks.Implementation needs isolation
harness-worktree before executing the plan unless the user explicitly keeps work in the current tree.User asks for a general explanation of the suite
Do not jump straight into implementation when:
These are routing failures, not productivity wins.
When both process skills and domain skills could apply:
Example:
harness-feat first, then Stripe-specific guidanceharness-fix first, then PDF-specific guidanceharness-brainstorm or harness-feat first, then harness-frontend, then harness-verifyIf you catch yourself thinking any of these, stop and route correctly:
Each of these thoughts is how control planes get bypassed.
Routing is where silent bad assumptions start. Before choosing a workflow:
The routing step is allowed to be brief, but it is not allowed to be vague.
When this skill triggers:
harness-verify will be required at the endDo not linger in routing mode once ownership is clear.
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.