Home
Softono
Harness-Engineering-skills

Harness-Engineering-skills

Open source MIT TypeScript
17
Stars
1
Forks
0
Issues
1
Watchers
2 months
Last Commit

About Harness-Engineering-skills

AI-native engineering workflow skills for Claude and Codex — repo-backed PRD-to-code orchestration, milestone delivery, and validation.

Platforms

Web Self-hosted

Languages

TypeScript

Links

Harness Engineering Skills

CI Release License: MIT Published Skills Agents Workflow

AI-native engineering workflow skills for Claude and Codex.

Install harness-engineering-orchestrator to run software projects through a repo-backed delivery loop: Project Plan -> Delivery Phase -> Milestone -> Task -> Validation

Harness Engineering is built around one idea: planning and execution should survive chat sessions. Instead of keeping important decisions inside prompt history, the workflow writes them back into versioned repository artifacts such as docs/PRD.md, docs/ARCHITECTURE.md, docs/PROGRESS.md, AGENTS.md, CLAUDE.md, and .harness/state.json. That makes delivery stateful, resumable, and auditable across humans, Claude, and Codex.

1-Minute Demo

# 1. Install the skill
npx skills add https://github.com/Phlegonlabs/Harness-Engineering-skills --skill harness-engineering-orchestrator

# 2. Enter a target repository
cd my-project

# 3. Generate the Harness workflow
bun <path-to-installed-skill>/scripts/harness-setup.ts

# 4. Start orchestration
bun harness:orchestrate

In about a minute you should have:

  • docs/PRD.md
  • docs/ARCHITECTURE.md
  • docs/PROGRESS.md
  • .harness/state.json
  • a runnable orchestrator entrypoint for the next step

Generated JS/TS repos now default to a workspace-first layout: product code lives under apps/<surface> and packages/shared. Bun-managed repos dispatch root tasks through Turborepo; npm/pnpm-managed repos dispatch them through the local Harness workspace runner.

For an existing repository, swap step 3 to:

bun <path-to-installed-skill>/scripts/harness-setup.ts --isGreenfield=false --skipGithub=true

Start Here

  • Install: npx skills add https://github.com/Phlegonlabs/Harness-Engineering-skills --skill harness-engineering-orchestrator
  • Current release target: v1.8.6
  • Best for: teams that want AI coding agents to work inside a controlled PRD-to-code delivery system instead of free-form prompt chains
  • Main package: harness-engineering-orchestrator for discovery, stack selection, PRD, architecture, milestone/task execution, and validation
  • Read next: harness-engineering-orchestrator/README.md

Published Skills

Skill What it does Best for
harness-engineering-orchestrator Turns an idea or existing repo into a repo-backed delivery workflow with docs, runtime state, backlog, execution, and validation Greenfield bootstraps, existing repo hydration, phase-first agent delivery
harness-engineering-structure Production-ready monorepo scaffold with machine-readable validation rules, 6-layer dependency model, planning commands, and agent-readable docs Teams that need a well-structured Bun + Turbo monorepo with built-in validation and CI

Why Teams Install It

Harness Engineering is for teams that want AI coding agents to operate inside a controlled delivery system instead of free-form prompt chains.

  • PRD-first planning instead of chat-only planning
  • milestone and task execution tied back to repo state
  • explicit phase gates before implementation advances
  • staged delivery (V1 -> deploy review -> V2) instead of one drifting backlog
  • resumable collaboration across sessions, agents, and humans

This repository contains published Harness Engineering skills and the supporting metadata needed to install, validate, and contribute to them.

What this repository contains

  • README.md: this entry page and high-level usage guide.
  • README.en.md: English documentation.
  • README.zh-CN.md: Chinese documentation.
  • LICENSE, CONTRIBUTING.md, SECURITY.md: repository-level open source metadata and contribution policy.
  • harness-engineering-orchestrator/: PRD-to-code delivery orchestration skill.
    • SKILL.md: the runtime contract the skill executes.
    • agents/: role prompts and operating guides.
    • references/: templates, helper docs, and type definitions.
    • scripts/: setup and validation automation.
    • templates/: scaffold files and example structure.
    • config.example.json: team configuration template (copy to config.json to set org-wide defaults).
  • harness-engineering-structure/: production-ready monorepo structure skill.
    • SKILL.md: skill contract with validation rules, layer model, and planning commands.
    • agents/: structure-focused agent roles (doctor, validator, scaffolder, planner, evaluator).
    • references/: runtime code, machine-readable rules (JSON), and internal docs.
    • scripts/: setup automation (greenfield + hydration).
    • templates/: .template files for scaffolding target projects.
    • config.example.json: team configuration template.

