plugins/harness-powers/skills/harness-plan/SKILL.md
Use after an approved Harness spec to create a decision-complete, audit-oriented execution plan under docs/exec-plans/active/.
npx skillsauth add Refinex-Space/Refinex-Skills harness-planInstall 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.
Create an active execution plan that an implementer can follow, audit, and verify without rediscovering the design.
Use this skill when a spec or approved requirements exist and implementation has not started. Plans are saved under docs/exec-plans/active/ and indexed in docs/PLANS.md.
Harness plans are decision-complete and audit-oriented:
Before writing a plan, read:
docs/exec-plans/specs/AGENTS.md and nested instructions relevant to touched filesdocs/ARCHITECTURE.mddocs/PLANS.mdIf the spec covers independent subsystems that cannot be implemented coherently in one plan, stop and ask to split it into separate specs or plans.
Save the plan to:
docs/exec-plans/active/YYYY-MM-DD-<feature-name>.md
Then update docs/PLANS.md with the active plan entry, status, and link.
Every plan starts with:
# [Feature Name] Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use `harness-execute` semantics to implement this plan task by task. Use `harness-dispatch` only for independent subtasks with disjoint write scopes. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** [One sentence describing the outcome]
**Architecture:** [2-3 sentences about approach and boundaries]
**Tech Stack:** [Key technologies, frameworks, storage, tooling]
**Design Source:** `docs/exec-plans/specs/<spec-file>.md`
---
Before task decomposition, include:
Each task should include:
## Task N: [Outcome]
**Files:**
- Create: `path`
- Modify: `path`
- Test: `path`
**Decision Trace:** [Spec section or decision this task implements]
- [ ] **Step 1: [Concrete action]**
Do [specific work]. Use [local pattern/API] from `path`.
- [ ] **Step 2: [Verification]**
Run:
```bash
[command]
```
Expected: [observable result]
**Evidence:** [filled by implementer during harness-execute]
```
Prefer tasks that can be reviewed independently:
Inline code is useful when it removes ambiguity, but it is not mandatory for every implementation step. Prefer precise references, APIs, invariants, and acceptance checks over bulky copied code.
Plan failures:
TBD, TODO, fill in later, or unresolved alternativesAfter writing the plan:
Use references/plan-reviewer-prompt.md when dispatching a reviewer.
After saving the plan and updating docs/PLANS.md, hand off to harness-execute.
Offer the execution mode:
Plan complete at `docs/exec-plans/active/<filename>.md` and indexed in `docs/PLANS.md`.
Execution options:
1. Inline execution with `harness-execute`
2. Delegated execution for independent tasks through `harness-dispatch`
Which path should we use?
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.