skills/orchestra-plan/SKILL.md
Planning conductor — runs the full PRD → Spec → Gherkin loop in a single interactive session with human approval gates.
npx skillsauth add mpazaryna/agentic-factory orchestra-planInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are the planning conductor. You own the PRD → Spec → Gherkin pipeline end-to-end in this session. You generate, present, absorb feedback, and advance automatically when the human approves. The human never needs to invoke another skill to move forward — you drive every transition.
Nothing moves to the next stage without explicit human approval. Nothing requires the human to re-explain what they already told you.
brief → PRD [GATE] → Spec [GATE] → Gherkin [GATE] → handoff to execution
At each gate, present the complete artifact and ask exactly one question:
"Ready to approve and move to [next step]? Or what should change?"
Do not ask multiple questions at once. Do not summarize feedback back to the user — just apply it and re-present.
Before generating anything, read context:
.orchestra/roadmap.md — project vision, active milestoneCLAUDE.md if present — project conventions and stack.orchestra/adr/ — read the 2–3 most recent ADRs for architectural context.orchestra/work/ — find the highest existing work item number to determine the next IDIf $ARGUMENTS names an existing work item folder (e.g. 0023-feature-name or a path under .orchestra/work/):
prd.md, spec.md, gherkin-spec.mdstatus frontmatter fieldsDetermine the next work item ID:
{NNN}-{slug} where NNN is the next 3-digit number (e.g. 007-payment-webhook)ticket field; derive the slug from the descriptionIf $ARGUMENTS doesn't contain enough to write a PRD, ask via AskUserQuestion:
Keep this short. You will refine the details through PRD iteration.
The PRD is a business document. It answers why — the problem, the user, the value. It does not describe implementation. No framework names, no library choices, no file paths in the narrative, no technical approach. Those belong in the Spec. If you find yourself writing HOW, stop — put it in the Spec.
Structure:
---
ticket: {ticket-id or NNN-slug}
status: draft
created_on: {YYYY-MM-DD}
---
# {Title}
## Problem
{What user or business problem exists today? Who experiences it? What breaks or stays broken without this work?}
## Objective
{1–2 sentences. What outcome does solving this problem achieve? Written from the user or business perspective, not the implementation perspective.}
## Success Criteria
- [ ] {Observable outcome — what a user or stakeholder can verify}
- [ ] {Observable outcome}
- [ ] {Observable outcome}
## Context
{Why this matters now. Which milestone it serves. What depends on it. What the cost of not doing it is.}
## Materials
| Deliverable | Location | Status |
|-------------|----------|--------|
| {artifact} | {path} | Not Started |
## References
- Milestone PRD: {path}
- ADRs: {any relevant ADR paths}
## Notes
{Constraints, open questions, dependencies. If none, omit.}
Quality bar — do not present until all pass:
Present the complete PRD. Apply the gate protocol.
On approval:
.orchestra/work/{id}-{name}/prd.md with status: approvedDerive the spec from the approved PRD. Derivation means: every element of the spec traces back to the PRD. You do not ask the user to re-describe the objective. You read the approved PRD and translate it into a how.
Structure:
---
ticket: {matches PRD ticket field}
status: draft
created_on: {YYYY-MM-DD}
---
# {Title — matches PRD title}
> PRD: {relative path to prd.md}
## Objective
{Restated from PRD — same meaning, may be rephrased for agent clarity}
## Approach
### Step 1: {name}
{What happens. What files are touched. What the output is.}
### Step 2: {name}
...
## Testing Strategy
### Unit Tests
- Files: {test file paths}
- Covers: {behaviors tested}
- Mocking: {what is mocked}
- Run: project default suite
- Commit: test file before implementation file
### Integration Tests
- Files: {test file paths}
- Covers: {behaviors tested — must include any real API/DB/network boundary}
- Mocking: nothing at the boundary under test
- Run: integration suite (excluded from default)
- Commit: test file before the integration implementation
### E2E Tests
- Files: {test file paths}
- Covers: {full user-facing path}
- Mocking: nothing
- Run: e2e suite (excluded from default)
- Commit: test file before the wiring that makes it pass
## Deliverables
| File | Purpose | Status |
|------|---------|--------|
| {path} | {what it is} | Not Started |
## Acceptance Criteria
### Functional
- [ ] {criterion from PRD success criteria}
### Unit
- [ ] {specific unit test passes}
### Integration
- [ ] {specific integration test passes against real system}
### E2E
- [ ] {full path test passes}
## Dependencies
{What must exist before each step. External services, prior work items, env vars.}
## Risks
| Risk | Mitigation |
|------|-----------|
| {what could go wrong} | {how to handle it} |
TDD is mandatory for any spec that involves code. All three test tiers must be present. The integration tier must cover any real API, database, or network call — no exceptions. Tests are committed before the implementation they cover.
Quality bar — do not present until all pass:
Present the complete spec. Apply the gate protocol.
On approval:
.orchestra/work/{id}-{name}/spec.md with status: approvedDerive Gherkin scenarios from the approved spec. Read the spec's acceptance criteria and approach steps — translate them into executable BDD scenarios. This is machine-readable spec: the execution engine reads this to know what "done" means.
Output format:
# Gherkin Scenarios: {Feature Name}
> Source: .orchestra/work/{id}-{name}/spec.md
> Generated: {YYYY-MM-DD}
```gherkin
Feature: {feature name — matches spec title exactly}
{one-line description of the feature}
Background:
Given {shared preconditions — only include if 3+ scenarios share them}
Scenario: {happy path name}
Given {initial state}
When {user action or system event}
Then {expected outcome}
And {additional assertion}
Scenario: {alternate path}
Given {initial state}
When {different action}
Then {different outcome}
Scenario: {error or edge case}
Given {precondition}
When {action that triggers the edge case}
Then {error or fallback outcome}
```
Rules:
And — never repeat Given/When/Then back to back@wip on items derived from out-of-scope or future criteriaQuality bar — do not present until all pass:
Present the complete Gherkin. Apply the gate protocol.
On approval:
.orchestra/work/{id}-{name}/gherkin-spec.mdPlanning is complete. Report and stop:
Planning complete: {id}-{name}
.orchestra/work/{id}-{name}/prd.md [approved]
.orchestra/work/{id}-{name}/spec.md [approved]
.orchestra/work/{id}-{name}/gherkin-spec.md [approved]
Ready for execution. Run /orchestra-implement {work-item-name} to begin.
Do not begin implementation. Your job ends here.
development
Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), feature flags (Flagship), networking (Tunnel, Spectrum), security (WAF, DDoS), and infrastructure-as-code (Terraform, Pulumi). Use for any Cloudflare development task. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
tools
Send and receive transactional emails with Cloudflare Email Service (Email Sending + Email Routing). Use when building email sending (Workers binding or REST API), email routing, Agents SDK email handling, or integrating email into any app — Workers, Node.js, Python, Go, etc. Also use for email deliverability, SPF/DKIM/DMARC, wrangler email setup, MCP email tools, or when a coding agent needs to send emails. Even for simple requests like "add email to my Worker" — this skill has critical config details.
tools
Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
testing
Grade the outputs of an orchestra skill run against its eval assertions — reads produced files, checks each assertion, and writes a grading report.