From b2ae3da5df8b89072fa9fad70cff2c09e91aa17a Mon Sep 17 00:00:00 2001 From: nettee Date: Mon, 14 Sep 2026 17:08:43 +0800 Subject: [PATCH 1/2] refactor(skill): streamline zest-dev for Astra --- e2e/tests/test_init_deployment.py | 26 +++++++------ skills/zest-dev/SKILL.md | 61 ++++++------------------------ skills/zest-dev/design.md | 63 ++++++++----------------------- skills/zest-dev/implementation.md | 18 ++++----- skills/zest-dev/overview.md | 12 ++---- skills/zest-dev/plan.md | 27 ++++--------- 6 files changed, 61 insertions(+), 146 deletions(-) diff --git a/e2e/tests/test_init_deployment.py b/e2e/tests/test_init_deployment.py index 60b0ffc..527c59f 100644 --- a/e2e/tests/test_init_deployment.py +++ b/e2e/tests/test_init_deployment.py @@ -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() @@ -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 diff --git a/skills/zest-dev/SKILL.md b/skills/zest-dev/SKILL.md index 07ef7ea..f8ddfdd 100644 --- a/skills/zest-dev/SKILL.md +++ b/skills/zest-dev/SKILL.md @@ -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 @@ -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. diff --git a/skills/zest-dev/design.md b/skills/zest-dev/design.md index eab32ef..0fb1149 100644 --- a/skills/zest-dev/design.md +++ b/skills/zest-dev/design.md @@ -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 @@ -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. diff --git a/skills/zest-dev/implementation.md b/skills/zest-dev/implementation.md index afbc72b..cf098db 100644 --- a/skills/zest-dev/implementation.md +++ b/skills/zest-dev/implementation.md @@ -13,24 +13,22 @@ 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. @@ -38,15 +36,13 @@ Record only material differences between the Spec and implementation reality tha - `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 diff --git a/skills/zest-dev/overview.md b/skills/zest-dev/overview.md index 7db4452..e22fd86 100644 --- a/skills/zest-dev/overview.md +++ b/skills/zest-dev/overview.md @@ -2,9 +2,7 @@ ## Overview content contract -The Main Spec File's `## Overview` makes the requested change reviewable without inventing missing detail. - -It captures the known: +The Main Spec File's `## Overview` makes the requested change reviewable without inventing missing detail. Capture the known: - problem and motivation; - desired outcome; @@ -12,14 +10,12 @@ It captures the known: - constraints; - success criteria. -Include only sections that add information. +Include only content that adds information. ## New Spec requirements -- Create the Spec with `zest-dev create ` and activate it with `zest-dev set-active `. -- Derive a concise human-readable name and kebab-case slug from the requirement. -- Read the generated Spec before editing it. -- Use only information provided by the user or explicitly confirmed. +- Derive a concise human-readable name and kebab-case slug, then run `zest-dev create ` and `zest-dev set-active `. +- Read the generated Spec and use only provided, discovered, or explicitly confirmed information. - Resolve only missing information that prevents a meaningful Overview. New Status means the Overview exists but the complete Designed Contract has not yet been satisfied. diff --git a/skills/zest-dev/plan.md b/skills/zest-dev/plan.md index 0346cd1..138bdc0 100644 --- a/skills/zest-dev/plan.md +++ b/skills/zest-dev/plan.md @@ -11,16 +11,11 @@ Planned Status requires: ## Ticket slicing -- Use the slicing spirit of Matt Pocock's registered `to-tickets` skill as a reference for scale and sequencing. +- When available, use the registered `to-tickets` skill as the reference for scale and sequencing. - Write Spec-local Plan Tickets. Do not create GitHub issues or external issue-tracker entries unless the user explicitly asks for that. -- Prefer thin tracer-bullet vertical slices that are independently meaningful and verifiable. -- Avoid horizontal splits by schema, backend, UI, docs, or tests unless that layer is genuinely the whole change. -- Keep each ticket within one focused coding-agent session. -- Prefer boundaries around a user-visible workflow, subsystem integration boundary, migration or rollout step, or stabilization milestone. -- Capture genuine blocking dependencies. -- Use `AFK` when an agent can complete the ticket from the Spec and repository context. -- Use `HITL` only when continuing requires human judgment, human-only or dangerous execution, or human validation. -- Do not use `HITL` merely because the output is documentation, a runbook, an operator procedure, or a workflow that people will execute later. +- Prefer independently meaningful, verifiable tracer-bullet slices that fit one focused agent session. Split around visible workflows, integration boundaries, migrations, rollout, or stabilization instead of technical layers unless one layer is the entire change. +- Record genuine blocking dependencies. +- Use `AFK` when the Spec and repository provide enough context. Use `HITL` only for required human judgment, human-only or dangerous execution, or human validation; documentation alone is not HITL. ## Plan Ticket format @@ -34,19 +29,15 @@ Scope: Depends on: ``` -Add acceptance criteria only when needed to remove ambiguity. +Add acceptance criteria only to remove material ambiguity. ## EAG Validation -- Place this ticket after functional work and before Documentation Sync. -- Reuse the Design Section's acceptance behavior and verification path without redefining them. -- When the Design says there is no EAG, confirm that fact and use the best Spec-defined validation. +Place this ticket after functional work and before Documentation Sync. Reuse the Design Section's acceptance behavior and verification path; if there is no EAG, confirm that fact and use the best Spec-defined validation. ## Documentation Sync -- Include this final ticket when implementation may affect documented behavior or workflows. -- Name the documentation areas to re-evaluate after behavior is final. -- Do not automatically add glossary or ADR work unless the change genuinely requires it. +Include this final ticket when implementation may affect documented behavior or workflows. Name the areas to re-evaluate after behavior is final; add glossary or ADR work only when the change requires it. ## Progress Checklist @@ -56,6 +47,4 @@ Add or update `spec.md` → `## Progress` with a thin progress checklist: - [ ] Ticket N (AFK|HITL): Title ``` -- Mirror Plan Ticket titles exactly. -- Keep each item to the title only. -- Exclude DFU items. +Mirror Plan Ticket titles exactly, keep each item to the title, and exclude DFU items. From cac755b73aa924a65dd35ab0bf71ad5f8b906a87 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 09:15:02 +0000 Subject: [PATCH 2/2] ci: auto bump patch version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d548c4c..c099efc 100644 --- a/package.json +++ b/package.json @@ -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",