一键导入
create-tasks
Creates Task work items from User Story files and the design document. Use when asked to create tasks or break user stories into implementation tasks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Creates Task work items from User Story files and the design document. Use when asked to create tasks or break user stories into implementation tasks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Creates a capacity-driven sprint plan from estimated work items and team capacity inputs. Use when asked to create a sprint plan or allocate stories to sprints.
Syncs the complete local work item hierarchy to Azure DevOps Boards. Creates Epics, Features, User Stories, and Tasks with parent-child links, effort estimates, and sprint assignments.
Creates a technical design document from a BRD. Use when asked to create a design document, technical specification, or architecture document.
Generates the initial project folder structure, entry point files, and dependency manifest for any tech stack defined in workshop-stack.md. Use when asked to scaffold the project, generate the initial structure, or set up the project before implementation begins.
Implements a task file by generating code targeted to the workshop stack configuration. Use when asked to implement a task, or when a developer references a task file from issues/ and asks for implementation.
Reviews an implemented task's source files against the task file's acceptance criteria and stack standards. Produces a structured review reply in chat with pass/fail results and a recommendation. Use when asked to review an implemented task or validate code before moving to the next task.
| name | create-tasks |
| description | Creates Task work items from User Story files and the design document. Use when asked to create tasks or break user stories into implementation tasks. |
Read the User Story files and design document and produce a set of Task files that break each story into typed, executable units of implementation work. Tasks sit at the lowest level of the work breakdown hierarchy:
Epic → Feature → User Story → Task
A Task is a single unit of work assigned to one developer role. Every task has a type that determines both the implementation order and the developer responsible for it.
Every task must be exactly one of these five types:
| Type | Prefix | Responsible For | Implemented By |
|---|---|---|---|
| DATABASE | [DATABASE] | Data model changes, seed data, and migrations (relational only) | implement-agent |
| BACKEND | [BACKEND] | API endpoints, business logic, data access | implement-agent |
| UNIT-TEST | [UNIT-TEST] | Unit tests for the BACKEND layer — isolated, no real database | unit-test-agent |
| FRONTEND | [FRONTEND] | UI components, pages, client-side logic | implement-agent |
| E2E-TEST | [E2E-TEST] | Playwright end-to-end tests — browser-level user journey tests only | playwright-agent |
Implementation order is always:
[DATABASE] → [BACKEND] → [UNIT-TEST] → [FRONTEND] → [E2E-TEST]
This order is non-negotiable. BACKEND depends on the data model. UNIT-TEST validates the BACKEND in isolation before the UI is built. FRONTEND depends on the verified API. E2E-TEST validates the full stack.
docs/work-items/stories/.workshop-stack.md — extract folder paths, file naming conventions,
and framework patterns. Use these when writing acceptance criteria and
descriptions so that file paths, folder references, and naming conventions
in each task match the actual project structure exactly.
(e.g. use schema_file, routes_folder, pages_folder, e2e_tests_folder
from workshop-stack.md rather than inventing paths.)
Also check for max_ac_per_task — if set, you must cap the Acceptance
Criteria list of every generated task file at that number. When trimming,
prioritise in this order: (1) happy path, (2) authentication/authorisation,
(3) the single most critical business rule. Drop remaining error scenarios.docs/design/design-doc.md — for each story, identify:
issues/:
{NN}-{TYPE}-{kebab-case-title}.md
(e.g. 01-DATABASE-appointment-model.md)tasks: [] frontmatter
field with the IDs of the tasks created for that story.
(e.g. tasks: [01-DATABASE-appointment-model, 05-BACKEND-appointment-api, 10-UNIT-TEST-appointment-api, 15-FRONTEND-appointment-booking-form, 20-E2E-TEST-book-appointment])---
id: {NN}-{TYPE}-{kebab-title}
title: [{TYPE}] {Task Title}
type: task
taskType: {DATABASE | BACKEND | UNIT-TEST | FRONTEND | E2E-TEST}
userStory: story-{id}
feature: feature-{id}
epic: epic-{NN}
status: ready
dependencies: [{id of task this depends on, if any}]
---
# [{TYPE}] {Task Title}
## Description
Two to four sentences describing exactly what this task implements.
Reference the relevant design doc section (e.g. API endpoint, entity,
component) and the user story it serves.
Use domain language from the BRD throughout.
## Acceptance Criteria
- [ ] {Specific, technically verifiable criterion 1}
- [ ] {Specific, technically verifiable criterion 2}
- [ ] {Specific, technically verifiable criterion 3}
## Definition of Done
- All acceptance criteria above are verified
- Code is reviewed and meets team standards
- No regressions introduced in related areas
Scope: Changes to the data model and seed data only. For relational databases, also includes a migration file. For NoSQL/schema-less databases, no migration is required.
Include in description:
Acceptance criteria should verify:
Do NOT include API logic, UI, or test automation.
Scope: API endpoints and business logic only.
Include in description:
Acceptance criteria should verify:
Do NOT include UI or test automation.
Scope: Unit tests for the BACKEND layer only — isolated from the database and UI.
These tasks are implemented by unit-test-agent, NOT implement-agent.
There is exactly one UNIT-TEST task per BACKEND task.
Include in description:
Acceptance criteria should verify:
unit_tests_folder defined in workshop-stack.mdDo NOT include UI logic, E2E test scenarios, or implementation code.
Scope: UI components and pages only.
Include in description:
Acceptance criteria should verify:
Do NOT include API logic or test automation.
Scope: Playwright end-to-end tests only — browser-level user journey tests.
These tasks are implemented by playwright-agent, NOT implement-agent.
Do not confuse with UNIT-TEST tasks. UNIT-TEST tasks cover the BACKEND API in isolation. E2E-TEST tasks cover the full stack through the browser.
Include in description:
data-testid selectors used to locate elements (from the design doc)Acceptance criteria should verify:
data-testid values defined in the design doce2e_tests_folder defined in workshop-stack.mdDo NOT include implementation logic. Do NOT describe unit test coverage — that is a separate UNIT-TEST task.
dependencies frontmatter field using
the task ID.Tasks are numbered globally in implementation order:
This ensures the natural implementation order is visible in the file system sort order.
appointment-model, appointment-api, booking-form)[DATABASE].model or page.Before saving, verify:
tasks field updatedFor story-03-02-01-book-appointment-slot.md:
Tasks produced:
01-DATABASE-appointment-model.md
05-BACKEND-appointment-api.md
10-UNIT-TEST-appointment-api.md
15-FRONTEND-appointment-booking-form.md
20-E2E-TEST-book-appointment.md
Example file — 05-BACKEND-appointment-api.md:
---
id: 05-BACKEND-appointment-api
title: [BACKEND] Appointment API
type: task
taskType: BACKEND
userStory: story-03-02-01
feature: feature-03-02
epic: epic-03
status: ready
dependencies: [01-DATABASE-appointment-model]
---
# [BACKEND] Appointment API
## Description
Implement the API endpoints for creating and retrieving Appointments
as defined in the design document. The POST endpoint creates an
Appointment in SCHEDULED state. The GET endpoint returns the
Appointment details for a given ID. Both endpoints require
authentication. The POST endpoint enforces the business rule that
the requested slot must be available at the time of booking (FR-006).
## Acceptance Criteria
- [ ] POST /api/appointments creates an Appointment with status
SCHEDULED and returns 201 with the appointment record
- [ ] POST /api/appointments returns 409 if the requested slot
is no longer available
- [ ] POST /api/appointments returns 401 if the request is
not authenticated
- [ ] GET /api/appointments/:id returns the Appointment record
for the authenticated Patient who owns it
- [ ] GET /api/appointments/:id returns 404 if the Appointment
does not exist or does not belong to the requesting Patient
## Definition of Done
- All acceptance criteria above are verified
- Code is reviewed and meets team standards
- No regressions introduced in related areas