mindsystem-cc 3.0.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 (139) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +501 -0
  3. package/agents/ms-codebase-mapper.md +739 -0
  4. package/agents/ms-debugger.md +1184 -0
  5. package/agents/ms-designer.md +414 -0
  6. package/agents/ms-executor.md +760 -0
  7. package/agents/ms-integration-checker.md +423 -0
  8. package/agents/ms-milestone-auditor.md +448 -0
  9. package/agents/ms-mock-generator.md +182 -0
  10. package/agents/ms-plan-checker.md +746 -0
  11. package/agents/ms-research-synthesizer.md +248 -0
  12. package/agents/ms-researcher.md +962 -0
  13. package/agents/ms-roadmapper.md +606 -0
  14. package/agents/ms-verifier.md +779 -0
  15. package/agents/ms-verify-fixer.md +124 -0
  16. package/bin/install.js +296 -0
  17. package/commands/ms/add-phase.md +207 -0
  18. package/commands/ms/add-todo.md +182 -0
  19. package/commands/ms/audit-milestone.md +318 -0
  20. package/commands/ms/check-phase.md +162 -0
  21. package/commands/ms/check-todos.md +217 -0
  22. package/commands/ms/complete-milestone.md +137 -0
  23. package/commands/ms/create-roadmap.md +273 -0
  24. package/commands/ms/debug.md +149 -0
  25. package/commands/ms/define-requirements.md +121 -0
  26. package/commands/ms/design-phase.md +341 -0
  27. package/commands/ms/discuss-milestone.md +48 -0
  28. package/commands/ms/discuss-phase.md +60 -0
  29. package/commands/ms/do-work.md +90 -0
  30. package/commands/ms/execute-phase.md +289 -0
  31. package/commands/ms/help.md +623 -0
  32. package/commands/ms/insert-phase.md +227 -0
  33. package/commands/ms/list-phase-assumptions.md +50 -0
  34. package/commands/ms/map-codebase.md +71 -0
  35. package/commands/ms/new-milestone.md +193 -0
  36. package/commands/ms/new-project.md +338 -0
  37. package/commands/ms/pause-work.md +123 -0
  38. package/commands/ms/plan-milestone-gaps.md +285 -0
  39. package/commands/ms/plan-phase.md +105 -0
  40. package/commands/ms/progress.md +370 -0
  41. package/commands/ms/remove-phase.md +338 -0
  42. package/commands/ms/research-phase.md +175 -0
  43. package/commands/ms/research-project.md +339 -0
  44. package/commands/ms/resume-work.md +40 -0
  45. package/commands/ms/review-design.md +484 -0
  46. package/commands/ms/simplify-flutter.md +193 -0
  47. package/commands/ms/update.md +159 -0
  48. package/commands/ms/verify-work.md +92 -0
  49. package/commands/ms/whats-new.md +124 -0
  50. package/mindsystem/references/checkpoints.md +788 -0
  51. package/mindsystem/references/continuation-format.md +255 -0
  52. package/mindsystem/references/debugging/debugging-mindset.md +11 -0
  53. package/mindsystem/references/debugging/hypothesis-testing.md +11 -0
  54. package/mindsystem/references/debugging/investigation-techniques.md +11 -0
  55. package/mindsystem/references/debugging/verification-patterns.md +11 -0
  56. package/mindsystem/references/debugging/when-to-research.md +11 -0
  57. package/mindsystem/references/git-integration.md +254 -0
  58. package/mindsystem/references/goal-backward.md +286 -0
  59. package/mindsystem/references/mock-patterns.md +294 -0
  60. package/mindsystem/references/plan-format.md +473 -0
  61. package/mindsystem/references/principles.md +73 -0
  62. package/mindsystem/references/questioning.md +140 -0
  63. package/mindsystem/references/research-pitfalls.md +233 -0
  64. package/mindsystem/references/scope-estimation.md +256 -0
  65. package/mindsystem/references/tdd.md +263 -0
  66. package/mindsystem/references/verification-patterns.md +595 -0
  67. package/mindsystem/templates/DEBUG.md +159 -0
  68. package/mindsystem/templates/UAT.md +403 -0
  69. package/mindsystem/templates/adhoc-summary.md +153 -0
  70. package/mindsystem/templates/codebase/architecture.md +255 -0
  71. package/mindsystem/templates/codebase/concerns.md +310 -0
  72. package/mindsystem/templates/codebase/conventions.md +307 -0
  73. package/mindsystem/templates/codebase/integrations.md +280 -0
  74. package/mindsystem/templates/codebase/stack.md +186 -0
  75. package/mindsystem/templates/codebase/structure.md +285 -0
  76. package/mindsystem/templates/codebase/testing.md +480 -0
  77. package/mindsystem/templates/config.json +26 -0
  78. package/mindsystem/templates/context.md +140 -0
  79. package/mindsystem/templates/continue-here.md +78 -0
  80. package/mindsystem/templates/debug-subagent-prompt.md +91 -0
  81. package/mindsystem/templates/design-iteration.md +208 -0
  82. package/mindsystem/templates/design.md +417 -0
  83. package/mindsystem/templates/discovery.md +146 -0
  84. package/mindsystem/templates/milestone-archive.md +123 -0
  85. package/mindsystem/templates/milestone-context.md +93 -0
  86. package/mindsystem/templates/milestone.md +115 -0
  87. package/mindsystem/templates/phase-prompt.md +574 -0
  88. package/mindsystem/templates/project.md +184 -0
  89. package/mindsystem/templates/requirements.md +231 -0
  90. package/mindsystem/templates/research-project/ARCHITECTURE.md +204 -0
  91. package/mindsystem/templates/research-project/FEATURES.md +147 -0
  92. package/mindsystem/templates/research-project/PITFALLS.md +200 -0
  93. package/mindsystem/templates/research-project/STACK.md +120 -0
  94. package/mindsystem/templates/research-project/SUMMARY.md +170 -0
  95. package/mindsystem/templates/research-subagent-prompt.md +92 -0
  96. package/mindsystem/templates/research.md +529 -0
  97. package/mindsystem/templates/roadmap.md +214 -0
  98. package/mindsystem/templates/state.md +224 -0
  99. package/mindsystem/templates/summary.md +269 -0
  100. package/mindsystem/templates/user-setup.md +323 -0
  101. package/mindsystem/templates/verification-report.md +322 -0
  102. package/mindsystem/workflows/complete-milestone.md +759 -0
  103. package/mindsystem/workflows/create-milestone.md +203 -0
  104. package/mindsystem/workflows/debug.md +14 -0
  105. package/mindsystem/workflows/define-requirements.md +330 -0
  106. package/mindsystem/workflows/diagnose-issues.md +241 -0
  107. package/mindsystem/workflows/discovery-phase.md +293 -0
  108. package/mindsystem/workflows/discuss-milestone.md +310 -0
  109. package/mindsystem/workflows/discuss-phase.md +237 -0
  110. package/mindsystem/workflows/do-work.md +359 -0
  111. package/mindsystem/workflows/execute-phase.md +644 -0
  112. package/mindsystem/workflows/execute-plan.md +1828 -0
  113. package/mindsystem/workflows/generate-mocks.md +187 -0
  114. package/mindsystem/workflows/list-phase-assumptions.md +178 -0
  115. package/mindsystem/workflows/map-codebase.md +289 -0
  116. package/mindsystem/workflows/plan-phase.md +876 -0
  117. package/mindsystem/workflows/research-phase.md +17 -0
  118. package/mindsystem/workflows/research-project.md +23 -0
  119. package/mindsystem/workflows/resume-project.md +311 -0
  120. package/mindsystem/workflows/transition.md +564 -0
  121. package/mindsystem/workflows/verify-phase.md +629 -0
  122. package/mindsystem/workflows/verify-work.md +823 -0
  123. package/package.json +32 -0
  124. package/scripts/generate-phase-patch.sh +169 -0
  125. package/scripts/ms-lookup/README.md +112 -0
  126. package/scripts/ms-lookup/ms_lookup/__init__.py +3 -0
  127. package/scripts/ms-lookup/ms_lookup/__main__.py +6 -0
  128. package/scripts/ms-lookup/ms_lookup/backends/__init__.py +6 -0
  129. package/scripts/ms-lookup/ms_lookup/backends/context7.py +219 -0
  130. package/scripts/ms-lookup/ms_lookup/backends/perplexity.py +145 -0
  131. package/scripts/ms-lookup/ms_lookup/cache.py +48 -0
  132. package/scripts/ms-lookup/ms_lookup/cli.py +219 -0
  133. package/scripts/ms-lookup/ms_lookup/config.py +23 -0
  134. package/scripts/ms-lookup/ms_lookup/errors.py +24 -0
  135. package/scripts/ms-lookup/ms_lookup/output.py +49 -0
  136. package/scripts/ms-lookup/ms_lookup/tokens.py +56 -0
  137. package/scripts/ms-lookup/pyproject.toml +17 -0
  138. package/scripts/ms-lookup/uv.lock +207 -0
  139. package/scripts/ms-lookup-wrapper.sh +21 -0
