hoshiori-dev/harness-md
Designs, builds, extracts, and audits a project's agent harness around one HARNESS.md file: the design is written once, then built layer by layer — environment, knowledge, feedback, gates, authority, completion, entropy — with spec-driven development skills for daily work.
Owns the Authority layer of an agent harness (what agents may do alone, what waits for a human, how work is committed, branched, merged, released); use when a harness workflow hands it over or agents need permission or platform rules.
Owns the Completion layer of an agent harness (how a project agrees a goal before work starts and when a task counts as done); use when a harness workflow hands the layer over or a project's spec workflow is being set up or checked.
Owns the Entropy layer of an agent harness: designs, builds, extracts, or audits what keeps the harness true to the code (sync rules, a self-check, periodic reclamation); use when a harness workflow hands the layer over.
Owns the Environment layer of an agent harness (where a coding agent runs, the tools and credentials it holds, what it can reach); use when a harness workflow hands the layer over or an agent's sandbox, tools, or reach is in question.
Feedback layer builder: Owns the Feedback layer of a HARNESS.md, the commands and tools a coding agent runs and observes to verify its own work; use when a harness workflow hands this layer over or agents call work done unchecked.
Gates layer builder: Owns the Gates layer of a HARNESS.md, the deterministic checks in hooks and CI that block a defect whether or not the agent looked; use when a harness workflow hands this layer over or a broken or secret change landed.
Harness methodology manual: explains why an agent harness has the layers it has, where a rule or fact for coding agents belongs, how a project's context sets how much each layer does, and how several agents share one repository. Use when asked why agents ignore an entrypoint; whether a project needs CI, hooks, a sandbox, or specs; where a rule, procedure, or fact should live (entrypoint, knowledge file, project skill, hook, check, type); whether two copies of a fact may coexist; or how parallel agents split worktrees and platform writes. Not for building or restructuring harness files, or for what a HARNESS.md section holds.
Harness audit: diagnoses a project's agent harness and changes nothing. Validates HARNESS.md, finds drift between the design and the files built from it, and judges whether the design still fits the project. Use when invoked by name to review a harness; when agents keep missing a convention, bypass a check, or pile up permission prompts; or before hardening or thinning. Reports findings.
Harness build: turns the HARNESS.md in a project root into the working agent harness it describes, layer by layer behind one approved plan, or brings an existing harness to it. Use when invoked by name after pasting a HARNESS.md into a project and stating its goal, after a design or revision is approved, or to migrate a harness to a given design. Not for writing or changing the design.
Harness design: produces or revises a project's HARNESS.md, the document that records its agent harness design, defaults first and behind one approval. Use when invoked by name to design a harness for a new or existing project, to adapt a HARNESS.md taken from elsewhere, or to revise the design after an audit or a recurring failure. Writes the document only; never builds the harness.
Harness extract: writes the HARNESS.md that describes the agent harness a project already has, marking what is inferred. Use when invoked by name to document your own project's harness as its future anchor document, to learn from another repository's harness, or to turn a working harness into a reusable design. Describes what exists; never redesigns, builds, or runs the target's code.
HARNESS.md format — reads, writes, revises, and validates a HARNESS.md, the file that records a project's agent harness design (frontmatter identity plus a free-form body with recommended sections). Use when a HARNESS.md is the file at hand or is about to be created; when asked what a section must contain, where a piece of harness design belongs in the file, or why the validator reports a finding; or when a pasted or downloaded HARNESS.md has to be checked before it is used. Not for building the harness the file describes, and not for AGENTS.md, CLAUDE.md, or knowledge files.
Owns the Knowledge layer of an agent harness (the AGENTS.md entrypoint, on-demand knowledge files, the routes between them); use when a harness workflow hands the layer over or an entrypoint is missing, bloated, ignored, or stale.
Lightweight specification carrier — aligns one change before coding with plan mode or a per-change SPEC.md and PLAN.md in a project without a spec framework. Use when the user wants to agree on what a change will do before code is touched and no spec tool is in use; asks to draft, review, or plan from a SPEC.md or PLAN.md; asks whether a small fix needs a written spec; or when a reviewed change's SPEC.md must be folded or deleted before its request is marked ready. Not for OpenSpec or Spec-Kit projects, whether to adopt spec-driven development, recording the spec contract, or API specifications (OpenAPI).
OpenSpec carrier — creates, validates, and archives OpenSpec changes inside pull or merge requests and installs the automation that guards them on GitHub or GitLab. Use when a project that runs OpenSpec asks to create, validate, or archive a change; asks what must happen before its request can merge or how a change is approved; asks why a spec:* label changed or why the archive check has not reported; or wants the validation, archive check, or approval labels wired into CI or repaired. Not for choosing a spec framework, whether to adopt spec-driven development, recording the project's spec rules, or Spec-Kit.
Project skills — writes and repairs the skills a project keeps for its own agents. Use when a recurring procedure should become something the agent loads by itself ("turn our release steps into a skill"); when a project skill never loads, loads on the wrong task, skips or rushes a step, ignores its references, or has grown long; when asked to review, prune, or diagnose a SKILL.md; or when the Knowledge layer hands over a skill definition. Not for AGENTS.md, CLAUDE.md, knowledge files, human documentation, application features called skills, or the skills this plugin ships.
Spec-driven development — writes the specification before the code and runs each change through the specify-to-freeze loop. Use when the user wants a feature done spec-first; asks whether specs first are worth it or at which level; asks where approval sits or what a specification must answer; says what shipped no longer matches the spec; or wants a prototype or existing codebase brought under specs without a rewrite. Not for setting up a project's spec workflow, tool, contract, or CI check; for a spec tool's own commands; or for issue forms, request templates, or labels.
Spec-Kit carrier — runs Spec-Kit features through pull or merge requests and installs their check and progress-label jobs on GitHub or GitLab. Use when a Spec-Kit project asks whether plan.md is approved before tasks.md; whether a request can be marked ready while a specs/NNN-name feature has unticked tasks; how to archive, lock, or validate a feature; whether approval holds after spec.md or plan.md changed; what a spec: label means; or to add the feature check and labels to CI. Not for the kit's own create or implement commands, choosing a spec tool, or OpenSpec projects.