/foreman-line:parcel-driven-developmentfrom foreman-line
Reusable methodology for coordinating multi-agent, multi-session, and multi-project development through contract-first parcels, initiative-level coordination, persisted state, integration readiness, and release gate discipline. Use when a feature or initiative is too large for one agent to ship end-to-end, when work spans multiple sessions or repositories, when integration boundaries matter, or when external stakeholders, security review, UAT, or release readiness require consistent evidence.
Ships in foreman-line. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Pantheon: Apply the complete current OM-PAN-001 mandate (EX14/DA001/D007) to every affected step. Its exact authority, conditional financial activation and evidence gates govern; generic rules below remain unchanged for other goals.
A methodology for shipping large features and multi-project initiatives by composing small, isolated, agent-built parts against stable contracts, with coordinator-owned sequencing, persistent state, integration readiness, and release gate discipline.
Prefer contract-first, parcel-sized development. Agents produce isolated, testable parts against stable interfaces. Coordination happens through contracts, initiative state, dependency graphs, integration surfaces, verification evidence, and merge discipline, not through agents negotiating with each other.
The coordinator (also called parcel owner, tech lead, feature owner or initiative owner) owns contracts, dependencies, scope, integration sequencing, persistent state, release gates and product-decision escalation across repositories, services, environments and evidence. Agents master their assigned contract, verify only permitted work and hand it off. Read and enforce The Hard Rules, all applicable phases and Review Workflow before dispatch or implementation.
Unit tests prove parts; integration scenarios prove boundaries; release gates prove readiness; evidence artifacts prove claims. Apply the complete Integration Scenario Matrix, Security Gate Orchestration, Release Gates and Persistence Layer.
Use this skill when:
Do NOT use this skill when:
Repo-Local Parcel Mode applies to one repository or tightly bounded project. Multi-Project Initiative Mode applies across repositories, services, applications, environments or integration boundaries (including Keon public surfaces, gateway, Runtime, memory/receipts, control planes and proof artifacts).
In either mode, read and perform Phase -1 through Phase 5: discovery, contracts PR, vertical spike, parcel specs/worktrees/branches/reviews/merges and verification. Multi-Project mode additionally requires the complete Multi-Project Initiative Artifacts, Persistence Layer, integration/environment/security/release sections and Session Handoff. These are coordinator responsibilities, not optional references.
A named effort that spans one or more projects, repositories, services, environments, or stakeholder-facing outcomes.
Example:
Keon RC Integration Readiness
The slice of an initiative owned by one repo, service, app, deployment unit, or documentation/evidence area.
Examples:
keon-systems-web
Keon.MCPGateway
Keon.Runtime
Keon.Cortex
Keon.Collective
Keon.Control
Deployment / Azure
Proof artifacts / docs
A contract boundary between two or more tracks.
Examples:
Public web proof page -> MCP Gateway live check
MCP Gateway -> Runtime governed execution
Runtime -> Cortex receipt write
Collective -> GovernedIntentHandoff
Control -> tenant/environment provisioning
One atomic unit of agent work inside a project track. A parcel has its own branch, worktree, spec, verification command, and acceptance criteria.
A parcel focused on proving or hardening behavior across project boundaries. It may add tests, harnesses, fixtures, config, scripts, or documentation, but should not casually implement unrelated features.
A checkable readiness condition that must pass before promotion, public launch, UAT, or production exposure.
A durable proof object such as a test report, receipt, manifest, screenshot, trace, verifier output, static fixture, deployment URL, PR link, or command transcript.
These are not guidelines. They are enforceable boundaries.
This methodology runs on two clocks. Conflating them produces bad plans.
Humans, reviewers, UAT windows, security scans, stakeholder ceremonies, and deployments move on human time.
Calendar-bound concepts:
These exist in calendar days and weeks because the humans and processes attached to them do.
Agent execution units measure work done, not days spent.
Execution-bound concepts:
Suggested targets:
A wave is done when its exit criteria are checkable as true, not when a duration expires.
Before repo discovery, decide whether this is Repo-Local Parcel Mode or Multi-Project Initiative Mode.
Ask:
If yes to any of these, use Multi-Project Initiative Mode.
Output:
# Initiative Classification
Mode: <Repo-Local Parcel Mode | Multi-Project Initiative Mode>
Reason:
Scope:
Primary tracks:
Primary integration surfaces:
Required gates:
Persistence required: <yes/no>
Before writing strategy or parcels, the coordinator inspects the target repo or project set to ground the methodology in real constraints.
Mandatory discovery items per repo:
AGENTS.md, CLAUDE.md, .cursor/rules, .windsurfrules, or repo-specific agent operating instructionspackage.json, Makefile, CI workflows, test scripts, lint scripts, typecheck commands, build commandsmain, develop, master, or release branchfeat/*, claude/*, codex/*, ticket prefixes, or repo conventionsOutput is a Repo Constraints section attached to the initiative or strategy doc.
For Multi-Project Initiative Mode, produce one Repo Constraints section per project track.
The coordinator writes a strategy document separate from any PR plan.
It establishes:
Recommended path:
docs/INITIATIVES/<initiative-id>/STRATEGY.md
For repo-local work, this may stay inside the repo.
For multi-project work, this should live in the coordinator workspace or the primary orchestration repo.
A single PR introduces the type definitions, fixtures, examples, and minimal tests for every contract the parallel work will build against.
Critical principles:
For Multi-Project Initiative Mode, contracts include:
After contracts merge, build one small end-to-end consumer to validate the abstraction before scaling out.
Examples:
If the spike reveals bad abstractions, fix the contracts before dispatching parallel work.
The cost of fixing a contract before five agents build against it is one PR.
The cost after is five PRs plus a contract amendment and rebase mess. That is how gremlins get a company badge.
Dispatch parallel waves in dependency order. Read and enforce The Hard Rules, Branch and Worktree Hygiene, Parcel Spec Template and Session Handoff for each parcel: these complete canonical sections govern its worktree, branch/current base/rebase, spec, exact allowed files, verification and handoff.
Maintain the Parcel Index Document, including status, dependencies, collision risk, assigned worktree/branch, PR, agent/session owner, verification and handoff state.
Once primitive parcels are merged, assembly parcels wire them together.
Assembly parcels usually touch shared integration files, so they sequence rather than parallelize.
For Multi-Project Initiative Mode, integration parcels validate cross-project behavior.
Integration parcels should define:
Hardening follows assembly and integration.
Hardening areas:
This phase should not become a feature expansion swamp. If hardening reveals missing product functionality, create a new parcel or new initiative.
In Multi-Project Initiative Mode, produce these artifacts:
docs/INITIATIVES/<initiative-id>/
STRATEGY.md
TRACKS.md
INTEGRATION-SURFACES.md
SCENARIOS.md
ENVIRONMENTS.md
SECURITY-GATES.md
RELEASE-GATES.md
EVIDENCE.md
DECISIONS.md
RISKS.md
SESSION-HANDOFFS.md
PARCELS.md
If a persistence layer is used, these markdown files may be generated views. The database remains the source of operational truth.
Markdown is reviewable state, not durable operational state.
For multi-session or multi-project work, maintain a local coordinator database. SQLite is the default unless the initiative requires shared multi-user access.
Recommended local structure: .coordinator/coordinator.db, .coordinator/initiative.config.json, and .coordinator/generated/ containing all filenames in Multi-Project Initiative Artifacts. Read that complete list when creating or regenerating these views.
The database tracks initiatives, projects, repositories, tracks, integration surfaces, contracts, parcels, parcel dependencies, worktrees, branches, pull requests, verification runs, integration scenarios, scenario runs, decisions, risks, blockers, security findings, release gates, evidence artifacts, agent sessions, and session handoffs.
Schema: The canonical SQLite schema is defined and owned by the
initiative-coordinationskill. Parcel-driven-development extends the base schema with theparcelsandparcel_dependenciestables below. Use IC's base schema as the starting point and add these tables alongside it.
-- PDD-specific tables (add to the IC base schema)
CREATE TABLE parcels (
id TEXT PRIMARY KEY,
initiative_id TEXT NOT NULL,
project_id TEXT NOT NULL,
track_id TEXT,
wave TEXT NOT NULL,
name TEXT NOT NULL,
branch TEXT NOT NULL,
worktree_path TEXT NOT NULL,
status TEXT NOT NULL,
collision_risk TEXT NOT NULL,
pr_url TEXT,
assigned_agent TEXT,
FOREIGN KEY (initiative_id) REFERENCES initiatives(id),
FOREIGN KEY (project_id) REFERENCES projects(id),
FOREIGN KEY (track_id) REFERENCES tracks(id)
);
CREATE TABLE parcel_dependencies (
parcel_id TEXT NOT NULL,
depends_on_parcel_id TEXT NOT NULL,
PRIMARY KEY (parcel_id, depends_on_parcel_id),
FOREIGN KEY (parcel_id) REFERENCES parcels(id),
FOREIGN KEY (depends_on_parcel_id) REFERENCES parcels(id)
);
The schema is intentionally boring. Boring persistence is good. The coordinator does not need a cathedral. It needs a ledger.
Canonical definition: The full integration surface template — including producer, consumer, contract, positive/negative/failure scenarios, auth boundary, data classification, required evidence, environment coverage, security gate status, and release blocking fields — is defined and owned by the
initiative-coordinationskill.When filling out an integration surface in a PDD initiative, use the template from IC. PDD parcels reference surface IDs; they do not redefine the surface structure.
Canonical definition: The integration scenario matrix — including scenario ID, tracks, surface, environment, positive/negative type, required evidence, and status — is defined and owned by the
initiative-coordinationskill (Phase 2: Contract and Scenario Planning).PDD's parcel specs reference scenario IDs. PDD does not maintain a separate scenario matrix schema.
Canonical definition: The environment readiness matrix — including environment, purpose, required scenarios, deployment, secrets realm, and status — is defined and owned by the
initiative-coordinationskill.Key rules (from IC): local passing does not imply staging passing; staging passing does not imply production safety; production release requires explicit release gates; tenant and environment/data realm must be tracked separately for tenant-aware systems.
This skill does not replace a security review skill. The security-review skill performs the actual analysis.
Canonical definition: The security gate template, gate map, security-sensitive surface list, and waiver rules are defined and owned by the
initiative-coordinationskill (Phase 5: Security and Release Gates).PDD's responsibility: parcel specs identify whether a security gate applies (
Security Gatefield in the parcel spec) and parcel agents produce any required security evidence. The gate itself is tracked in IC's gate map. A parcel with a security gate requirement cannot be considered release-ready until IC records the gate as passed.
Canonical definition: The release gate checklist, gate template, and gate vocabulary are defined and owned by the
initiative-coordinationskill (Phase 5: Security and Release Gates).PDD's responsibility: each parcel spec declares whether it is release-blocking (
Release Gatefield), and parcel agents must produce the required evidence before a gate can be marked passing. PDD does not define gate structure; it supplies evidence to IC's gate checklist.
Parcels are nouns, not broad feature wishes.
Good parcel types:
These are features, not parcels:
Every parcel file MUST use this structure.
# Parcel: <parcel-id>
## Goal
<One sentence. What this parcel produces.>
## Initiative
<initiative-id or n/a>
## Project Track
<repo/service/app/docs/deployment track>
## Wave
<W1 | W2 | W3 | Integration | Hardening | Release>
## Branch
<branch-prefix>/<wave>-<parcel-id>
## Worktree
<C:\Repos\<repo>.<parcel-id> or platform equivalent>
## Dependencies
- <parcel-id this parcel cannot start until merged>
## Integration Surfaces
- <surface-id or none>
## Security Gate
<none | gate-id | security review required before merge | security review required before release>
## Allowed Files
- <exact path>
- <exact path>
If a required file is not listed, stop and request a spec amendment before editing or creating it.
## Forbidden
- <Things the agent must NOT do, even if helpful>
- <Specifically call out integration files and adjacent surfaces>
## Out of Scope
<Explicit non-goals at the product level.>
Forbidden tells the agent where not to step. Out of Scope tells the reviewer what not to flag as missing.
## Existing Patterns To Follow
- <path/to/existing/example.tsx or equivalent> - <describe what to mirror>
## Contract
<Inline type signatures, prop interfaces, function signatures, API contract, schema, or links to the contracts PR>
## Required Tests
- <test file path or test behavior to verify>
If none, state: "No automated tests required. Manual verification required."
## Acceptance Criteria
- <Observable behavior>
- <Required output of verification step>
## Verification
- <Exact commands to run>
- <What success looks like>
## Evidence Required
- <test output>
- <screenshot>
- <receipt>
- <artifact path>
- <PR link>
## Collision Risk
<Low | Medium | High>
List files, surfaces, or parcels that could collide.
## PR Notes
- What changed: <one-line summary>
- Why: <pointer to strategy doc and/or parcel goal>
- Risk: <known risks introduced by this parcel>
- Verification: <how reviewer can verify beyond CI passing>
- Evidence: <artifact links or paths>
## Session Handoff
- Starting commit:
- Ending commit:
- Files changed:
- Commands run:
- Tests passed:
- Tests failed:
- Decisions needed:
- Blockers:
- Next safe action:
- Do not touch:
## Stop-and-Report Rule
If implementation requires a product decision not present in this spec, stop and report the decision needed.
If a required file is not in Allowed Files, stop and request a spec amendment before editing or creating it.
If the contract needs to change, stop and request a contract amendment.
If a security boundary is unclear, stop and request clarification before implementation.
<project-root>/docs/specs/INDEX.md is the project-local coordination board.
For multi-project initiatives, this can be generated from the coordinator database.
# Parcel Index: <Feature or Initiative Name>
## Status
| Parcel | Project | Wave | Status | Worktree | Branch | PR | Assignee |
|---|---|---|---|---|---|---|---|
| w1-contracts-ai-core | web | W1 | merged | n/a | merged | #N | Claude A |
| w1-thread-tabs | web | W1 | in-review | C:\Repos\repo.w1-thread-tabs | feat/w1-thread-tabs | #N | Claude B |
## Dependency Graph
w1-contracts-ai-core -> w1-thread-tabs
w1-contracts-ai-core -> w1-message-actions
w1-thread-tabs + w1-message-actions -> w2-wire-ai-drawer
## Collision-Risk Files
| File | Owning Parcels | Risk | Sequence |
|---|---|---|---|
| src/lib/ai-prompts/index.ts | w1-prompt-routing, w2-help-prompts-wire | high | serialized |
## Integration Surfaces
| Surface | Producer | Consumer | Contract | Status |
|---|---|---|---|---|
| web-proof-live-check | web | gateway | ProofLiveCheckRequest/Response | pending |
## Wave Status
W1:
- Parcels merged: X/N
- Exit criteria met: <yes/no/which-pending>
W2:
- Parcels merged: X/N
- Exit criteria met: <yes/no/which-pending>
Integration:
- Scenarios passing: X/N
- Blocking scenarios: <list>
## Contract Amendments
| Amendment | Contract | Affected Parcels | Status | Migration Note |
|---|---|---|---|---|
| ca-001 | AiCitation | w2-citation-renderer | proposed | none |
## Open Decisions Needed
- <Any parcels that hit the stop-and-report rule>
## Blockers
- <Current blockers>
## Evidence Index
| Evidence | Type | Parcel/Scenario | Path/Link | Status |
|---|---|---|---|---|
# From the main repo, ensure local <base-branch> is current with origin.
git fetch origin
git checkout <base-branch>
git pull --ff-only origin <base-branch>
# Create a worktree per active parcel.
git worktree add C:\Repos\<repo>.<parcel-id> -b <branch-prefix>/<wave>-<parcel-id> <base-branch>
Each agent works in its own directory.
Branch prefix and base branch are locked during discovery.
# Inside the parcel worktree, immediately before opening or updating the PR.
git fetch origin
git rebase origin/<base-branch>
# Resolve conflicts, rerun verification, then push.
Rules:
Serialization points are files or surfaces that many things import, route through, or depend on.
Examples:
When a parcel needs to touch a serialization point:
Contracts shipped in Phase 1 are stable by default. They are not immutable, but they cannot be changed silently.
Canonical template: The contract amendment template and full amendment workflow are defined and owned by the
initiative-coordinationskill (Contract Amendment Rule section).PDD-specific responsibility: parcel agents stop and report when a contract change is needed. The coordinator opens a contract amendment (using IC's template), and affected parcels pause until the amendment merges. PDD enforces the stop-and-report rule at the parcel level; IC owns the amendment record.
Agents do not edit approved contracts directly from parcel branches.
If a contract obviously needs to change, the agent stops and requests an amendment.
Every agent session that changes code, docs, config, contracts, or evidence must produce a session handoff.
Canonical template: The session handoff template is defined and owned by the
initiative-coordinationskill. Use IC's SESSION-HANDOFF template. PDD extends it with parcel-specific fields (Parcel,Tests Passed,Tests Failed) already present in IC's handoff schema.
The handoff is not a vibes recap. It is an operational baton pass.
The coordinator reviews each parcel against its spec.
Checklist:
A parcel that fails gets sent back with specific notes.
A parcel that passes gets merged quickly so downstream parcels can rebase.
Read and follow the complete corresponding phase before dispatch:
Read and enforce The Hard Rules, When Things Go Wrong, Branch and Worktree Hygiene, Persistence Layer and Environment Readiness Matrix. Together they prohibit scope expansion, silent contracts, fake integration passes, treating merged PRs as initiative completion, invisible security dependencies, chat-only state, unmodeled staging configuration/secrets/ingress/tenant/deployment assumptions, unsupported public claims, permanent integration branches and independent agent architecture negotiation.
For repo-local work, produce:
For multi-project initiatives, also produce:
Example initiative:
Initiative: Keon RC Integration Readiness
Goal:
Prove that the Keon public surfaces, Control cockpit, Collective cognition layer, MCP Gateway, Runtime, and Cortex work together across intended boundaries with security-relevant denial paths, receipt evidence, tenant/environment separation, and release-ready verification.
Primary tracks:
keon-systems-web
Keon.MCPGateway
Keon.Runtime
Keon.Cortex
Keon.Collective
Keon.Control
Deployment / Azure
Security review
Evidence / documentation
Primary integration surfaces:
Public web proof page -> MCP Gateway live check
MCP Gateway -> Runtime governed execute
Runtime -> Cortex receipt write/read
Collective -> GovernedIntentHandoff
Control -> tenant/environment provisioning
Public proof fixtures -> verifier/evidence contract
Primary release gates:
Contract map complete
Integration scenario matrix complete
Local integration passing
Staging integration passing
Security gates complete
Evidence pack/proof claims aligned
Tenant/environment separation verified
Production exposure reviewed
Release candidate approved
Example integration scenarios:
Live proof check denies unauthorized OpenClaw command
Gateway refuses malformed or unauthenticated request
Runtime denies unauthorized governed effect
Runtime writes denial receipt to Cortex
Cortex receipt can be retrieved/replayed without mutation
Collective produces handoff but cannot execute directly
Control provisions tenant environment without cross-realm data promotion
Public proof page does not claim live verification when static fixture is used
Before declaring completion, apply The Hard Rules and Review Workflow: contracts/constraints, durable state, actual integration evidence and evidence-backed release gates remain mandatory.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub m0r6an/agent-skills --plugin foreman-line4 skills in this plugin
/ai-councilConvene an independent multi-model council of dispatched Pi-session seats to audit, review, or judge something, then synthesize their verdicts into an actionable directive. Use whenever a task is judgment-heavy and benefits from independent perspectives — site/UX audits, code or architecture reviews, naming and copy decisions, strategy critiques, "is this good?" questions, red-teaming a plan, or any request mentioning "council", "ruthless analysis", "get multiple opinions", "what would other models say", or "audit this". Also use when a single-model answer risks blind spots the user will pay for. Do NOT use for mechanical tasks with one correct answer (renames, refactors, data transforms) — a council on those is waste./foreman-shapingRun a Foreman Line Stage A shaping session - turn a raw idea into linted parcel spec drafts plus a schema-valid ShapingResult handed forward to W1-P2. Use when a developer brings an idea that needs to be shaped into one or more dispatchable parcel specs before any build. Not for building a parcel (that is a builder session) and not for filling the Epic/Story tree (that is W1-P2)./goalBecome the long-running Coordinator for a development goal - carry a concept from ideation with the developer through a ratified plan, plan-level adversarial review, and the full parcel loop (builders, adversarial reviews, merges) until the goal's exit criterion is met. Use when a developer brings a feature or system concept that will decompose into multiple parcels, or to resume an existing goal. Not for single bug fixes or one-session tasks - use direct work or a single parcel for those.