@@ -0,0 +1,186 @@
1
+ # Technology Stack Template
2
+
3
+ Template for `.planning/codebase/STACK.md` - captures the technology foundation.
4
+
5
+ **Purpose:** Document what technologies run this codebase. Focused on "what executes when you run the code."
6
+
7
+ ---
8
+
9
+ ## File Template
10
+
11
+ ```markdown
12
+ # Technology Stack
13
+
14
+ **Analysis Date:** [YYYY-MM-DD]
15
+
16
+ ## Languages
17
+
18
+ **Primary:**
19
+ - [Language] [Version] - [Where used: e.g., "all application code"]
20
+
21
+ **Secondary:**
22
+ - [Language] [Version] - [Where used: e.g., "build scripts, tooling"]
23
+
24
+ ## Runtime
25
+
26
+ **Environment:**
27
+ - [Runtime] [Version] - [e.g., "Node.js 20.x"]
28
+ - [Additional requirements if any]
29
+
30
+ **Package Manager:**
31
+ - [Manager] [Version] - [e.g., "npm 10.x"]
32
+ - Lockfile: [e.g., "package-lock.json present"]
33
+
34
+ ## Frameworks
35
+
36
+ **Core:**
37
+ - [Framework] [Version] - [Purpose: e.g., "web server", "UI framework"]
38
+
39
+ **Testing:**
40
+ - [Framework] [Version] - [e.g., "Jest for unit tests"]
41
+ - [Framework] [Version] - [e.g., "Playwright for E2E"]
42
+
43
+ **Build/Dev:**
44
+ - [Tool] [Version] - [e.g., "Vite for bundling"]
45
+ - [Tool] [Version] - [e.g., "TypeScript compiler"]
46
+
47
+ ## Key Dependencies
48
+
49
+ [Only include dependencies critical to understanding the stack - limit to 5-10 most important]
50
+
51
+ **Critical:**
52
+ - [Package] [Version] - [Why it matters: e.g., "authentication", "database access"]
53
+ - [Package] [Version] - [Why it matters]
54
+
55
+ **Infrastructure:**
56
+ - [Package] [Version] - [e.g., "Express for HTTP routing"]
57
+ - [Package] [Version] - [e.g., "PostgreSQL client"]
58
+
59
+ ## Configuration
60
+
61
+ **Environment:**
62
+ - [How configured: e.g., ".env files", "environment variables"]
63
+ - [Key configs: e.g., "DATABASE_URL, API_KEY required"]
64
+
65
+ **Build:**
66
+ - [Build config files: e.g., "vite.config.ts, tsconfig.json"]
67
+
68
+ ## Platform Requirements
69
+
70
+ **Development:**
71
+ - [OS requirements or "any platform"]
72
+ - [Additional tooling: e.g., "Docker for local DB"]
73
+
74
+ **Production:**
75
+ - [Deployment target: e.g., "Vercel", "AWS Lambda", "Docker container"]
76
+ - [Version requirements]
77
+
78
+ ---
79
+
80
+ *Stack analysis: [date]*
81
+ *Update after major dependency changes*
82
+ ```
83
+
84
+ <good_examples>
85
+ ```markdown
86
+ # Technology Stack
87
+
88
+ **Analysis Date:** 2025-01-20
89
+
90
+ ## Languages
91
+
92
+ **Primary:**
93
+ - TypeScript 5.3 - All application code
94
+
95
+ **Secondary:**
96
+ - JavaScript - Build scripts, config files
97
+
98
+ ## Runtime
99
+
100
+ **Environment:**
101
+ - Node.js 20.x (LTS)
102
+ - No browser runtime (CLI tool only)
103
+
104
+ **Package Manager:**
105
+ - npm 10.x
106
+ - Lockfile: `package-lock.json` present
107
+
108
+ ## Frameworks
109
+
110
+ **Core:**
111
+ - None (vanilla Node.js CLI)
112
+
113
+ **Testing:**
114
+ - Vitest 1.0 - Unit tests
115
+ - tsx - TypeScript execution without build step
116
+
117
+ **Build/Dev:**
118
+ - TypeScript 5.3 - Compilation to JavaScript
119
+ - esbuild - Used by Vitest for fast transforms
120
+
121
+ ## Key Dependencies
122
+
123
+ **Critical:**
124
+ - commander 11.x - CLI argument parsing and command structure
125
+ - chalk 5.x - Terminal output styling
126
+ - fs-extra 11.x - Extended file system operations
127
+
128
+ **Infrastructure:**
129
+ - Node.js built-ins - fs, path, child_process for file operations
130
+
131
+ ## Configuration
132
+
133
+ **Environment:**
134
+ - No environment variables required
135
+ - Configuration via CLI flags only
136
+
137
+ **Build:**
138
+ - `tsconfig.json` - TypeScript compiler options
139
+ - `vitest.config.ts` - Test runner configuration
140
+
141
+ ## Platform Requirements
142
+
143
+ **Development:**
144
+ - macOS/Linux/Windows (any platform with Node.js)
145
+ - No external dependencies
146
+
147
+ **Production:**
148
+ - Distributed as npm package
149
+ - Installed globally via npm install -g
150
+ - Runs on user's Node.js installation
151
+
152
+ ---
153
+
154
+ *Stack analysis: 2025-01-20*
155
+ *Update after major dependency changes*
156
+ ```
157
+ </good_examples>
158
+
159
+ <guidelines>
160
+ **What belongs in STACK.md:**
161
+ - Languages and versions
162
+ - Runtime requirements (Node, Bun, Deno, browser)
163
+ - Package manager and lockfile
164
+ - Framework choices
165
+ - Critical dependencies (limit to 5-10 most important)
166
+ - Build tooling
167
+ - Platform/deployment requirements
168
+
169
+ **What does NOT belong here:**
170
+ - File structure (that's STRUCTURE.md)
171
+ - Architectural patterns (that's ARCHITECTURE.md)
172
+ - Every dependency in package.json (only critical ones)
173
+ - Implementation details (defer to code)
174
+
175
+ **When filling this template:**
176
+ - Check package.json for dependencies
177
+ - Note runtime version from .nvmrc or package.json engines
178
+ - Include only dependencies that affect understanding (not every utility)
179
+ - Specify versions only when version matters (breaking changes, compatibility)
180
+
181
+ **Useful for phase planning when:**
182
+ - Adding new dependencies (check compatibility)
183
+ - Upgrading frameworks (know what's in use)
184
+ - Choosing implementation approach (must work with existing stack)
185
+ - Understanding build requirements
186
+ </guidelines>
@@ -0,0 +1,285 @@
1
+ # Structure Template
2
+
3
+ Template for `.planning/codebase/STRUCTURE.md` - captures physical file organization.
4
+
5
+ **Purpose:** Document where things physically live in the codebase. Answers "where do I put X?"
6
+
7
+ ---
8
+
9
+ ## File Template
10
+
11
+ ```markdown
12
+ # Codebase Structure
13
+
14
+ **Analysis Date:** [YYYY-MM-DD]
15
+
16
+ ## Directory Layout
17
+
18
+ [ASCII tree of top-level directories with purpose]
19
+
20
+ ```
21
+ [project-root]/
22
+ ├── [dir]/ # [Purpose]
23
+ ├── [dir]/ # [Purpose]
24
+ ├── [dir]/ # [Purpose]
25
+ └── [file] # [Purpose]
26
+ ```
27
+
28
+ ## Directory Purposes
29
+
30
+ **[Directory Name]:**
31
+ - Purpose: [What lives here]
32
+ - Contains: [Types of files: e.g., "*.ts source files", "component directories"]
33
+ - Key files: [Important files in this directory]
34
+ - Subdirectories: [If nested, describe structure]
35
+
36
+ **[Directory Name]:**
37
+ - Purpose: [What lives here]
38
+ - Contains: [Types of files]
39
+ - Key files: [Important files]
40
+ - Subdirectories: [Structure]
41
+
42
+ ## Key File Locations
43
+
44
+ **Entry Points:**
45
+ - [Path]: [Purpose: e.g., "CLI entry point"]
46
+ - [Path]: [Purpose: e.g., "Server startup"]
47
+
48
+ **Configuration:**
49
+ - [Path]: [Purpose: e.g., "TypeScript config"]
50
+ - [Path]: [Purpose: e.g., "Build configuration"]
51
+ - [Path]: [Purpose: e.g., "Environment variables"]
52
+
53
+ **Core Logic:**
54
+ - [Path]: [Purpose: e.g., "Business services"]
55
+ - [Path]: [Purpose: e.g., "Database models"]
56
+ - [Path]: [Purpose: e.g., "API routes"]
57
+
58
+ **Testing:**
59
+ - [Path]: [Purpose: e.g., "Unit tests"]
60
+ - [Path]: [Purpose: e.g., "Test fixtures"]
61
+
62
+ **Documentation:**
63
+ - [Path]: [Purpose: e.g., "User-facing docs"]
64
+ - [Path]: [Purpose: e.g., "Developer guide"]
65
+
66
+ ## Naming Conventions
67
+
68
+ **Files:**
69
+ - [Pattern]: [Example: e.g., "kebab-case.ts for modules"]
70
+ - [Pattern]: [Example: e.g., "PascalCase.tsx for React components"]
71
+ - [Pattern]: [Example: e.g., "*.test.ts for test files"]
72
+
73
+ **Directories:**
74
+ - [Pattern]: [Example: e.g., "kebab-case for feature directories"]
75
+ - [Pattern]: [Example: e.g., "plural names for collections"]
76
+
77
+ **Special Patterns:**
78
+ - [Pattern]: [Example: e.g., "index.ts for directory exports"]
79
+ - [Pattern]: [Example: e.g., "__tests__ for test directories"]
80
+
81
+ ## Where to Add New Code
82
+
83
+ **New Feature:**
84
+ - Primary code: [Directory path]
85
+ - Tests: [Directory path]
86
+ - Config if needed: [Directory path]
87
+
88
+ **New Component/Module:**
89
+ - Implementation: [Directory path]
90
+ - Types: [Directory path]
91
+ - Tests: [Directory path]
92
+
93
+ **New Route/Command:**
94
+ - Definition: [Directory path]
95
+ - Handler: [Directory path]
96
+ - Tests: [Directory path]
97
+
98
+ **Utilities:**
99
+ - Shared helpers: [Directory path]
100
+ - Type definitions: [Directory path]
101
+
102
+ ## Special Directories
103
+
104
+ [Any directories with special meaning or generation]
105
+
106
+ **[Directory]:**
107
+ - Purpose: [e.g., "Generated code", "Build output"]
108
+ - Source: [e.g., "Auto-generated by X", "Build artifacts"]
109
+ - Committed: [Yes/No - in .gitignore?]
110
+
111
+ ---
112
+
113
+ *Structure analysis: [date]*
114
+ *Update when directory structure changes*
115
+ ```
116
+
117
+ <good_examples>
118
+ ```markdown
119
+ # Codebase Structure
120
+
121
+ **Analysis Date:** 2025-01-20
122
+
123
+ ## Directory Layout
124
+
125
+ ```
126
+ mindsystem/
127
+ ├── bin/ # Executable entry points
128
+ ├── commands/ # Slash command definitions
129
+ │ └── ms/ # Mindsystem-specific commands
130
+ ├── mindsystem/ # Skill resources
131
+ │ ├── references/ # Principle documents
132
+ │ ├── templates/ # File templates
133
+ │ └── workflows/ # Multi-step procedures
134
+ ├── src/ # Source code (if applicable)
135
+ ├── tests/ # Test files
136
+ ├── package.json # Project manifest
137
+ └── README.md # User documentation
138
+ ```
139
+
140
+ ## Directory Purposes
141
+
142
+ **bin/**
143
+ - Purpose: CLI entry points
144
+ - Contains: install.js (installer script)
145
+ - Key files: install.js - handles npx installation
146
+ - Subdirectories: None
147
+
148
+ **commands/gsd/**
149
+ - Purpose: Slash command definitions for Claude Code
150
+ - Contains: *.md files (one per command)
151
+ - Key files: new-project.md, plan-phase.md, execute-plan.md
152
+ - Subdirectories: None (flat structure)
153
+
154
+ **mindsystem/references/**
155
+ - Purpose: Core philosophy and guidance documents
156
+ - Contains: principles.md, questioning.md, plan-format.md
157
+ - Key files: principles.md - system philosophy
158
+ - Subdirectories: None
159
+
160
+ **mindsystem/templates/**
161
+ - Purpose: Document templates for .planning/ files
162
+ - Contains: Template definitions with frontmatter
163
+ - Key files: project.md, roadmap.md, plan.md, summary.md
164
+ - Subdirectories: codebase/ (new - for stack/architecture/structure templates)
165
+
166
+ **mindsystem/workflows/**
167
+ - Purpose: Reusable multi-step procedures
168
+ - Contains: Workflow definitions called by commands
169
+ - Key files: execute-plan.md, research-phase.md
170
+ - Subdirectories: None
171
+
172
+ ## Key File Locations
173
+
174
+ **Entry Points:**
175
+ - `bin/install.js` - Installation script (npx entry)
176
+
177
+ **Configuration:**
178
+ - `package.json` - Project metadata, dependencies, bin entry
179
+ - `.gitignore` - Excluded files
180
+
181
+ **Core Logic:**
182
+ - `bin/install.js` - All installation logic (file copying, path replacement)
183
+
184
+ **Testing:**
185
+ - `tests/` - Test files (if present)
186
+
187
+ **Documentation:**
188
+ - `README.md` - User-facing installation and usage guide
189
+ - `CLAUDE.md` - Instructions for Claude Code when working in this repo
190
+
191
+ ## Naming Conventions
192
+
193
+ **Files:**
194
+ - kebab-case.md: Markdown documents
195
+ - kebab-case.js: JavaScript source files
196
+ - UPPERCASE.md: Important project files (README, CLAUDE, CHANGELOG)
197
+
198
+ **Directories:**
199
+ - kebab-case: All directories
200
+ - Plural for collections: templates/, commands/, workflows/
201
+
202
+ **Special Patterns:**
203
+ - {command-name}.md: Slash command definition
204
+ - *-template.md: Could be used but templates/ directory preferred
205
+
206
+ ## Where to Add New Code
207
+
208
+ **New Slash Command:**
209
+ - Primary code: `commands/ms/{command-name}.md`
210
+ - Tests: `tests/commands/{command-name}.test.js` (if testing implemented)
211
+ - Documentation: Update `README.md` with new command
212
+
213
+ **New Template:**
214
+ - Implementation: `mindsystem/templates/{name}.md`
215
+ - Documentation: Template is self-documenting (includes guidelines)
216
+
217
+ **New Workflow:**
218
+ - Implementation: `mindsystem/workflows/{name}.md`
219
+ - Usage: Reference from command with `@~/.claude/mindsystem/workflows/{name}.md`
220
+
221
+ **New Reference Document:**
222
+ - Implementation: `mindsystem/references/{name}.md`
223
+ - Usage: Reference from commands/workflows as needed
224
+
225
+ **Utilities:**
226
+ - No utilities yet (`install.js` is monolithic)
227
+ - If extracted: `src/utils/`
228
+
229
+ ## Special Directories
230
+
231
+ **mindsystem/**
232
+ - Purpose: Resources installed to ~/.claude/
233
+ - Source: Copied by bin/install.js during installation
234
+ - Committed: Yes (source of truth)
235
+
236
+ **commands/**
237
+ - Purpose: Slash commands installed to ~/.claude/commands/
238
+ - Source: Copied by bin/install.js during installation
239
+ - Committed: Yes (source of truth)
240
+
241
+ ---
242
+
243
+ *Structure analysis: 2025-01-20*
244
+ *Update when directory structure changes*
245
+ ```
246
+ </good_examples>
247
+
248
+ <guidelines>
249
+ **What belongs in STRUCTURE.md:**
250
+ - Directory layout (ASCII tree)
251
+ - Purpose of each directory
252
+ - Key file locations (entry points, configs, core logic)
253
+ - Naming conventions
254
+ - Where to add new code (by type)
255
+ - Special/generated directories
256
+
257
+ **What does NOT belong here:**
258
+ - Conceptual architecture (that's ARCHITECTURE.md)
259
+ - Technology stack (that's STACK.md)
260
+ - Code implementation details (defer to code reading)
261
+ - Every single file (focus on directories and key files)
262
+
263
+ **When filling this template:**
264
+ - Use `tree -L 2` or similar to visualize structure
265
+ - Identify top-level directories and their purposes
266
+ - Note naming patterns by observing existing files
267
+ - Locate entry points, configs, and main logic areas
268
+ - Keep directory tree concise (max 2-3 levels)
269
+
270
+ **ASCII tree format:**
271
+ ```
272
+ root/
273
+ ├── dir1/ # Purpose
274
+ │ ├── subdir/ # Purpose
275
+ │ └── file.ts # Purpose
276
+ ├── dir2/ # Purpose
277
+ └── file.ts # Purpose
278
+ ```
279
+
280
+ **Useful for phase planning when:**
281
+ - Adding new features (where should files go?)
282
+ - Understanding project organization
283
+ - Finding where specific logic lives
284
+ - Following existing conventions
285
+ </guidelines>