fraim-framework 2.0.56 → 2.0.58

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.
Files changed (224) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/bin/fraim-mcp.js +14 -0
  3. package/bin/fraim.js +23 -0
  4. package/dist/src/cli/commands/init-project.js +10 -4
  5. package/dist/src/cli/commands/mcp.js +65 -0
  6. package/dist/src/cli/setup/mcp-config-generator.js +19 -16
  7. package/dist/src/fraim/issue-tracking/ado-provider.js +304 -0
  8. package/dist/src/fraim/issue-tracking/factory.js +63 -0
  9. package/dist/src/fraim/issue-tracking/github-provider.js +200 -0
  10. package/dist/src/fraim/issue-tracking/types.js +7 -0
  11. package/dist/src/fraim/issue-tracking-config.js +83 -0
  12. package/dist/src/local-mcp-server/stdio-server.js +207 -0
  13. package/dist/src/utils/workflow-parser.js +81 -0
  14. package/package.json +17 -12
  15. package/registry/scripts/pdf-styles.css +172 -0
  16. package/registry/scripts/prep-issue.sh +46 -4
  17. package/registry/scripts/profile-server.ts +131 -130
  18. package/registry/stubs/workflows/customer-development/user-survey-dispatch.md +1 -1
  19. package/registry/stubs/workflows/customer-development/users-to-target.md +1 -1
  20. package/registry/stubs/workflows/product-building/design.md +1 -1
  21. package/registry/stubs/workflows/product-building/implement.md +1 -1
  22. package/Claude.md +0 -1
  23. package/dist/registry/ai-manager-rules/customer-development-phases/phase1-customer-profiling.md +0 -101
  24. package/dist/registry/ai-manager-rules/customer-development-phases/phase2-platform-discovery.md +0 -235
  25. package/dist/registry/ai-manager-rules/customer-development-phases/phase3-prospect-qualification.md +0 -243
  26. package/dist/registry/ai-manager-rules/customer-development-phases/phase4-inventory-compilation.md +0 -206
  27. package/dist/registry/ai-manager-rules/design-phases/design-completeness-review.md +0 -73
  28. package/dist/registry/ai-manager-rules/design-phases/design-design.md +0 -145
  29. package/dist/registry/ai-manager-rules/implement-phases/implement-code.md +0 -283
  30. package/dist/registry/ai-manager-rules/implement-phases/implement-completeness-review.md +0 -120
  31. package/dist/registry/ai-manager-rules/implement-phases/implement-regression.md +0 -173
  32. package/dist/registry/ai-manager-rules/implement-phases/implement-repro.md +0 -104
  33. package/dist/registry/ai-manager-rules/implement-phases/implement-scoping.md +0 -100
  34. package/dist/registry/ai-manager-rules/implement-phases/implement-smoke.md +0 -237
  35. package/dist/registry/ai-manager-rules/implement-phases/implement-spike.md +0 -121
  36. package/dist/registry/ai-manager-rules/implement-phases/implement-validate.md +0 -375
  37. package/dist/registry/ai-manager-rules/retrospective.md +0 -116
  38. package/dist/registry/ai-manager-rules/shared-phases/address-pr-feedback.md +0 -188
  39. package/dist/registry/ai-manager-rules/shared-phases/submit-pr.md +0 -202
  40. package/dist/registry/ai-manager-rules/shared-phases/wait-for-pr-review.md +0 -170
  41. package/dist/registry/ai-manager-rules/spec-phases/spec-competitor-analysis.md +0 -105
  42. package/dist/registry/ai-manager-rules/spec-phases/spec-completeness-review.md +0 -66
  43. package/dist/registry/ai-manager-rules/spec-phases/spec-spec.md +0 -139
  44. package/dist/registry/ai-manager-rules/user-survey-phases/phase1-survey-scoping.md +0 -60
  45. package/dist/registry/ai-manager-rules/user-survey-phases/phase2-survey-build-linkedin.md +0 -23
  46. package/dist/registry/ai-manager-rules/user-survey-phases/phase3-survey-build-reddit.md +0 -22
  47. package/dist/registry/ai-manager-rules/user-survey-phases/phase4-survey-build-x.md +0 -21
  48. package/dist/registry/ai-manager-rules/user-survey-phases/phase5-survey-build-facebook.md +0 -19
  49. package/dist/registry/ai-manager-rules/user-survey-phases/phase6-survey-build-custom.md +0 -15
  50. package/dist/registry/ai-manager-rules/user-survey-phases/phase7-survey-dispatch.md +0 -45
  51. package/dist/registry/providers/ado.json +0 -19
  52. package/dist/registry/providers/github.json +0 -19
  53. package/dist/registry/scripts/cleanup-branch.js +0 -287
  54. package/dist/registry/scripts/evaluate-code-quality.js +0 -66
  55. package/dist/registry/scripts/exec-with-timeout.js +0 -142
  56. package/dist/registry/scripts/generate-engagement-emails.js +0 -705
  57. package/dist/registry/scripts/newsletter-helpers.js +0 -671
  58. package/dist/registry/scripts/profile-server.js +0 -388
  59. package/dist/registry/scripts/run-thank-you-workflow.js +0 -92
  60. package/dist/registry/scripts/send-newsletter-simple.js +0 -85
  61. package/dist/registry/scripts/send-thank-you-emails.js +0 -54
  62. package/dist/registry/scripts/validate-openapi-limits.js +0 -311
  63. package/dist/registry/scripts/validate-test-coverage.js +0 -262
  64. package/dist/registry/scripts/verify-test-coverage.js +0 -66
  65. package/dist/registry/templates/bootstrap/ARCHITECTURE-TEMPLATE.md +0 -53
  66. package/dist/registry/templates/bootstrap/CODE-QUALITY-REPORT-TEMPLATE.md +0 -37
  67. package/dist/registry/templates/bootstrap/TEST-COVERAGE-REPORT-TEMPLATE.md +0 -35
  68. package/dist/registry/templates/business-development/IDEATION-REPORT-TEMPLATE.md +0 -29
  69. package/dist/registry/templates/business-development/PRICING-STRATEGY-TEMPLATE.md +0 -126
  70. package/dist/registry/templates/customer-development/customer-interview-template.md +0 -99
  71. package/dist/registry/templates/customer-development/customer-persona-template.md +0 -69
  72. package/dist/registry/templates/customer-development/follow-up-email-templates.md +0 -132
  73. package/dist/registry/templates/customer-development/insight-analysis-template.md +0 -74
  74. package/dist/registry/templates/customer-development/prospect-inventory-template.csv +0 -3
  75. package/dist/registry/templates/customer-development/search-strategy-template.md +0 -123
  76. package/dist/registry/templates/customer-development/strategic-recommendations-template.md +0 -53
  77. package/dist/registry/templates/customer-development/thank-you-email-template.html +0 -124
  78. package/dist/registry/templates/customer-development/thank-you-note-template.md +0 -16
  79. package/dist/registry/templates/customer-development/triage-log-template.md +0 -278
  80. package/dist/registry/templates/customer-development/weekly-newsletter-template.html +0 -204
  81. package/dist/registry/templates/evidence/Design-Evidence.md +0 -30
  82. package/dist/registry/templates/evidence/Implementation-BugEvidence.md +0 -94
  83. package/dist/registry/templates/evidence/Implementation-FeatureEvidence.md +0 -129
  84. package/dist/registry/templates/evidence/Spec-Evidence.md +0 -19
  85. package/dist/registry/templates/help/HelpNeeded.md +0 -14
  86. package/dist/registry/templates/legal/NDA-TEMPLATE.md +0 -170
  87. package/dist/registry/templates/legal/PATENT-TEMPLATE.md +0 -372
  88. package/dist/registry/templates/legal/TRADEMARK-TEMPLATE.md +0 -339
  89. package/dist/registry/templates/legal/contract-review-checklist.md +0 -193
  90. package/dist/registry/templates/legal/review-report-template.md +0 -198
  91. package/dist/registry/templates/legal/saas-terms-template.md +0 -174
  92. package/dist/registry/templates/legal/sow-template.md +0 -117
  93. package/dist/registry/templates/legal/template-variables.md +0 -131
  94. package/dist/registry/templates/marketing/DOMAIN-REGISTRATION-TEMPLATE.md +0 -194
  95. package/dist/registry/templates/marketing/HBR-ARTICLE-TEMPLATE.md +0 -66
  96. package/dist/registry/templates/marketing/STORYTELLING-TEMPLATE.md +0 -130
  97. package/dist/registry/templates/marketing/WEBSITE-TEMPLATE.md +0 -262
  98. package/dist/registry/templates/marketing/github-pages-workflow.yml +0 -64
  99. package/dist/registry/templates/replicate/implementation-checklist.md +0 -39
  100. package/dist/registry/templates/replicate/use-cases-template.md +0 -88
  101. package/dist/registry/templates/retrospective/RETROSPECTIVE-TEMPLATE.md +0 -55
  102. package/dist/registry/templates/specs/BUGSPEC-TEMPLATE.md +0 -37
  103. package/dist/registry/templates/specs/FEATURESPEC-TEMPLATE.md +0 -66
  104. package/dist/registry/templates/specs/TECHSPEC-TEMPLATE.md +0 -39
  105. package/dist/registry/workflows/bootstrap/create-architecture.md +0 -38
  106. package/dist/registry/workflows/bootstrap/detect-broken-windows.md +0 -300
  107. package/dist/registry/workflows/bootstrap/evaluate-code-quality.md +0 -35
  108. package/dist/registry/workflows/bootstrap/verify-test-coverage.md +0 -36
  109. package/dist/registry/workflows/brainstorming/blue-sky-brainstorming.md +0 -211
  110. package/dist/registry/workflows/brainstorming/codebase-brainstorming.md +0 -165
  111. package/dist/registry/workflows/business-development/create-business-plan.md +0 -737
  112. package/dist/registry/workflows/business-development/ideate-business-opportunity.md +0 -55
  113. package/dist/registry/workflows/business-development/price-product.md +0 -325
  114. package/dist/registry/workflows/compliance/detect-compliance-requirements.md +0 -78
  115. package/dist/registry/workflows/compliance/generate-audit-evidence.md +0 -75
  116. package/dist/registry/workflows/compliance/soc2-evidence-generator.md +0 -332
  117. package/dist/registry/workflows/customer-development/insight-analysis.md +0 -156
  118. package/dist/registry/workflows/customer-development/insight-triage.md +0 -938
  119. package/dist/registry/workflows/customer-development/interview-preparation.md +0 -452
  120. package/dist/registry/workflows/customer-development/linkedin-outreach.md +0 -593
  121. package/dist/registry/workflows/customer-development/strategic-brainstorming.md +0 -146
  122. package/dist/registry/workflows/customer-development/thank-customers.md +0 -203
  123. package/dist/registry/workflows/customer-development/user-survey-dispatch.md +0 -60
  124. package/dist/registry/workflows/customer-development/users-to-target.md +0 -112
  125. package/dist/registry/workflows/customer-development/weekly-newsletter.md +0 -366
  126. package/dist/registry/workflows/deploy/cloud-deployment.md +0 -310
  127. package/dist/registry/workflows/improve-fraim/contribute.md +0 -32
  128. package/dist/registry/workflows/improve-fraim/file-issue.md +0 -32
  129. package/dist/registry/workflows/learning/build-skillset.md +0 -212
  130. package/dist/registry/workflows/learning/synthesize-learnings.md +0 -284
  131. package/dist/registry/workflows/legal/contract-review-analysis.md +0 -382
  132. package/dist/registry/workflows/legal/nda.md +0 -69
  133. package/dist/registry/workflows/legal/patent-filing.md +0 -76
  134. package/dist/registry/workflows/legal/saas-contract-development.md +0 -213
  135. package/dist/registry/workflows/legal/trademark-filing.md +0 -77
  136. package/dist/registry/workflows/marketing/content-creation.md +0 -37
  137. package/dist/registry/workflows/marketing/convert-to-pdf.md +0 -235
  138. package/dist/registry/workflows/marketing/create-modern-website.md +0 -456
  139. package/dist/registry/workflows/marketing/domain-registration.md +0 -323
  140. package/dist/registry/workflows/marketing/hbr-article.md +0 -73
  141. package/dist/registry/workflows/marketing/launch-checklist.md +0 -37
  142. package/dist/registry/workflows/marketing/marketing-strategy.md +0 -45
  143. package/dist/registry/workflows/marketing/storytelling.md +0 -65
  144. package/dist/registry/workflows/performance/analyze-performance.md +0 -65
  145. package/dist/registry/workflows/product-building/design.md +0 -103
  146. package/dist/registry/workflows/product-building/implement.md +0 -74
  147. package/dist/registry/workflows/product-building/iterate-on-pr-comments.md +0 -70
  148. package/dist/registry/workflows/product-building/prep-issue.md +0 -41
  149. package/dist/registry/workflows/product-building/prototype.md +0 -65
  150. package/dist/registry/workflows/product-building/resolve.md +0 -168
  151. package/dist/registry/workflows/product-building/retrospect.md +0 -86
  152. package/dist/registry/workflows/product-building/spec.md +0 -181
  153. package/dist/registry/workflows/product-building/test.md +0 -125
  154. package/dist/registry/workflows/productivity-report/productivity-report.md +0 -263
  155. package/dist/registry/workflows/quality-assurance/browser-validation.md +0 -221
  156. package/dist/registry/workflows/quality-assurance/iterative-improvement-cycle.md +0 -562
  157. package/dist/registry/workflows/replicate/replicate-discovery.md +0 -336
  158. package/dist/registry/workflows/replicate/replicate-to-issues.md +0 -324
  159. package/dist/registry/workflows/reviewer/review-implementation-vs-design-spec.md +0 -638
  160. package/dist/registry/workflows/reviewer/review-implementation-vs-feature-spec.md +0 -675
  161. package/dist/registry/workflows/startup-credits/aws-activate-application.md +0 -535
  162. package/dist/registry/workflows/startup-credits/google-cloud-application.md +0 -647
  163. package/dist/registry/workflows/startup-credits/microsoft-azure-application.md +0 -538
  164. package/dist/scripts/build-stub-registry.js +0 -108
  165. package/dist/src/ai-manager/ai-manager.js +0 -480
  166. package/dist/src/ai-manager/phase-flow.js +0 -357
  167. package/dist/src/ai-manager/types.js +0 -5
  168. package/dist/src/fraim-mcp-server.js +0 -1885
  169. package/dist/tests/debug-tools.js +0 -80
  170. package/dist/tests/shared-server-utils.js +0 -57
  171. package/dist/tests/test-add-ide.js +0 -283
  172. package/dist/tests/test-ai-coach-edge-cases.js +0 -420
  173. package/dist/tests/test-ai-coach-mcp-integration.js +0 -450
  174. package/dist/tests/test-ai-coach-performance.js +0 -328
  175. package/dist/tests/test-ai-coach-phase-content.js +0 -264
  176. package/dist/tests/test-ai-coach-workflows.js +0 -514
  177. package/dist/tests/test-cli.js +0 -228
  178. package/dist/tests/test-client-scripts-validation.js +0 -167
  179. package/dist/tests/test-complete-setup-flow.js +0 -110
  180. package/dist/tests/test-config-system.js +0 -279
  181. package/dist/tests/test-debug-session.js +0 -134
  182. package/dist/tests/test-end-to-end-hybrid-validation.js +0 -328
  183. package/dist/tests/test-enhanced-session-init.js +0 -188
  184. package/dist/tests/test-first-run-journey.js +0 -368
  185. package/dist/tests/test-fraim-issues.js +0 -59
  186. package/dist/tests/test-genericization.js +0 -44
  187. package/dist/tests/test-hybrid-script-execution.js +0 -340
  188. package/dist/tests/test-ide-detector.js +0 -46
  189. package/dist/tests/test-improved-setup.js +0 -121
  190. package/dist/tests/test-mcp-config-generator.js +0 -99
  191. package/dist/tests/test-mcp-connection.js +0 -107
  192. package/dist/tests/test-mcp-issue-integration.js +0 -156
  193. package/dist/tests/test-mcp-lifecycle-methods.js +0 -240
  194. package/dist/tests/test-mcp-shared-server.js +0 -308
  195. package/dist/tests/test-mcp-template-processing.js +0 -160
  196. package/dist/tests/test-modular-issue-tracking.js +0 -165
  197. package/dist/tests/test-node-compatibility.js +0 -95
  198. package/dist/tests/test-npm-install.js +0 -68
  199. package/dist/tests/test-package-size.js +0 -108
  200. package/dist/tests/test-pr-review-workflow.js +0 -307
  201. package/dist/tests/test-prep-issue.js +0 -129
  202. package/dist/tests/test-productivity-integration.js +0 -157
  203. package/dist/tests/test-script-location-independence.js +0 -198
  204. package/dist/tests/test-script-sync.js +0 -557
  205. package/dist/tests/test-server-utils.js +0 -32
  206. package/dist/tests/test-session-rehydration.js +0 -148
  207. package/dist/tests/test-setup-integration.js +0 -98
  208. package/dist/tests/test-setup-scenarios.js +0 -322
  209. package/dist/tests/test-standalone.js +0 -143
  210. package/dist/tests/test-stub-registry.js +0 -136
  211. package/dist/tests/test-sync-stubs.js +0 -143
  212. package/dist/tests/test-sync-version-update.js +0 -93
  213. package/dist/tests/test-telemetry.js +0 -193
  214. package/dist/tests/test-token-validator.js +0 -30
  215. package/dist/tests/test-user-journey.js +0 -236
  216. package/dist/tests/test-users-to-target-workflow.js +0 -253
  217. package/dist/tests/test-utils.js +0 -109
  218. package/dist/tests/test-wizard.js +0 -71
  219. package/dist/tests/test-workflow-discovery.js +0 -242
  220. package/labels.json +0 -52
  221. package/registry/agent-guardrails.md +0 -63
  222. package/registry/fraim.md +0 -48
  223. package/setup.js +0 -171
  224. package/tsconfig.json +0 -23
