opencode-metis 0.1.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.
Files changed (156) hide show
  1. package/README.md +140 -0
  2. package/dist/cli.cjs +63 -0
  3. package/dist/mcp-server.cjs +51 -0
  4. package/dist/plugin.cjs +4 -0
  5. package/dist/worker.cjs +224 -0
  6. package/opencode/agent/the-analyst/feature-prioritization.md +66 -0
  7. package/opencode/agent/the-analyst/market-research.md +77 -0
  8. package/opencode/agent/the-analyst/project-coordination.md +81 -0
  9. package/opencode/agent/the-analyst/requirements-analysis.md +77 -0
  10. package/opencode/agent/the-architect/compatibility-review.md +138 -0
  11. package/opencode/agent/the-architect/complexity-review.md +137 -0
  12. package/opencode/agent/the-architect/quality-review.md +67 -0
  13. package/opencode/agent/the-architect/security-review.md +127 -0
  14. package/opencode/agent/the-architect/system-architecture.md +119 -0
  15. package/opencode/agent/the-architect/system-documentation.md +83 -0
  16. package/opencode/agent/the-architect/technology-research.md +85 -0
  17. package/opencode/agent/the-chief.md +79 -0
  18. package/opencode/agent/the-designer/accessibility-implementation.md +101 -0
  19. package/opencode/agent/the-designer/design-foundation.md +74 -0
  20. package/opencode/agent/the-designer/interaction-architecture.md +75 -0
  21. package/opencode/agent/the-designer/user-research.md +70 -0
  22. package/opencode/agent/the-meta-agent.md +155 -0
  23. package/opencode/agent/the-platform-engineer/ci-cd-pipelines.md +109 -0
  24. package/opencode/agent/the-platform-engineer/containerization.md +106 -0
  25. package/opencode/agent/the-platform-engineer/data-architecture.md +81 -0
  26. package/opencode/agent/the-platform-engineer/dependency-review.md +144 -0
  27. package/opencode/agent/the-platform-engineer/deployment-automation.md +81 -0
  28. package/opencode/agent/the-platform-engineer/infrastructure-as-code.md +107 -0
  29. package/opencode/agent/the-platform-engineer/performance-tuning.md +82 -0
  30. package/opencode/agent/the-platform-engineer/pipeline-engineering.md +81 -0
  31. package/opencode/agent/the-platform-engineer/production-monitoring.md +105 -0
  32. package/opencode/agent/the-qa-engineer/exploratory-testing.md +66 -0
  33. package/opencode/agent/the-qa-engineer/performance-testing.md +81 -0
  34. package/opencode/agent/the-qa-engineer/quality-assurance.md +77 -0
  35. package/opencode/agent/the-qa-engineer/test-execution.md +66 -0
  36. package/opencode/agent/the-software-engineer/api-development.md +78 -0
  37. package/opencode/agent/the-software-engineer/component-development.md +79 -0
  38. package/opencode/agent/the-software-engineer/concurrency-review.md +141 -0
  39. package/opencode/agent/the-software-engineer/domain-modeling.md +66 -0
  40. package/opencode/agent/the-software-engineer/performance-optimization.md +113 -0
  41. package/opencode/command/analyze.md +149 -0
  42. package/opencode/command/constitution.md +178 -0
  43. package/opencode/command/debug.md +194 -0
  44. package/opencode/command/document.md +178 -0
  45. package/opencode/command/implement.md +225 -0
  46. package/opencode/command/refactor.md +207 -0
  47. package/opencode/command/review.md +229 -0
  48. package/opencode/command/simplify.md +267 -0
  49. package/opencode/command/specify.md +191 -0
  50. package/opencode/command/validate.md +224 -0
  51. package/opencode/skill/accessibility-design/SKILL.md +566 -0
  52. package/opencode/skill/accessibility-design/checklists/wcag-checklist.md +435 -0
  53. package/opencode/skill/agent-coordination/SKILL.md +224 -0
  54. package/opencode/skill/api-contract-design/SKILL.md +550 -0
  55. package/opencode/skill/api-contract-design/templates/graphql-schema-template.md +818 -0
  56. package/opencode/skill/api-contract-design/templates/rest-api-template.md +417 -0
  57. package/opencode/skill/architecture-design/SKILL.md +160 -0
  58. package/opencode/skill/architecture-design/examples/architecture-examples.md +170 -0
  59. package/opencode/skill/architecture-design/template.md +749 -0
  60. package/opencode/skill/architecture-design/validation.md +99 -0
  61. package/opencode/skill/architecture-selection/SKILL.md +522 -0
  62. package/opencode/skill/architecture-selection/examples/adrs/001-example-adr.md +71 -0
  63. package/opencode/skill/architecture-selection/examples/architecture-patterns.md +239 -0
  64. package/opencode/skill/bug-diagnosis/SKILL.md +235 -0
  65. package/opencode/skill/code-quality-review/SKILL.md +337 -0
  66. package/opencode/skill/code-quality-review/examples/anti-patterns.md +629 -0
  67. package/opencode/skill/code-quality-review/reference.md +322 -0
  68. package/opencode/skill/code-review/SKILL.md +363 -0
  69. package/opencode/skill/code-review/reference.md +450 -0
  70. package/opencode/skill/codebase-analysis/SKILL.md +139 -0
  71. package/opencode/skill/codebase-navigation/SKILL.md +227 -0
  72. package/opencode/skill/codebase-navigation/examples/exploration-patterns.md +263 -0
  73. package/opencode/skill/coding-conventions/SKILL.md +178 -0
  74. package/opencode/skill/coding-conventions/checklists/accessibility-checklist.md +176 -0
  75. package/opencode/skill/coding-conventions/checklists/performance-checklist.md +154 -0
  76. package/opencode/skill/coding-conventions/checklists/security-checklist.md +127 -0
  77. package/opencode/skill/constitution-validation/SKILL.md +315 -0
  78. package/opencode/skill/constitution-validation/examples/CONSTITUTION.md +202 -0
  79. package/opencode/skill/constitution-validation/reference/rule-patterns.md +328 -0
  80. package/opencode/skill/constitution-validation/template.md +115 -0
  81. package/opencode/skill/context-preservation/SKILL.md +445 -0
  82. package/opencode/skill/data-modeling/SKILL.md +385 -0
  83. package/opencode/skill/data-modeling/templates/schema-design-template.md +268 -0
  84. package/opencode/skill/deployment-pipeline-design/SKILL.md +579 -0
  85. package/opencode/skill/deployment-pipeline-design/templates/pipeline-template.md +633 -0
  86. package/opencode/skill/documentation-extraction/SKILL.md +259 -0
  87. package/opencode/skill/documentation-sync/SKILL.md +431 -0
  88. package/opencode/skill/domain-driven-design/SKILL.md +509 -0
  89. package/opencode/skill/domain-driven-design/examples/ddd-patterns.md +688 -0
  90. package/opencode/skill/domain-driven-design/reference.md +465 -0
  91. package/opencode/skill/drift-detection/SKILL.md +383 -0
  92. package/opencode/skill/drift-detection/reference.md +340 -0
  93. package/opencode/skill/error-recovery/SKILL.md +162 -0
  94. package/opencode/skill/error-recovery/examples/error-patterns.md +484 -0
  95. package/opencode/skill/feature-prioritization/SKILL.md +419 -0
  96. package/opencode/skill/feature-prioritization/examples/rice-template.md +139 -0
  97. package/opencode/skill/feature-prioritization/reference.md +256 -0
  98. package/opencode/skill/git-workflow/SKILL.md +453 -0
  99. package/opencode/skill/implementation-planning/SKILL.md +215 -0
  100. package/opencode/skill/implementation-planning/examples/phase-examples.md +217 -0
  101. package/opencode/skill/implementation-planning/template.md +220 -0
  102. package/opencode/skill/implementation-planning/validation.md +88 -0
  103. package/opencode/skill/implementation-verification/SKILL.md +272 -0
  104. package/opencode/skill/knowledge-capture/SKILL.md +265 -0
  105. package/opencode/skill/knowledge-capture/reference/knowledge-capture.md +402 -0
  106. package/opencode/skill/knowledge-capture/reference.md +444 -0
  107. package/opencode/skill/knowledge-capture/templates/domain-template.md +325 -0
  108. package/opencode/skill/knowledge-capture/templates/interface-template.md +255 -0
  109. package/opencode/skill/knowledge-capture/templates/pattern-template.md +144 -0
  110. package/opencode/skill/observability-design/SKILL.md +291 -0
  111. package/opencode/skill/observability-design/references/monitoring-patterns.md +461 -0
  112. package/opencode/skill/pattern-detection/SKILL.md +171 -0
  113. package/opencode/skill/pattern-detection/examples/common-patterns.md +359 -0
  114. package/opencode/skill/performance-analysis/SKILL.md +266 -0
  115. package/opencode/skill/performance-analysis/references/profiling-tools.md +499 -0
  116. package/opencode/skill/requirements-analysis/SKILL.md +139 -0
  117. package/opencode/skill/requirements-analysis/examples/good-prd.md +66 -0
  118. package/opencode/skill/requirements-analysis/template.md +177 -0
  119. package/opencode/skill/requirements-analysis/validation.md +69 -0
  120. package/opencode/skill/requirements-elicitation/SKILL.md +518 -0
  121. package/opencode/skill/requirements-elicitation/examples/interview-questions.md +226 -0
  122. package/opencode/skill/requirements-elicitation/examples/user-stories.md +414 -0
  123. package/opencode/skill/safe-refactoring/SKILL.md +312 -0
  124. package/opencode/skill/safe-refactoring/reference/code-smells.md +347 -0
  125. package/opencode/skill/security-assessment/SKILL.md +421 -0
  126. package/opencode/skill/security-assessment/checklists/security-review-checklist.md +285 -0
  127. package/opencode/skill/specification-management/SKILL.md +143 -0
  128. package/opencode/skill/specification-management/readme-template.md +32 -0
  129. package/opencode/skill/specification-management/reference.md +115 -0
  130. package/opencode/skill/specification-management/spec.py +229 -0
  131. package/opencode/skill/specification-validation/SKILL.md +397 -0
  132. package/opencode/skill/specification-validation/reference/3cs-framework.md +306 -0
  133. package/opencode/skill/specification-validation/reference/ambiguity-detection.md +132 -0
  134. package/opencode/skill/specification-validation/reference/constitution-validation.md +301 -0
  135. package/opencode/skill/specification-validation/reference/drift-detection.md +383 -0
  136. package/opencode/skill/task-delegation/SKILL.md +607 -0
  137. package/opencode/skill/task-delegation/examples/file-coordination.md +495 -0
  138. package/opencode/skill/task-delegation/examples/parallel-research.md +337 -0
  139. package/opencode/skill/task-delegation/examples/sequential-build.md +504 -0
  140. package/opencode/skill/task-delegation/reference.md +825 -0
  141. package/opencode/skill/tech-stack-detection/SKILL.md +89 -0
  142. package/opencode/skill/tech-stack-detection/references/framework-signatures.md +598 -0
  143. package/opencode/skill/technical-writing/SKILL.md +190 -0
  144. package/opencode/skill/technical-writing/templates/adr-template.md +205 -0
  145. package/opencode/skill/technical-writing/templates/system-doc-template.md +380 -0
  146. package/opencode/skill/test-design/SKILL.md +464 -0
  147. package/opencode/skill/test-design/examples/test-pyramid.md +724 -0
  148. package/opencode/skill/testing/SKILL.md +213 -0
  149. package/opencode/skill/testing/examples/test-pyramid.md +724 -0
  150. package/opencode/skill/user-insight-synthesis/SKILL.md +576 -0
  151. package/opencode/skill/user-insight-synthesis/templates/research-plan-template.md +217 -0
  152. package/opencode/skill/user-research/SKILL.md +508 -0
  153. package/opencode/skill/user-research/examples/interview-questions.md +265 -0
  154. package/opencode/skill/user-research/examples/personas.md +267 -0
  155. package/opencode/skill/vibe-security/SKILL.md +654 -0
  156. package/package.json +45 -0
