Skip to content

StephenDMay/harness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Harness

A Claude Code SDLC workflow system — skills and document conventions for building software with AI agents.

Philosophy

Augment, don't automate

The agent is a collaborator, not an autonomous executor. Every step in the workflow produces something the developer reviews before the next step begins — a capability doc before a roadmap, a spec before any code, findings before any fixes. The developer stays the decision-maker; the agent handles the mechanical work of drafting, searching, and writing.

Keep cognitive debt low

A codebase accumulates cognitive debt when decisions are made implicitly, spread across conversations, or never written down. Harness externalizes that debt into documents: capability docs capture what the system should do, roadmaps capture in what order, and DECISIONS.md files capture why the code is shaped the way it is. The agent reads these documents before touching anything, so each session starts from a known state rather than reconstructing it from scratch.

Small, focused changes

Every implementation step is scoped to a single roadmap entry — at most two files, roughly eight functions. A step that's larger gets split before speccing begins. This keeps diffs reviewable, keeps the blast radius of a bad decision small, and makes it easy to stop and course-correct without untangling accumulated work.

Document alignment as a forcing function

Documents aren't just reference material — they're a consistency check. When a spec contradicts a capability doc, or a decision contradicts the northstar, the workflow surfaces the conflict before any code is written. The agent is instructed to flag these conflicts rather than silently resolve them, keeping the developer in the loop on anything that would change the direction of the work.


Document structure

The skills read and write a shared document convention:

  • documents/northstar.md — product vision, target users, non-negotiables, capability map
  • documents/capabilities/ — one file per capability; functional requirements, data model, acceptance criteria
  • documents/roadmaps/ — step-by-step implementation plans per capability; each step has a - [ ] complete checkbox the skills flip when done
  • documents/decisions/ — cross-cutting architectural decisions that apply project-wide
  • <package>/DECISIONS.md — code-level decisions local to a package: why a library was chosen, what constraints future code must not violate

Write a decision when a non-obvious choice was made between real alternatives, when a constraint exists that future code must not violate, or when a conversation drove toward a specific approach that could easily be undone by the next agent. If a conversation produces a key decision, record it before the session ends.


Skills

Slash commands that run structured workflows in Claude Code:

Skill Trigger Purpose
draft-northstar /draft-northstar Define or refine the project vision document
draft-capability /draft-capability Document a capability and generate its implementation roadmap
draft-foundation /draft-foundation Drive the architectural design conversation before any code is written
draft-spec /draft-spec Produce a function-scoped feature spec from a roadmap step
imp /imp step N Implement a specific spec step with review and progress tracking
audit /audit Review recently changed code for correctness, conventions, and security
utest /utest Propose and write unit tests one at a time with developer approval
pr-create /pr-create Open a GitHub PR from the current branch with a structured description

Workflow

Each phase feeds the next. Nothing is implemented without a spec; nothing is specced without a capability doc; nothing is merged without a review.

/draft-northstar        → documents/northstar.md
/draft-capability       → documents/capabilities/<name>.md
                          documents/roadmaps/<name>.md
/draft-foundation       → <package>/DECISIONS.md
/draft-spec step N      → scratchpad/feature-spec.md
/imp step N             → code + updated roadmap + DECISIONS.md
/audit                  → scratchpad/audit-report.md
/utest                  → scratchpad/test-plan.md + test files
/pr-create              → GitHub PR

Setup

  1. Copy .claude/ and documents/ into your project root.
  2. Fill in CLAUDE.md with your stack and project-specific conventions.
  3. Run /draft-northstar to create your vision document.
  4. Run /draft-capability to document a capability and generate its roadmap.
  5. Work through the roadmap: /draft-foundation/draft-spec/imp/audit.

scratchpad/

Working files (feature-spec.md, audit-report.md, test-plan.md) live here during active work and are excluded from git. They are per-session artifacts, not permanent records — the permanent record is the code and the documents.

About

Claude Code SDLC workflow system — skills and document conventions for building software with AI agents

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors