design-story-implementation
Design the implementation of a new user story based on the current application reality, and analysis of the proposed user story.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Design the implementation of a new user story based on the current application reality, and analysis of the proposed user story.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Analyzes the extracted story document, capturing capability, acceptance criteria, edge cases, dependencies and open design questions. Use after extracting a story from a user request, to clarify the stories intended and likley imact. Use before designing the implementation.
Discovers the current application reality BEFORE designing or implementing. Surfaces relevant ADRs, existing code patterns, and target architecture.
Design comprehensive test cases for a given set of requirements. Use before starting TDD to plan coverage.
Drafts a high-level implementation plan based on the extracted story document
Extract a user story from a given document or text, into a json format
Grades the quality of the extracted story document with additional details based on the User Story Quality Rubric
| name | design-story-implementation |
| description | Design the implementation of a new user story based on the current application reality, and analysis of the proposed user story. |
/schema/analysis.schema.json./schema/audit.schema.json.{story title}.design.json./schema/design.schema.json.Model the user's flow through the system as a sequence of domain events (not UI clicks). This shows how the story modifies the current reality workflow, focusing on "current reality + one step."
Update the relevant section of the JSON
Identify key events that should be instrumented for observability and monitoring.
Update the relevant section of the JSON
Assign each AC element to the appropriate application layer(s) using responsibility heuristics. This is an iterative "catch ball" negotiation between layers, not strictly unidirectional.
Critical Principle: "Where is the information available to act?" - Responsibility emerges from where new information/behavior originates.
Layer Responsibility Heuristics: Frontend:
Backend:
Data Layer:
Update the relevant section of the JSON
Define inter-layer contracts (Frontend↔Backend, Backend↔Data) based on data model changes and interaction patterns. This is an iterative negotiation process where contract usage expectations drive data model decisions.
Contract Definition Heuristics: Data model first (heuristic): Closest to data transformation core
Frontend needs drive backend requirements:
Data → API contract precipitation:
Functional Alchemy optimization:
Update the relevant section of the JSON
Update the relevant section of the JSON
When dependencies or questions are identified:
Review existing related code, ADRs, and documentation to understand the context and make informed assumptions.
For each question, capture the following:
- the question
- your assumed answer
- the rationale for your assumption
- the basis for your assumption (e.g., "pattern seen in {existing code}", "desicion precedent in {specific ADR}", "documented business rule per {specific documentation}")
Update the relevant section of the JSON
.process directory, named {skill-name}.done.json./schema/sentinel.schema.json./schema/verify-params.schema.json.