@@ -0,0 +1,177 @@
1
+ ---
2
+ title: "[NEEDS CLARIFICATION: Feature title]"
3
+ status: draft
4
+ version: "1.0"
5
+ ---
6
+
7
+ # Product Requirements Document
8
+
9
+ ## Validation Checklist
10
+
11
+ ### CRITICAL GATES (Must Pass)
12
+
13
+ - [ ] All required sections are complete
14
+ - [ ] No [NEEDS CLARIFICATION] markers remain
15
+ - [ ] Problem statement is specific and measurable
16
+ - [ ] Every feature has testable acceptance criteria (Gherkin format)
17
+ - [ ] No contradictions between sections
18
+
19
+ ### QUALITY CHECKS (Should Pass)
20
+
21
+ - [ ] Problem is validated by evidence (not assumptions)
22
+ - [ ] Context → Problem → Solution flow makes sense
23
+ - [ ] Every persona has at least one user journey
24
+ - [ ] All MoSCoW categories addressed (Must/Should/Could/Won't)
25
+ - [ ] Every metric has corresponding tracking events
26
+ - [ ] No feature redundancy (check for duplicates)
27
+ - [ ] No technical implementation details included
28
+ - [ ] A new team member could understand this PRD
29
+
30
+ ---
31
+
32
+ ## Product Overview
33
+
34
+ ### Vision
35
+ [NEEDS CLARIFICATION: What is the one-sentence vision for this feature? What future state are we creating for users?]
36
+
37
+ ### Problem Statement
38
+ [NEEDS CLARIFICATION: What specific problem are users facing today? Why is this painful for them? What are the consequences of not solving this?]
39
+
40
+ ### Value Proposition
41
+ [NEEDS CLARIFICATION: Why will users choose this solution over alternatives? What unique value does it provide? How does it make their life better?]
42
+
43
+ ## User Personas
44
+
45
+ ### Primary Persona: [NEEDS CLARIFICATION: persona name]
46
+ - **Demographics:** [Age range, role/occupation, technical expertise level]
47
+ - **Goals:** [What are they trying to accomplish? What does success look like for them?]
48
+ - **Pain Points:** [What frustrates them about current solutions? What obstacles do they face?]
49
+
50
+ ### Secondary Personas
51
+ [NEEDS CLARIFICATION: Are there other user types? If yes, define them. If no, remove this section]
52
+
53
+ ## User Journey Maps
54
+
55
+ ### Primary User Journey: [NEEDS CLARIFICATION: Journey name]
56
+ 1. **Awareness:** [How do users discover they have this need?]
57
+ 2. **Consideration:** [What alternatives do they evaluate? What criteria matter to them?]
58
+ 3. **Adoption:** [What convinces them to try this solution?]
59
+ 4. **Usage:** [What are the key steps in using the feature?]
60
+ 5. **Retention:** [What keeps them coming back?]
61
+
62
+ ### Secondary User Journeys
63
+ [NEEDS CLARIFICATION: Are there other user journeys? If yes, define them. If no, remove this section]
64
+
65
+ ## Feature Requirements
66
+
67
+ ### Must Have Features
68
+ [NEEDS CLARIFICATION: What are the absolute minimum features needed for this to be valuable to users?]
69
+
70
+ #### Feature 1: [NEEDS CLARIFICATION: Feature name]
71
+ - **User Story:** As a [user type], I want to [action] so that [benefit]
72
+ - **Acceptance Criteria (Gherkin Format):**
73
+
74
+ Use the Given/When/Then structure for each criterion:
75
+ - `Given` [precondition or initial state]
76
+ - `When` [user action or system event]
77
+ - `Then` [expected observable outcome]
78
+ - `And` [additional outcomes if needed]
79
+
80
+ **Good Example:**
81
+ - [ ] Given the user has entered valid credentials, When they submit the login form, Then they are redirected to the dashboard within 2 seconds
82
+
83
+ **Bad Example:**
84
+ - [ ] User can log in _(vague, not testable)_
85
+
86
+ Criteria:
87
+ - [ ] Given [state], When [action], Then [outcome]
88
+ - [ ] Given [state], When [action], Then [outcome]
89
+ - [ ] Given [edge case], When [action], Then [correct behavior]
90
+
91
+ #### Feature 2: [NEEDS CLARIFICATION: Feature name]
92
+ [Repeat structure as needed]
93
+
94
+ ### Should Have Features
95
+ [NEEDS CLARIFICATION: What would significantly improve the experience but isn't critical for launch?]
96
+
97
+ ### Could Have Features
98
+ [NEEDS CLARIFICATION: What nice-to-haves could we add if time and resources permit?]
99
+
100
+ ### Won't Have (This Phase)
101
+ [NEEDS CLARIFICATION: What is explicitly out of scope for this phase? What are we NOT building?]
102
+
103
+ ## Detailed Feature Specifications
104
+
105
+ ### Feature: [NEEDS CLARIFICATION: Pick the most complex feature from above]
106
+ **Description:** [Detailed explanation of how this feature works]
107
+
108
+ **User Flow:**
109
+ 1. User [First action]
110
+ 2. System [Response]
111
+ 3. User [Next action]
112
+
113
+ **Business Rules:**
114
+ - Rule 1: [Specification - When X happens, then Y should occur]
115
+ - Rule X: ...
116
+
117
+ **Edge Cases:**
118
+ - Scenario 1: [What could go wrong?] → Expected: [How should system handle it?]
119
+ - Scenario X: ...
120
+
121
+ ## Success Metrics
122
+
123
+ ### Key Performance Indicators
124
+ [NEEDS CLARIFICATION: How will we measure if this feature is successful?]
125
+
126
+ - **Adoption:** [Target number/percentage of users who try the feature]
127
+ - **Engagement:** [Target frequency of use or actions per user]
128
+ - **Quality:** [Target error rate, success rate, or satisfaction score]
129
+ - **Business Impact:** [Revenue, retention, or other business metric]
130
+
131
+ ### Tracking Requirements
132
+ [NEEDS CLARIFICATION: What user actions and data points must we track to validate our success metrics and make informed product decisions?]
133
+
134
+ | Event | Properties | Purpose |
135
+ |-------|------------|---------|
136
+ | [User action] | [What data to capture] | [Why we track this] |
137
+
138
+ ---
139
+
140
+ ## Constraints and Assumptions
141
+
142
+ ### Constraints [NEEDS CLARIFICATION: What are limiting factors]
143
+ - [Budget, timeline, or resource limitations]
144
+ - [Technical or platform constraints]
145
+ - [Legal or compliance requirements]
146
+
147
+ ### Assumptions [NEEDS CLARIFICATION: What are we assuming that is not explicitly defined]
148
+ - [What are we assuming about users?]
149
+ - [What are we assuming about the market?]
150
+ - [What dependencies are we assuming will be available?]
151
+
152
+ ## Risks and Mitigations
153
+ [NEEDS CLARIFICATION: What are potential risks? How do we intend to tackle them?]
154
+
155
+ | Risk | Impact | Likelihood | Mitigation |
156
+ |------|--------|------------|------------|
157
+ | [Risk description] | [High/Medium/Low] | [High/Medium/Low] | [How to prevent or handle] |
158
+
159
+ ## Open Questions
160
+ [NEEDS CLARIFICATION: What requires more external input? What decisions do we need to continue?]
161
+
162
+ - [ ] [Question that needs stakeholder input]
163
+ - [ ] [Decision that needs to be made]
164
+ - [ ] [Information that needs to be gathered]
165
+
166
+ ---
167
+
168
+ ## Supporting Research
169
+
170
+ ### Competitive Analysis
171
+ [NEEDS CLARIFICATION: How do competitors solve this problem? What can we learn from them?]
172
+
173
+ ### User Research
174
+ [NEEDS CLARIFICATION: What user research has been done? Key findings?]
175
+
176
+ ### Market Data
177
+ [NEEDS CLARIFICATION: Any relevant market size, trends, or data points?]
@@ -0,0 +1,69 @@
1
+ # PRD Validation Checklist
2
+
3
+ Use this checklist to validate PRD completeness before proceeding to SDD.
4
+
5
+ ## Structure Validation
6
+
7
+ - [ ] **All required sections are complete** - No empty or placeholder sections
8
+ - [ ] **No [NEEDS CLARIFICATION] markers remain** - All markers replaced with content
9
+ - [ ] **Template structure preserved** - No sections added, removed, or reorganized
10
+
11
+ ## Content Quality
12
+
13
+ ### Problem Definition
14
+ - [ ] **Problem statement is specific and measurable** - Clear metrics for problem impact
15
+ - [ ] **Problem is validated by evidence** - Data, user research, or market analysis (not assumptions)
16
+ - [ ] **Context → Problem → Solution flow makes sense** - Logical narrative
17
+
18
+ ### User Understanding
19
+ - [ ] **Every persona has demographics** - Age, role, technical expertise
20
+ - [ ] **Every persona has goals** - What success looks like for them
21
+ - [ ] **Every persona has pain points** - Current frustrations
22
+ - [ ] **Every persona has at least one user journey** - End-to-end flow
23
+
24
+ ### Requirements Quality
25
+ - [ ] **All MoSCoW categories addressed** - Must/Should/Could/Won't all defined
26
+ - [ ] **Every feature has a user story** - As a [user], I want [action] so that [benefit]
27
+ - [ ] **Every feature has testable acceptance criteria** - Specific, verifiable conditions
28
+ - [ ] **No feature redundancy** - Check for duplicates or overlapping features
29
+ - [ ] **No contradictions between sections** - Consistent throughout
30
+
31
+ ### Success Criteria
32
+ - [ ] **KPIs defined for adoption** - User acquisition/activation targets
33
+ - [ ] **KPIs defined for engagement** - Usage frequency/depth targets
34
+ - [ ] **KPIs defined for quality** - Error rate, satisfaction targets
35
+ - [ ] **KPIs defined for business impact** - Revenue, retention targets
36
+ - [ ] **Every metric has corresponding tracking events** - How to measure
37
+
38
+ ### Constraints & Risks
39
+ - [ ] **Constraints identified** - Budget, timeline, technical, compliance
40
+ - [ ] **Assumptions documented** - Explicit about what we're assuming
41
+ - [ ] **Risks identified with mitigations** - What could go wrong and how to handle
42
+
43
+ ## Boundary Validation
44
+
45
+ - [ ] **No technical implementation details included** - No code, architecture, or database design
46
+ - [ ] **No API specifications** - Belongs in SDD
47
+ - [ ] **Focus on WHAT and WHY, not HOW** - Business requirements only
48
+
49
+ ## Clarity Validation
50
+
51
+ - [ ] **A new team member could understand this PRD** - Self-contained and clear
52
+ - [ ] **Jargon is defined** - Domain terms explained
53
+ - [ ] **Acronyms are expanded** - First use includes full form
54
+
55
+ ## Cross-Section Consistency
56
+
57
+ Run these checks across the entire document:
58
+ - [ ] **User personas match user journeys** - All personas have journeys
59
+ - [ ] **Features align with user goals** - Each feature maps to a persona goal
60
+ - [ ] **Metrics map to features** - Success measured for key features
61
+ - [ ] **Risks relate to requirements** - Identified risks are relevant
62
+
63
+ ## Completion Criteria
64
+
65
+ ✅ **PRD is complete when:**
66
+ - All checklist items pass
67
+ - User has reviewed and approved content
68
+ - No open questions remain
69
+ - Ready for technical specification (SDD)