Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions e2e/tests/test_init_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def test_default_global_init_deploys_expected_artifacts(cli):
assert "new → designed → planned → implemented" in skill_content
assert "Statuses describe content maturity" in skill_content
assert "Section Guide routing" in skill_content
assert "Do not stop at an intermediate status" in skill_content
for filename in SKILL_SECTION_FILES:
assert (skills_dir / "zest-dev" / filename).exists()

Expand All @@ -105,30 +106,33 @@ def test_default_global_init_deploys_expected_artifacts(cli):
assert "Grilling Design Approach" in design_guide
assert "`grilling`" in design_guide
assert "`domain-modeling`" in design_guide
assert "actively test for underspecified scope" in design_guide
assert "synthesize one recommended design by default" in design_guide
assert "Use Change Scope as two complementary views" in design_guide
assert "a source supports the factual premise, not the normative choice itself" in design_guide
assert "resolve ambiguities that materially affect" in design_guide
assert "one recommended design" in design_guide
assert "Impact Areas:" in design_guide
assert "Planned File Changes:" in design_guide
assert "A source supports a premise" in design_guide
assert "### E2E Acceptance Gate (EAG)" in design_guide
assert "If no automated end-to-end gate exists, state that there is no EAG." in design_guide
assert "state that there is no EAG" in design_guide
assert "one-time, Spec-local acceptance step" in design_guide
assert "## Deferred Follow-Ups (DFU)" in design_guide

plan_guide = (skills_dir / "zest-dev" / "plan.md").read_text(encoding="utf-8")
assert "Use the slicing spirit of Matt Pocock's registered `to-tickets` skill as a reference for scale and sequencing." in plan_guide
assert "`to-tickets`" in plan_guide
assert "Do not create GitHub issues or external issue-tracker entries unless the user explicitly asks for that." in plan_guide
assert "Do not use markdown checkboxes in `## Plan`." in plan_guide
assert "Prefer boundaries around a user-visible workflow" in plan_guide
assert "Do not use `HITL` merely because the output is documentation" in plan_guide
assert "tracer-bullet slices" in plan_guide
assert "documentation alone is not HITL" in plan_guide
assert "Add or update `spec.md` → `## Progress` with a thin progress checklist:" in plan_guide
assert "EAG Validation ticket" in plan_guide