@@ -1,336 +0,0 @@
1
- # Replicate Discovery Workflow
2
-
3
- ## INTENT
4
- To systematically discover, analyze, and document an existing web application for replication, producing a complete analysis package that can be converted into implementation issues.
5
-
6
- ## PRINCIPLES
7
- - **Comprehensive Discovery**: Capture all features, UI patterns, and user workflows
8
- - **Systematic Analysis**: Follow structured phases from technical scraping to use case extraction
9
- - **Organized Documentation**: Create well-structured artifacts for downstream workflows
10
- - **Technology Awareness**: Document the tech stack and architectural patterns
11
-
12
- ## Overview
13
- This workflow guides agents through discovering and analyzing an existing web application, producing comprehensive documentation including screenshots, use cases, UI patterns, and technology analysis. The output feeds into the `replicate-to-issues.md` workflow to create GitHub issues for implementation.
14
-
15
- ## When to Use This Workflow
16
-
17
- Use this workflow when:
18
- - Re-implementing an existing application
19
- - Migrating an application to a new technology stack
20
- - Creating a feature-complete replica of an application
21
- - Documenting an existing application for modernization
22
-
23
- ## Prerequisites
24
- - Access to the target website URL
25
- - Python 3.8 or higher
26
- - Basic understanding of web technologies (HTML, CSS, JavaScript, React)
27
-
28
- ### Required Python Packages
29
- The Python scraping scripts are synced to `~/.fraim/scripts/` during `fraim init` or `fraim sync`.
30
-
31
- Install required packages:
32
- ```bash
33
- pip install playwright beautifulsoup4 requests
34
- ```
35
-
36
- For Playwright browser automation, install browser binaries:
37
- ```bash
38
- playwright install chromium
39
- ```
40
-
41
- ## Workflow Steps
42
-
43
- ### Phase 1: Initial Site Scraping
44
-
45
- **Objective**: Get a comprehensive understanding of the site structure, pages, and resources.
46
-
47
- 1. **Create Output Directory Structure**
48
- ```
49
- docs/replicate/
50
- ├── analysis/ # JSON analysis files
51
- ├── screenshots/ # Organized screenshots
52
- ├── reports/ # Generated documentation
53
- └── artifacts/ # Additional artifacts
54
- ```
55
-
56
- 2. **Run Basic Site Scraper**
57
- ```bash
58
- python ~/.fraim/scripts/scrape-site.py <target_url> --output-dir docs/replicate/analysis [--max-pages N]
59
- ```
60
- - **Options**:
61
- - `target_url`: Base URL of the website to scrape (required)
62
- - `--max-pages N`: Maximum number of pages to scrape (default: 50)
63
- - `--output-dir`: Output directory for results
64
- - `--output-file`: Output filename (default: site_analysis.json)
65
-
66
- This generates:
67
- - `docs/replicate/analysis/site_analysis.json` - Page structure, forms, CSS/JS files, images, links
68
-
69
- 3. **Review Initial Findings**
70
- - Check `site_analysis.json` for:
71
- - Total pages discovered
72
- - Common navigation patterns
73
- - Form structures
74
- - Resource dependencies
75
- - Technology indicators (React, Vue, Angular, etc.)
76
-
77
- ### Phase 2: Interactive Browser Analysis
78
-
79
- **Objective**: Understand dynamic behavior, user interactions, and SPA patterns.
80
-
81
- 1. **Run Interactive Explorer**
82
- ```bash
83
- python ~/.fraim/scripts/interactive-explorer.py <target_url> --output-dir docs/replicate [--headless] [--max-clicks N]
84
- ```
85
- - **Options**:
86
- - `target_url`: Base URL of the website to explore (required)
87
- - `--output-dir`: Output directory for results
88
- - `--headless`: Run browser in headless mode
89
- - `--max-clicks N`: Maximum number of clicks to perform (default: 20)
90
-
91
- This generates:
92
- - `docs/replicate/analysis/interaction_analysis.json` - Pages visited, interactions, use case hints
93
- - `docs/replicate/screenshots/` - Screenshots of each state
94
-
95
- 2. **Run Comprehensive Explorer**
96
- ```bash
97
- python ~/.fraim/scripts/comprehensive-explorer.py <target_url> --output-dir docs/replicate [--headless]
98
- ```
99
-
100
- This generates:
101
- - `docs/replicate/analysis/comprehensive_analysis.json` - Detailed page content, routes, use cases
102
- - Additional screenshots in `docs/replicate/screenshots/`
103
-
104
- ### Phase 3: Screenshot Organization & Visual Analysis
105
-
106
- **Objective**: Organize visual assets and identify UI/UX patterns.
107
-
108
- 1. **Organize Screenshots by Category**
109
- Create folder structure within `docs/replicate/screenshots/`:
110
- ```
111
- screenshots/
112
- ├── authentication/
113
- ├── navigation/
114
- ├── forms/
115
- ├── lists/
116
- ├── details/
117
- └── [feature-specific]/
118
- ```
119
-
120
- 2. **Identify UI Component Patterns**
121
- Document in `docs/replicate/reports/component-catalog.md`:
122
- - Navigation components (header, sidebar, footer)
123
- - Form components (inputs, buttons, validation)
124
- - Card/List components
125
- - Modal/Dialog patterns
126
- - Button styles and states
127
- - Input styles and variations
128
-
129
- 3. **Analyze Layout Patterns**
130
- Document in `docs/replicate/reports/layout-patterns.md`:
131
- - Page layout structures
132
- - Responsive design patterns
133
- - Grid systems
134
- - Spacing and typography
135
- - Color palette
136
- - Visual hierarchy
137
-
138
- 4. **Create Screenshot Index**
139
- Generate `docs/replicate/reports/screenshot-index.md`:
140
- - Filename and path
141
- - Page/Route
142
- - Description
143
- - Related use case
144
- - Key UI elements visible
145
-
146
- ### Phase 4: Technology Stack Analysis
147
-
148
- **Objective**: Identify and document the technology stack and architectural patterns.
149
-
150
- 1. **Analyze Technology Indicators**
151
- From analysis JSON files, identify:
152
- - **Frontend Framework**: React, Vue, Angular, vanilla JS
153
- - **Build Tools**: Webpack, Vite, Parcel
154
- - **CSS Framework**: Bootstrap, Tailwind, Material-UI, custom
155
- - **State Management**: Redux, MobX, Context API
156
- - **Routing**: React Router, Vue Router, etc.
157
- - **API Patterns**: REST, GraphQL, WebSocket
158
-
159
- 2. **Document Architecture Patterns**
160
- Create `docs/replicate/reports/technology-stack.md`:
161
- - Identified technologies
162
- - Architectural patterns (SPA, MPA, SSR)
163
- - Component structure
164
- - Data flow patterns
165
- - Authentication approach
166
- - API integration patterns
167
-
168
- 3. **Infer Data Models**
169
- From forms and content, document in `docs/replicate/reports/data-models.md`:
170
- - Entity types (User, Event, Organization, etc.)
171
- - Field structures
172
- - Relationships
173
- - Validation rules
174
-
175
- ### Phase 5: Use Case Extraction
176
-
177
- **Objective**: Systematically identify and document all user workflows.
178
-
179
- 1. **Identify User Roles**
180
- From analysis data, identify:
181
- - Guest/Anonymous users
182
- - Authenticated users
183
- - Admin/Moderator roles
184
- - Organization/Group roles
185
- - Special roles (Volunteer, Member, etc.)
186
-
187
- 2. **Extract Use Cases from Data**
188
- Review all analysis files and:
189
- - Map user journeys through the application
190
- - Identify user actions (buttons, forms, links)
191
- - Group related actions into use cases
192
- - Document workflows and flows
193
-
194
- 3. **Organize Use Cases by Category**
195
- Common categories:
196
- - **Authentication & Account Management**
197
- - **Content Discovery & Browsing**
198
- - **Content Creation & Management**
199
- - **Search & Filtering**
200
- - **Data Collection & Reporting**
201
- - **Administration & Configuration**
202
- - **Communication & Collaboration**
203
-
204
- 4. **Document Each Use Case**
205
- Create `docs/replicate/reports/use-cases.md` with structure:
206
- ```markdown
207
- ## Use Case: [Name]
208
-
209
- **ID**: UC-[number]
210
- **Actor**: [Who performs this]
211
- **Category**: [Category name]
212
- **Priority**: High/Medium/Low
213
-
214
- **Preconditions**:
215
- - [What must be true before]
216
-
217
- **Steps**:
218
- 1. [Step description]
219
- 2. [Step description]
220
- 3. [Step description]
221
-
222
- **Postconditions**:
223
- - [Expected outcomes]
224
-
225
- **Screenshots**:
226
- - `screenshots/[category]/[filename].png`
227
-
228
- **Technical Notes**:
229
- - [API endpoints, data models, etc.]
230
-
231
- **Acceptance Criteria**:
232
- - [ ] [Testable criterion]
233
- - [ ] [Testable criterion]
234
- ```
235
-
236
- 5. **Validate Completeness**
237
- - Every page has associated use cases
238
- - Every form has documented workflow
239
- - All navigation paths are covered
240
- - All user roles are represented
241
- - Edge cases and error scenarios documented
242
-
243
- ### Phase 6: Create Master Report
244
-
245
- **Objective**: Consolidate all findings into a comprehensive report.
246
-
247
- 1. **Generate Master Report**
248
- Create `docs/replicate/REPLICATION_ANALYSIS.md`:
249
- - **Executive Summary**: High-level overview
250
- - **Technology Stack**: Identified technologies
251
- - **User Roles**: All identified roles
252
- - **Use Case Summary**: Count by category and priority
253
- - **Component Inventory**: UI components identified
254
- - **Data Models**: Inferred data structures
255
- - **Implementation Recommendations**: Suggested approach
256
- - **Next Steps**: Link to replicate-to-issues workflow
257
-
258
- 2. **Create Quick Reference Index**
259
- Generate `docs/replicate/INDEX.md`:
260
- - Links to all reports
261
- - Use case index with IDs
262
- - Screenshot index
263
- - Technology summary
264
- - Statistics (page count, use case count, etc.)
265
-
266
- ## Output Artifacts
267
-
268
- After completing this workflow, you should have in `docs/replicate/`:
269
-
270
- ### Analysis Data (`analysis/`)
271
- - `site_analysis.json` - Basic site structure
272
- - `interaction_analysis.json` - Interactive behavior
273
- - `comprehensive_analysis.json` - Deep content analysis
274
-
275
- ### Screenshots (`screenshots/`)
276
- - Organized by category/feature
277
- - Named descriptively
278
- - Cover all pages and key interactions
279
-
280
- ### Reports (`reports/`)
281
- - `use-cases.md` - Complete use case documentation
282
- - `component-catalog.md` - UI component inventory
283
- - `layout-patterns.md` - Layout and design patterns
284
- - `technology-stack.md` - Technology analysis
285
- - `data-models.md` - Inferred data structures
286
- - `screenshot-index.md` - Screenshot reference
287
-
288
- ### Master Documents
289
- - `REPLICATION_ANALYSIS.md` - Comprehensive master report
290
- - `INDEX.md` - Quick reference index
291
-
292
- ## Best Practices
293
-
294
- 1. **Be Thorough**: Don't skip pages or features
295
- 2. **Document Everything**: Better to have too much information
296
- 3. **Validate Manually**: Review automated findings manually
297
- 4. **Organize Early**: Keep structure clean from the start
298
- 5. **Iterate**: Run scripts multiple times as you discover new routes
299
- 6. **Be Respectful**: Include delays between requests, respect robots.txt
300
- 7. **Start Small**: Use limits on initial runs, expand as needed
301
-
302
- ## Common Challenges
303
-
304
- 1. **SPA Routing**: React/SPA apps may not expose all routes in HTML
305
- - **Solution**: Use browser navigation to discover routes
306
-
307
- 2. **Authentication**: Some pages require login
308
- - **Solution**: Document login flows, consider authenticated scraping
309
-
310
- 3. **Dynamic Content**: Content loaded via JavaScript
311
- - **Solution**: Use browser automation (Playwright)
312
-
313
- 4. **Rate Limiting**: Too many requests too fast
314
- - **Solution**: Scripts include delays, adjust as needed
315
-
316
- ## Troubleshooting
317
-
318
- ### Browser Installation Issues
319
- ```bash
320
- playwright install chromium --force
321
- ```
322
-
323
- ### Import Errors
324
- ```bash
325
- pip install --upgrade playwright beautifulsoup4 requests
326
- ```
327
-
328
- ### Network Timeouts
329
- - Check internet connection
330
- - Verify target URL is accessible
331
- - Increase timeout values in scripts
332
-
333
- ## Next Steps
334
-
335
- After completing this workflow, get user feedback and once in agreement, suggest that the user proceed to:
336
- - **Replicate to Issues** workflow (`workflows/replicate/replicate-to-issues.md`)
@@ -1,324 +0,0 @@
1
- # Replicate to Issues Workflow
2
-
3
- ## INTENT
4
- To convert comprehensive replication analysis into actionable GitHub issues that can be implemented through standard FRAIM workflows (spec → design → implement → test).
5
-
6
- ## PRINCIPLES
7
- - **One Issue Per Feature**: Each use case becomes a focused, implementable issue
8
- - **Complete Context**: Include all relevant screenshots, requirements, and technical notes
9
- - **Proper Prioritization**: Use priority from discovery analysis
10
- - **Clear Acceptance Criteria**: Make issues testable and verifiable
11
- - **Linked Dependencies**: Connect related issues appropriately
12
-
13
- ## Overview
14
- This workflow guides agents through converting the outputs from `replicate-discovery.md` into well-structured GitHub issues. Each issue represents a feature or use case that can be implemented through the standard FRAIM spec/design/implement/test workflow.
15
-
16
- ## Prerequisites
17
- - Completed Replicate Discovery workflow (`workflows/replicate/replicate-discovery.md`)
18
- - Access to `docs/replicate/` directory with all analysis artifacts
19
- - GitHub repository access with issue creation permissions
20
- - Understanding of the target implementation repository
21
-
22
- **GitHub Repository Context**: Before using GitHub MCP tools, read the local `.fraim/config.json` file to get the repository context:
23
- - Use `git.repoOwner` for the GitHub repository owner
24
- - Use `git.repoName` for the GitHub repository name
25
- - These values are required for GitHub MCP API calls (owner/repo parameters)
26
-
27
- ## Workflow Steps
28
-
29
- ### Phase 1: Prepare Issue Generation
30
-
31
- 1. **Review Discovery Artifacts**
32
- - Read `docs/replicate/REPLICATION_ANALYSIS.md`
33
- - Review `docs/replicate/reports/use-cases.md`
34
- - Check `docs/replicate/reports/technology-stack.md`
35
- - Verify all screenshots are accessible
36
-
37
- 2. **Define Issue Structure**
38
- Each issue should include:
39
- - **Title**: Clear, concise feature name
40
- - **Description**: What needs to be built
41
- - **User Story**: As a [role], I want [feature] so that [benefit]
42
- - **Use Case Reference**: Link to use case in discovery docs
43
- - **Screenshots**: Embedded or linked screenshots
44
- - **Technical Requirements**: Technology, components, APIs needed
45
- - **Acceptance Criteria**: Testable conditions for completion
46
- - **Priority**: High/Medium/Low from discovery
47
- - **Labels**: Feature type, priority, component area
48
- - **Dependencies**: Links to related issues
49
-
50
- 3. **Create Issue Template**
51
- ```markdown
52
- ## User Story
53
- As a [role], I want [feature] so that [benefit].
54
-
55
- ## Description
56
- [Detailed description of the feature]
57
-
58
- ## Use Case Reference
59
- See: `docs/replicate/reports/use-cases.md` - UC-[number]
60
-
61
- ## Screenshots
62
- ![Screenshot](<path-to-screenshot>)
63
-
64
- ## Technical Requirements
65
- - **Components**: [List of UI components needed]
66
- - **Data Models**: [Entities and fields]
67
- - **API Endpoints**: [Required endpoints]
68
- - **Dependencies**: [External libraries or services]
69
-
70
- ## Acceptance Criteria
71
- - [ ] [Testable criterion 1]
72
- - [ ] [Testable criterion 2]
73
- - [ ] [Testable criterion 3]
74
-
75
- ## Implementation Notes
76
- [Any additional technical notes or considerations]
77
-
78
- ## Related Issues
79
- - Depends on: #[issue-number]
80
- - Related to: #[issue-number]
81
- ```
82
-
83
- ### Phase 2: Categorize and Prioritize
84
-
85
- 1. **Group Use Cases by Implementation Order**
86
- Typical order:
87
- 1. **Foundation** (Priority: High)
88
- - Project setup and configuration
89
- - Database schema and models
90
- - Authentication system
91
- - Basic routing and navigation
92
-
93
- 2. **Core Features** (Priority: High)
94
- - Primary user workflows
95
- - Essential CRUD operations
96
- - Main user interfaces
97
-
98
- 3. **Secondary Features** (Priority: Medium)
99
- - Supporting functionality
100
- - Additional user workflows
101
- - Enhanced features
102
-
103
- 4. **Polish & Enhancement** (Priority: Low)
104
- - UI/UX improvements
105
- - Edge cases
106
- - Nice-to-have features
107
-
108
- 2. **Identify Dependencies**
109
- - Authentication must come before protected features
110
- - Data models before features that use them
111
- - Shared components before pages that use them
112
- - API endpoints before frontend features
113
-
114
- 3. **Create Implementation Roadmap**
115
- Document in `docs/replicate/IMPLEMENTATION_ROADMAP.md`:
116
- - Phase 1: Foundation (issues #1-10)
117
- - Phase 2: Core Features (issues #11-30)
118
- - Phase 3: Secondary Features (issues #31-50)
119
- - Phase 4: Polish (issues #51+)
120
-
121
- ### Phase 3: Generate GitHub Issues
122
-
123
- 1. **Create Foundation Issues**
124
- Generate issues for:
125
- - Project setup and tooling
126
- - Database schema design
127
- - Authentication system
128
- - Base layout and navigation
129
- - Shared component library
130
-
131
- 2. **Create Feature Issues**
132
- For each use case in `docs/replicate/reports/use-cases.md`:
133
- - Extract use case details
134
- - Format as GitHub issue
135
- - Include relevant screenshots
136
- - Add technical requirements
137
- - Set priority and labels
138
- - Note dependencies
139
-
140
- 3. **Use GitHub API or CLI**
141
- ```bash
142
- # Using GitHub CLI
143
- gh issue create \
144
- --title "Implement User Registration" \
145
- --body-file issue-template.md \
146
- --label "feature,high-priority,authentication" \
147
- --assignee @me
148
- ```
149
-
150
- 4. **Batch Issue Creation**
151
- Create a script or use MCP GitHub tools:
152
- - Read use cases from `docs/replicate/reports/use-cases.md`
153
- - Generate issue body for each
154
- - Create issues via API
155
- - Track created issue numbers
156
- - Update dependency links
157
-
158
- ### Phase 4: Link and Organize
159
-
160
- 1. **Update Issue Dependencies**
161
- - After all issues created, update with dependency links
162
- - Use "Depends on #X" or "Blocked by #X"
163
- - Link related issues with "Related to #X"
164
-
165
- 2. **Create GitHub Milestones**
166
- - Foundation Milestone
167
- - Core Features Milestone
168
- - Secondary Features Milestone
169
- - Polish & Launch Milestone
170
-
171
- 3. **Assign Issues to Milestones**
172
- - Group issues by implementation phase
173
- - Set milestone due dates if applicable
174
-
175
- 4. **Create Project Board** (Optional)
176
- - Columns: Backlog, Spec, Design, Implementation, Testing, Done
177
- - Add all issues to board
178
- - Organize by priority and dependencies
179
-
180
- ### Phase 5: Documentation
181
-
182
- 1. **Create Issue Index**
183
- Generate `docs/replicate/GITHUB_ISSUES.md`:
184
- ```markdown
185
- # GitHub Issues Index
186
-
187
- ## Foundation Issues
188
- - #1: Project Setup and Configuration
189
- - #2: Database Schema Design
190
- - #3: Authentication System
191
-
192
- ## Core Features
193
- - #10: User Registration
194
- - #11: User Login
195
- - #12: Event Listing
196
-
197
- [etc.]
198
- ```
199
-
200
- 2. **Update Master Report**
201
- Add to `docs/replicate/REPLICATION_ANALYSIS.md`:
202
- - Link to GitHub issues
203
- - Implementation roadmap
204
- - Next steps for development
205
-
206
- 3. **Create Developer Guide**
207
- Generate `docs/replicate/DEVELOPER_GUIDE.md`:
208
- - How to pick up an issue
209
- - Workflow: spec → design → implement → test
210
- - Where to find reference materials
211
- - How to use discovery artifacts
212
-
213
- ## Output Artifacts
214
-
215
- After completing this workflow, you should have:
216
-
217
- 1. **GitHub Issues**
218
- - One issue per feature/use case
219
- - Properly labeled and prioritized
220
- - With dependencies linked
221
- - Assigned to milestones
222
-
223
- 2. **Documentation**
224
- - `docs/replicate/IMPLEMENTATION_ROADMAP.md` - Phased implementation plan
225
- - `docs/replicate/GITHUB_ISSUES.md` - Index of all created issues
226
- - `docs/replicate/DEVELOPER_GUIDE.md` - How to work with issues
227
-
228
- 3. **Project Organization**
229
- - GitHub milestones created
230
- - Project board set up (optional)
231
- - Issues organized and ready for work
232
-
233
- ## Issue Labeling Strategy
234
-
235
- Use consistent labels:
236
- - **Type**: `feature`, `bug`, `enhancement`, `documentation`
237
- - **Priority**: `high-priority`, `medium-priority`, `low-priority`
238
- - **Component**: `authentication`, `ui`, `api`, `database`, `navigation`
239
- - **Status**: `needs-spec`, `needs-design`, `ready-for-implementation`, `blocked`
240
- - **Phase**: `foundation`, `core`, `secondary`, `polish`
241
-
242
- ## Best Practices
243
-
244
- 1. **Keep Issues Focused**: One feature per issue, not too broad
245
- 2. **Include Context**: Link to discovery docs and screenshots
246
- 3. **Clear Acceptance Criteria**: Make it obvious when done
247
- 4. **Realistic Scope**: Issues should be completable in reasonable time
248
- 5. **Update Dependencies**: Keep dependency links current
249
- 6. **Use Templates**: Consistent issue format helps clarity
250
-
251
- ## Common Patterns
252
-
253
- ### Foundation Issue Example
254
- ```markdown
255
- Title: Set Up Database Schema for User Management
256
-
257
- ## User Story
258
- As a developer, I want a well-designed database schema so that I can implement user-related features.
259
-
260
- ## Description
261
- Design and implement the database schema for user management based on the discovery analysis.
262
-
263
- ## Technical Requirements
264
- - User table with fields: id, email, password_hash, name, created_at, updated_at
265
- - Profile table with additional user information
266
- - Proper indexes and constraints
267
- - Migration scripts
268
-
269
- ## Acceptance Criteria
270
- - [ ] Database schema designed and documented
271
- - [ ] Migration scripts created
272
- - [ ] Schema matches requirements from discovery
273
- - [ ] Indexes added for performance
274
- - [ ] Foreign keys and constraints properly set
275
-
276
- ## Related Issues
277
- - Blocks: #10 (User Registration)
278
- - Blocks: #11 (User Login)
279
- ```
280
-
281
- ### Feature Issue Example
282
- ```markdown
283
- Title: Implement Event Listing Page
284
-
285
- ## User Story
286
- As a user, I want to see a list of upcoming events so that I can find events to attend.
287
-
288
- ## Description
289
- Implement the event listing page showing all upcoming events with filtering and search capabilities.
290
-
291
- ## Use Case Reference
292
- See: `docs/replicate/reports/use-cases.md` - UC-15
293
-
294
- ## Screenshots
295
- ![Event List](docs/replicate/screenshots/events/event-list.png)
296
-
297
- ## Technical Requirements
298
- - **Components**: EventCard, EventList, FilterBar, SearchBox
299
- - **Data Models**: Event (id, title, date, location, description)
300
- - **API Endpoints**: GET /api/events?filter=upcoming&search=query
301
- - **Dependencies**: React, date-fns for date formatting
302
-
303
- ## Acceptance Criteria
304
- - [ ] Event list displays all upcoming events
305
- - [ ] Events can be filtered by date, location, category
306
- - [ ] Search functionality works
307
- - [ ] Pagination implemented (20 events per page)
308
- - [ ] Responsive design matches screenshots
309
- - [ ] Loading and error states handled
310
-
311
- ## Implementation Notes
312
- - Use infinite scroll or pagination
313
- - Cache event data for performance
314
- - Consider using React Query for data fetching
315
-
316
- ## Related Issues
317
- - Depends on: #5 (Event Data Model)
318
- - Depends on: #8 (Event API Endpoints)
319
- - Related to: #16 (Event Detail Page)
320
- ```
321
-
322
- ## Next Steps
323
-
324
- After completing this workflow, let the user verify and once in agreement, recommend that the product-building workflows be started with prep-issue, spec, design, implement phases