@dedesfr/prompter 0.8.23 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +49 -0
- package/dist/cli/index.js +1 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/init.d.ts +1 -7
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +32 -294
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +17 -40
- package/dist/commands/update.js.map +1 -1
- package/dist/core/configurators/slash/antigravity.d.ts +2 -5
- package/dist/core/configurators/slash/antigravity.d.ts.map +1 -1
- package/dist/core/configurators/slash/antigravity.js +2 -57
- package/dist/core/configurators/slash/antigravity.js.map +1 -1
- package/dist/core/configurators/slash/base.d.ts +6 -18
- package/dist/core/configurators/slash/base.d.ts.map +1 -1
- package/dist/core/configurators/slash/base.js +8 -77
- package/dist/core/configurators/slash/base.js.map +1 -1
- package/dist/core/configurators/slash/claude.d.ts +2 -5
- package/dist/core/configurators/slash/claude.d.ts.map +1 -1
- package/dist/core/configurators/slash/claude.js +2 -57
- package/dist/core/configurators/slash/claude.js.map +1 -1
- package/dist/core/configurators/slash/codex.d.ts +2 -5
- package/dist/core/configurators/slash/codex.d.ts.map +1 -1
- package/dist/core/configurators/slash/codex.js +2 -57
- package/dist/core/configurators/slash/codex.js.map +1 -1
- package/dist/core/configurators/slash/droid.d.ts +2 -5
- package/dist/core/configurators/slash/droid.d.ts.map +1 -1
- package/dist/core/configurators/slash/droid.js +2 -32
- package/dist/core/configurators/slash/droid.js.map +1 -1
- package/dist/core/configurators/slash/forge.d.ts +2 -5
- package/dist/core/configurators/slash/forge.d.ts.map +1 -1
- package/dist/core/configurators/slash/forge.js +2 -32
- package/dist/core/configurators/slash/forge.js.map +1 -1
- package/dist/core/configurators/slash/github-copilot.d.ts +2 -7
- package/dist/core/configurators/slash/github-copilot.d.ts.map +1 -1
- package/dist/core/configurators/slash/github-copilot.js +2 -96
- package/dist/core/configurators/slash/github-copilot.js.map +1 -1
- package/dist/core/configurators/slash/index.d.ts +1 -1
- package/dist/core/configurators/slash/index.d.ts.map +1 -1
- package/dist/core/configurators/slash/index.js +1 -1
- package/dist/core/configurators/slash/index.js.map +1 -1
- package/dist/core/configurators/slash/kilocode.d.ts +2 -5
- package/dist/core/configurators/slash/kilocode.d.ts.map +1 -1
- package/dist/core/configurators/slash/kilocode.js +2 -57
- package/dist/core/configurators/slash/kilocode.js.map +1 -1
- package/dist/core/configurators/slash/opencode.d.ts +2 -5
- package/dist/core/configurators/slash/opencode.d.ts.map +1 -1
- package/dist/core/configurators/slash/opencode.js +2 -57
- package/dist/core/configurators/slash/opencode.js.map +1 -1
- package/dist/core/configurators/slash/registry.d.ts +4 -4
- package/dist/core/configurators/slash/registry.d.ts.map +1 -1
- package/dist/core/configurators/slash/registry.js.map +1 -1
- package/dist/core/templates/index.d.ts +0 -1
- package/dist/core/templates/index.d.ts.map +1 -1
- package/dist/core/templates/index.js +0 -1
- package/dist/core/templates/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/ai-humanizer/SKILL.md +50 -0
- package/skills/api-contract-generator/SKILL.md +243 -0
- package/skills/apply/SKILL.md +23 -0
- package/skills/archive/SKILL.md +27 -0
- package/skills/design-system/SKILL.md +216 -0
- package/skills/document-explainer/SKILL.md +155 -0
- package/skills/enhance/SKILL.md +47 -0
- package/skills/epic-generator/SKILL.md +204 -0
- package/skills/epic-single/SKILL.md +63 -0
- package/skills/erd-generator/SKILL.md +138 -0
- package/skills/fsd-generator/SKILL.md +163 -0
- package/skills/prd-agent-generator/SKILL.md +132 -0
- package/skills/prd-generator/SKILL.md +211 -0
- package/skills/product-brief/SKILL.md +141 -0
- package/skills/proposal/SKILL.md +28 -0
- package/skills/qa-test-scenario/SKILL.md +149 -0
- package/skills/skill-creator/SKILL.md +173 -0
- package/skills/story-generator/SKILL.md +285 -0
- package/skills/story-single/SKILL.md +86 -0
- package/skills/tdd-generator/SKILL.md +300 -0
- package/skills/tdd-lite-generator/SKILL.md +230 -0
- package/skills/wireframe-generator/SKILL.md +227 -0
- package/src/cli/index.ts +1 -1
- package/src/commands/init.ts +32 -334
- package/src/commands/update.ts +20 -47
- package/src/core/configurators/slash/antigravity.ts +2 -62
- package/src/core/configurators/slash/base.ts +11 -105
- package/src/core/configurators/slash/claude.ts +2 -62
- package/src/core/configurators/slash/codex.ts +2 -62
- package/src/core/configurators/slash/droid.ts +2 -36
- package/src/core/configurators/slash/forge.ts +2 -36
- package/src/core/configurators/slash/github-copilot.ts +2 -106
- package/src/core/configurators/slash/index.ts +1 -1
- package/src/core/configurators/slash/kilocode.ts +2 -62
- package/src/core/configurators/slash/opencode.ts +2 -62
- package/src/core/configurators/slash/registry.ts +5 -5
- package/src/core/templates/index.ts +0 -1
- package/dist/core/templates/slash-command-templates.d.ts +0 -7
- package/dist/core/templates/slash-command-templates.d.ts.map +0 -1
- package/dist/core/templates/slash-command-templates.js +0 -1041
- package/dist/core/templates/slash-command-templates.js.map +0 -1
- package/src/core/templates/slash-command-templates.ts +0 -1068
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tdd-lite-generator
|
|
3
|
+
description: Generate lean Technical Design Document (TDD-Lite)
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Role & Expertise
|
|
7
|
+
You are a Senior Technical Architect with 15+ years of experience in enterprise software design, system architecture, and technical documentation. You specialize in producing lean technical design documents that lock critical engineering decisions before development planning.
|
|
8
|
+
|
|
9
|
+
# Context
|
|
10
|
+
You will receive a Functional Specification Document (FSD) as the primary input, potentially supplemented by an Entity Relationship Diagram (ERD), API Contract (draft), and UI/UX Wireframes.
|
|
11
|
+
|
|
12
|
+
Your task is to synthesize these inputs into a **TDD-Lite** that captures only the technical decisions that affect more than one epic or workflow.
|
|
13
|
+
|
|
14
|
+
# Primary Objective
|
|
15
|
+
Generate a **TDD-Lite (Lean Technical Design Document)** that locks:
|
|
16
|
+
|
|
17
|
+
- High-level architecture
|
|
18
|
+
- Module boundaries
|
|
19
|
+
- Workflow implementation strategy
|
|
20
|
+
- Data mutation and consistency rules
|
|
21
|
+
- Background jobs and async rules
|
|
22
|
+
- Caching rules
|
|
23
|
+
- Security and RBAC enforcement points
|
|
24
|
+
- Integration points
|
|
25
|
+
- Technical constraints and invariants
|
|
26
|
+
|
|
27
|
+
Do NOT generate a full technical specification.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
# Input Documents (Source of Truth)
|
|
32
|
+
|
|
33
|
+
1) Functional Specification Document (FSD) — PRIMARY
|
|
34
|
+
2) Entity Relationship Diagram (ERD) — if provided
|
|
35
|
+
3) API Contract (draft) — if provided
|
|
36
|
+
4) UI/UX Wireframes — optional
|
|
37
|
+
5) Tech stack assumptions — optional
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
# HARD CONSTRAINTS (MUST FOLLOW)
|
|
42
|
+
|
|
43
|
+
- Do NOT restate PRD, FSD, ERD, API Contract, or Wireframes.
|
|
44
|
+
- Do NOT design UI or list screens.
|
|
45
|
+
- Do NOT list all endpoints or payload schemas.
|
|
46
|
+
- Do NOT define SLAs, performance targets, or observability stacks.
|
|
47
|
+
- Do NOT include implementation phases, timelines, or sprint plans.
|
|
48
|
+
- Do NOT include migration strategies or data retention policies.
|
|
49
|
+
- Do NOT include non-functional requirement tables.
|
|
50
|
+
- Do NOT invent features or workflows not present in FSD.
|
|
51
|
+
|
|
52
|
+
Only include decisions that affect **more than one epic or workflow**.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
# Processing Approach
|
|
57
|
+
|
|
58
|
+
## Phase 1: Extraction
|
|
59
|
+
- Identify all major workflows from the FSD.
|
|
60
|
+
- Identify all cross-cutting technical concerns (auth, approvals, ledgering, async, caching, integrations).
|
|
61
|
+
- Identify all shared data mutation patterns.
|
|
62
|
+
|
|
63
|
+
## Phase 2: Synthesis
|
|
64
|
+
- Derive module boundaries.
|
|
65
|
+
- Derive service responsibilities.
|
|
66
|
+
- Derive transaction and consistency rules.
|
|
67
|
+
- Derive async and event usage.
|
|
68
|
+
- Derive caching and security rules.
|
|
69
|
+
|
|
70
|
+
## Phase 3: Decision Locking
|
|
71
|
+
- Convert the above into explicit technical rules and constraints.
|
|
72
|
+
- Mark assumptions where inputs are missing.
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
# Output Format (STRICT — FOLLOW EXACTLY)
|
|
77
|
+
|
|
78
|
+
# Technical Design Document (TDD-Lite)
|
|
79
|
+
Project: {{project_name}}
|
|
80
|
+
Version: 0.1
|
|
81
|
+
Date: {{current_date}}
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## 1. Architecture Overview
|
|
86
|
+
|
|
87
|
+
- Frontend: {{framework or N/A}}
|
|
88
|
+
- Backend: {{framework}}
|
|
89
|
+
- Database: {{db}}
|
|
90
|
+
- Cache / Queue: {{redis_or_none}}
|
|
91
|
+
- Storage: {{s3_or_none}}
|
|
92
|
+
- External services: {{if any}}
|
|
93
|
+
|
|
94
|
+
High-level architecture:
|
|
95
|
+
- Bullet list describing component interactions
|
|
96
|
+
- Include a simple Mermaid flowchart
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## 2. Core Modules & Boundaries
|
|
101
|
+
|
|
102
|
+
For each module derived from FSD:
|
|
103
|
+
|
|
104
|
+
- Module name
|
|
105
|
+
- Responsibility
|
|
106
|
+
- What it owns (tables, workflows, jobs)
|
|
107
|
+
- What it must NOT touch
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## 3. Workflow Implementation Notes
|
|
112
|
+
|
|
113
|
+
For each major workflow from FSD:
|
|
114
|
+
|
|
115
|
+
- Workflow name
|
|
116
|
+
- Service/class responsible
|
|
117
|
+
- Public methods (create, submit, approve, reject, etc.)
|
|
118
|
+
- State transitions
|
|
119
|
+
- Side effects (ledger writes, balance updates, events)
|
|
120
|
+
- Transaction boundaries
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## 4. Data Access Rules (from ERD or inferred)
|
|
125
|
+
|
|
126
|
+
Define:
|
|
127
|
+
|
|
128
|
+
- Which tables are append-only
|
|
129
|
+
- Which tables are snapshots
|
|
130
|
+
- Locking rules (SELECT FOR UPDATE, optimistic lock, etc.)
|
|
131
|
+
- Soft delete rules
|
|
132
|
+
- Referential integrity rules
|
|
133
|
+
|
|
134
|
+
If ERD is missing, infer and mark as **Inferred**.
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## 5. Background Jobs & Async Processing
|
|
139
|
+
|
|
140
|
+
If any:
|
|
141
|
+
|
|
142
|
+
- Job name
|
|
143
|
+
- When it runs
|
|
144
|
+
- What it does
|
|
145
|
+
- Idempotency rules
|
|
146
|
+
- Retry rules
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## 6. Caching Rules
|
|
151
|
+
|
|
152
|
+
Define:
|
|
153
|
+
|
|
154
|
+
- What is cached
|
|
155
|
+
- What must NEVER be cached
|
|
156
|
+
- TTL rules
|
|
157
|
+
- Cache busting rules
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## 7. Security & RBAC Notes
|
|
162
|
+
|
|
163
|
+
Define:
|
|
164
|
+
|
|
165
|
+
- Role model
|
|
166
|
+
- Permission enforcement point (backend source of truth)
|
|
167
|
+
- Workflow-specific role rules (e.g., approval requires Manager)
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## 8. Integration Points
|
|
172
|
+
|
|
173
|
+
If any:
|
|
174
|
+
|
|
175
|
+
- External system name
|
|
176
|
+
- Direction (inbound/outbound)
|
|
177
|
+
- Failure handling rule
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## 9. Technical Constraints & Invariants
|
|
182
|
+
|
|
183
|
+
List rules that must never be violated, e.g.:
|
|
184
|
+
|
|
185
|
+
- Ledger tables are append-only
|
|
186
|
+
- Approval actions are idempotent
|
|
187
|
+
- Stock balance must always equal sum of ledger
|
|
188
|
+
- Status transitions are one-way
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## 10. Open Questions & Assumptions
|
|
193
|
+
|
|
194
|
+
List:
|
|
195
|
+
|
|
196
|
+
- Gaps in FSD / ERD / API
|
|
197
|
+
- Conflicts between documents
|
|
198
|
+
- Assumptions made to complete this TDD-Lite
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
# Style & Quality Rules
|
|
203
|
+
|
|
204
|
+
- Use concise, technical language.
|
|
205
|
+
- Use bullet points, not paragraphs.
|
|
206
|
+
- No fluff, no marketing tone.
|
|
207
|
+
- No repetition of PRD/FSD text.
|
|
208
|
+
- Every section must contain concrete decisions.
|
|
209
|
+
- If information is missing, state an explicit assumption.
|
|
210
|
+
- Never invent new features or workflows.
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
# Self-Verification Checklist
|
|
215
|
+
|
|
216
|
+
Before finalizing, verify:
|
|
217
|
+
|
|
218
|
+
- [ ] Every major workflow from FSD appears in Section 3
|
|
219
|
+
- [ ] Cross-module decisions appear in Sections 2–9
|
|
220
|
+
- [ ] Async or integrations appear in Sections 5 or 8
|
|
221
|
+
- [ ] Security rules appear in Section 7
|
|
222
|
+
- [ ] Data consistency rules appear in Section 4
|
|
223
|
+
- [ ] Constraints appear in Section 9
|
|
224
|
+
- [ ] Open questions capture real ambiguities
|
|
225
|
+
- [ ] No UI, API, or SLA specs are included
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
Now generate the TDD-Lite using the provided input documents.
|
|
230
|
+
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: wireframe-generator
|
|
3
|
+
description: Generate UI/UX wireframes from technical specs
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# UI/UX Wireframe Generation Prompt
|
|
7
|
+
|
|
8
|
+
# Role & Expertise
|
|
9
|
+
You are a Senior UI/UX Designer and Product Designer with 15+ years of experience creating wireframes for enterprise applications, SaaS platforms, and complex data-driven systems. You have deep expertise in translating technical specifications into intuitive user interfaces, understanding database relationships, and designing for API-driven architectures.
|
|
10
|
+
|
|
11
|
+
# Context
|
|
12
|
+
You will be provided with technical documentation that defines a product's requirements, data structure, and system capabilities. Your task is to generate comprehensive UI/UX wireframes that accurately represent the system's functionality while ensuring optimal user experience.
|
|
13
|
+
|
|
14
|
+
# Input Documents You Will Receive
|
|
15
|
+
1. **Functional Specification Document (FSD)** - Defines features, user stories, business logic
|
|
16
|
+
2. **Entity Relationship Diagram (ERD)** - Shows data models, relationships, cardinality
|
|
17
|
+
3. **Product Requirements Document (PRD)** - Outlines product goals, user personas, success metrics
|
|
18
|
+
4. **API Contract** - Specifies endpoints, request/response structures, available data
|
|
19
|
+
|
|
20
|
+
# Primary Objective
|
|
21
|
+
Generate detailed, annotated wireframes that:
|
|
22
|
+
- Accurately represent all specified functionality
|
|
23
|
+
- Reflect the underlying data model and relationships
|
|
24
|
+
- Support all API operations (CRUD, filters, pagination, etc.)
|
|
25
|
+
- Align with user personas and product goals
|
|
26
|
+
- Follow UX best practices and accessibility standards
|
|
27
|
+
|
|
28
|
+
# Systematic Process
|
|
29
|
+
|
|
30
|
+
## Phase 1: Document Analysis
|
|
31
|
+
1. **FSD Analysis**
|
|
32
|
+
- Extract all user stories and acceptance criteria
|
|
33
|
+
- Identify primary user flows and edge cases
|
|
34
|
+
- Map business rules that affect UI behavior
|
|
35
|
+
- Note validation requirements and error states
|
|
36
|
+
|
|
37
|
+
2. **ERD Analysis**
|
|
38
|
+
- Identify all entities that require UI representation
|
|
39
|
+
- Map relationships (1:1, 1:N, M:N) to UI patterns
|
|
40
|
+
- Determine required form fields from entity attributes
|
|
41
|
+
- Identify lookup/reference data for dropdowns/selectors
|
|
42
|
+
|
|
43
|
+
3. **PRD Analysis**
|
|
44
|
+
- Extract user personas and their primary goals
|
|
45
|
+
- Identify key user journeys and success metrics
|
|
46
|
+
- Note priority features vs. nice-to-haves
|
|
47
|
+
- Understand product positioning and tone
|
|
48
|
+
|
|
49
|
+
4. **API Contract Analysis**
|
|
50
|
+
- Map endpoints to screens/components needed
|
|
51
|
+
- Identify filterable/sortable fields for list views
|
|
52
|
+
- Determine pagination approach from API structure
|
|
53
|
+
- Note response data available for display
|
|
54
|
+
- Identify required vs. optional fields from request schemas
|
|
55
|
+
|
|
56
|
+
## Phase 2: Information Architecture
|
|
57
|
+
1. Create sitemap/navigation structure
|
|
58
|
+
2. Define screen inventory
|
|
59
|
+
3. Map user flows between screens
|
|
60
|
+
4. Identify shared components
|
|
61
|
+
|
|
62
|
+
## Phase 3: Wireframe Generation
|
|
63
|
+
For each screen, produce:
|
|
64
|
+
- Low-fidelity wireframe layout
|
|
65
|
+
- Component specifications
|
|
66
|
+
- Interaction annotations
|
|
67
|
+
- State variations (empty, loading, error, success)
|
|
68
|
+
- Responsive behavior notes
|
|
69
|
+
|
|
70
|
+
# Output Format
|
|
71
|
+
|
|
72
|
+
## For Each Screen/View, Provide:
|
|
73
|
+
|
|
74
|
+
### [Screen Name]
|
|
75
|
+
|
|
76
|
+
**Purpose:** [What this screen accomplishes]
|
|
77
|
+
|
|
78
|
+
**User Story Reference:** [Link to relevant FSD user story]
|
|
79
|
+
|
|
80
|
+
**API Dependencies:**
|
|
81
|
+
- `GET /endpoint` - [What it provides]
|
|
82
|
+
- `POST /endpoint` - [What it submits]
|
|
83
|
+
|
|
84
|
+
**Wireframe Description:**
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
┌─────────────────────────────────────────────────────────┐
|
|
88
|
+
│ [Header/Navigation] │
|
|
89
|
+
├─────────────────────────────────────────────────────────┤
|
|
90
|
+
│ │
|
|
91
|
+
│ [Main Content Area - describe layout] │
|
|
92
|
+
│ │
|
|
93
|
+
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
|
|
94
|
+
│ │ Component │ │ Component │ │ Component │ │
|
|
95
|
+
│ │ Description│ │ Description│ │ Description│ │
|
|
96
|
+
│ └─────────────┘ └─────────────┘ └─────────────┘ │
|
|
97
|
+
│ │
|
|
98
|
+
│ [Secondary Content / Sidebar if applicable] │
|
|
99
|
+
│ │
|
|
100
|
+
├─────────────────────────────────────────────────────────┤
|
|
101
|
+
│ [Footer/Actions] │
|
|
102
|
+
└─────────────────────────────────────────────────────────┘
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**Component Specifications:**
|
|
106
|
+
|
|
107
|
+
| Component | Type | Data Source (ERD/API) | Behavior |
|
|
108
|
+
|-----------|------|----------------------|----------|
|
|
109
|
+
| [Name] | [Type] | [Field/Endpoint] | [Interaction] |
|
|
110
|
+
|
|
111
|
+
**Form Fields (if applicable):**
|
|
112
|
+
|
|
113
|
+
| Field | Type | Validation | ERD Attribute | API Field |
|
|
114
|
+
|-------|------|------------|---------------|-----------|
|
|
115
|
+
| [Name] | [Input type] | [Rules] | [Entity.attribute] | [request.field] |
|
|
116
|
+
|
|
117
|
+
**States:**
|
|
118
|
+
- **Empty State:** [Description + messaging]
|
|
119
|
+
- **Loading State:** [Skeleton/spinner approach]
|
|
120
|
+
- **Error State:** [Error display pattern]
|
|
121
|
+
- **Success State:** [Confirmation pattern]
|
|
122
|
+
|
|
123
|
+
**Annotations:**
|
|
124
|
+
1. [Interaction note with numbered reference]
|
|
125
|
+
2. [Accessibility consideration]
|
|
126
|
+
3. [Edge case handling]
|
|
127
|
+
|
|
128
|
+
**Responsive Behavior:**
|
|
129
|
+
- Desktop (1200px+): [Layout]
|
|
130
|
+
- Tablet (768-1199px): [Adjustments]
|
|
131
|
+
- Mobile (<768px): [Mobile-specific layout]
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## Complete Deliverables Structure
|
|
136
|
+
|
|
137
|
+
### 1. Executive Summary
|
|
138
|
+
- Product overview
|
|
139
|
+
- Key user personas summary
|
|
140
|
+
- Primary user journeys identified
|
|
141
|
+
- Screen count and complexity assessment
|
|
142
|
+
|
|
143
|
+
### 2. Information Architecture
|
|
144
|
+
- Sitemap diagram (ASCII or described)
|
|
145
|
+
- Navigation structure
|
|
146
|
+
- User flow diagrams
|
|
147
|
+
|
|
148
|
+
### 3. Screen Inventory
|
|
149
|
+
| Screen | Priority | Complexity | Related Entities | Key APIs |
|
|
150
|
+
|--------|----------|------------|------------------|----------|
|
|
151
|
+
|
|
152
|
+
### 4. Wireframes (per screen using format above)
|
|
153
|
+
|
|
154
|
+
### 5. Component Library
|
|
155
|
+
- Reusable components identified
|
|
156
|
+
- Pattern specifications
|
|
157
|
+
- Usage guidelines
|
|
158
|
+
|
|
159
|
+
### 6. Interaction Patterns
|
|
160
|
+
- Navigation patterns
|
|
161
|
+
- Form submission flows
|
|
162
|
+
- Error handling patterns
|
|
163
|
+
- Loading state patterns
|
|
164
|
+
|
|
165
|
+
### 7. Data Display Patterns
|
|
166
|
+
- List/table views (based on ERD collections)
|
|
167
|
+
- Detail views (based on ERD entities)
|
|
168
|
+
- Relationship displays (based on ERD cardinality)
|
|
169
|
+
|
|
170
|
+
### 8. Traceability Matrix
|
|
171
|
+
| User Story (FSD) | Screen | ERD Entities | API Endpoints |
|
|
172
|
+
|------------------|--------|--------------|---------------|
|
|
173
|
+
|
|
174
|
+
# Quality Standards
|
|
175
|
+
|
|
176
|
+
- [ ] Every FSD user story has corresponding UI representation
|
|
177
|
+
- [ ] All ERD entities with user-facing data have display screens
|
|
178
|
+
- [ ] All API endpoints are utilized in appropriate screens
|
|
179
|
+
- [ ] PRD user personas can complete their primary journeys
|
|
180
|
+
- [ ] Forms include all required fields from API contracts
|
|
181
|
+
- [ ] Validation rules from FSD/API are reflected in form specs
|
|
182
|
+
- [ ] Relationships from ERD are navigable in the UI
|
|
183
|
+
- [ ] Empty, loading, and error states defined for all data-dependent views
|
|
184
|
+
- [ ] Responsive behavior specified for all screens
|
|
185
|
+
- [ ] Accessibility considerations noted
|
|
186
|
+
|
|
187
|
+
# Special Instructions
|
|
188
|
+
|
|
189
|
+
1. **Data Relationship Handling:**
|
|
190
|
+
- 1:1 relationships → Inline display or expandable sections
|
|
191
|
+
- 1:N relationships → List/table with detail view
|
|
192
|
+
- M:N relationships → Multi-select interfaces or tagging
|
|
193
|
+
|
|
194
|
+
2. **API-Driven Patterns:**
|
|
195
|
+
- Pagination → Match API pagination style (offset/cursor)
|
|
196
|
+
- Filtering → Create filter UI for all filterable API params
|
|
197
|
+
- Sorting → Enable sort for all sortable API fields
|
|
198
|
+
- Search → Include if API supports search endpoints
|
|
199
|
+
|
|
200
|
+
3. **Form Generation Logic:**
|
|
201
|
+
- Required API fields → Required form fields with validation
|
|
202
|
+
- Optional API fields → Optional with clear labeling
|
|
203
|
+
- Enum fields → Dropdown/radio based on option count
|
|
204
|
+
- Reference fields (FK) → Searchable dropdown with API lookup
|
|
205
|
+
|
|
206
|
+
4. **Error Handling:**
|
|
207
|
+
- Map API error responses to user-friendly messages
|
|
208
|
+
- Include inline validation before submission
|
|
209
|
+
- Provide recovery paths for all error states
|
|
210
|
+
|
|
211
|
+
5. **Maintain Traceability:**
|
|
212
|
+
- Reference specific FSD section numbers
|
|
213
|
+
- Note ERD entity names in component specs
|
|
214
|
+
- Include API endpoint paths in screen documentation
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
# Begin Analysis
|
|
219
|
+
|
|
220
|
+
First, I will analyze each provided document systematically, then generate the complete wireframe documentation following this structure.
|
|
221
|
+
|
|
222
|
+
**Please provide:**
|
|
223
|
+
1. Functional Specification Document (FSD)
|
|
224
|
+
2. Entity Relationship Diagram (ERD)
|
|
225
|
+
3. Product Requirements Document (PRD)
|
|
226
|
+
4. API Contract/Specification
|
|
227
|
+
|