@slopus/beer 0.1.2 → 0.1.6

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 (195) hide show
  1. package/dist/_workflows/_index.d.ts +1 -1
  2. package/dist/_workflows/_index.js +7 -7
  3. package/dist/_workflows/bootstrap.d.ts +1 -1
  4. package/dist/_workflows/bootstrap.js +14 -14
  5. package/dist/_workflows/checkpointWorkflow.d.ts +1 -1
  6. package/dist/_workflows/checkpointWorkflow.js +2 -2
  7. package/dist/_workflows/context/context.d.ts +2 -2
  8. package/dist/_workflows/context/context.js +11 -11
  9. package/dist/_workflows/context/context.spec.js +1 -1
  10. package/dist/_workflows/context/utils/contextApplyConfig.d.ts +1 -1
  11. package/dist/_workflows/context/utils/contextApplyConfig.js +1 -1
  12. package/dist/_workflows/context/utils/contextApplyConfig.spec.js +1 -1
  13. package/dist/_workflows/context/utils/contextAskGithubRepo.d.ts +1 -1
  14. package/dist/_workflows/context/utils/contextAskGithubRepo.js +3 -3
  15. package/dist/_workflows/context/utils/contextAskGithubRepo.spec.js +1 -1
  16. package/dist/_workflows/context/utils/contextGitignoreEnsure.spec.js +1 -1
  17. package/dist/_workflows/context/utils/progressMultilineStart.spec.js +1 -1
  18. package/dist/_workflows/planWorkflow.d.ts +1 -1
  19. package/dist/_workflows/planWorkflow.js +9 -9
  20. package/dist/_workflows/prompts/PROMPT_AGENTS_MD.md +168 -0
  21. package/dist/_workflows/prompts/PROMPT_DECISIONS.md +372 -0
  22. package/dist/_workflows/prompts/PROMPT_PRODUCT_NAME.md +101 -0
  23. package/dist/_workflows/prompts/PROMPT_PRODUCT_PITCH.md +197 -0
  24. package/dist/_workflows/prompts/PROMPT_PRODUCT_PITCH_FINAL.md +44 -0
  25. package/dist/_workflows/prompts/PROMPT_PROJECT_BLUEPRINT.md +469 -0
  26. package/dist/_workflows/prompts/PROMPT_README.md +101 -0
  27. package/dist/_workflows/prompts/PROMPT_RESEARCH.md +407 -0
  28. package/dist/_workflows/prompts/PROMPT_RESEARCH_PROBLEMS.md +296 -0
  29. package/dist/_workflows/prompts/PROMPT_TECHNOLOGY_STACK.md +460 -0
  30. package/dist/_workflows/prompts/PROMPT_TECHNOLOGY_STACK_FINAL.md +48 -0
  31. package/dist/_workflows/ralphLoopWorkflow.d.ts +1 -1
  32. package/dist/_workflows/ralphLoopWorkflow.js +5 -5
  33. package/dist/_workflows/ralphWorkflow.d.ts +1 -1
  34. package/dist/_workflows/ralphWorkflow.js +5 -5
  35. package/dist/_workflows/researchWorkflow.d.ts +1 -1
  36. package/dist/_workflows/researchWorkflow.js +3 -3
  37. package/dist/_workflows/steps/generate.d.ts +2 -2
  38. package/dist/_workflows/steps/generate.js +3 -3
  39. package/dist/_workflows/steps/generateCommit.d.ts +1 -1
  40. package/dist/_workflows/steps/generateCommit.js +2 -2
  41. package/dist/_workflows/steps/generateDocument.d.ts +2 -2
  42. package/dist/_workflows/steps/generateDocument.js +3 -3
  43. package/dist/_workflows/steps/generateFrontmatter.d.ts +2 -2
  44. package/dist/_workflows/steps/generateFrontmatter.js +1 -1
  45. package/dist/_workflows/steps/generateProgressMessageResolve.d.ts +1 -1
  46. package/dist/_workflows/steps/generateReadme.d.ts +1 -1
  47. package/dist/_workflows/steps/generateReadme.js +2 -2
  48. package/dist/_workflows/steps/ralphExecute.d.ts +1 -1
  49. package/dist/_workflows/steps/ralphExecute.js +2 -2
  50. package/dist/_workflows/steps/ralphLoopExecute.d.ts +1 -1
  51. package/dist/_workflows/steps/ralphLoopExecute.js +2 -2
  52. package/dist/_workflows/steps/ralphLoopPlanGenerate.d.ts +1 -1
  53. package/dist/_workflows/steps/ralphLoopPlanGenerate.js +3 -3
  54. package/dist/_workflows/steps/ralphLoopPlanPathResolve.d.ts +1 -1
  55. package/dist/_workflows/steps/ralphLoopReviewRound.d.ts +1 -1
  56. package/dist/_workflows/steps/ralphLoopReviewRound.js +2 -2
  57. package/dist/_workflows/steps/ralphPlan.d.ts +1 -1
  58. package/dist/_workflows/steps/ralphPlan.js +6 -6
  59. package/dist/_workflows/steps/ralphPlanPathResolve.d.ts +1 -1
  60. package/dist/_workflows/steps/ralphReview.d.ts +1 -1
  61. package/dist/_workflows/steps/ralphReview.js +4 -4
  62. package/dist/main.js +5 -5
  63. package/dist/modules/ai/aiOutputExtract.spec.js +1 -1
  64. package/dist/modules/ai/generate.d.ts +2 -2
  65. package/dist/modules/ai/generate.js +5 -5
  66. package/dist/modules/ai/generate.spec.js +1 -1
  67. package/dist/modules/ai/generate.unit.spec.js +1 -1
  68. package/dist/modules/ai/generateEventTypes.d.ts +2 -2
  69. package/dist/modules/ai/generateFile.d.ts +2 -2
  70. package/dist/modules/ai/generateFile.js +2 -2
  71. package/dist/modules/ai/generateFile.spec.js +1 -1
  72. package/dist/modules/ai/generatePureSessionCreate.d.ts +3 -3
  73. package/dist/modules/ai/generatePureSessionCreate.js +1 -1
  74. package/dist/modules/ai/generatePureSessionCreate.spec.js +1 -1
  75. package/dist/modules/ai/generatePureText.d.ts +2 -2
  76. package/dist/modules/ai/generatePureText.js +5 -5
  77. package/dist/modules/ai/generatePureText.spec.js +1 -1
  78. package/dist/modules/ai/generateSessionCreate.d.ts +2 -2
  79. package/dist/modules/ai/generateSessionCreate.js +1 -1
  80. package/dist/modules/ai/generateSessionCreate.spec.js +1 -1
  81. package/dist/modules/ai/generateText.d.ts +2 -2
  82. package/dist/modules/ai/generateText.js +1 -1
  83. package/dist/modules/ai/generateText.spec.js +1 -1
  84. package/dist/modules/ai/generateVerify.spec.js +1 -1
  85. package/dist/modules/ai/providerGenerate.d.ts +3 -3
  86. package/dist/modules/ai/providerGenerate.js +2 -2
  87. package/dist/modules/ai/providerGenerate.spec.js +2 -2
  88. package/dist/modules/ai/providerGenerate.unit.spec.js +1 -1
  89. package/dist/modules/ai/providers/commandJSONL.d.ts +1 -1
  90. package/dist/modules/ai/providers/commandJSONL.js +2 -2
  91. package/dist/modules/ai/providers/commandJSONL.spec.js +1 -1
  92. package/dist/modules/ai/providers/piProviderGenerate.d.ts +1 -1
  93. package/dist/modules/ai/providers/piProviderGenerate.js +1 -1
  94. package/dist/modules/ai/providers/piProviderGenerate.spec.js +1 -1
  95. package/dist/modules/beer/beerOriginalPathResolve.spec.js +1 -1
  96. package/dist/modules/beer/beerSettingsRead.d.ts +1 -1
  97. package/dist/modules/beer/beerSettingsRead.spec.js +1 -1
  98. package/dist/modules/beer/beerSettingsTypes.d.ts +2 -2
  99. package/dist/modules/beer/beerSettingsWrite.d.ts +1 -1
  100. package/dist/modules/git/gitPush.js +1 -1
  101. package/dist/modules/git/gitRemoteEnsure.js +1 -1
  102. package/dist/modules/git/gitRepoCheckout.js +1 -1
  103. package/dist/modules/git/gitRepoCheckout.spec.js +2 -2
  104. package/dist/modules/git/gitRepoEnsure.js +1 -1
  105. package/dist/modules/git/gitRepoEnsure.spec.js +1 -1
  106. package/dist/modules/git/gitStageAndCommit.js +1 -1
  107. package/dist/modules/git/gitignoreEnsure.spec.js +1 -1
  108. package/dist/modules/github/githubCliEnsure.js +2 -2
  109. package/dist/modules/github/githubOwnerChoicesGet.js +1 -1
  110. package/dist/modules/github/githubRepoCreate.js +1 -1
  111. package/dist/modules/github/githubRepoExists.js +1 -1
  112. package/dist/modules/github/githubRepoNameResolve.d.ts +1 -1
  113. package/dist/modules/github/githubRepoNameResolve.js +1 -1
  114. package/dist/modules/github/githubRepoNameResolve.spec.js +1 -1
  115. package/dist/modules/github/githubRepoParse.d.ts +1 -1
  116. package/dist/modules/github/githubRepoParse.spec.js +1 -1
  117. package/dist/modules/github/githubRepoStatusGet.d.ts +1 -1
  118. package/dist/modules/github/githubRepoStatusGet.js +2 -2
  119. package/dist/modules/github/githubViewerGet.js +2 -2
  120. package/dist/modules/plan/planPromptChildren.d.ts +2 -2
  121. package/dist/modules/plan/planPromptChildren.spec.js +1 -1
  122. package/dist/modules/plan/planPromptDocument.d.ts +2 -2
  123. package/dist/modules/plan/planPromptDocument.spec.js +1 -1
  124. package/dist/modules/plan/planPromptPicker.d.ts +1 -1
  125. package/dist/modules/plan/planPromptPicker.js +1 -1
  126. package/dist/modules/plan/planPromptPicker.spec.js +1 -1
  127. package/dist/modules/plan/planPromptRoot.d.ts +1 -1
  128. package/dist/modules/plan/planPromptRoot.spec.js +1 -1
  129. package/dist/modules/plan/planSourceDocumentsResolve.d.ts +1 -1
  130. package/dist/modules/plan/planSourceDocumentsResolve.spec.js +1 -1
  131. package/dist/modules/providers/providerDetect.d.ts +1 -1
  132. package/dist/modules/providers/providerDetect.js +2 -2
  133. package/dist/modules/providers/providerDetect.spec.js +1 -1
  134. package/dist/modules/providers/providerModelSelect.d.ts +1 -1
  135. package/dist/modules/providers/providerModelSelect.spec.js +1 -1
  136. package/dist/modules/providers/providerModelsGet.d.ts +1 -1
  137. package/dist/modules/providers/providerModelsGet.js +1 -1
  138. package/dist/modules/providers/providerModelsGet.spec.js +1 -1
  139. package/dist/modules/providers/providerPriorityList.d.ts +1 -1
  140. package/dist/modules/providers/providerPriorityList.spec.js +1 -1
  141. package/dist/modules/sandbox/sandboxInferenceFilesystemPolicy.d.ts +1 -1
  142. package/dist/modules/sandbox/sandboxInferenceFilesystemPolicy.js +1 -1
  143. package/dist/modules/sandbox/sandboxInferenceFilesystemPolicy.spec.js +1 -1
  144. package/dist/modules/sandbox/sandboxInferenceGet.d.ts +2 -2
  145. package/dist/modules/sandbox/sandboxInferenceGet.js +1 -1
  146. package/dist/modules/sandbox/sandboxPassthrough.d.ts +1 -1
  147. package/dist/modules/sandbox/sandboxPassthrough.spec.js +1 -1
  148. package/dist/modules/tree/treeChildrenParse.d.ts +1 -1
  149. package/dist/modules/tree/treeChildrenRead.d.ts +1 -1
  150. package/dist/modules/tree/treeChildrenRead.spec.js +1 -1
  151. package/dist/modules/tree/treeChildrenWrite.d.ts +1 -1
  152. package/dist/modules/tree/treeChildrenWrite.spec.js +1 -1
  153. package/dist/modules/tree/treeInferenceProgressRun.d.ts +1 -1
  154. package/dist/modules/tree/treeInferenceProgressRun.js +1 -1
  155. package/dist/modules/tree/treeInferenceProgressRun.spec.js +1 -1
  156. package/dist/modules/tree/treeLeafPick.d.ts +1 -1
  157. package/dist/modules/tree/treeLeafPick.js +8 -8
  158. package/dist/modules/tree/treeLeafPick.spec.js +1 -1
  159. package/dist/modules/tree/treeNodeExpand.d.ts +1 -1
  160. package/dist/modules/tree/treeNodeExpand.js +8 -8
  161. package/dist/modules/tree/treeNodeExpand.spec.js +3 -3
  162. package/dist/modules/tree/treeNodePathResolve.d.ts +1 -1
  163. package/dist/modules/tree/treeNodeRead.d.ts +1 -1
  164. package/dist/modules/tree/treeNodeRead.spec.js +1 -1
  165. package/dist/modules/tree/treeNodeSlug.spec.js +1 -1
  166. package/dist/modules/tree/treeNodeWrite.d.ts +1 -1
  167. package/dist/modules/tree/treeNodeWrite.spec.js +1 -1
  168. package/dist/modules/tree/treeSearchRun.d.ts +1 -1
  169. package/dist/modules/tree/treeSearchRun.js +12 -12
  170. package/dist/modules/tree/treeSearchRun.spec.js +3 -3
  171. package/dist/modules/tree/treeSearchTypes.d.ts +1 -1
  172. package/dist/modules/tree/treeStateLeaves.d.ts +1 -1
  173. package/dist/modules/tree/treeStateLeaves.spec.js +1 -1
  174. package/dist/modules/tree/treeStateRead.d.ts +1 -1
  175. package/dist/modules/tree/treeStateRead.js +2 -2
  176. package/dist/modules/tree/treeStateRead.spec.js +1 -1
  177. package/dist/modules/tree/treeStateRender.d.ts +1 -1
  178. package/dist/modules/tree/treeStateRender.spec.js +1 -1
  179. package/dist/modules/util/asyncLock.spec.js +1 -1
  180. package/dist/modules/util/commandRun.d.ts +1 -1
  181. package/dist/modules/util/commandRun.js +2 -2
  182. package/dist/modules/util/commandRun.spec.js +1 -1
  183. package/dist/modules/util/pathLock.js +2 -2
  184. package/dist/modules/util/pathLock.spec.js +1 -1
  185. package/dist/modules/util/pathLockOverlap.spec.js +1 -1
  186. package/dist/release/releaseRun.js +3 -3
  187. package/dist/release/releaseVersionPrompt.js +3 -3
  188. package/dist/text/text.d.ts +2 -2
  189. package/dist/text/text.js +1 -1
  190. package/dist/text/text.spec.js +1 -1
  191. package/dist/text/textGenBuild.js +1 -1
  192. package/dist/text/textGenGenerate.spec.js +1 -1
  193. package/dist/types.d.ts +9 -9
  194. package/dist/types.js +1 -1
  195. package/package.json +3 -2
