renn-studio 0.6.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 (112) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +36 -0
  3. package/agents/renn-architect.md +1463 -0
  4. package/agents/renn-auditor.md +1053 -0
  5. package/agents/renn-codebase-mapper.md +908 -0
  6. package/agents/renn-design-reviewer.md +422 -0
  7. package/agents/renn-designer.md +814 -0
  8. package/agents/renn-detective.md +1204 -0
  9. package/agents/renn-integration-checker.md +957 -0
  10. package/agents/renn-navigator.md +659 -0
  11. package/agents/renn-plan-reviewer.md +812 -0
  12. package/agents/renn-project-scout.md +880 -0
  13. package/agents/renn-runner.md +842 -0
  14. package/agents/renn-stage-scout.md +705 -0
  15. package/agents/renn-synthesizer.md +256 -0
  16. package/bin/install.js +1466 -0
  17. package/commands/renn.add-stage.md +211 -0
  18. package/commands/renn.add-todo.md +194 -0
  19. package/commands/renn.audit-milestone.md +280 -0
  20. package/commands/renn.audit.md +219 -0
  21. package/commands/renn.check-todos.md +229 -0
  22. package/commands/renn.complete-milestone.md +136 -0
  23. package/commands/renn.continue.md +46 -0
  24. package/commands/renn.dash.md +308 -0
  25. package/commands/renn.debug.md +169 -0
  26. package/commands/renn.design-screens.md +107 -0
  27. package/commands/renn.design-system.md +100 -0
  28. package/commands/renn.discuss-stage.md +86 -0
  29. package/commands/renn.help.md +550 -0
  30. package/commands/renn.insert-stage.md +231 -0
  31. package/commands/renn.list-stage-assumptions.md +49 -0
  32. package/commands/renn.map-codebase.md +72 -0
  33. package/commands/renn.new-milestone.md +80 -0
  34. package/commands/renn.pause.md +132 -0
  35. package/commands/renn.plan-milestone-gaps.md +314 -0
  36. package/commands/renn.plan-stage.md +118 -0
  37. package/commands/renn.remove-stage.md +353 -0
  38. package/commands/renn.research-stage.md +200 -0
  39. package/commands/renn.restyle.md +98 -0
  40. package/commands/renn.run-stage.md +343 -0
  41. package/commands/renn.set-profile.md +116 -0
  42. package/commands/renn.settings.md +151 -0
  43. package/commands/renn.ship.md +52 -0
  44. package/commands/renn.start.md +95 -0
  45. package/commands/renn.status.md +530 -0
  46. package/commands/renn.watch.md +51 -0
  47. package/hooks/dist/renn-check-update.js +67 -0
  48. package/hooks/dist/renn-statusline.js +96 -0
  49. package/package.json +89 -0
  50. package/renn/references/continuation-format.md +249 -0
  51. package/renn/references/design-artifacts.md +674 -0
  52. package/renn/references/design-tokens.md +162 -0
  53. package/renn/references/gates.md +1078 -0
  54. package/renn/references/git-integration.md +254 -0
  55. package/renn/references/horsepower-profiles.md +84 -0
  56. package/renn/references/planning-config.md +189 -0
  57. package/renn/references/questioning.md +141 -0
  58. package/renn/references/security-checklist.md +2184 -0
  59. package/renn/references/tdd.md +263 -0
  60. package/renn/references/ui-brand.md +189 -0
  61. package/renn/references/verification-patterns.md +612 -0
  62. package/renn/templates/DEBUG.md +159 -0
  63. package/renn/templates/INTEL.md +283 -0
  64. package/renn/templates/RECAP.md +246 -0
  65. package/renn/templates/UAT.md +247 -0
  66. package/renn/templates/architect-prompt.md +119 -0
  67. package/renn/templates/brief.md +190 -0
  68. package/renn/templates/codebase/architecture.md +264 -0
  69. package/renn/templates/codebase/concerns.md +310 -0
  70. package/renn/templates/codebase/conventions.md +307 -0
  71. package/renn/templates/codebase/design.md +336 -0
  72. package/renn/templates/codebase/integrations.md +280 -0
  73. package/renn/templates/codebase/stack.md +186 -0
  74. package/renn/templates/codebase/structure.md +295 -0
  75. package/renn/templates/codebase/testing.md +480 -0
  76. package/renn/templates/config.json +36 -0
  77. package/renn/templates/continue-here.md +80 -0
  78. package/renn/templates/detective-prompt.md +93 -0
  79. package/renn/templates/milestone-archive.md +123 -0
  80. package/renn/templates/milestone.md +117 -0
  81. package/renn/templates/proof.md +326 -0
  82. package/renn/templates/pulse.md +176 -0
  83. package/renn/templates/research/architecture.md +206 -0
  84. package/renn/templates/research/features.md +149 -0
  85. package/renn/templates/research/pitfalls.md +202 -0
  86. package/renn/templates/research/recap.md +187 -0
  87. package/renn/templates/research/stack.md +122 -0
  88. package/renn/templates/research/ux.md +283 -0
  89. package/renn/templates/research-lite.md +146 -0
  90. package/renn/templates/research.md +582 -0
  91. package/renn/templates/specs.md +233 -0
  92. package/renn/templates/stage-prompt.md +571 -0
  93. package/renn/templates/track.md +211 -0
  94. package/renn/templates/user-setup.md +315 -0
  95. package/renn/workflows/audit-stage.md +717 -0
  96. package/renn/workflows/audit-work.md +596 -0
  97. package/renn/workflows/complete-milestone.md +875 -0
  98. package/renn/workflows/continue-project.md +306 -0
  99. package/renn/workflows/design-stage.md +2019 -0
  100. package/renn/workflows/diagnose-issues.md +231 -0
  101. package/renn/workflows/initialize-project.md +1039 -0
  102. package/renn/workflows/list-assumptions.md +178 -0
  103. package/renn/workflows/map-codebase.md +374 -0
  104. package/renn/workflows/new-milestone.md +718 -0
  105. package/renn/workflows/plan-stage.md +810 -0
  106. package/renn/workflows/research-stage.md +289 -0
  107. package/renn/workflows/run-plan.md +1844 -0
  108. package/renn/workflows/run-stage.md +692 -0
  109. package/renn/workflows/scope-stage.md +546 -0
  110. package/renn/workflows/ship-project.md +859 -0
  111. package/renn/workflows/transition.md +556 -0
  112. package/renn/workflows/watch-project.md +797 -0