implementation_guide = (skills_dir / "zest-dev" / "implementation.md").read_text(encoding="utf-8")
assert "use the registered `tdd` skill" in implementation_guide
assert "`tdd`" not in implementation_guide
assert "tests relevant to changed behavior" in implementation_guide
assert "If required evidence, configuration, credentials, or a consequential Design decision is missing" in implementation_guide
assert "Use `implementation.md` as the implementation-notes source of truth" in implementation_guide
assert "information value, not Plan-ticket symmetry" in implementation_guide
assert "information value rather than Plan-ticket symmetry" in implementation_guide
assert "Record a material Deviation when it becomes known" in implementation_guide
assert "reconcile every material Deviation with the Design Decisions, Plan, and EAG" in implementation_guide
assert "reconcile it with the Design Decisions, Plan, and EAG" in implementation_guide
assert "`## Progress` checkbox as `[x]`" in implementation_guide
assert "Design Phase" not in implementation_guide

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zest-dev",
"version": "1.0.13",
"version": "1.0.14",
"description": "A lightweight, human-interactive development workflow for AI-assisted coding",
"author": {
"name": "nettee",
Expand Down
61 changes: 12 additions & 49 deletions skills/zest-dev/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,60 +1,28 @@
---
name: zest-dev
description: Use for creating, designing, planning, implementing, or continuing a Zest Dev Spec, including lightweight and grilling-based design workflows.
version: 0.1.0
description: Create and advance Zest Dev Specs through overview, design, planning, and implementation, using lightweight or grilling design workflows.
---

# Zest Dev

## Purpose
Zest Dev is a lightweight, human-interactive workflow for spec-driven development. New-format Specs progress through `new → designed → planned → implemented`.

Zest Dev is a lightweight, human-interactive workflow for spec-driven development. It owns Spec lifecycle and recording contracts; specialized skills may own how particular judgments or implementation work are performed.
## Invariants

New-format Specs progress through `new → designed → planned → implemented`.
- Use the user's language for conversation and prose artifacts while preserving code, commands, quotations, and established terminology.
- Use the `zest-dev` CLI to create, activate, and update Specs. Never create Spec files or edit frontmatter manually.
- Statuses describe content maturity. After completing a Section Guide's contract, immediately run `zest-dev update active designed|planned|implemented` as appropriate.
- Treat Specs with unsupported statuses or content structures as invalid input; do not migrate or reinterpret them.
- Keep the Spec as the concise, durable record of material facts, decisions, constraints, evidence gaps, acceptance behavior, Plan Tickets, deviations, and representative verification.
- Before changing Spec content, read the active Spec and the repository sources material to that content.
- Infer the requested outcome and continue until its content contract is satisfied. Do not stop at an intermediate status unless it fulfills that outcome; ask only about consequential choices that available facts cannot resolve.

## Shared invariants

### Language

- Use the user's current language for conversation and prose artifacts.
- Preserve code identifiers, commands, quoted text, and established project terminology in their original form.

### CLI boundaries

- Use the `zest-dev` CLI to create, activate, and update Specs.
- Never create Spec files manually or edit frontmatter manually.
- Valid statuses are `new`, `designed`, `planned`, and `implemented`.
- Statuses describe content maturity, not which activities have run.
- Advance status only after its content contract is complete: move to `designed` only after the Designed Contract is satisfied, to `planned` only after the Planned Contract is satisfied, and to `implemented` only after the Implemented Contract is satisfied.
- Use `zest-dev update active designed|planned|implemented` immediately after completing the corresponding contract so frontmatter matches the finished artifacts.
- Treat old Specs with unsupported statuses or content structures as invalid input; do not migrate or reinterpret them.

### Recording discipline

- Keep the Spec as the durable record of required facts, decisions, constraints, caveats, evidence gaps, acceptance behavior, Plan Tickets, implementation deviations, and representative verification.
- Remove repetition, generic background, and implementation detail that does not change the contract.
- Keep Research Findings descriptive and source-backed.
- Keep Design Decisions normative, with rationale and trade-offs separated from their factual premises.
- Before writing or deciding, read the active Spec and the repository files that materially affect the current content.

### Acceptance-gate scope

Treat EAG (E2E Acceptance Gate) as a one-time, Spec-local acceptance step. Keep its harness, command, environment variables, and evidence collection temporary or inside the Spec; do not promote them into repository-wide scripts, CLI commands, product concepts, or general documentation unless the user explicitly requests a reusable capability. After acceptance, remove temporary EAG artifacts while preserving the result in the Spec.

### Continuation

- Infer the user's requested outcome and continue until its content contract is satisfied.
- Do not introduce mandatory pauses, hand-offs, or next-step suggestions between content areas.
- Reaching a status ends the workflow only when it satisfies the user's requested outcome.
- Ask only about consequential choices that cannot be established from available facts.

## Design Approach routing
## Design routing

- Use the Lightweight Design Approach by default.
- Use the Grilling Design Approach when the user explicitly requests grilling or `grill-with-docs`.
- When multiple consequential decisions depend on one another, recommend the Grilling Design Approach and use it only after the user accepts.
- For the Grilling Design Approach, use the registered `grilling` and `domain-modeling` skills directly. Do not duplicate their interview, glossary, scenario-testing, or ADR rules here.
- Both approaches must satisfy the same Design content contract and reach the same Designed Status.
- The Grilling Design Approach composes the registered `grilling` and `domain-modeling` skills. Both approaches satisfy the same Designed Contract.

## Section Guide routing

Expand All @@ -64,8 +32,3 @@ Read the guides for the Spec content involved in the user's requested outcome:
- `design.md`: Design Section and Design Record contracts, including both Design Approaches.
- `plan.md`: Plan and Progress contracts using Spec-local tracer-bullet tickets.
- `implementation.md`: Progress execution and Implementation File contract.

## Guardrails

- Do not hardcode platform-specific agent handles in workflow text.
- Refer to registered skills by name and generic roles such as explorer, architect, or reviewer.
63 changes: 15 additions & 48 deletions skills/zest-dev/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,75 +10,45 @@ Designed Status requires mutually consistent content across:
- `design.md` → `## Design Decisions`;
- `spec.md` → `## Deferred Follow-Ups (DFU)`.

The contract defines one reviewable implementation boundary and how its user- or system-visible behavior will be verified.
Together these define one reviewable implementation boundary and how its visible behavior will be verified.

## Design Approaches

### Lightweight Design Approach

Use this approach by default. Gather only the evidence needed for material premises, resolve only consequential choices, and synthesize the complete Designed Contract without an intensive interview.
Use this by default. Gather evidence for material premises and resolve consequential choices without an intensive interview.

### Grilling Design Approach

Use the registered `grilling` and `domain-modeling` skills directly. Their rules own the one-question-at-a-time interview, shared-understanding gate, terminology refinement, scenarios, and selective ADR capture.
Use the registered `grilling` and `domain-modeling` skills for the interview, shared-understanding gate, terminology, scenarios, and selective ADR capture. Record confirmed findings and decisions as they emerge; complete Summary and EAG after shared understanding.

During the discussion:

- look up discoverable facts instead of asking the user;
- write confirmed Research Findings and Design Decisions incrementally;
- keep unresolved decisions explicit;
- complete Summary and EAG only after shared understanding.

Before finalizing either approach:

- actively test for underspecified scope, edge cases, contracts, compatibility, testing, and rollout concerns;
- resolve only choices that materially affect the implementation boundary;
- synthesize one recommended design by default instead of leaving equivalent alternatives unresolved.
Before marking either approach designed, resolve ambiguities that materially affect scope, contracts, compatibility, verification, or rollout, and synthesize one recommended design unless the user asks to preserve alternatives.

## Research Findings

Research Findings are the descriptive part of the Design Record. Include only findings that materially inform the design:
Research Findings are the descriptive part of the Design Record. Include only material facts about:

- Existing System;
- Design Inputs;
- Constraints & Dependencies;
- source conflicts, evidence gaps, and labelled inferences;
- Key References when inline citations would become noisy.

Rules:
- conflicts, evidence gaps, and labelled inferences.

- Cite every factual claim inline or immediately adjacent to it.
- Valid sources include code (`path/to/file:line`), database artifacts, documentation paths or sections, and URLs.
- Label inference separately and cite the facts it depends on.
- State source conflicts and missing evidence instead of silently choosing or assuming.
- Use the smallest representative citations and group same-file references.
- Do not rank alternatives or recommend choices in Research Findings.
Cite factual claims with representative code locations, artifacts, documentation, or URLs. Label inferences and their supporting facts. Keep recommendations and alternative ranking out of Research Findings.

## Design Decisions

Design Decisions are the normative part of the Design Record. Record decisions that materially affect behavior, contracts, architecture boundaries, compatibility, rollout, or verification.
Design Decisions are the normative part of the Design Record. Record material choices about:

Content may include:

- decisions with rationale and trade-offs;
- System Structure or Procedure;
- Interfaces / APIs;
- Change Scope with Impact Areas and Planned File Changes;
- Edge Cases;
- Verification Strategy.
- system structure or procedure;
- interfaces and APIs;
- change scope, edge cases, rollout, and verification.

Use Change Scope as two complementary views:

- Impact Areas: affected modules, schema or data, architecture boundaries, API contracts, compatibility constraints, generated artifacts, and rollout impact;
- Planned File Changes: concrete files or directories expected to change and the purpose of each change.

For each decision:

- cite the factual premises that materially support it;
- distinguish sourced premises from the normative choice: a source supports the factual premise, not the normative choice itself;
- preserve unresolved evidence gaps or source conflicts;
- prefer Mermaid when structured relationships need a diagram;
- keep execution sequencing in the Plan.
Give each decision its rationale and trade-offs, citing the factual premises that support it. A source supports a premise, not the normative choice itself. Preserve unresolved evidence gaps or conflicts, and keep execution sequencing in the Plan.

## Main Spec review content

Expand All @@ -88,13 +58,10 @@ Summarize the chosen approach, boundary, and rationale without reproducing the D

### E2E Acceptance Gate (EAG)

Write:

- Acceptance behavior: the end-to-end user- or system-visible behavior that must be true.
- Verification path: the command, workflow, or automated check that proves it.
State the end-to-end user- or system-visible acceptance behavior and the command, workflow, or automated check that proves it. Prefer one small reviewer-facing automated gate; do not substitute unit tests, a manual checklist, or a broad case list. If no automated end-to-end gate exists, state that there is no EAG.

Use a small, preferably single, reviewer-facing automated gate. Do not substitute unit tests, a manual checklist, or a broad case list. If no automated end-to-end gate exists, state that there is no EAG.
EAG is a one-time, Spec-local acceptance step. Keep its harness, configuration, and evidence temporary or inside the Spec unless the user requests a reusable capability.

### Deferred Follow-Ups (DFU)

Write concise deferred items or `None.` Add an item only when the user explicitly defers it or confirms a discovered functional gap. Do not place current-Spec work, Documentation Sync, or Progress items in DFU.
Write concise deferred items or `None.` Add an item only when the user explicitly defers it or confirms a discovered functional gap. Exclude current-Spec work, Documentation Sync, and Progress items.
18 changes: 7 additions & 11 deletions skills/zest-dev/implementation.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,36 @@ Implemented Status requires:
## Plan Ticket execution

- Use `spec.md` → `## Progress` to identify the first incomplete ticket, then read that ticket, its dependencies, and the relevant Design contract.
- Read only the Research Findings and repository sources that materially affect current work.
- Implement against the Plan, Design Decisions, and repository conventions.
- Write or update tests with the implementation.
- When test-driven development fits, use the registered `tdd` skill and its red-green-refactor loop.
- Read only the Research Findings and repository sources material to the ticket, then implement against the Plan, Design Decisions, and repository conventions.
- Run the Spec-defined EAG and tests relevant to changed behavior. Broaden verification only when failures, risk, or unresolved evidence justify it.
- Mark the corresponding `spec.md` → `## Progress` checkbox as `[x]` only when the ticket and its relevant tests are complete.
- If required evidence, configuration, credentials, or a consequential Design decision is missing, fail observably instead of guessing or marking partial work successful.

## Implementation File

Use `implementation.md` as the implementation-notes source of truth. Organize it by information value, not Plan-ticket symmetry.
Use `implementation.md` as the implementation-notes source of truth. Organize it by information value rather than Plan-ticket symmetry.

### Outcome

Summarize the final implementation state in one to three concise bullets without repeating the Plan.
Summarize the final state in one to three concise bullets without repeating the Plan.

### Deviations

Record only material differences between the Spec and implementation reality that create a durable invariant, risk, decision, or attention point. Use:
Record only differences that create a durable invariant, risk, decision, or attention point. Use:

- Title: the rule or watch point future work must preserve.
- `Current behavior`: the implemented resolution.
- `Deviation`: what the Spec expected differently.
- `Attention`: where future work must take care.
- `Evidence`: representative code, test, or runtime evidence.

Record a material Deviation when it becomes known and preserve it after reconciliation. When implementation completes with none, write `None found.`

Before final verification, reconcile every material Deviation with the Design Decisions, Plan, and EAG. Preserve the Deviation as implementation evidence after updating the affected Spec content.
Record a material Deviation when it becomes known. Before final verification, reconcile it with the Design Decisions, Plan, and EAG, then preserve it as implementation evidence. When none exist, write `None found.`

Do not add new DFU items during implementation. A newly discovered deferred boundary requires revising the Design and confirming it with the user.

### Verification

Record representative final gates and results, not repetitive per-ticket command history.
Record representative final gates and results, not per-ticket command history. Remove temporary EAG artifacts after acceptance while preserving the result here.

### Spec Retrospective

Expand Down
Loading
Loading