fraim-framework 2.0.67 → 2.0.69
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/bin/fraim.js +1 -1
- package/dist/src/cli/commands/doctor.js +1 -1
- package/dist/src/cli/commands/init-project.js +6 -12
- package/dist/src/cli/commands/list.js +1 -1
- package/dist/src/cli/commands/setup.js +15 -29
- package/dist/src/cli/commands/sync.js +36 -143
- package/dist/src/cli/fraim.js +0 -4
- package/dist/src/cli/setup/first-run.js +4 -4
- package/dist/src/cli/setup/ide-detector.js +15 -5
- package/dist/src/fraim/template-processor.js +7 -35
- package/dist/src/local-mcp-server/stdio-server.js +170 -181
- package/dist/src/utils/git-utils.js +2 -2
- package/dist/src/utils/object-utils.js +11 -0
- package/dist/src/utils/provider-utils.js +14 -0
- package/dist/src/utils/request-utils.js +23 -0
- package/dist/src/utils/workflow-parser.js +7 -7
- package/package.json +7 -5
- package/dist/registry/ai-manager-rules/customer-development-phases/phase1-customer-profiling.md +0 -101
- package/dist/registry/ai-manager-rules/customer-development-phases/phase2-platform-discovery.md +0 -235
- package/dist/registry/ai-manager-rules/customer-development-phases/phase3-prospect-qualification.md +0 -243
- package/dist/registry/ai-manager-rules/customer-development-phases/phase4-inventory-compilation.md +0 -206
- package/dist/registry/ai-manager-rules/design-phases/design-completeness-review.md +0 -73
- package/dist/registry/ai-manager-rules/design-phases/design-design.md +0 -145
- package/dist/registry/ai-manager-rules/design-phases/design.md +0 -108
- package/dist/registry/ai-manager-rules/design-phases/finalize.md +0 -60
- package/dist/registry/ai-manager-rules/design-phases/validate.md +0 -125
- package/dist/registry/ai-manager-rules/design.json +0 -97
- package/dist/registry/ai-manager-rules/implement-phases/code.md +0 -323
- package/dist/registry/ai-manager-rules/implement-phases/completeness-review.md +0 -94
- package/dist/registry/ai-manager-rules/implement-phases/finalize.md +0 -177
- package/dist/registry/ai-manager-rules/implement-phases/implement-code.md +0 -283
- package/dist/registry/ai-manager-rules/implement-phases/implement-completeness-review.md +0 -120
- package/dist/registry/ai-manager-rules/implement-phases/implement-regression.md +0 -173
- package/dist/registry/ai-manager-rules/implement-phases/implement-repro.md +0 -104
- package/dist/registry/ai-manager-rules/implement-phases/implement-scoping.md +0 -100
- package/dist/registry/ai-manager-rules/implement-phases/implement-smoke.md +0 -237
- package/dist/registry/ai-manager-rules/implement-phases/implement-spike.md +0 -121
- package/dist/registry/ai-manager-rules/implement-phases/implement-validate.md +0 -375
- package/dist/registry/ai-manager-rules/implement-phases/quality-review.md +0 -304
- package/dist/registry/ai-manager-rules/implement-phases/regression.md +0 -159
- package/dist/registry/ai-manager-rules/implement-phases/repro.md +0 -101
- package/dist/registry/ai-manager-rules/implement-phases/scoping.md +0 -93
- package/dist/registry/ai-manager-rules/implement-phases/smoke.md +0 -225
- package/dist/registry/ai-manager-rules/implement-phases/spike.md +0 -118
- package/dist/registry/ai-manager-rules/implement-phases/validate.md +0 -347
- package/dist/registry/ai-manager-rules/implement.json +0 -153
- package/dist/registry/ai-manager-rules/retrospective.md +0 -116
- package/dist/registry/ai-manager-rules/shared-phases/address-pr-feedback.md +0 -188
- package/dist/registry/ai-manager-rules/shared-phases/finalize.md +0 -169
- package/dist/registry/ai-manager-rules/shared-phases/submit-pr.md +0 -202
- package/dist/registry/ai-manager-rules/shared-phases/wait-for-pr-review.md +0 -170
- package/dist/registry/ai-manager-rules/spec-phases/finalize.md +0 -60
- package/dist/registry/ai-manager-rules/spec-phases/spec-competitor-analysis.md +0 -105
- package/dist/registry/ai-manager-rules/spec-phases/spec-completeness-review.md +0 -66
- package/dist/registry/ai-manager-rules/spec-phases/spec-spec.md +0 -139
- package/dist/registry/ai-manager-rules/spec-phases/spec.md +0 -102
- package/dist/registry/ai-manager-rules/spec-phases/validate.md +0 -118
- package/dist/registry/ai-manager-rules/spec.json +0 -112
- package/dist/registry/ai-manager-rules/test.json +0 -98
- package/dist/registry/ai-manager-rules/user-survey-phases/phase1-survey-scoping.md +0 -60
- package/dist/registry/ai-manager-rules/user-survey-phases/phase2-survey-build-linkedin.md +0 -23
- package/dist/registry/ai-manager-rules/user-survey-phases/phase3-survey-build-reddit.md +0 -22
- package/dist/registry/ai-manager-rules/user-survey-phases/phase4-survey-build-x.md +0 -21
- package/dist/registry/ai-manager-rules/user-survey-phases/phase5-survey-build-facebook.md +0 -19
- package/dist/registry/ai-manager-rules/user-survey-phases/phase6-survey-build-custom.md +0 -15
- package/dist/registry/ai-manager-rules/user-survey-phases/phase7-survey-dispatch.md +0 -45
- package/dist/registry/delivery/address-feedback.md +0 -83
- package/dist/registry/delivery/retrospective.md +0 -78
- package/dist/registry/delivery/submit.md +0 -79
- package/dist/registry/providers/ado.json +0 -19
- package/dist/registry/providers/delivery-conversation.json +0 -9
- package/dist/registry/providers/delivery-pr.json +0 -9
- package/dist/registry/providers/github.json +0 -19
- package/dist/registry/rules/agent-success-criteria.md +0 -101
- package/dist/registry/rules/agent-testing-guidelines.md +0 -502
- package/dist/registry/rules/architecture.md +0 -126
- package/dist/registry/rules/communication.md +0 -122
- package/dist/registry/rules/continuous-learning.md +0 -55
- package/dist/registry/rules/debugging-multitenancy-issues.md +0 -85
- package/dist/registry/rules/ephemeral-execution.md +0 -54
- package/dist/registry/rules/git-safe-commands.md +0 -34
- package/dist/registry/rules/hitl-ppe-record-analysis.md +0 -302
- package/dist/registry/rules/integrity-and-test-ethics.md +0 -275
- package/dist/registry/rules/local-development.md +0 -275
- package/dist/registry/rules/mandatory-pre-completion-reflection.md +0 -193
- package/dist/registry/rules/merge-requirements.md +0 -238
- package/dist/registry/rules/simplicity.md +0 -118
- package/dist/registry/rules/software-development-lifecycle.md +0 -105
- package/dist/registry/rules/spike-first-development.md +0 -205
- package/dist/registry/rules/successful-debugging-patterns.md +0 -488
- package/dist/registry/scripts/build-scripts-generator.js +0 -205
- package/dist/registry/scripts/cleanup-branch.js +0 -287
- package/dist/registry/scripts/evaluate-code-quality.js +0 -66
- package/dist/registry/scripts/exec-with-timeout.js +0 -142
- package/dist/registry/scripts/fraim-config.js +0 -61
- package/dist/registry/scripts/generate-engagement-emails.js +0 -705
- package/dist/registry/scripts/generic-issues-api.js +0 -100
- package/dist/registry/scripts/newsletter-helpers.js +0 -671
- package/dist/registry/scripts/openapi-generator.js +0 -664
- package/dist/registry/scripts/performance/profile-server.js +0 -390
- package/dist/registry/scripts/profile-server.js +0 -389
- package/dist/registry/scripts/run-thank-you-workflow.js +0 -92
- package/dist/registry/scripts/send-newsletter-simple.js +0 -85
- package/dist/registry/scripts/send-thank-you-emails.js +0 -54
- package/dist/registry/scripts/validate-openapi-limits.js +0 -311
- package/dist/registry/scripts/validate-test-coverage.js +0 -262
- package/dist/registry/scripts/verify-test-coverage.js +0 -66
- package/dist/registry/stubs/workflows/azure/cost-optimization.md +0 -11
- package/dist/registry/stubs/workflows/bootstrap/create-architecture.md +0 -11
- package/dist/registry/stubs/workflows/bootstrap/detect-broken-windows.md +0 -11
- package/dist/registry/stubs/workflows/bootstrap/evaluate-code-quality.md +0 -11
- package/dist/registry/stubs/workflows/bootstrap/verify-test-coverage.md +0 -11
- package/dist/registry/stubs/workflows/brainstorming/blue-sky-brainstorming.md +0 -11
- package/dist/registry/stubs/workflows/brainstorming/codebase-brainstorming.md +0 -11
- package/dist/registry/stubs/workflows/business-development/create-business-plan.md +0 -11
- package/dist/registry/stubs/workflows/business-development/ideate-business-opportunity.md +0 -11
- package/dist/registry/stubs/workflows/business-development/price-product.md +0 -18
- package/dist/registry/stubs/workflows/compliance/detect-compliance-requirements.md +0 -11
- package/dist/registry/stubs/workflows/compliance/generate-audit-evidence.md +0 -11
- package/dist/registry/stubs/workflows/compliance/soc2-evidence-generator.md +0 -11
- package/dist/registry/stubs/workflows/customer-development/insight-analysis.md +0 -11
- package/dist/registry/stubs/workflows/customer-development/insight-triage.md +0 -11
- package/dist/registry/stubs/workflows/customer-development/interview-preparation.md +0 -11
- package/dist/registry/stubs/workflows/customer-development/linkedin-outreach.md +0 -11
- package/dist/registry/stubs/workflows/customer-development/strategic-brainstorming.md +0 -11
- package/dist/registry/stubs/workflows/customer-development/thank-customers.md +0 -11
- package/dist/registry/stubs/workflows/customer-development/user-survey-dispatch.md +0 -11
- package/dist/registry/stubs/workflows/customer-development/users-to-target.md +0 -11
- package/dist/registry/stubs/workflows/customer-development/weekly-newsletter.md +0 -11
- package/dist/registry/stubs/workflows/deploy/cloud-deployment.md +0 -11
- package/dist/registry/stubs/workflows/improve-fraim/contribute.md +0 -11
- package/dist/registry/stubs/workflows/improve-fraim/file-issue.md +0 -11
- package/dist/registry/stubs/workflows/learning/build-skillset.md +0 -11
- package/dist/registry/stubs/workflows/learning/synthesize-learnings.md +0 -11
- package/dist/registry/stubs/workflows/legal/contract-review-analysis.md +0 -11
- package/dist/registry/stubs/workflows/legal/nda.md +0 -11
- package/dist/registry/stubs/workflows/legal/patent-filing.md +0 -11
- package/dist/registry/stubs/workflows/legal/saas-contract-development.md +0 -11
- package/dist/registry/stubs/workflows/legal/trademark-filing.md +0 -11
- package/dist/registry/stubs/workflows/marketing/content-creation.md +0 -11
- package/dist/registry/stubs/workflows/marketing/convert-to-pdf.md +0 -11
- package/dist/registry/stubs/workflows/marketing/create-modern-website.md +0 -11
- package/dist/registry/stubs/workflows/marketing/domain-registration.md +0 -11
- package/dist/registry/stubs/workflows/marketing/evangelize.md +0 -11
- package/dist/registry/stubs/workflows/marketing/hbr-article.md +0 -11
- package/dist/registry/stubs/workflows/marketing/launch-checklist.md +0 -11
- package/dist/registry/stubs/workflows/marketing/marketing-strategy.md +0 -11
- package/dist/registry/stubs/workflows/marketing/storytelling.md +0 -11
- package/dist/registry/stubs/workflows/performance/analyze-performance.md +0 -11
- package/dist/registry/stubs/workflows/product-building/design.md +0 -11
- package/dist/registry/stubs/workflows/product-building/implement.md +0 -11
- package/dist/registry/stubs/workflows/product-building/iterate-on-pr-comments.md +0 -11
- package/dist/registry/stubs/workflows/product-building/prep-issue.md +0 -11
- package/dist/registry/stubs/workflows/product-building/prototype.md +0 -11
- package/dist/registry/stubs/workflows/product-building/resolve.md +0 -11
- package/dist/registry/stubs/workflows/product-building/retrospect.md +0 -11
- package/dist/registry/stubs/workflows/product-building/spec.md +0 -11
- package/dist/registry/stubs/workflows/product-building/test.md +0 -11
- package/dist/registry/stubs/workflows/productivity-report/productivity-report.md +0 -11
- package/dist/registry/stubs/workflows/quality-assurance/browser-validation.md +0 -11
- package/dist/registry/stubs/workflows/quality-assurance/iterative-improvement-cycle.md +0 -11
- package/dist/registry/stubs/workflows/replicate/replicate-discovery.md +0 -11
- package/dist/registry/stubs/workflows/replicate/replicate-to-issues.md +0 -11
- package/dist/registry/stubs/workflows/reviewer/review-implementation-vs-design-spec.md +0 -11
- package/dist/registry/stubs/workflows/reviewer/review-implementation-vs-feature-spec.md +0 -11
- package/dist/registry/stubs/workflows/startup-credits/aws-activate-application.md +0 -11
- package/dist/registry/stubs/workflows/startup-credits/google-cloud-application.md +0 -11
- package/dist/registry/stubs/workflows/startup-credits/microsoft-azure-application.md +0 -11
- package/dist/registry/templates/bootstrap/ARCHITECTURE-TEMPLATE.md +0 -53
- package/dist/registry/templates/bootstrap/CODE-QUALITY-REPORT-TEMPLATE.md +0 -37
- package/dist/registry/templates/bootstrap/TEST-COVERAGE-REPORT-TEMPLATE.md +0 -35
- package/dist/registry/templates/business-development/IDEATION-REPORT-TEMPLATE.md +0 -29
- package/dist/registry/templates/business-development/PRICING-STRATEGY-TEMPLATE.md +0 -126
- package/dist/registry/templates/customer-development/customer-interview-template.md +0 -99
- package/dist/registry/templates/customer-development/customer-persona-template.md +0 -69
- package/dist/registry/templates/customer-development/follow-up-email-templates.md +0 -132
- package/dist/registry/templates/customer-development/insight-analysis-template.md +0 -74
- package/dist/registry/templates/customer-development/prospect-inventory-template.csv +0 -3
- package/dist/registry/templates/customer-development/search-strategy-template.md +0 -123
- package/dist/registry/templates/customer-development/strategic-recommendations-template.md +0 -53
- package/dist/registry/templates/customer-development/thank-you-email-template.html +0 -124
- package/dist/registry/templates/customer-development/thank-you-note-template.md +0 -16
- package/dist/registry/templates/customer-development/triage-log-template.md +0 -278
- package/dist/registry/templates/customer-development/weekly-newsletter-template.html +0 -204
- package/dist/registry/templates/evidence/Design-Evidence.md +0 -30
- package/dist/registry/templates/evidence/Implementation-BugEvidence.md +0 -122
- package/dist/registry/templates/evidence/Implementation-FeatureEvidence.md +0 -160
- package/dist/registry/templates/evidence/Spec-Evidence.md +0 -19
- package/dist/registry/templates/help/HelpNeeded.md +0 -14
- package/dist/registry/templates/legal/NDA-TEMPLATE.md +0 -170
- package/dist/registry/templates/legal/PATENT-TEMPLATE.md +0 -372
- package/dist/registry/templates/legal/TRADEMARK-TEMPLATE.md +0 -339
- package/dist/registry/templates/legal/contract-review-checklist.md +0 -193
- package/dist/registry/templates/legal/review-report-template.md +0 -198
- package/dist/registry/templates/legal/saas-terms-template.md +0 -174
- package/dist/registry/templates/legal/sow-template.md +0 -117
- package/dist/registry/templates/legal/template-variables.md +0 -131
- package/dist/registry/templates/marketing/DOMAIN-REGISTRATION-TEMPLATE.md +0 -194
- package/dist/registry/templates/marketing/EVANGELIZE-TEMPLATE.md +0 -102
- package/dist/registry/templates/marketing/HBR-ARTICLE-TEMPLATE.md +0 -66
- package/dist/registry/templates/marketing/STORYTELLING-TEMPLATE.md +0 -130
- package/dist/registry/templates/marketing/WEBSITE-TEMPLATE.md +0 -262
- package/dist/registry/templates/marketing/github-pages-workflow.yml +0 -64
- package/dist/registry/templates/replicate/implementation-checklist.md +0 -39
- package/dist/registry/templates/replicate/use-cases-template.md +0 -88
- package/dist/registry/templates/retrospective/RETROSPECTIVE-TEMPLATE.md +0 -55
- package/dist/registry/templates/specs/BUGSPEC-TEMPLATE.md +0 -37
- package/dist/registry/templates/specs/FEATURESPEC-TEMPLATE.md +0 -66
- package/dist/registry/templates/specs/TECHSPEC-TEMPLATE.md +0 -39
- package/dist/registry/workflows/azure/cost-optimization.md +0 -772
- package/dist/registry/workflows/bootstrap/create-architecture.md +0 -37
- package/dist/registry/workflows/bootstrap/detect-broken-windows.md +0 -300
- package/dist/registry/workflows/bootstrap/evaluate-code-quality.md +0 -35
- package/dist/registry/workflows/bootstrap/verify-test-coverage.md +0 -36
- package/dist/registry/workflows/brainstorming/blue-sky-brainstorming.md +0 -211
- package/dist/registry/workflows/brainstorming/codebase-brainstorming.md +0 -159
- package/dist/registry/workflows/business-development/create-business-plan.md +0 -737
- package/dist/registry/workflows/business-development/ideate-business-opportunity.md +0 -55
- package/dist/registry/workflows/business-development/price-product.md +0 -325
- package/dist/registry/workflows/compliance/detect-compliance-requirements.md +0 -80
- package/dist/registry/workflows/compliance/generate-audit-evidence.md +0 -80
- package/dist/registry/workflows/compliance/soc2-evidence-generator.md +0 -332
- package/dist/registry/workflows/customer-development/insight-analysis.md +0 -156
- package/dist/registry/workflows/customer-development/insight-triage.md +0 -933
- package/dist/registry/workflows/customer-development/interview-preparation.md +0 -452
- package/dist/registry/workflows/customer-development/linkedin-outreach.md +0 -599
- package/dist/registry/workflows/customer-development/strategic-brainstorming.md +0 -146
- package/dist/registry/workflows/customer-development/thank-customers.md +0 -203
- package/dist/registry/workflows/customer-development/user-survey-dispatch.md +0 -312
- package/dist/registry/workflows/customer-development/users-to-target.md +0 -427
- package/dist/registry/workflows/customer-development/weekly-newsletter.md +0 -366
- package/dist/registry/workflows/deploy/cloud-deployment.md +0 -310
- package/dist/registry/workflows/improve-fraim/contribute.md +0 -32
- package/dist/registry/workflows/improve-fraim/file-issue.md +0 -32
- package/dist/registry/workflows/learning/build-skillset.md +0 -212
- package/dist/registry/workflows/learning/synthesize-learnings.md +0 -369
- package/dist/registry/workflows/legal/contract-review-analysis.md +0 -382
- package/dist/registry/workflows/legal/nda.md +0 -69
- package/dist/registry/workflows/legal/patent-filing.md +0 -76
- package/dist/registry/workflows/legal/saas-contract-development.md +0 -204
- package/dist/registry/workflows/legal/trademark-filing.md +0 -77
- package/dist/registry/workflows/marketing/content-creation.md +0 -40
- package/dist/registry/workflows/marketing/convert-to-pdf.md +0 -265
- package/dist/registry/workflows/marketing/create-modern-website.md +0 -456
- package/dist/registry/workflows/marketing/domain-registration.md +0 -323
- package/dist/registry/workflows/marketing/evangelize.md +0 -426
- package/dist/registry/workflows/marketing/hbr-article.md +0 -73
- package/dist/registry/workflows/marketing/launch-checklist.md +0 -37
- package/dist/registry/workflows/marketing/marketing-strategy.md +0 -45
- package/dist/registry/workflows/marketing/storytelling.md +0 -65
- package/dist/registry/workflows/performance/analyze-performance.md +0 -65
- package/dist/registry/workflows/product-building/design.md +0 -263
- package/dist/registry/workflows/product-building/implement.md +0 -771
- package/dist/registry/workflows/product-building/iterate-on-pr-comments.md +0 -70
- package/dist/registry/workflows/product-building/prep-issue.md +0 -41
- package/dist/registry/workflows/product-building/prototype.md +0 -60
- package/dist/registry/workflows/product-building/resolve.md +0 -175
- package/dist/registry/workflows/product-building/retrospect.md +0 -86
- package/dist/registry/workflows/product-building/spec.md +0 -303
- package/dist/registry/workflows/product-building/test.md +0 -125
- package/dist/registry/workflows/productivity-report/productivity-report.md +0 -263
- package/dist/registry/workflows/quality-assurance/browser-validation.md +0 -221
- package/dist/registry/workflows/quality-assurance/iterative-improvement-cycle.md +0 -562
- package/dist/registry/workflows/replicate/replicate-discovery.md +0 -336
- package/dist/registry/workflows/replicate/replicate-to-issues.md +0 -319
- package/dist/registry/workflows/reviewer/review-implementation-vs-design-spec.md +0 -694
- package/dist/registry/workflows/reviewer/review-implementation-vs-feature-spec.md +0 -734
- package/dist/registry/workflows/startup-credits/aws-activate-application.md +0 -535
- package/dist/registry/workflows/startup-credits/google-cloud-application.md +0 -647
- package/dist/registry/workflows/startup-credits/microsoft-azure-application.md +0 -538
- package/dist/src/cli/commands/init.js +0 -148
- package/dist/src/cli/commands/mcp.js +0 -65
- package/dist/src/cli/commands/wizard.js +0 -35
- package/dist/src/fraim/issue-tracking/ado-provider.js +0 -304
- package/dist/src/fraim/issue-tracking/factory.js +0 -63
- package/dist/src/fraim/issue-tracking/github-provider.js +0 -200
- package/dist/src/fraim/issue-tracking/types.js +0 -7
- package/dist/src/fraim/issue-tracking-config.js +0 -83
- package/dist/src/fraim/retrospective-learner.js +0 -301
- package/dist/src/fraim/setup-wizard.js +0 -99
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
# Phase: wait-for-pr-review
|
|
2
|
-
|
|
3
|
-
## INTENT
|
|
4
|
-
Wait for human instruction to check PR status, then evaluate if PR is ready for merge or needs more work.
|
|
5
|
-
|
|
6
|
-
## OUTCOME
|
|
7
|
-
Either:
|
|
8
|
-
- **PR Approved**: Workflow complete, ready for merge
|
|
9
|
-
- **PR Has Comments**: Write feedback file and return to workflow to address feedback
|
|
10
|
-
|
|
11
|
-
## RULES FOR THIS PHASE
|
|
12
|
-
|
|
13
|
-
### Success Criteria
|
|
14
|
-
Read `registry/rules/agent-success-criteria.md` via `get_fraim_file` for the complete framework.
|
|
15
|
-
|
|
16
|
-
## WORKFLOW
|
|
17
|
-
|
|
18
|
-
### Step 1: Wait for Human Instruction
|
|
19
|
-
|
|
20
|
-
**Your task is to wait for human instruction.** Do not automatically poll or check PR status.
|
|
21
|
-
|
|
22
|
-
When human says "check the PR" or "proceed", move to Step 2.
|
|
23
|
-
|
|
24
|
-
### Step 2: Check PR Status and Comments
|
|
25
|
-
|
|
26
|
-
Use GitHub MCP tools to check the PR comprehensively:
|
|
27
|
-
|
|
28
|
-
1. **Get PR Status**: Use `mcp_github_pull_request_read` with method `get` to check if PR is approved
|
|
29
|
-
2. **Get All Comment Types**:
|
|
30
|
-
- **PR-level comments**: Use method `get_comments`
|
|
31
|
-
- **Review comments**: Use method `get_review_comments` (inline/detailed comments)
|
|
32
|
-
- **Review status**: Use method `get_reviews` (approval/changes requested)
|
|
33
|
-
|
|
34
|
-
### Step 3: Evaluate Results and Write Feedback File
|
|
35
|
-
|
|
36
|
-
**If PR status shows "approved" AND no unresolved comments:**
|
|
37
|
-
- PR is ready for merge
|
|
38
|
-
- Report success
|
|
39
|
-
|
|
40
|
-
**If PR has ANY comments OR is not approved:**
|
|
41
|
-
- PR needs more work
|
|
42
|
-
- **CRITICAL**: Write feedback file to `docs/evidence/{issueNumber}-{workflowType}-feedback.md`
|
|
43
|
-
- Use Round X format (check existing file to determine next round number)
|
|
44
|
-
- Report failure with feedback file path
|
|
45
|
-
|
|
46
|
-
## FEEDBACK FILE FORMAT
|
|
47
|
-
|
|
48
|
-
Create or append to `docs/evidence/{issueNumber}-{workflowType}-feedback.md`:
|
|
49
|
-
|
|
50
|
-
```markdown
|
|
51
|
-
# PR Feedback for Issue #{issueNumber} - {WorkflowType} Workflow
|
|
52
|
-
|
|
53
|
-
## Round {X} Feedback
|
|
54
|
-
*Received: {timestamp}*
|
|
55
|
-
|
|
56
|
-
### Comment {N} - UNADDRESSED
|
|
57
|
-
- **Author**: {author}
|
|
58
|
-
- **Type**: {pr_comment|review_comment|review}
|
|
59
|
-
- **File**: {file_path} (if applicable)
|
|
60
|
-
- **Line**: {line_number} (if applicable)
|
|
61
|
-
- **Comment**: {comment_body}
|
|
62
|
-
- **Status**: UNADDRESSED
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
**Round Detection Logic**:
|
|
66
|
-
1. If feedback file doesn't exist → Start with "Round 1"
|
|
67
|
-
2. If feedback file exists → Parse to find highest "Round X", use "Round X+1"
|
|
68
|
-
3. Always append new round, never overwrite existing rounds
|
|
69
|
-
|
|
70
|
-
## VALIDATION
|
|
71
|
-
|
|
72
|
-
### Phase Complete When:
|
|
73
|
-
- ✅ PR status is "approved" in GitHub
|
|
74
|
-
- ✅ No unresolved comment threads exist
|
|
75
|
-
- ✅ No pending review comments
|
|
76
|
-
|
|
77
|
-
**Report back with:**
|
|
78
|
-
```javascript
|
|
79
|
-
seekMentoring({
|
|
80
|
-
workflowType: "{workflow_type}",
|
|
81
|
-
issueNumber: "{issue_number}",
|
|
82
|
-
currentPhase: "wait-for-pr-review",
|
|
83
|
-
status: "complete",
|
|
84
|
-
evidence: {
|
|
85
|
-
prStatus: "approved",
|
|
86
|
-
commentsResolved: true,
|
|
87
|
-
readyForMerge: true
|
|
88
|
-
}
|
|
89
|
-
})
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
### Phase Failed When:
|
|
93
|
-
- ✅ PR has unresolved comments
|
|
94
|
-
- ✅ PR status is not "approved"
|
|
95
|
-
- ✅ Review requests changes
|
|
96
|
-
|
|
97
|
-
### Report Back:
|
|
98
|
-
|
|
99
|
-
**When PR is approved and ready:**
|
|
100
|
-
```javascript
|
|
101
|
-
seekMentoring({
|
|
102
|
-
workflowType: "{workflow_type}",
|
|
103
|
-
issueNumber: "{issue_number}",
|
|
104
|
-
currentPhase: "wait-for-pr-review",
|
|
105
|
-
status: "complete",
|
|
106
|
-
evidence: {
|
|
107
|
-
prStatus: "approved",
|
|
108
|
-
commentsResolved: true,
|
|
109
|
-
readyForMerge: true
|
|
110
|
-
}
|
|
111
|
-
})
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
**When PR has comments (CRITICAL: Write feedback file first):**
|
|
115
|
-
```javascript
|
|
116
|
-
seekMentoring({
|
|
117
|
-
workflowType: "{workflow_type}",
|
|
118
|
-
issueNumber: "{issue_number}",
|
|
119
|
-
currentPhase: "wait-for-pr-review",
|
|
120
|
-
status: "failure",
|
|
121
|
-
findings: {
|
|
122
|
-
feedbackFile: "{issueNumber}-{workflowType}-feedback.md",
|
|
123
|
-
roundNumber: {X},
|
|
124
|
-
commentCount: {total_comments},
|
|
125
|
-
prStatus: "{current_status}"
|
|
126
|
-
}
|
|
127
|
-
})
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
## GITHUB MCP TOOLS TO USE
|
|
131
|
-
|
|
132
|
-
1. **Check PR Status**:
|
|
133
|
-
```javascript
|
|
134
|
-
mcp_github_pull_request_read({
|
|
135
|
-
method: "get",
|
|
136
|
-
owner: "{repo_owner}",
|
|
137
|
-
repo: "{repo_name}",
|
|
138
|
-
pullNumber: {pr_number}
|
|
139
|
-
})
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
2. **Get PR Comments**:
|
|
143
|
-
```javascript
|
|
144
|
-
mcp_github_pull_request_read({
|
|
145
|
-
method: "get_comments",
|
|
146
|
-
owner: "{repo_owner}",
|
|
147
|
-
repo: "{repo_name}",
|
|
148
|
-
pullNumber: {pr_number}
|
|
149
|
-
})
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
3. **Get Review Comments**:
|
|
153
|
-
```javascript
|
|
154
|
-
mcp_github_pull_request_read({
|
|
155
|
-
method: "get_review_comments",
|
|
156
|
-
owner: "{repo_owner}",
|
|
157
|
-
repo: "{repo_name}",
|
|
158
|
-
pullNumber: {pr_number}
|
|
159
|
-
})
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
4. **Get Reviews**:
|
|
163
|
-
```javascript
|
|
164
|
-
mcp_github_pull_request_read({
|
|
165
|
-
method: "get_reviews",
|
|
166
|
-
owner: "{repo_owner}",
|
|
167
|
-
repo: "{repo_name}",
|
|
168
|
-
pullNumber: {pr_number}
|
|
169
|
-
})
|
|
170
|
-
```
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# Phase: Finalize
|
|
2
|
-
|
|
3
|
-
## INTENT
|
|
4
|
-
To prepare completed work for human review by setting proper labels, creating/updating PR, and documenting evidence.
|
|
5
|
-
|
|
6
|
-
## OUTCOME
|
|
7
|
-
Work is ready for human review with:
|
|
8
|
-
- Proper issue labels applied
|
|
9
|
-
- PR created/updated with work
|
|
10
|
-
- Evidence documented
|
|
11
|
-
- Clean handoff to next phase or review
|
|
12
|
-
|
|
13
|
-
## WORKFLOW
|
|
14
|
-
|
|
15
|
-
### Step 1: Apply Issue Labels
|
|
16
|
-
- Remove current phase label (e.g., `phase:spec`, `phase:design`, `phase:impl`)
|
|
17
|
-
- Add `status:needs-review` label
|
|
18
|
-
- Keep any other relevant labels
|
|
19
|
-
|
|
20
|
-
### Step 2: Create/Update Pull Request
|
|
21
|
-
- Ensure PR exists for the feature branch
|
|
22
|
-
- Update PR title to reflect completed work
|
|
23
|
-
- Update PR description with summary of work completed
|
|
24
|
-
- Link to relevant documents (specs, designs, evidence)
|
|
25
|
-
|
|
26
|
-
### Step 3: Document Evidence
|
|
27
|
-
- Create evidence file at `docs/evidence/{issue_number}-{workflow}-evidence.md`
|
|
28
|
-
- Document key decisions made
|
|
29
|
-
- List deliverables created
|
|
30
|
-
- Note any recommendations for next phase
|
|
31
|
-
|
|
32
|
-
### Step 4: Prepare Handoff
|
|
33
|
-
- Ensure all work is committed to git
|
|
34
|
-
- Verify documentation is complete
|
|
35
|
-
- Confirm work is ready for human review
|
|
36
|
-
|
|
37
|
-
## VALIDATION
|
|
38
|
-
|
|
39
|
-
### Phase Complete When:
|
|
40
|
-
- ✅ Issue labels updated (`status:needs-review`)
|
|
41
|
-
- ✅ PR created/updated with work summary
|
|
42
|
-
- ✅ Evidence documented
|
|
43
|
-
- ✅ All work committed to git
|
|
44
|
-
- ✅ Ready for human review
|
|
45
|
-
|
|
46
|
-
### Report Back:
|
|
47
|
-
```javascript
|
|
48
|
-
seekCoachingOnNextStep({
|
|
49
|
-
workflowType: "{workflow_type}",
|
|
50
|
-
issueNumber: "{issue_number}",
|
|
51
|
-
currentPhase: "finalize",
|
|
52
|
-
status: "complete",
|
|
53
|
-
evidence: {
|
|
54
|
-
labelsApplied: ["status:needs-review"],
|
|
55
|
-
prUpdated: true,
|
|
56
|
-
evidenceDocumented: "docs/evidence/{issue_number}-{workflow}-evidence.md",
|
|
57
|
-
workCommitted: true
|
|
58
|
-
}
|
|
59
|
-
})
|
|
60
|
-
```
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
# Phase: spec-competitor-analysis
|
|
2
|
-
|
|
3
|
-
## INTENT
|
|
4
|
-
To conduct systematic competitive research and analysis for the feature being specified, ensuring comprehensive understanding of competitive landscape and clear differentiation strategy.
|
|
5
|
-
|
|
6
|
-
## OUTCOME
|
|
7
|
-
A comprehensive competitive analysis that:
|
|
8
|
-
- Documents all configured competitors and their approaches
|
|
9
|
-
- Identifies new competitors through systematic research
|
|
10
|
-
- Proposes configuration updates with user approval
|
|
11
|
-
- Defines clear differentiation strategy and competitive positioning
|
|
12
|
-
- Updates the specification with complete competitive landscape analysis
|
|
13
|
-
|
|
14
|
-
## TRIGGER
|
|
15
|
-
This phase is triggered after `spec-spec` completion and before `spec-completeness-review`.
|
|
16
|
-
|
|
17
|
-
## CONTEXT ADVANTAGES
|
|
18
|
-
- **Full Feature Context**: Complete understanding of proposed feature and requirements
|
|
19
|
-
- **Fresh Research**: Current competitive landscape information
|
|
20
|
-
- **Strategic Positioning**: Ability to influence feature design based on competitive insights
|
|
21
|
-
- **Configuration-Driven**: Systematic analysis of known competitors plus discovery of new ones
|
|
22
|
-
|
|
23
|
-
## WORKFLOW
|
|
24
|
-
|
|
25
|
-
### Step 1: Load Competitor Configuration
|
|
26
|
-
- Read `.fraim/config.json` competitors section
|
|
27
|
-
- Extract configured competitors and their competitive spaces
|
|
28
|
-
- Note any existing competitive intelligence
|
|
29
|
-
|
|
30
|
-
### Step 2: Research Configured Competitors
|
|
31
|
-
For each competitor in config:
|
|
32
|
-
- Research their current solution for this feature area
|
|
33
|
-
- Analyze their strengths and weaknesses in this space
|
|
34
|
-
- Gather customer feedback and reviews
|
|
35
|
-
- Assess market position and pricing approach
|
|
36
|
-
- Document findings in structured format
|
|
37
|
-
|
|
38
|
-
### Step 3: Discover Additional Competitors
|
|
39
|
-
- Use web search to find other competitors in the feature space
|
|
40
|
-
- Research market for competitors not in configuration
|
|
41
|
-
- Identify direct, adjacent, and emerging competitors
|
|
42
|
-
- Focus on competitors specifically relevant to this feature
|
|
43
|
-
|
|
44
|
-
### Step 4: Competitor Configuration Updates
|
|
45
|
-
- **Identify New Competitors**: Present newly discovered competitors to user
|
|
46
|
-
- **Configuration Proposal**: Suggest adding relevant competitors to `.fraim/config.json`
|
|
47
|
-
- **User Approval**: Ask user to approve additions: "Found new competitor 'X' in space 'Y'. Add to config?"
|
|
48
|
-
- **Auto-Update**: If user approves, automatically update configuration file
|
|
49
|
-
- **Documentation**: Note configuration changes in competitive analysis
|
|
50
|
-
|
|
51
|
-
### Step 5: Competitive Analysis
|
|
52
|
-
- Compare competitor approaches to our proposed solution
|
|
53
|
-
- Identify competitive advantages and disadvantages
|
|
54
|
-
- Develop differentiation strategy
|
|
55
|
-
- Plan competitive response strategies
|
|
56
|
-
- Define market positioning approach
|
|
57
|
-
|
|
58
|
-
### Step 6: Update Specification
|
|
59
|
-
- Update Competitive Landscape section with findings
|
|
60
|
-
- Ensure all configured competitors are covered
|
|
61
|
-
- Include newly discovered competitors
|
|
62
|
-
- Add competitive positioning strategy
|
|
63
|
-
- Document research sources and methodology
|
|
64
|
-
- Validate analysis completeness
|
|
65
|
-
|
|
66
|
-
## VALIDATION
|
|
67
|
-
|
|
68
|
-
### Phase Complete When:
|
|
69
|
-
- ✅ All configured competitors analyzed
|
|
70
|
-
- ✅ Additional competitors discovered through research
|
|
71
|
-
- ✅ User consulted on adding new competitors to config
|
|
72
|
-
- ✅ Configuration updated with user-approved competitors
|
|
73
|
-
- ✅ Competitive positioning strategy defined
|
|
74
|
-
- ✅ Differentiation advantages clearly articulated
|
|
75
|
-
- ✅ Research sources documented
|
|
76
|
-
- ✅ Analysis covers both configured and discovered competitors
|
|
77
|
-
- ✅ Specification competitive landscape section updated
|
|
78
|
-
|
|
79
|
-
### Report Back:
|
|
80
|
-
When this phase is complete, call:
|
|
81
|
-
```javascript
|
|
82
|
-
seekMentoring({
|
|
83
|
-
workflowType: "spec",
|
|
84
|
-
issueNumber: "your-issue-number",
|
|
85
|
-
currentPhase: "spec-competitor-analysis",
|
|
86
|
-
status: "complete",
|
|
87
|
-
evidence: {
|
|
88
|
-
competitorsAnalyzed: ["competitor1", "competitor2"],
|
|
89
|
-
newCompetitorsFound: ["new-competitor1"],
|
|
90
|
-
configurationUpdated: true,
|
|
91
|
-
differentiationStrategy: "summary of strategy",
|
|
92
|
-
specificationUpdated: true
|
|
93
|
-
}
|
|
94
|
-
})
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
### Phase Incomplete If:
|
|
98
|
-
- Configuration competitors not fully researched
|
|
99
|
-
- No additional competitor discovery attempted
|
|
100
|
-
- User not consulted on configuration updates
|
|
101
|
-
- Competitive positioning strategy missing
|
|
102
|
-
- Specification not updated with findings
|
|
103
|
-
|
|
104
|
-
## NEXT PHASE
|
|
105
|
-
After completing competitor-analysis, proceed to `spec-completeness-review` phase.
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# Phase: Spec-Completeness-Review
|
|
2
|
-
|
|
3
|
-
## INTENT
|
|
4
|
-
To verify that the specification is complete and includes high-fidelity HTML mocks when UI changes are involved.
|
|
5
|
-
|
|
6
|
-
## OUTCOME
|
|
7
|
-
Confirmation that:
|
|
8
|
-
- Specification document is complete and follows template
|
|
9
|
-
- High-fidelity HTML mocks exist for UI changes (not markdown code blocks)
|
|
10
|
-
- Mocks are accessible and render properly in browser
|
|
11
|
-
- All requirements from original issue are addressed
|
|
12
|
-
|
|
13
|
-
## WORKFLOW
|
|
14
|
-
|
|
15
|
-
### Step 1: Check Specification Completeness
|
|
16
|
-
- Verify spec document exists at `docs/feature specs/{issue_number}-*.md`
|
|
17
|
-
- Confirm all template sections are complete (not placeholder text)
|
|
18
|
-
- Check that customer, desired outcome, and user experience are well-defined
|
|
19
|
-
|
|
20
|
-
### Step 2: Validate Mocks (if UI changes)
|
|
21
|
-
**If the feature involves UI changes:**
|
|
22
|
-
- Check that HTML mock files exist in `docs/feature specs/mocks/`
|
|
23
|
-
- Verify mocks are named `{issue_number}-*.html`
|
|
24
|
-
- Confirm mocks are actual HTML files (not markdown code blocks)
|
|
25
|
-
- **Ask agent to open mocks in browser** to verify they render properly
|
|
26
|
-
- Check that mocks show different states/views of the feature
|
|
27
|
-
|
|
28
|
-
**If no UI changes:**
|
|
29
|
-
- Confirm this is documented in the spec
|
|
30
|
-
- Verify the feature is purely backend/API
|
|
31
|
-
|
|
32
|
-
### Step 3: Requirements Coverage
|
|
33
|
-
- Review original GitHub issue requirements
|
|
34
|
-
- Confirm all requirements are addressed in the specification
|
|
35
|
-
- Check that acceptance criteria are covered
|
|
36
|
-
|
|
37
|
-
## VALIDATION
|
|
38
|
-
|
|
39
|
-
### Phase Complete When:
|
|
40
|
-
- ✅ Specification document complete and professional quality
|
|
41
|
-
- ✅ High-fidelity HTML mocks created (if UI changes required)
|
|
42
|
-
- ✅ Agent has opened mocks in browser and confirmed they render
|
|
43
|
-
- ✅ All original issue requirements addressed
|
|
44
|
-
- ✅ Ready for design phase
|
|
45
|
-
|
|
46
|
-
### Phase Incomplete If:
|
|
47
|
-
- ❌ Specification incomplete or poor quality
|
|
48
|
-
- ❌ UI changes specified but no HTML mocks provided
|
|
49
|
-
- ❌ Mocks don't render properly in browser
|
|
50
|
-
- ❌ Original requirements not fully addressed
|
|
51
|
-
|
|
52
|
-
### Report Back:
|
|
53
|
-
```javascript
|
|
54
|
-
seekMentoring({
|
|
55
|
-
workflowType: "spec",
|
|
56
|
-
issueNumber: "{issue_number}",
|
|
57
|
-
currentPhase: "spec-completeness-review",
|
|
58
|
-
status: "complete",
|
|
59
|
-
evidence: {
|
|
60
|
-
specComplete: true,
|
|
61
|
-
mockFilesCreated: ["docs/feature specs/mocks/21-view1.html", "21-view2.html"],
|
|
62
|
-
browserValidated: true,
|
|
63
|
-
requirementsCovered: true
|
|
64
|
-
}
|
|
65
|
-
})
|
|
66
|
-
```
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
# Phase: Spec-Spec
|
|
2
|
-
|
|
3
|
-
## INTENT
|
|
4
|
-
To create a comprehensive feature specification that clearly defines customer needs, desired outcomes, user experience, and validation criteria.
|
|
5
|
-
|
|
6
|
-
## OUTCOME
|
|
7
|
-
A complete specification document that:
|
|
8
|
-
- Identifies the target customer and their needs
|
|
9
|
-
- Defines the desired outcome and success criteria
|
|
10
|
-
- Describes the user experience in detail
|
|
11
|
-
- Includes high-fidelity mocks for UI changes
|
|
12
|
-
- Provides a comprehensive validation plan
|
|
13
|
-
- Analyzes alternatives and competitive landscape
|
|
14
|
-
|
|
15
|
-
## PRINCIPLES
|
|
16
|
-
- **Customer-First**: Start with customer identification and needs
|
|
17
|
-
- **Outcome-Driven**: Focus on what the customer wants to achieve
|
|
18
|
-
- **Experience-Detailed**: Provide step-by-step user workflows
|
|
19
|
-
- **Validation-Ready**: Include specific, executable validation steps
|
|
20
|
-
- **Template-Compliant**: Follow FEATURESPEC template structure
|
|
21
|
-
|
|
22
|
-
## WORKFLOW
|
|
23
|
-
|
|
24
|
-
### Step 1: Get Repository Context and Issue Details
|
|
25
|
-
|
|
26
|
-
**GitHub Repository Context**: Before using GitHub MCP tools, read the local `.fraim/config.json` file to get the repository context:
|
|
27
|
-
- Use `git.repoOwner` for the GitHub repository owner
|
|
28
|
-
- Use `git.repoName` for the GitHub repository name
|
|
29
|
-
- These values are required for GitHub MCP API calls (owner/repo parameters)
|
|
30
|
-
|
|
31
|
-
**Read Issue Details**: Use GitHub MCP tools to get the complete issue information:
|
|
32
|
-
- Read the full issue description, title, and labels
|
|
33
|
-
- Check for linked documents or references
|
|
34
|
-
- Review any comments or discussion threads
|
|
35
|
-
- Note any existing requirements or context
|
|
36
|
-
- Understand the customer problem being addressed
|
|
37
|
-
|
|
38
|
-
### Step 2: Load Template and Rules
|
|
39
|
-
- Call `get_fraim_file({ path: "templates/specs/FEATURESPEC-TEMPLATE.md" })`
|
|
40
|
-
- Call `get_fraim_file({ path: "rules/communication.md" })`
|
|
41
|
-
- Call `get_fraim_file({ path: "rules/pr-workflow-completeness.md" })`
|
|
42
|
-
|
|
43
|
-
### Step 3: Check for PR Feedback
|
|
44
|
-
|
|
45
|
-
**CRITICAL**: Before creating specification, check for feedback:
|
|
46
|
-
- **PR Review Feedback**: `docs/evidence/{issue_number}-spec-feedback.md`
|
|
47
|
-
|
|
48
|
-
**If PR feedback exists:**
|
|
49
|
-
- **MUST address all UNADDRESSED items** before proceeding
|
|
50
|
-
- Update feedback file after addressing each item
|
|
51
|
-
- Change status from UNADDRESSED to ADDRESSED with resolution details
|
|
52
|
-
- Cannot skip or defer feedback items
|
|
53
|
-
- Phase cannot complete until all feedback is addressed
|
|
54
|
-
|
|
55
|
-
**PR Feedback File Format** (if exists):
|
|
56
|
-
```markdown
|
|
57
|
-
### Comment X - ADDRESSED
|
|
58
|
-
- **Author**: reviewer_name
|
|
59
|
-
- **Comment**: Original feedback
|
|
60
|
-
- **Status**: ADDRESSED
|
|
61
|
-
- **Resolution**: How you addressed this feedback
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
### Step 4: Create Specification Document
|
|
65
|
-
- Create spec file at `docs/feature specs/{issue_number}-{kebab-case-title}.md`
|
|
66
|
-
- Follow FEATURESPEC template structure exactly
|
|
67
|
-
- Include all required sections:
|
|
68
|
-
- Customer identification
|
|
69
|
-
- Customer's desired outcome
|
|
70
|
-
- Customer problem definition
|
|
71
|
-
- User experience with detailed workflows
|
|
72
|
-
- Validation plan
|
|
73
|
-
- Alternatives analysis
|
|
74
|
-
- Competitive landscape
|
|
75
|
-
|
|
76
|
-
### Step 4: Create High-Fidelity Mocks (if UI changes)
|
|
77
|
-
If the feature involves UI changes:
|
|
78
|
-
- Create HTML/CSS mocks in `docs/feature specs/mocks/`
|
|
79
|
-
- Name files: `{issue_number}-{descriptive-name}.html`
|
|
80
|
-
- Include at least 3 different views/states
|
|
81
|
-
- Link mocks in the specification document
|
|
82
|
-
- **Note**: Markdown code blocks are NOT sufficient - must be actual HTML files
|
|
83
|
-
|
|
84
|
-
### Step 5: Validate Completeness
|
|
85
|
-
- Ensure all template sections are complete
|
|
86
|
-
- Verify customer focus is clear and specific
|
|
87
|
-
- Check that user experience includes step-by-step workflows
|
|
88
|
-
- Confirm validation plan is actionable and executable
|
|
89
|
-
- Review alternatives and competitive analysis
|
|
90
|
-
|
|
91
|
-
### Step 6: Apply Labels
|
|
92
|
-
- Label the GitHub issue with `phase:spec`
|
|
93
|
-
- This will trigger automatic PR creation/update
|
|
94
|
-
|
|
95
|
-
## VALIDATION
|
|
96
|
-
|
|
97
|
-
### Phase Complete When:
|
|
98
|
-
- ✅ Specification document created using FEATURESPEC template
|
|
99
|
-
- ✅ All required sections completed with substantial content
|
|
100
|
-
- ✅ Customer and desired outcome clearly identified
|
|
101
|
-
- ✅ User experience includes detailed step-by-step workflows
|
|
102
|
-
- ✅ High-fidelity mocks created (if UI changes required)
|
|
103
|
-
- ✅ Validation plan includes specific, executable steps
|
|
104
|
-
- ✅ Alternatives and competitive landscape analyzed
|
|
105
|
-
- ✅ **PR feedback addressed** (if `docs/evidence/{issue_number}-spec-feedback.md` exists)
|
|
106
|
-
- ✅ Issue labeled with `phase:spec`
|
|
107
|
-
|
|
108
|
-
### Phase Incomplete If:
|
|
109
|
-
- ❌ Specification document missing or incomplete
|
|
110
|
-
- ❌ Template structure not followed
|
|
111
|
-
- ❌ Customer identification vague or missing
|
|
112
|
-
- ❌ User experience lacks detailed workflows
|
|
113
|
-
- ❌ UI changes specified but no HTML mocks provided
|
|
114
|
-
- ❌ Validation plan not actionable
|
|
115
|
-
- ❌ Alternatives or competitive analysis missing
|
|
116
|
-
- ❌ **PR feedback not addressed** (UNADDRESSED items remain in feedback file)
|
|
117
|
-
|
|
118
|
-
### Report Back:
|
|
119
|
-
When you complete this phase, call:
|
|
120
|
-
|
|
121
|
-
```javascript
|
|
122
|
-
seekMentoring({
|
|
123
|
-
workflowType: "spec",
|
|
124
|
-
issueNumber: "{issue_number}",
|
|
125
|
-
currentPhase: "spec-spec",
|
|
126
|
-
status: "complete",
|
|
127
|
-
evidence: {
|
|
128
|
-
specDocument: "docs/feature specs/{issue_number}-{title}.md",
|
|
129
|
-
templateUsed: "FEATURESPEC-TEMPLATE.md",
|
|
130
|
-
mockFiles: ["docs/feature specs/mocks/{issue_number}-view1.html", "..."],
|
|
131
|
-
namingConvention: "{issue_number}-{kebab-case-title}.md",
|
|
132
|
-
issueLabeled: "phase:spec"
|
|
133
|
-
},
|
|
134
|
-
findings: {
|
|
135
|
-
completedSections: ["Customer identification", "Customer desired outcome", "..."],
|
|
136
|
-
keyInsights: ["Key insight 1", "Key insight 2", "..."]
|
|
137
|
-
}
|
|
138
|
-
})
|
|
139
|
-
```
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
# Phase: Spec
|
|
2
|
-
|
|
3
|
-
## INTENT
|
|
4
|
-
To create a comprehensive feature specification that clearly defines customer needs, desired outcomes, user experience, and validation criteria.
|
|
5
|
-
|
|
6
|
-
## OUTCOME
|
|
7
|
-
A complete specification document that:
|
|
8
|
-
- Identifies the target customer and their needs
|
|
9
|
-
- Defines the desired outcome and success criteria
|
|
10
|
-
- Describes the user experience in detail
|
|
11
|
-
- Includes high-fidelity mocks for UI changes
|
|
12
|
-
- Provides a comprehensive validation plan
|
|
13
|
-
- Analyzes alternatives and competitive landscape
|
|
14
|
-
|
|
15
|
-
## PRINCIPLES
|
|
16
|
-
- **Customer-First**: Start with customer identification and needs
|
|
17
|
-
- **Outcome-Driven**: Focus on what the customer wants to achieve
|
|
18
|
-
- **Experience-Detailed**: Provide step-by-step user workflows
|
|
19
|
-
- **Validation-Ready**: Include specific, executable validation steps
|
|
20
|
-
- **Template-Compliant**: Follow FEATURESPEC template structure
|
|
21
|
-
|
|
22
|
-
## WORKFLOW
|
|
23
|
-
|
|
24
|
-
### Step 1: Load Template and Rules
|
|
25
|
-
- Call `get_fraim_file({ path: "templates/specs/FEATURESPEC-TEMPLATE.md" })`
|
|
26
|
-
- Call `get_fraim_file({ path: "rules/communication.md" })`
|
|
27
|
-
- Call `get_fraim_file({ path: "rules/pr-workflow-completeness.md" })`
|
|
28
|
-
|
|
29
|
-
### Step 2: Create Specification Document
|
|
30
|
-
- Create spec file at `docs/feature specs/{issue_number}-{kebab-case-title}.md`
|
|
31
|
-
- Follow FEATURESPEC template structure exactly
|
|
32
|
-
- Include all required sections:
|
|
33
|
-
- Customer identification
|
|
34
|
-
- Customer's desired outcome
|
|
35
|
-
- Customer problem definition
|
|
36
|
-
- User experience with detailed workflows
|
|
37
|
-
- Validation plan
|
|
38
|
-
- Alternatives analysis
|
|
39
|
-
- Competitive landscape
|
|
40
|
-
|
|
41
|
-
### Step 3: Create High-Fidelity Mocks (if UI changes)
|
|
42
|
-
If the feature involves UI changes:
|
|
43
|
-
- Create HTML/CSS mocks in `docs/feature specs/mocks/`
|
|
44
|
-
- Name files: `{issue_number}-{descriptive-name}.html`
|
|
45
|
-
- Include at least 3 different views/states
|
|
46
|
-
- Link mocks in the specification document
|
|
47
|
-
- **Note**: Markdown code blocks are NOT sufficient - must be actual HTML files
|
|
48
|
-
|
|
49
|
-
### Step 4: Validate Completeness
|
|
50
|
-
- Ensure all template sections are complete
|
|
51
|
-
- Verify customer focus is clear and specific
|
|
52
|
-
- Check that user experience includes step-by-step workflows
|
|
53
|
-
- Confirm validation plan is actionable and executable
|
|
54
|
-
- Review alternatives and competitive analysis
|
|
55
|
-
|
|
56
|
-
### Step 5: Apply Labels
|
|
57
|
-
- Label the GitHub issue with `phase:spec`
|
|
58
|
-
- This will trigger automatic PR creation/update
|
|
59
|
-
|
|
60
|
-
## VALIDATION
|
|
61
|
-
|
|
62
|
-
### Phase Complete When:
|
|
63
|
-
- ✅ Specification document created using FEATURESPEC template
|
|
64
|
-
- ✅ All required sections completed with substantial content
|
|
65
|
-
- ✅ Customer and desired outcome clearly identified
|
|
66
|
-
- ✅ User experience includes detailed step-by-step workflows
|
|
67
|
-
- ✅ High-fidelity mocks created (if UI changes required)
|
|
68
|
-
- ✅ Validation plan includes specific, executable steps
|
|
69
|
-
- ✅ Alternatives and competitive landscape analyzed
|
|
70
|
-
- ✅ Issue labeled with `phase:spec`
|
|
71
|
-
|
|
72
|
-
### Phase Incomplete If:
|
|
73
|
-
- ❌ Specification document missing or incomplete
|
|
74
|
-
- ❌ Template structure not followed
|
|
75
|
-
- ❌ Customer identification vague or missing
|
|
76
|
-
- ❌ User experience lacks detailed workflows
|
|
77
|
-
- ❌ UI changes specified but no HTML mocks provided
|
|
78
|
-
- ❌ Validation plan not actionable
|
|
79
|
-
- ❌ Alternatives or competitive analysis missing
|
|
80
|
-
|
|
81
|
-
### Report Back:
|
|
82
|
-
When you complete this phase, call:
|
|
83
|
-
|
|
84
|
-
```javascript
|
|
85
|
-
seekCoachingOnNextStep({
|
|
86
|
-
workflowType: "spec",
|
|
87
|
-
issueNumber: "{issue_number}",
|
|
88
|
-
currentPhase: "spec",
|
|
89
|
-
status: "complete",
|
|
90
|
-
evidence: {
|
|
91
|
-
specDocument: "docs/feature specs/{issue_number}-{title}.md",
|
|
92
|
-
templateUsed: "FEATURESPEC-TEMPLATE.md",
|
|
93
|
-
mockFiles: ["docs/feature specs/mocks/{issue_number}-view1.html", "..."],
|
|
94
|
-
namingConvention: "{issue_number}-{kebab-case-title}.md",
|
|
95
|
-
issueLabeled: "phase:spec"
|
|
96
|
-
},
|
|
97
|
-
findings: {
|
|
98
|
-
completedSections: ["Customer identification", "Customer desired outcome", "..."],
|
|
99
|
-
keyInsights: ["Key insight 1", "Key insight 2", "..."]
|
|
100
|
-
}
|
|
101
|
-
})
|
|
102
|
-
```
|