@@ -0,0 +1,289 @@
1
+ <purpose>
2
+ Execute research at the appropriate depth level.
3
+ Produces research.md (for Level 2-3) that informs run.md creation.
4
+
5
+ Called from plan-stage.md's mandatory_research step with a depth parameter.
6
+
7
+ NOTE: For comprehensive ecosystem research ("how do experts build this"), use /renn.research-stage instead, which produces RESEARCH.md.
8
+ </purpose>
9
+
10
+ <depth_levels>
11
+ **This workflow supports three depth levels:**
12
+
13
+ | Level | Name | Time | Output | When |
14
+ | ----- | ------------ | --------- | -------------------------------------------- | ----------------------------------------- |
15
+ | 1 | Quick Verify | 2-5 min | No file, proceed with verified knowledge | Single library, confirming current syntax |
16
+ | 2 | Standard | 15-30 min | research.md | Choosing between options, new integration |
17
+ | 3 | Deep Dive | 1+ hour | Detailed research.md with validation gates | Architectural decisions, novel problems |
18
+
19
+ **Depth is determined by plan-stage.md before routing here.**
20
+ </depth_levels>
21
+
22
+ <source_hierarchy>
23
+ **MANDATORY: Context7 BEFORE WebSearch**
24
+
25
+ Claude's training data is 6-18 months stale. Always verify.
26
+
27
+ 1. **Context7 MCP FIRST** - Current docs, no hallucination
28
+ 2. **Official docs** - When Context7 lacks coverage
29
+ 3. **WebSearch LAST** - For comparisons and trends only
30
+
31
+ See ~/.claude/renn/templates/research.md `<research_protocol>` for full protocol.
32
+ </source_hierarchy>
33
+
34
+ <process>
35
+
36
+ <step name="determine_depth">
37
+ Check the depth parameter passed from plan-stage.md:
38
+ - `depth=verify` → Level 1 (Quick Verification)
39
+ - `depth=standard` → Level 2 (Standard Research)
40
+ - `depth=deep` → Level 3 (Deep Dive)
41
+
42
+ Route to appropriate level workflow below.
43
+ </step>
44
+
45
+ <step name="level_1_quick_verify">
46
+ **Level 1: Quick Verification**
47
+
48
+ For: Single known library, confirming syntax/version still correct.
49
+
50
+ **Process:**
51
+
52
+ 1. Resolve library in Context7:
53
+
54
+ ```
55
+ mcp__context7__resolve-library-id with libraryName: "[library]"
56
+ ```
57
+
58
+ 2. Fetch relevant docs:
59
+
60
+ ```
61
+ mcp__context7__get-library-docs with:
62
+ - context7CompatibleLibraryID: [from step 1]
63
+ - topic: [specific concern]
64
+ ```
65
+
66
+ 3. Verify:
67
+
68
+ - Current version matches expectations
69
+ - API syntax unchanged
70
+ - No breaking changes in recent versions
71
+
72
+ 4. **If verified:** Return to plan-stage.md with confirmation. No research.md needed.
73
+
74
+ 5. **If concerns found:** Escalate to Level 2.
75
+
76
+ **Output:** Verbal confirmation to proceed, or escalation to Level 2.
77
+ </step>
78
+
79
+ <step name="level_2_standard">
80
+ **Level 2: Standard Research**
81
+
82
+ For: Choosing between options, new external integration.
83
+
84
+ **Process:**
85
+
86
+ 1. **Identify what to discover:**
87
+
88
+ - What options exist?
89
+ - What are the key comparison criteria?
90
+ - What's our specific use case?
91
+
92
+ 2. **Context7 for each option:**
93
+
94
+ ```
95
+ For each library/framework:
96
+ - mcp__context7__resolve-library-id
97
+ - mcp__context7__get-library-docs (mode: "code" for API, "info" for concepts)
98
+ ```
99
+
100
+ 3. **Official docs** for anything Context7 lacks.
101
+
102
+ 4. **WebSearch** for comparisons:
103
+
104
+ - "[option A] vs [option B] {current_year}"
105
+ - "[option] known issues"
106
+ - "[option] with [our stack]"
107
+
108
+ 5. **Cross-verify:** Any WebSearch finding → confirm with Context7/official docs.
109
+
110
+ 6. **Create research.md** using ~/.claude/renn/templates/research.md structure:
111
+
112
+ - Summary with recommendation
113
+ - Key findings per option
114
+ - Code examples from Context7
115
+ - Confidence level (should be MEDIUM-HIGH for Level 2)
116
+
117
+ 7. Return to plan-stage.md.
118
+
119
+ **Output:** `.renn/stages/XX-name/research.md`
120
+ </step>
121
+
122
+ <step name="level_3_deep_dive">
123
+ **Level 3: Deep Dive (1+ hour)**
124
+
125
+ For: Architectural decisions, novel problems, high-risk choices.
126
+
127
+ **Process:**
128
+
129
+ 1. **Scope the research** using ~/.claude/renn/templates/research.md:
130
+
131
+ - Define clear scope
132
+ - Define include/exclude boundaries
133
+ - List specific questions to answer
134
+
135
+ 2. **Exhaustive Context7 research:**
136
+
137
+ - All relevant libraries
138
+ - Related patterns and concepts
139
+ - Multiple topics per library if needed
140
+
141
+ 3. **Official documentation deep read:**
142
+
143
+ - Architecture guides
144
+ - Best practices sections
145
+ - Migration/upgrade guides
146
+ - Known limitations
147
+
148
+ 4. **WebSearch for ecosystem context:**
149
+
150
+ - How others solved similar problems
151
+ - Production experiences
152
+ - Gotchas and anti-patterns
153
+ - Recent changes/announcements
154
+
155
+ 5. **Cross-verify ALL findings:**
156
+
157
+ - Every WebSearch claim → verify with authoritative source
158
+ - Mark what's verified vs assumed
159
+ - Flag contradictions
160
+
161
+ 6. **Create comprehensive research.md:**
162
+
163
+ - Full structure from ~/.claude/renn/templates/research.md
164
+ - Quality report with source attribution
165
+ - Confidence by finding
166
+ - If LOW confidence on any critical finding → add validation checkpoints
167
+
168
+ 7. **Confidence gate:** If overall confidence is LOW, present options before proceeding.
169
+
170
+ 8. Return to plan-stage.md.
171
+
172
+ **Output:** `.renn/stages/XX-name/research.md` (comprehensive)
173
+ </step>
174
+
175
+ <step name="identify_unknowns">
176
+ **For Level 2-3:** Define what we need to learn.
177
+
178
+ Ask: What do we need to learn before we can plan this stage?
179
+
180
+ - Technology choices?
181
+ - Best practices?
182
+ - API patterns?
183
+ - Architecture approach?
184
+ </step>
185
+
186
+ <step name="create_research_scope">
187
+ Use ~/.claude/renn/templates/research.md.
188
+
189
+ Include:
190
+
191
+ - Clear research objective
192
+ - Scoped include/exclude lists
193
+ - Source preferences (official docs, Context7, current year)
194
+ - Output structure for research.md
195
+ </step>
196
+
197
+ <step name="execute_research">
198
+ Run the research:
199
+ - Use web search for current info
200
+ - Use Context7 MCP for library docs
201
+ - Prefer current year sources
202
+ - Structure findings per template
203
+ </step>
204
+
205
+ <step name="create_research_output">
206
+ Write `.renn/stages/XX-name/research.md`:
207
+ - Summary with recommendation
208
+ - Key findings with sources
209
+ - Code examples if applicable
210
+ - Metadata (confidence, dependencies, open questions, assumptions)
211
+ </step>
212
+
213
+ <step name="confidence_gate">
214
+ After creating research.md, check confidence level.
215
+
216
+ If confidence is LOW:
217
+ Use AskUserQuestion:
218
+
219
+ - header: "Low Confidence"
220
+ - question: "Research confidence is LOW: [reason]. How would you like to proceed?"
221
+ - options:
222
+ - "Dig deeper" - Do more research before planning
223
+ - "Proceed anyway" - Accept uncertainty, plan with caveats
224
+ - "Pause" - I need to think about this
225
+
226
+ If confidence is MEDIUM:
227
+ Inline: "Research complete (medium confidence). [brief reason]. Proceed to planning?"
228
+
229
+ If confidence is HIGH:
230
+ Proceed directly, just note: "Research complete (high confidence)."
231
+ </step>
232
+
233
+ <step name="open_questions_gate">
234
+ If research.md has open_questions:
235
+
236
+ Present them inline:
237
+ "Open questions from research:
238
+
239
+ - [Question 1]
240
+ - [Question 2]
241
+
242
+ These may affect implementation. Acknowledge and proceed? (yes / address first)"
243
+
244
+ If "address first": Gather user input on questions, update research.
245
+ </step>
246
+
247
+ <step name="offer_next">
248
+ ```
249
+ Research complete: .renn/stages/XX-name/research.md
250
+ Recommendation: [one-liner]
251
+ Confidence: [level]
252
+
253
+ What's next?
254
+
255
+ 1. Discuss stage context (/renn.discuss-stage [current-stage])
256
+ 2. Create stage plan (/renn.plan-stage [current-stage])
257
+ 3. Refine research (dig deeper)
258
+ 4. Review research
259
+
260
+ ```
261
+
262
+ NOTE: research.md is NOT committed separately. It will be committed with stage completion.
263
+ </step>
264
+
265
+ </process>
266
+
267
+ <success_criteria>
268
+ **Level 1 (Quick Verify):**
269
+ - Context7 consulted for library/topic
270
+ - Current state verified or concerns escalated
271
+ - Verbal confirmation to proceed (no files)
272
+
273
+ **Level 2 (Standard):**
274
+ - Context7 consulted for all options
275
+ - WebSearch findings cross-verified
276
+ - research.md created with recommendation
277
+ - Confidence level MEDIUM or higher
278
+ - Ready to inform run.md creation
279
+
280
+ **Level 3 (Deep Dive):**
281
+ - Research scope defined
282
+ - Context7 exhaustively consulted
283
+ - All WebSearch findings verified against authoritative sources
284
+ - research.md created with comprehensive analysis
285
+ - Quality report with source attribution
286
+ - If LOW confidence findings → validation checkpoints defined
287
+ - Confidence gate passed
288
+ - Ready to inform run.md creation
289
+ </success_criteria>