agentsclimarketplace

Haddock workflow

Skill krisravishankar/haddock/skills/haddock-workflow

Core workflow knowledge for Haddock — session lifecycle, NDJSON format, data model, and command relationshipsFrom its SKILL.md

Install
npx -y skills add krisravishankar/haddock --skill haddock-workflow

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

7.4 KB, as published. Nobody here has run it

Haddock Workflow Skill

You are working with Haddock, a living plan manager that tracks implementation progress through session-scoped plans stored as NDJSON.

Philosophy

A session is a discrete, well-scoped unit of work that an agent can complete in a single conversation. Sessions have clear boundaries and a well-defined goal, are completable end-to-end without mid-session human intervention, and are as small as practical — but group related changes when splitting them would create unnecessary overhead. Sessions don't assume a specific output form: some produce PRs, others produce designs, research findings, or config changes. Sessions form a dependency graph that represents the implementation plan.

Directory Structure

All state lives in .haddock/ in the project working directory (or a designated git repo):

.haddock/
├── active                              # Contains name of active project
└── projects/
    └── <project-name>/
        ├── config.json                 # Project configuration
        ├── plan.ndjson                 # One line per session (the plan)
        └── sessions.ndjson            # One line per completed session (append-only log)

Multiple projects can coexist. The active file contains the name of the current project.

Storage Resolution

When the working directory is not itself a git repo, .haddock/ may be stored in a child git repo for shareability. Commands find .haddock/ as follows:

  1. Check for a .haddock_root file in the current working directory
  2. If found, read the path inside it — that directory contains .haddock/
  3. If not found, use .haddock/ in the current directory (backwards compatible)

The .haddock_root pointer file is created by /haddock:init when the user chooses to store .haddock/ in a child git repo.

NDJSON Rules

  1. One JSON object per line — never pretty-print NDJSON files
  2. No trailing commas — each line is a complete, valid JSON object
  3. plan.ndjson is rewritable — rewrite the entire file when updating session statuses or replanning
  4. sessions.ndjson is append-only — only add new lines, never modify existing entries
  5. Validate against schema — read resources/schema.json from the plugin directory for field definitions

Session Design Principles

When planning sessions — whether through /haddock:plan, native plan mode, or any other planning flow — follow these principles so the output is compatible with haddock's plan management:

Session scoping:

  • Each session should be a discrete, well-scoped unit of work that an agent can complete in a single conversation
  • Sessions have clear boundaries and a well-defined goal, completable end-to-end without mid-session human intervention
  • Sessions should be as small as practical, but group related changes when splitting them would create unnecessary overhead or coordination cost
  • Sessions don't assume a specific output form — some produce PRs, others produce designs, research findings, or config changes
  • Prefer vertical slices (end-to-end for one feature) over horizontal layers
  • Foundation/infrastructure sessions come first

Dependency ordering:

  • Sessions form a directed acyclic graph (DAG)
  • A session should only depend on sessions whose output it directly needs
  • Minimize dependency chains — prefer wide graphs over deep ones
  • Identify which sessions can be parallelized

Story design:

  • Each session has 1-5 stories with testable acceptance criteria
  • Acceptance criteria should be specific and verifiable
  • Stories within a session should be ordered by implementation sequence

File identification:

  • List specific files each session will touch (actual paths, not directories)
  • Identify files that multiple sessions share (potential conflicts)
  • Flag areas where session boundaries might cause merge conflicts

Output format:

  • Session IDs: S001, S002, etc.
  • Story IDs: S001-01, S001-02, etc.
  • Each session needs: id, title, goal, stories, files, dependencies, complexity (low/medium/high)
  • See resources/schema.json and resources/example-plan.ndjson for the exact schema

If you are planning in native plan mode and intend to use /haddock:plan afterward to write the plan, structure your output to match these conventions — the command will detect and use your existing session plan.

Session Lifecycle

Sessions move through these states. See references/lifecycle.md for the full state machine.

not_started → ready → planning → in_progress → in_review → merged
                ↓                     ↓
             blocked              (back to ready if abandoned)
  • A session is ready when all its dependencies are merged
  • A session is blocked when any dependency is not yet merged
  • /haddock:next transitions a session from ready → planning
  • The developer transitions planning → in_progress when implementation begins
  • /haddock:done transitions to in_review or merged
  • After a session transitions to merged, recalculate all downstream sessions' readiness

Progressive Loading

Not every command needs all data. Load only what's needed:

CommandFiles to read
initNothing (creates files)
planconfig.json, PRD
replanconfig.json, plan.ndjson, sessions.ndjson, new input
nextplan.ndjson
doneplan.ndjson, sessions.ndjson (to append)
statusplan.ndjson, sessions.ndjson (for --report)
logsessions.ndjson
purgeplan.ndjson (for summary stats before deletion)
syncN/A (Phase 2)

Command Workflow

The typical workflow is:

  1. /haddock:init <name> — initialize a project
  2. /haddock:plan — create the implementation plan from a PRD
  3. /haddock:next — pick the next session to work on
  4. (do the work)
  5. /haddock:done — record what happened
  6. Repeat 3-5 until plan is complete
  7. /haddock:replan — adjust the plan if scope changes
  8. /haddock:status — check progress at any time
  9. /haddock:log — review session history
  10. /haddock:purge — remove a project or all projects when no longer needed

Plan-mode-first flow: Developers who prefer to plan in native plan mode (Shift+Tab) can do so before running /haddock:plan. The command will detect the session plan from the conversation and offer to use it directly, skipping the exploration phase. This also works with /haddock:replan — plan the changes in plan mode first, then run the command to apply them.

Validation

When writing NDJSON records:

  1. Read resources/schema.json from the plugin directory to get field definitions
  2. Ensure all required fields are present
  3. Use ISO 8601 format for all timestamps
  4. Session IDs follow the pattern S001, S002, etc.
  5. Story IDs follow the pattern S001-01, S001-02, etc.
  6. Reference resources/example-plan.ndjson and resources/example-sessions.ndjson for concrete examples

File References

  • Schema: resources/schema.json
  • Examples: resources/example-plan.ndjson, resources/example-sessions.ndjson, resources/example-config.json
  • Lifecycle details: skills/haddock-workflow/references/lifecycle.md
  • NDJSON format details: skills/haddock-workflow/references/ndjson-format.md

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.