define-spec

Convert raw engineering ideas into structured specifications with PITER classification and acceptance criteria.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/CleanExpo/Pi-Dev-Ops --skill define-spec
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: define-spec
Source: https://github.com/CleanExpo/Pi-Dev-Ops/tree/main/skills/define-spec
Command: npx skills add https://github.com/CleanExpo/Pi-Dev-Ops --skill define-spec

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes ambiguity from raw engineering ideas by converting them into a structured, build-ready specification with clear scope, acceptance criteria, and constraints.

Core Features & Use Cases

  • PITER classification: Labels the idea as hotfix, bug, chore, spike, or feature to set the expected intent and delivery shape.
  • Deterministic spec output: Produces a spec.md containing Summary, Goals, Non-Goals, Acceptance Criteria (Given/When/Then), Constraints, and Out of Scope in the exact required format.
  • Quality gates for verifiability: Enforces specific, testable goals; independently verifiable acceptance criteria; explicit non-goals; and real constraints (or “None identified”).
  • Vague-idea handling: Returns a structured clarification question set when the input is too vague or contradictory instead of generating an unreliable spec.
  • Use case: Hand a plain-English request from a product or engineering backlog to generate a spec ready for the planning phase.

Quick Start

Provide the raw idea and a pipeline id so the skill can generate a complete spec.md ready for the /plan phase.

Frequently Asked Questions about define-spec

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

FAQPage Schema
How do I turn a vague engineering idea into a structured specification?

To turn a vague idea into a structured specification, you process the raw request through a PITER classification and generate a spec with goals, non-goals, Given/When/Then acceptance criteria, and constraints. If the input is too vague, a clarification payload is returned instead to gather missing details.

What is the PITER classification for product planning?

PITER classification is a labeling system that categorizes engineering requests as hotfix, bug, chore, spike, or feature. Applying PITER classification to product planning sets the expected intent and delivery shape for the structured specification.

How do I write acceptance criteria using Given When Then format?

Writing acceptance criteria using Given When Then format requires translating raw requirements into independently verifiable scenarios. The specification enforces minimum acceptance criteria counts to ensure each testable scenario has a specific context, action, and expected outcome.

What happens when a backlog request is too vague to generate a spec?

When a backlog request is too vague or contradictory to generate a spec, the system returns a structured clarification JSON payload. This vague-idea handling prevents unreliable specifications by explicitly asking the user for missing goal specificity or realistic constraints.

Does the specification generator enforce quality gates for testable goals?

Yes, the specification generator enforces quality gates for testable goals by validating goal specificity, independent verifiability of acceptance criteria, explicit non-goals, and realistic constraints. It ensures the final spec is completely unambiguous and ready for the planning phase.

Can I use this for backlog refinement and engineering planning?

Yes, you can use this specification generator for backlog refinement and engineering planning. It takes plain-English requests from a product backlog and converts them into unambiguous, build-ready specifications with verifiable scope and build constraints before implementation begins.