sdd-refine

Generates plan, scenarios, tasks, and spec-delta artifacts from a cycle request before human approval.

1|Updated Jul 26, 2026
One-click install
npx skills add https://github.com/AngeloResplandes/harness-sdd --skill sdd-refine-angeloresplandes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sdd-refine
Source: https://github.com/AngeloResplandes/harness-sdd/tree/main/sdd-refine
Command: npx skills add https://github.com/AngeloResplandes/harness-sdd --skill sdd-refine-angeloresplandes

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve? Turning a loose feature request into code without a reviewable plan leads to expensive rework. This Skill converts a cycle's request.md into four reviewable artifacts — plan.md, scenarios.feature, tasks.md, and spec-delta.md — and stops at a human approval gate before any code is written. ## Core Features & Use Cases - Single-round clarification: Reads the request, capability constraints, canonical spec docs, and existing code first, then asks every remaining question in one grouped, numbered message. - Four-artifact drafting: Produces a delta-style plan with a TDD strategy field, business-level Gherkin scenarios, a RED-GREEN-REFACTOR triad task checklist sized Small/Medium/Large, and a proposed spec-delta that is never applied directly to spec/. - Approval gate with confirmation: Ends by asking the human to confirm the two or three most consequential decisions, then records status: approved and approved_at in plan.md frontmatter. - Use Case: A developer says "refina o ciclo" after opening a cycle for a patient episode timeline; the Skill reads the spec and code, asks one consolidated question round, drafts the four artifacts, and waits for explicit approval before implementation begins. ## Quick Start Say "refina o ciclo" after your cycle folder contains a request.md, then review the four generated artifacts and confirm the listed decisions to approve the plan.

Frequently Asked Questions about sdd-refine

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I turn a feature request into a reviewable implementation plan?

Place a request.md in a cycle folder and invoke the refine phase. It reads the request, capability constraints, spec docs, and code, asks all open questions in one message, then drafts plan.md, scenarios.feature, tasks.md, and spec-delta.md for your review.

What is a RED-GREEN-REFACTOR triad task checklist?

Each observable behavior gets three checklist lines: a RED task naming the rule and expected failure, a GREEN task for the minimal passing change, and a REFACTOR task that is never omitted. Small and Medium cycles use a flat triad list; Large cycles group triads under Stage sections.

How do I write Gherkin scenarios that describe behavior not implementation?

Write scenarios answering what the user experiences, never how it is built — a scenario should survive a complete rewrite of the implementation. Cover the happy path, empty state, failure state, and permission boundaries, typically 5 to 12 scenarios for a Medium cycle.

When should a cycle use tdd: caracterizacao instead of estrito?

Use caracterizacao when the cycle touches existing code with no test coverage: first pin current behavior in a golden-master test, then refactor. The default estrito requires every new behavior to be born from a failing test; dispensado requires a written justification.

Why does the refine phase stop before writing any code?

The human approval gate is the only review point where changes are cheap — fixing a 40-line plan costs far less than fixing implemented code. The Skill records status: approved and approved_at in plan.md frontmatter so the approval survives across sessions.

What happens if capability.md is missing when refining a cycle?

The Skill classifies the cycle size itself as a fallback and says so explicitly. If the cycle looks Large, it notes that the capability phase would normally have run first and offers to run it before drafting the plan.