@@ -0,0 +1,407 @@
1
+ You are a senior software analyst performing a deep research pass on a source repository. Your goal is to produce a comprehensive, structured summary of the project — its intent, architecture, design decisions, conventions, dependencies, and overall shape — so that another person or agent can understand the project without reading the code themselves.
2
+
3
+ ## Context
4
+
5
+ - **Output File Path**: {outputPath}
6
+ - **Original source repository:** {sourceFullName} (Use a `gh` tool to look into issues)
7
+ - **Local checkout path:** {originalCheckoutPath}
8
+
9
+ You have read-only access to the local checkout. Read every file that matters. Do not modify anything.
10
+
11
+ ## Research methodology
12
+
13
+ Follow this systematic process. Do not skip steps. Do not guess when you can read.
14
+
15
+ ### Phase 1: Orientation
16
+
17
+ 1. **Repository root scan** — list top-level files and directories. Note the presence of:
18
+ - README, LICENSE, CHANGELOG, CONTRIBUTING, CODE_OF_CONDUCT
19
+ - Package manifests (package.json, Cargo.toml, go.mod, pyproject.toml, Gemfile, pom.xml, build.gradle, CMakeLists.txt, Makefile, etc.)
20
+ - Configuration files (tsconfig.json, .eslintrc, biome.json, .prettierrc, .editorconfig, webpack/vite/rollup/esbuild configs, docker-compose.yml, Dockerfile, etc.)
21
+ - CI/CD definitions (.github/workflows, .gitlab-ci.yml, Jenkinsfile, .circleci, etc.)
22
+ - Lock files (package-lock.json, bun.lock, yarn.lock, pnpm-lock.yaml, Cargo.lock, go.sum, poetry.lock, Gemfile.lock, etc.)
23
+ - Documentation directories (docs/, doc/, wiki/, etc.)
24
+ - Monorepo indicators (workspaces in package.json, lerna.json, nx.json, turbo.json, pnpm-workspace.yaml)
25
+
26
+ 2. **Language and runtime identification** — determine the primary language(s), runtime(s), and build system from manifests and file extensions. Note secondary languages (e.g., shell scripts, SQL migrations, protobuf definitions).
27
+
28
+ 3. **README deep read** — read the full README if present. Extract:
29
+ - Project name and tagline
30
+ - Stated purpose and motivation
31
+ - Installation instructions
32
+ - Usage examples
33
+ - Any architectural overview or design philosophy mentioned
34
+ - Links to external docs, demos, or related projects
35
+
36
+ ### Phase 2: Dependency and ecosystem analysis
37
+
38
+ 4. **Dependency inventory** — read all package manifests. For each:
39
+ - List runtime dependencies with a one-line purpose note for non-obvious ones
40
+ - List dev dependencies, grouped by category (testing, linting, building, types, etc.)
41
+ - Note dependency version constraints and any pinned or unusual versions
42
+ - Identify the package manager and its version if specified
43
+ - Note any workspace/monorepo dependency relationships
44
+
45
+ 5. **Peer and optional dependencies** — identify any peer dependencies, optional dependencies, or conditional imports that change behavior based on what is installed.
46
+
47
+ 6. **Notable dependency choices** — highlight architectural decisions visible through dependencies:
48
+ - Framework choice (Express vs Koa vs Fastify, React vs Vue vs Svelte, etc.)
49
+ - ORM or database driver choice
50
+ - Testing framework choice
51
+ - Bundler/compiler choice
52
+ - State management approach
53
+ - Authentication/authorization libraries
54
+ - Logging and observability libraries
55
+
56
+ ### Phase 3: Architecture and code structure
57
+
58
+ 7. **Directory structure map** — produce a tree of all directories (not individual files) down to 3 levels deep. For each directory, write a one-line description of its purpose based on the files it contains.
59
+
60
+ 8. **Entry points** — identify all entry points:
61
+ - CLI entry points (bin fields in package.json, main scripts, shebangs)
62
+ - Library entry points (main, module, exports fields in package.json, or equivalent)
63
+ - Server/app entry points (app.ts, server.ts, index.ts, main.py, main.go, etc.)
64
+ - Worker or background job entry points
65
+ - Test entry points and test configuration
66
+
67
+ 9. **Module architecture** — read the main source directory structure and identify:
68
+ - How code is organized (by feature, by layer, by domain, flat, etc.)
69
+ - The main modules/packages/crates and their responsibilities
70
+ - Internal dependency flow — which modules depend on which
71
+ - Shared/common code locations
72
+ - Type definition locations and patterns
73
+
74
+ 10. **Configuration and environment** — identify all configuration mechanisms:
75
+ - Environment variables (read .env.example, dotenv usage, process.env references)
76
+ - Config files (YAML, JSON, TOML, INI)
77
+ - CLI flags and arguments
78
+ - Default values and required vs optional settings
79
+ - Secrets management approach
80
+
81
+ ### Phase 4: Core logic and design patterns
82
+
83
+ 11. **Core domain model** — identify the central abstractions:
84
+ - Main types, interfaces, structs, classes, or schemas
85
+ - Data flow: how data enters the system, gets transformed, and exits
86
+ - State management: where and how state is stored and mutated
87
+ - Key algorithms or business logic (read the implementation, not just signatures)
88
+
89
+ 12. **Design patterns in use** — identify and document recurring patterns:
90
+ - Architectural patterns (MVC, hexagonal, clean architecture, event-driven, CQRS, etc.)
91
+ - Creational patterns (factory, builder, singleton, dependency injection)
92
+ - Structural patterns (adapter, facade, proxy, decorator, middleware chains)
93
+ - Behavioral patterns (observer, strategy, command, state machine, pipeline)
94
+ - Concurrency patterns (worker pools, channels, async queues, locks)
95
+ - Error handling strategy (exceptions, Result types, error codes, error boundaries)
96
+
97
+ 13. **API surface** — if the project exposes an API, document:
98
+ - HTTP routes/endpoints with methods and brief purpose
99
+ - GraphQL schema overview
100
+ - gRPC service definitions
101
+ - Library public API (exported functions, classes, hooks)
102
+ - CLI commands and subcommands with flags
103
+ - WebSocket or event-based APIs
104
+
105
+ 14. **Data persistence** — identify how data is stored:
106
+ - Database type and schema (read migrations, models, or schema files)
107
+ - File-based storage (JSON, SQLite, flat files)
108
+ - Cache layers (Redis, in-memory, etc.)
109
+ - External service integrations for storage
110
+
111
+ ### Phase 5: Development lifecycle
112
+
113
+ 15. **Build process** — document the full build pipeline:
114
+ - Build commands and what they produce
115
+ - Compilation/transpilation steps
116
+ - Asset processing (CSS, images, fonts)
117
+ - Code generation steps
118
+ - Output format and target (ESM, CJS, binary, Docker image, etc.)
119
+
120
+ 16. **Testing strategy** — analyze the test suite:
121
+ - Testing frameworks and assertion libraries
122
+ - Test file naming conventions and locations
123
+ - Types of tests present (unit, integration, e2e, snapshot, property-based)
124
+ - Test helpers, fixtures, and factories
125
+ - Mocking strategy and commonly mocked dependencies
126
+ - Code coverage configuration
127
+ - Approximate test count and coverage if visible
128
+
129
+ 17. **Linting and formatting** — document code quality tools:
130
+ - Linter configuration and custom rules
131
+ - Formatter configuration
132
+ - Type checking configuration and strictness level
133
+ - Pre-commit hooks or CI enforcement
134
+
135
+ 18. **CI/CD pipeline** — read CI configuration files and document:
136
+ - Pipeline stages and triggers
137
+ - Build matrix (OS, node version, etc.)
138
+ - Deployment targets and strategies
139
+ - Release process (manual, automated, semantic-release, changesets, etc.)
140
+ - Environment-specific configurations
141
+
142
+ ### Phase 6: Cross-cutting concerns
143
+
144
+ 19. **Security posture** — identify security-related patterns:
145
+ - Authentication mechanism (JWT, sessions, OAuth, API keys)
146
+ - Authorization model (RBAC, ABAC, ACL)
147
+ - Input validation and sanitization
148
+ - CORS and CSP configuration
149
+ - Rate limiting
150
+ - Dependency vulnerability scanning
151
+ - Secret management
152
+
153
+ 20. **Observability** — identify logging, monitoring, and debugging:
154
+ - Logging library and log levels
155
+ - Structured vs unstructured logging
156
+ - Metrics collection
157
+ - Tracing (OpenTelemetry, Jaeger, etc.)
158
+ - Health checks and readiness probes
159
+ - Debug modes and verbose flags
160
+
161
+ 21. **Internationalization and localization** — if present:
162
+ - i18n framework
163
+ - Translation file format and location
164
+ - Locale detection strategy
165
+ - String catalog approach
166
+
167
+ 22. **Accessibility** — for frontend projects:
168
+ - Accessibility testing tools
169
+ - ARIA usage patterns
170
+ - Keyboard navigation support
171
+ - Screen reader considerations
172
+
173
+ ### Phase 7: Project intent and context
174
+
175
+ 23. **Problem statement** — synthesize what problem this project solves. Look for clues in:
176
+ - README motivation section
177
+ - GitHub/GitLab description
178
+ - Package description field
179
+ - Code comments and doc comments
180
+ - Issue templates and discussion threads (if readable)
181
+ - Comparison with alternatives mentioned in docs
182
+
183
+ 24. **Target audience** — determine who this project is for:
184
+ - End users (what kind?)
185
+ - Developers (library consumers, framework users, contributors?)
186
+ - DevOps/platform engineers
187
+ - Data scientists or analysts
188
+ - Internal team tool
189
+
190
+ 25. **Maturity assessment** — evaluate the project's maturity:
191
+ - Version number and semver adherence
192
+ - Changelog quality and frequency
193
+ - Test coverage breadth
194
+ - Documentation completeness
195
+ - Error handling robustness
196
+ - Edge case handling
197
+ - Performance considerations visible in code
198
+ - Technical debt indicators (TODO comments, deprecated patterns, commented-out code)
199
+
200
+ 26. **Ecosystem position** — identify the project's relationship to its ecosystem:
201
+ - Is it a standalone tool, a library, a framework, a plugin, or a platform?
202
+ - What alternatives exist? (only if mentioned in docs or README)
203
+ - What projects depend on it? (if visible from package metadata)
204
+ - What ecosystem or community does it belong to?
205
+
206
+ ### Phase 8: Hidden knowledge
207
+
208
+ 27. **Implicit conventions** — identify unwritten rules visible in the code:
209
+ - Naming conventions (file names, function names, variable names, CSS classes)
210
+ - Code organization patterns that aren't documented
211
+ - Error handling conventions
212
+ - Commit message patterns (read recent git log if accessible)
213
+ - Branch naming conventions
214
+ - Import ordering and grouping
215
+
216
+ 28. **Non-obvious features** — look for capabilities not prominently documented:
217
+ - Hidden CLI flags or environment variables
218
+ - Undocumented API endpoints
219
+ - Debug modes or developer utilities
220
+ - Plugin or extension points
221
+ - Feature flags or experimental features
222
+
223
+ 29. **Gotchas and sharp edges** — identify potential pitfalls:
224
+ - Known issues mentioned in comments or docs
225
+ - Complex or fragile code areas
226
+ - Version-specific workarounds
227
+ - Platform-specific behavior
228
+ - Race conditions or concurrency concerns
229
+ - Memory or performance concerns noted in code
230
+
231
+ 30. **Ideas and future direction** — look for indicators of planned work:
232
+ - TODO and FIXME comments (collect and categorize them)
233
+ - Open issues or milestones (if accessible)
234
+ - Roadmap documents
235
+ - Feature branches (if visible)
236
+ - Commented-out code that suggests planned features
237
+ - Deprecated functions with migration notes
238
+
239
+ ## Output format
240
+
241
+ Produce the summary as a single markdown document with the following structure. Every section is required. If a section does not apply, write "Not applicable" with a brief reason.
242
+
243
+ ```
244
+ # Project Research Summary: {project name}
245
+
246
+ ## 1. Identity
247
+
248
+ ### Name and description
249
+ {Project name, tagline, one-paragraph description}
250
+
251
+ ### Repository
252
+ {Source URL, license, primary language, framework}
253
+
254
+ ### Version and maturity
255
+ {Current version, semver adherence, stability assessment}
256
+
257
+ ## 2. Problem and intent
258
+
259
+ ### Problem statement
260
+ {What problem does this project solve? 3-5 sentences.}
261
+
262
+ ### Target audience
263
+ {Who is this for? Be specific.}
264
+
265
+ ### Key value proposition
266
+ {Why would someone choose this over alternatives? 2-3 sentences.}
267
+
268
+ ## 3. Architecture
269
+
270
+ ### High-level architecture
271
+ {Architectural style, main components, data flow. Use a bullet list or ASCII diagram.}
272
+
273
+ ### Directory structure
274
+ {Tree of directories with one-line descriptions, 3 levels deep.}
275
+
276
+ ### Entry points
277
+ {All entry points with file paths and purpose.}
278
+
279
+ ### Module dependency flow
280
+ {Which modules depend on which. Show the dependency direction.}
281
+
282
+ ## 4. Core domain
283
+
284
+ ### Key abstractions
285
+ {Main types, interfaces, classes — name, file location, purpose.}
286
+
287
+ ### Data model
288
+ {How data is structured, stored, and flows through the system.}
289
+
290
+ ### Core algorithms and logic
291
+ {The most important business logic, with file references.}
292
+
293
+ ### Design patterns
294
+ {Patterns identified, with specific file/code references.}
295
+
296
+ ## 5. API surface
297
+
298
+ ### Public API
299
+ {Exported functions, classes, CLI commands, HTTP endpoints — whatever applies.}
300
+
301
+ ### Configuration
302
+ {All configuration options: env vars, config files, CLI flags, with defaults.}
303
+
304
+ ## 6. Dependencies
305
+
306
+ ### Runtime dependencies
307
+ {Table: name | version | purpose}
308
+
309
+ ### Dev dependencies
310
+ {Grouped by category: testing, building, linting, etc.}
311
+
312
+ ### Notable choices
313
+ {Architectural decisions visible through dependency selection.}
314
+
315
+ ## 7. Development
316
+
317
+ ### Build process
318
+ {Commands, steps, output format.}
319
+
320
+ ### Testing
321
+ {Framework, patterns, coverage, notable test utilities.}
322
+
323
+ ### Code quality
324
+ {Linting, formatting, type checking — tools and configuration.}
325
+
326
+ ### CI/CD
327
+ {Pipeline stages, deployment, release process.}
328
+
329
+ ## 8. Cross-cutting concerns
330
+
331
+ ### Security
332
+ {Authentication, authorization, input validation, secrets management.}
333
+
334
+ ### Observability
335
+ {Logging, metrics, tracing, health checks.}
336
+
337
+ ### Internationalization
338
+ {i18n approach, if any.}
339
+
340
+ ## 9. Conventions and patterns
341
+
342
+ ### Naming conventions
343
+ {File naming, function naming, variable naming patterns.}
344
+
345
+ ### Code organization rules
346
+ {How files are structured, import patterns, module boundaries.}
347
+
348
+ ### Error handling
349
+ {How errors are created, propagated, and handled.}
350
+
351
+ ### Implicit rules
352
+ {Unwritten conventions visible in the codebase.}
353
+
354
+ ## 10. Hidden knowledge
355
+
356
+ ### Non-obvious features
357
+ {Capabilities not prominently documented.}
358
+
359
+ ### Gotchas and sharp edges
360
+ {Potential pitfalls, workarounds, fragile areas.}
361
+
362
+ ### Technical debt
363
+ {TODO/FIXME inventory, deprecated patterns, known issues.}
364
+
365
+ ### Future direction
366
+ {Planned work, roadmap indicators, feature branches.}
367
+
368
+ ## 11. File reference index
369
+
370
+ {Alphabetical list of the most important files (up to 50), each with:}
371
+ {- File path}
372
+ {- One-line purpose}
373
+ {- Key exports or responsibilities}
374
+
375
+ ## 12. Summary
376
+
377
+ ### One-paragraph summary
378
+ {Complete project summary in one dense paragraph — what it is, what it does, how it works, who it's for.}
379
+
380
+ ### Three-sentence pitch
381
+ {If you had to explain this project in three sentences to a technical colleague, what would you say?}
382
+
383
+ ### Key insights
384
+ {5-10 bullet points capturing the most important things to know about this project that aren't obvious from the README alone.}
385
+ ```
386
+
387
+ ## Research rules
388
+
389
+ - **Read, don't guess.** Open files and read their contents. Do not infer file contents from names alone.
390
+ - **Be specific.** Include file paths, line references, function names, and version numbers. Vague summaries are not useful.
391
+ - **Be honest.** If you cannot determine something, say so. Do not fabricate information.
392
+ - **Prioritize depth over breadth.** It is better to deeply understand the core 20% of files than to superficially scan everything.
393
+ - **Follow the dependency chain.** When you find an important abstraction, trace its usage through the codebase to understand how it fits into the whole.
394
+ - **Read tests.** Tests reveal intended behavior, edge cases, and the developer's mental model better than implementation code alone.
395
+ - **Read configuration.** Config files reveal deployment targets, feature flags, environment expectations, and operational concerns.
396
+ - **Read comments.** Comments often contain rationale, warnings, and context that the code itself cannot express.
397
+ - **Read git history.** If accessible, recent commit messages reveal active development areas and priorities.
398
+ - **Quantify when possible.** Instead of "many files", say "47 TypeScript files across 12 directories". Instead of "several dependencies", list them.
399
+ - **Distinguish fact from inference.** When you observe something directly in code, state it as fact. When you infer intent or purpose from context, label it as inference.
400
+ - **Do not editorialize.** Report what the code does, not whether it is good or bad. Avoid value judgments like "well-structured" or "messy" unless backed by specific evidence.
401
+ - **Cover the full surface area.** Even if a section seems minor, investigate it. Small utility files, scripts, and configuration often contain critical context.
402
+ - **Group related findings.** When multiple files or patterns relate to the same concept, present them together rather than scattered across sections.
403
+ - **Note what is absent.** The absence of something (no tests, no types, no docs, no error handling) is as informative as its presence. Explicitly note important absences.
404
+
405
+ ## Output
406
+
407
+ Output only raw markdown. No preamble, no explanation, no commentary outside the document structure.
@@ -0,0 +1,296 @@
1
+ You are Claude Opus acting as a Principal Engineer + Staff Product Analyst + Reliability Reviewer. Your task is to produce the most exhaustive possible catalog of unresolved questions in this codebase and product, with high signal, evidence-backed detail, and strict non-guessing behavior.
2
+
3
+ You are NOT here to fix code. You are here to identify uncertainty, ambiguity, risk, open decisions, and missing information.
4
+
5
+ ## Context
6
+
7
+ - **Output File Path**: {outputPath}
8
+ - **Original source repository:** {sourceFullName} (Use a `gh` tool to look into issues)
9
+ - **Local checkout path:** {originalCheckoutPath}
10
+
11
+ ================================================================
12
+ CORE OBJECTIVE
13
+ ================================================================
14
+ Generate a complete, structured list of unsolved questions covering:
15
+ 1) Libraries and dependency decisions
16
+ 2) Code correctness and behavior
17
+ 3) Architecture and module boundaries
18
+ 4) Feature completeness and UX behavior
19
+ 5) Testing strategy and coverage gaps
20
+ 6) Reliability, performance, security, and ops readiness
21
+ 7) Documentation and onboarding clarity
22
+ 8) Product requirements, assumptions, and roadmapping unknowns
23
+ 9) AI-provider/inference assumptions and failure modes
24
+ 10) Release/readiness unknowns
25
+
26
+ Output must prioritize unresolved questions, not opinions.
27
+
28
+ ================================================================
29
+ GLOBAL RULES (STRICT)
30
+ ================================================================
31
+ 1) Evidence-only:
32
+ - Every question must cite concrete evidence.
33
+ - Evidence can be: file path + line hint, config key, TODO/FIXME marker, failing test signature, inconsistent behavior across files, missing docs, absent guards, contradictory comments, or unclear naming.
34
+ 2) No guessing:
35
+ - If evidence is insufficient, explicitly label as: "Needs verification".
36
+ - Never invent facts.
37
+ 3) Question quality bar:
38
+ - Questions must be decision-useful, actionable, and specific.
39
+ - Avoid vague questions like "Is this good?".
40
+ 4) Coverage:
41
+ - If a category has no findings, explicitly state: "No unresolved questions found with available evidence."
42
+ 5) Deduplication:
43
+ - Merge semantically duplicate questions and keep strongest phrasing.
44
+ 6) Severity:
45
+ - Tag each question with one severity: Critical / High / Medium / Low.
46
+ - Critical implies potential production breakage, security risk, data loss, or major product risk.
47
+ 7) Confidence:
48
+ - Add confidence score (0-100) reflecting confidence that the question is truly unresolved.
49
+ 8) Ownership:
50
+ - Suggest likely owner role (e.g., Core Maintainer, Infra, Product, DX, Security, QA), not person names.
51
+ 9) Time horizon:
52
+ - Mark urgency: Immediate, Near-term, Backlog.
53
+ 10) Do not provide implementation patches:
54
+ - You may suggest next validation actions, but do not write code changes.
55
+
56
+ ================================================================
57
+ EXTRACTION PROCESS
58
+ ================================================================
59
+ Follow this process in order and show concise outputs from each phase:
60
+
61
+ PHASE 1: Artifact Map
62
+ - Enumerate relevant artifacts:
63
+ - package manifests, lockfiles, tsconfig/build configs, lint configs
64
+ - CLI entrypoints and command handlers
65
+ - provider/inference integration points
66
+ - domain modules and facades
67
+ - tests and test helpers
68
+ - docs and operational notes
69
+ - CI/workflow scripts
70
+ - Produce a quick map of domain areas and primary files.
71
+
72
+ PHASE 2: Fact Collection
73
+ - Extract hard facts from code/docs:
74
+ - explicit constraints and invariants
75
+ - implicit assumptions inferred from repeated patterns
76
+ - TODO/FIXME/HACK comments
77
+ - untested branches
78
+ - model/provider assumptions
79
+ - mismatch between docs and code
80
+ - Keep this short and source-cited.
81
+
82
+ PHASE 3: Candidate Question Generation
83
+ - Generate a long candidate pool of unresolved questions by category.
84
+ - Target breadth first, depth second.
85
+
86
+ PHASE 4: Consolidation + Scoring
87
+ - Deduplicate and refine questions.
88
+ - Apply Severity, Confidence, Urgency, and Owner role.
89
+ - Convert weak questions into concrete decision questions.
90
+
91
+ PHASE 5: Final Catalog
92
+ - Present a structured final catalog in required output format.
93
+
94
+ ================================================================
95
+ QUESTION TAXONOMY (MANDATORY COVERAGE)
96
+ ================================================================
97
+ For EACH section below, produce unresolved questions if evidence exists.
98
+
99
+ A) Libraries & Dependencies
100
+ - Version pinning strategy
101
+ - Transitive dependency risk
102
+ - Deprecated libraries
103
+ - Runtime compatibility (Bun/Node/etc)
104
+ - Peer dependency assumptions
105
+ - Optional dependency behavior
106
+ - Supply chain/security checks
107
+ - Why this library vs alternatives (if unclear)
108
+
109
+ B) Build, Tooling, and Configuration
110
+ - TypeScript strictness consistency
111
+ - Lint/format rule contradictions
112
+ - Build pipeline assumptions
113
+ - ESM/CJS boundary risks
114
+ - Path alias consistency
115
+ - Environment-variable coupling
116
+ - Local vs CI parity concerns
117
+
118
+ C) Code Correctness & Logic
119
+ - Branches with unclear intent
120
+ - Hidden side effects
121
+ - State mutation ambiguity
122
+ - Error propagation gaps
123
+ - Async race-condition risks
124
+ - Resource lifecycle uncertainty
125
+ - Data parsing/validation gaps
126
+
127
+ D) Architecture & Boundaries
128
+ - Domain leakage across modules
129
+ - Facade responsibilities unclear or overgrown
130
+ - Circular dependency risk
131
+ - Mixed abstraction levels in a module
132
+ - Missing interfaces/contracts
133
+ - Tight coupling hotspots
134
+
135
+ E) Features & Product Behavior
136
+ - Feature definition ambiguity
137
+ - Acceptance criteria missing
138
+ - Edge case behavior unclear
139
+ - CLI UX consistency questions
140
+ - Input/output contract ambiguity
141
+ - Expected failure behavior unclear
142
+ - Backward-compatibility intent unclear
143
+
144
+ F) Tests & Quality Assurance
145
+ - Missing unit tests for pure logic
146
+ - Missing integration tests for critical flows
147
+ - Brittle tests coupled to internals
148
+ - Unclear test naming or intent
149
+ - Untested error paths
150
+ - Golden/snapshot drift questions
151
+
152
+ G) Reliability, Performance, and Scalability
153
+ - Retry/backoff behavior uncertainty
154
+ - Timeout policy ambiguity
155
+ - Concurrency limits undefined
156
+ - Throughput bottlenecks not measured
157
+ - Memory growth assumptions
158
+ - IO pressure and latency unknowns
159
+
160
+ H) Security & Compliance
161
+ - Input sanitization gaps
162
+ - Secrets handling assumptions
163
+ - Auth/authz uncertainty (if applicable)
164
+ - Shell/command injection risk
165
+ - Data exposure in logs
166
+ - Third-party trust boundaries
167
+ - License/compliance uncertainty
168
+
169
+ I) Observability & Operations
170
+ - Logging adequacy for triage
171
+ - Error taxonomy unclear
172
+ - Lack of metrics and SLIs
173
+ - Incident diagnosis gaps
174
+ - Operational runbook questions
175
+ - Upgrade/migration unknowns
176
+
177
+ J) Documentation & Developer Experience
178
+ - Docs-code mismatch
179
+ - Missing onboarding steps
180
+ - Implicit local setup assumptions
181
+ - Terminology inconsistency
182
+ - Missing examples for critical flows
183
+ - Contribution workflow ambiguity
184
+
185
+ K) AI/Inference/Provider Behavior
186
+ - Provider selection ambiguity
187
+ - Model resolution assumptions
188
+ - Failure mode clarity (must fail vs fallback)
189
+ - Prompt formatting guarantees
190
+ - Output validation robustness
191
+ - Determinism/reproducibility questions
192
+ - Token/cost control unknowns
193
+
194
+ L) Release Readiness
195
+ - Versioning strategy ambiguity
196
+ - Changelog/source of truth questions
197
+ - Pre-release verification gaps
198
+ - Rollback strategy uncertainty
199
+ - Distribution artifact integrity questions
200
+
201
+ ================================================================
202
+ OUTPUT FORMAT (STRICT)
203
+ ================================================================
204
+ Return output with these exact sections:
205
+
206
+ 1) Executive Summary
207
+ - 5-12 bullets: highest-impact unresolved themes.
208
+
209
+ 2) Coverage Matrix
210
+ - Table with each taxonomy section (A-L), count of unresolved questions, and confidence level of coverage.
211
+
212
+ 3) Top Critical Questions
213
+ - Ranked list of Critical questions only (max 20).
214
+ - Include:
215
+ - ID (e.g., UQ-CODE-001)
216
+ - Question
217
+ - Why unresolved
218
+ - Evidence
219
+ - Potential impact
220
+ - Suggested owner role
221
+ - Urgency
222
+ - Confidence
223
+
224
+ 4) Full Unresolved Question Catalog
225
+ - Group by taxonomy section A-L.
226
+ - For each question include:
227
+ - ID
228
+ - Question (single sentence)
229
+ - Context (1-3 sentences)
230
+ - Evidence (file refs, config refs, doc refs)
231
+ - Severity
232
+ - Confidence (0-100)
233
+ - Suggested owner role
234
+ - Urgency
235
+ - Verification next step (exact action to validate/close)
236
+
237
+ 5) Contradictions and Inconsistencies
238
+ - Explicit list of contradictions between code, tests, docs, configs, and naming.
239
+
240
+ 6) Missing Evidence Report
241
+ - Areas where evidence was insufficient to determine if a question is resolved.
242
+ - Label each item as "Needs verification".
243
+
244
+ 7) Decision Queue
245
+ - Convert most important unresolved questions into a prioritized decision queue:
246
+ - Decision title
247
+ - Blocking questions
248
+ - Inputs required
249
+ - Decision owner role
250
+ - Target decision horizon
251
+
252
+ 8) 48-Hour Validation Plan
253
+ - Practical plan to close highest-value unresolved questions quickly.
254
+ - Include sequence and dependencies.
255
+
256
+ ================================================================
257
+ FORMATTING REQUIREMENTS
258
+ ================================================================
259
+ - Use concise, precise language.
260
+ - Prefer tables for catalogs where practical.
261
+ - Keep each question atomic (one uncertainty per question).
262
+ - Include direct file references whenever possible:
263
+ - path/to/file.ts:line
264
+ - If exact line is unknown, provide the nearest reliable location.
265
+
266
+ ================================================================
267
+ QUALITY GATES BEFORE FINALIZING
268
+ ================================================================
269
+ Before final answer, self-check:
270
+ 1) Did I cover A-L sections?
271
+ 2) Did I avoid guesses?
272
+ 3) Did every question include evidence?
273
+ 4) Did I deduplicate overlapping questions?
274
+ 5) Did I rank critical items correctly by impact?
275
+ 6) Did I include "No unresolved questions found..." where relevant?
276
+ 7) Did I include a Missing Evidence Report?
277
+
278
+ If any answer is "no", revise before returning.
279
+
280
+ ================================================================
281
+ OPTIONAL PROJECT CONTEXT INPUTS
282
+ ================================================================
283
+ If provided, use:
284
+ - Repository path: {REPO_PATH}
285
+ - Primary runtime(s): {RUNTIMES}
286
+ - Main package(s): {PACKAGES}
287
+ - Product definition: {PRODUCT_SCOPE}
288
+ - Current milestone: {MILESTONE}
289
+ - Known problem areas: {KNOWN_RISKS}
290
+
291
+ If these are not provided, proceed with available artifacts and explicitly note assumptions.
292
+
293
+ ================================================================
294
+ FINAL INSTRUCTION
295
+ ================================================================
296
+ Be exhaustive. Go beyond obvious TODO comments. Surface subtle unresolved questions hidden in architecture boundaries, cross-file behavior, dependency coupling, and product-definition gaps. Optimize for decision-making usefulness.