The repository itself no longer carries root-level AGENTS.md or CLAUDE.md. Those runtime instruction files are generated inside target projects by the skills when needed.

Language

Install

Prerequisites

  • git
  • bun
  • a client that supports skills add

Install the skill package

npx skills add https://github.com/Phlegonlabs/Harness-Engineering-skills --skill harness-engineering-orchestrator

Use it in a target repository

For a new repository:

bun <path-to-installed-skill>/scripts/harness-setup.ts

For an existing repository:

bun <path-to-installed-skill>/scripts/harness-setup.ts --isGreenfield=false --skipGithub=true

After setup or hydration, continue from inside the target repository with:

bun .harness/orchestrator.ts
bun harness:orchestrate
bun harness:approve --plan
bun harness:approve --phase V1
bun harness:advance

If you clone or hard-reset a Harness-managed repository later, restore the local-only Harness files before resuming:

bun harness:hooks:install

For the full skill-level operator flow, see harness-engineering-orchestrator/README.md.

Team Configuration (optional)

If your team always uses the same defaults — org name, AI provider, harness level — you can pre-configure them in a config.json file inside the installed skill directory:

cp <path-to-installed-skill>/config.example.json <path-to-installed-skill>/config.json
# Edit config.json with your team's defaults

CLI flags and interactive answers always override config.json. Absent or unparseable config is a no-op — behavior is identical to a fresh install. See harness-engineering-orchestrator/SKILL.md — Team Configuration for all supported fields.

When to use this skill

Use the orchestrator when you want AI assistants to operate through a structured, file-backed project loop rather than ad-hoc prompts.

  • New project launches (greenfield): idea → discovery → stack selection → PRD → architecture → scaffold → execution → validation.
  • Existing projects: bring legacy or partially structured repos into a consistent Harness workflow.
  • Team handoff: make task state inspectable by agents and humans from the repository alone.

Typical prompts:

  • Bootstrap a new TypeScript monorepo with Harness Engineering.
  • Turn this existing repo into a repo-backed workflow with PRD, architecture, and progress tracking.
  • Set up Harness validation gates and execution loop for this codebase.

What it can generate

  • docs/PRD.md: requirements, scope, milestones, acceptance criteria.
  • docs/ARCHITECTURE.md: system structure, data flow, constraints, and decisions.
  • docs/PROGRESS.md: milestone/task progress and completion state.
  • .harness/state.json: canonical runtime state for orchestration.
  • AGENTS.md + CLAUDE.md: machine-readable and human-readable collaboration contracts.
  • docs/adr/, docs/gitbook/: supporting documentation structures used during execution.
  • Validation and scaffold artifacts for repeatable build/test checks.

What makes it different

  • The repository becomes the working memory, not the chat transcript.
  • Scope changes must flow back through the PRD before implementation resumes.
  • Execution is phase-first and review-gated, not a single uninterrupted agent run.
  • Validation writes back into runtime state so the next session can resume from facts, not recollection.

Workflow in brief

DISCOVERY -> MARKET_RESEARCH -> TECH_STACK -> PRD_ARCH -> SCAFFOLD -> EXECUTING -> VALIDATING -> COMPLETE

The key principle is that planning is not "done" until repo artifacts are updated, and execution is not "done" until code, validation, and task state are aligned.

Pacing discipline

The orchestrator enforces strict step-by-step execution:

  • Level-aware Discovery pacing — Lite batches 1-2 questions or uses Fast Path, Standard groups 2-3 questions, Full asks one question per turn.
  • One phase per response — work from two phases is never combined in a single message.
  • Explicit approval stops at planning and delivery-phase boundaries — approve the overall plan, approve Phase 1, then stop again at delivery-phase completion, deploy review, or real blockers.
  • Granular scaffold verification — every .harness/ runtime file, config, doc, and build script is individually checked before entering EXECUTING.

This prevents the common failure mode where the LLM rushes through phases, skips validation, or enters execution with an incomplete scaffold.

Quick verification after install

After installing the skill in a target repo, verify these files exist or are created:

  • AGENTS.md
  • CLAUDE.md
  • docs/PRD.md
  • docs/ARCHITECTURE.md
  • docs/PROGRESS.md
  • .harness/state.json

If these are present and readable, your repo is likely on the right track for the Harness loop.

Contributing

This repo is intentionally small and focused. Contributors can help by adding reference templates, strengthening gates, or improving the published orchestrator skill and its execution playbooks.

References