@context-forge/core 0.1.0 → 0.1.1

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.
@@ -0,0 +1,919 @@
1
+ ---
2
+ layer: snippet
3
+ docType: template
4
+ purpose: reusable-llm-prompts
5
+ audience:
6
+ - human
7
+ - ai
8
+ ai description: Parameterized prompt library mapped to slice-based project phases.
9
+ dependsOn:
10
+ - guide.ai-project.000-process.md
11
+ npmScriptsAiSupport: "!include ../snippets/npm-scripts.ai-support.json"
12
+ ---
13
+ ## Prompts
14
+ This document contains prepared prompts useful in applying the `guide.ai-project.000-process` and performing additional supplemental tasks.
15
+ ##### Project Object Model and Parameters
16
+ ```python
17
+ # input keys
18
+ {
19
+ project,
20
+ slice,
21
+ section,
22
+ subsection,
23
+ framework/language,
24
+ tools,
25
+ apis,
26
+ monorepo,
27
+ }
28
+ ```
29
+
30
+ ##### Project Phase (Phase n)
31
+ *Use to directly execute a phase without additional instructions needed. Also usable with traditional (non-slice-based) projects.*
32
+
33
+ ```
34
+ Refer to the `guide.ai-project.000-process`, and function as a Senior AI. Implement the phase requested according to the respective procedures described in the guide. Remember to follow the rules in `directory-structure` for any files or directories created.
35
+ ```
36
+
37
+ ##### Concept Creation (Phase 1)
38
+ ```markdown
39
+ We're starting work on a new project {project}. We will use our curated AI Project Creation methods in `guide.ai-project.000-process` (can also be referred to as Project Guide or Process Guide) to assist us in designing and performing the work. Your role as described in the Project Guide is Technical Fellow.
40
+
41
+ The initial concept description will be provided by the project manager, ideally as a starter document in `user/project-guides/001-concept.{project}.md`. Our goal is to refine this initial user-provided concept into the Refined Concept, which should be placed as instructed into the existing document. The placeholder document should provide any needed details needed for this procedure.
42
+
43
+ We will use the refined concept as a basis for creating the spec, which will later be refined into designs, slices, features, and tasks. Use the Project Guide together with the user-provided concept to create the refined concept tailored to our project.
44
+
45
+ When creating the refined concept, *ask questions* if any information is missing or unclear. The guideline of do not assume or guess applies, but is even more important here at this early concept state. Request any needed clarifications from the Project Manager. If you do not find or receive the user-provided concept description, obtain from Project Manager before proceeding.
46
+ ```
47
+
48
+ ##### Spec Creation (Phase 2)
49
+ ```markdown
50
+ We're working in our guide.ai-project.000-process, Phase 2: Spec Creation. Use `guide.ai-project.002-spec` with the approved concept document to create the project specification.
51
+
52
+ Your role is Technical Fellow as described in the Process Guide. Work with the Project Manager to create `user/project-guides/002-spec.{project}.md`.
53
+
54
+ Required inputs:
55
+ - Approved concept document (001-concept.{project}.md)
56
+ - Technical stack and requirements from Project Manager
57
+ - Any additional specific requirements
58
+
59
+ Focus on:
60
+ - Tech stack with tool-guides availability check
61
+ - Top-level features and major workflows
62
+ - Architectural considerations and system boundaries
63
+ - Sample data and UI sketches (if applicable)
64
+
65
+ Caution:
66
+ - Do not write code into the spec.
67
+
68
+ Keep the spec concise and focused on coordination between components. If you need more information about requirements or cannot access referenced tools, stop and request from Project Manager.
69
+
70
+ Note: This is a design and planning task, not a coding task.
71
+ ```
72
+
73
+ ##### High-Level Design (HLD) Creation (Phase 2.5)
74
+ *Use this to create a project-level high-level design that serves as the architectural blueprint for slice planning.*
75
+
76
+ ```markdown
77
+ We're creating a High-Level Design (HLD) for project {project}. Use the Phase 2.5 guidelines in `guide.ai-project.000-process` with the project concept and specification documents to create the HLD. The HLD serves as the architectural blueprint that will inform slice planning and guide all subsequent slice designs. It establishes the system's structural foundation without diving into slice-level details.
78
+
79
+ Create file at `user/architecture/nnn-arch.hld-{project}.md` using the next available index in the 050-099 range as defined in `file-naming-conventions.md`.
80
+
81
+ Your role is Technical Fellow as described in the Process Guide.
82
+
83
+ **Required Inputs**
84
+ - Approved concept document (`user/project-guides/001-concept.{project}.md`)
85
+ - Project specification (`user/project-guides/002-spec.{project}.md`)
86
+ - Technical stack and architectural constraints from Project Manager
87
+
88
+ **Document Structure**
89
+
90
+ **YAML Frontmatter:**
91
+ ```
92
+ ```yaml
93
+ ---
94
+ docType: architecture
95
+ layer: project
96
+ project: {project}
97
+ archIndex: nnn
98
+ component: hld-{project}
99
+ dateCreated: YYYYMMDD
100
+ dateUpdated: YYYYMMDD
101
+ status: in_progress
102
+ ---
103
+ ```
104
+ ```markdown
105
+ **Content Sections:**
106
+ 1. Overview
107
+ - One-sentence summary of the system's purpose
108
+ - High-level description of what the system does and why it matters
109
+
110
+ 2. System Architecture
111
+ - Major subsystems and their responsibilities
112
+ - How subsystems interact and communicate
113
+ - Architectural patterns used (e.g., layered, microservices, monolith)
114
+
115
+ 3. Technology Stack Rationale
116
+ - Key technology choices and why they were selected
117
+ - How the stack supports the architectural goals
118
+ - Dependencies between technologies
119
+
120
+ 4. Data Flow
121
+ - Major data flows between subsystems
122
+ - Data storage strategy (databases, caching, etc.)
123
+ - External integrations and APIs
124
+
125
+ 5. Integration Points & System Boundaries
126
+ - Clear boundaries between major components
127
+ - How components communicate (APIs, events, etc.)
128
+ - Third-party service integrations
129
+
130
+ 6. Infrastructure & Deployment (if applicable)
131
+ - Deployment architecture
132
+ - Scalability and performance considerations
133
+ - Environment strategy (dev, staging, prod)
134
+
135
+ **Guidelines**
136
+ - Focus on structure, not implementation: Describe what systems exist and how they relate, not how they work in detail
137
+ - Avoid slice-level thinking: Do not break down into individual features or user workflows (that's Phase 3)
138
+ - Avoid code examples: This is architecture, not design. No pseudo-code or implementation details
139
+ - Be concrete about decisions: Explain why architectural choices were made, not just what they are
140
+ - Consider cross-cutting concerns: Address security, scalability, and deployment without getting into task-level details
141
+
142
+ **Expected Output**
143
+ - Complete HLD document at user/architecture/nnn-arch.hld-{project}.md
144
+ - Clear enough that slice designers can use it as a reference without ambiguity
145
+ - Detailed enough to prevent conflicting slice designs
146
+ - All required YAML frontmatter included
147
+
148
+ **Avoid**
149
+ - Vague statements about future optimization or performance
150
+ - Speculative infrastructure requirements
151
+ - Time estimates or complexity judgments
152
+ - Detailed API specifications (defer to slice designs)
153
+ - Individual feature descriptions (that's slice planning)
154
+
155
+ If you need more information about architectural constraints or technical requirements, stop and request clarification from the Project Manager.
156
+ *Note: This is a design and planning task, not a coding task.*
157
+ ```
158
+
159
+ ##### Slice Planning (Phase 3)
160
+ ```markdown
161
+ We're working in our guide.ai-project.000-process, Phase 3: Slice Planning. Use `guide.ai-project.003-slice-planning` to break the work described in the parent document into manageable vertical slices.
162
+
163
+ **Parent document** (one of the following — only one will apply):
164
+ 1. Project specification (`user/project-guides/002-spec.{project}.md`) — for project-level planning
165
+ 2. Architecture document (`user/architecture/nnn-arch.{name}.md`) — for architecture-level planning
166
+
167
+ If the parent is a project specification, also reference the concept document and any existing architecture documentation. If the parent is an architecture document, it functions as the HLD — do not create a separate one.
168
+
169
+ Your role is Technical Fellow as described in the Process Guide. Work with the Project Manager to:
170
+
171
+ 1. Identify the planning context (project-level or architecture-level) per the guide
172
+ 2. Identify foundation work, feature slices, migration/refactoring slices, and integration work as applicable
173
+ 3. Create the slice plan document in the correct location:
174
+ - Project-level: `user/project-guides/003-slices.{project}.md`
175
+ - Architecture-level: `user/architecture/nnn-slices.{name}.md` (sharing the parent architecture document's base index, per `file-naming-conventions.md`)
176
+
177
+ Use enough slices to completely define the scope of the parent document. Consider functional requirements only. Ignore non-functional requirements. Avoid speculative risk projections. Do not include calendar or time-based estimates.
178
+
179
+ When defining slices, focus on slice independence and clear value delivery (user value, developer value, or architectural enablement). Each slice must leave the system in a working state when complete. If you have all required inputs and sufficient information, proceed with slice planning. If not, request required information from the Project Manager.
180
+
181
+ Note: This is a design and planning task, not a coding task.
182
+ ```
183
+
184
+ ```markdown
185
+ ##### Architectural Component Design (Phase 3.5)
186
+ *Use this to design a high-level architectural component or initiative that will span multiple slices*
187
+
188
+ ```markdown
189
+ We're designing a new architectural component for project {project}: {component-name}. Architectural components represent major structural changes or new subsystems that will likely result in multiple slices and many tasks. This is distinct from individual slices—it's about the foundational architecture that slices will build upon.
190
+
191
+ Create a design document for the architectural component.
192
+
193
+ Create file at `user/architecture/nnn-arch.{component-name}.md`, where nnn is the next available base index at an increment of 10 in the 100-799 initiative working range as defined in `file-naming-conventions.md`. This base index will be shared by the slice plan and slice designs derived from this architecture document (e.g., if this document is `120-arch.{name}.md`, its slice plan will be `120-slices.{name}.md` and its first slice design will be `120-slice.{first-slice}.md`).
194
+
195
+ Note: Do not use the 050-099 range — that is reserved for project-level architecture (HLD). Initiative-level architecture documents use the working range.
196
+
197
+ Your role is Technical Fellow as described in the Process Guide. Keep this document at the architectural level—do not include task-level breakdown or detailed slice specifications.
198
+
199
+ **Document Structure**
200
+ The component design should include:
201
+
202
+ 1. YAML Frontmatter
203
+ ```
204
+ ```yaml
205
+ ---
206
+ docType: architecture
207
+ layer: project
208
+ project: {project}
209
+ archIndex: nnn
210
+ component: {component-name}
211
+ dateCreated: YYYYMMDD
212
+ dateUpdated: YYYYMMDD
213
+ status: in_progress
214
+ relatedSlices: []
215
+ riskLevel: low|medium|high
216
+ ---
217
+ ```
218
+ ```markdown
219
+ 2. Content Sections
220
+ **Overview**
221
+ - High-level description of the architectural component or initiative
222
+ - State the core problem it addresses and why it matters to the project
223
+ - Scope: Short paragraph on what this component encompasses
224
+ - Motivation: Brief explanation of why this architectural change/component is needed
225
+
226
+ **Design Goals**
227
+ - List primary design goals (max: ~5) for this component (outcomes-oriented, not implementation-specific)
228
+ - Format as bulleted list of short paragraphs with goal name and brief description
229
+
230
+ **Architectural Principles**
231
+ - Key principles that will guide the design of slices and tasks within this component
232
+ - These inform how work should be structured, not what work to do
233
+ - Format as bulleted list with principle name and brief description
234
+
235
+ **Current State**
236
+ Brief description of the current architecture or state that necessitates this design work
237
+ What constraints or problems does the current system have?
238
+
239
+ **Envisioned State**
240
+ How this component will function at completion
241
+ Focus on the role it plays in the larger system, not implementation details
242
+ Describe the architecture from a system perspective, not from user perspective
243
+
244
+ **Technical Considerations**
245
+ Key technical challenges, trade-offs, or decisions that will inform slice design
246
+ Format as bulleted list with consideration title and explanation
247
+ These are constraints/challenges to be addressed, not proposed solutions
248
+
249
+ **Anticipated Slices (optional)**
250
+ At a high level, what slices do we expect this component might decompose into?
251
+ This is exploratory—not a commitment or task list
252
+ Format as bulleted list with provisional slice concept and brief description
253
+ Include only if you have meaningful ideas about slice boundaries
254
+
255
+ **Related Work**
256
+ Reference to related slices, features, initiatives, or domain knowledge (if any exist)
257
+ Link to existing slice files, feature files, or framework guides
258
+ No direct references to individual tasks
259
+
260
+ 3. Guidelines
261
+ - Keep it high-level: This document informs slice planning, not implementation. Do not include code, pseudo-code, or detailed API specifications.
262
+ - Focus on architecture: Describe structural decisions and principles, not individual features or user-facing behaviors.
263
+ - Avoid implementation detail: Do not prescribe how tasks will be organized or which technologies to use. That emerges during slice design.
264
+ - Link to context: Reference existing slices, features, or framework guides where relevant. Do not reference individual tasks.
265
+ - Be concrete about principles: Architectural principles should be clear enough to guide slice designers. Avoid vague statements.
266
+
267
+ **Expected Output**
268
+ * Concise architectural component design document in user/architecture/nnn-arch.{component-name}.md
269
+ * Create if it doesn't already exist. If file exists, edit existing file as described above.
270
+ * Include all required YAML frontmatter
271
+ * Preserve any Project Manager-provided context or requirements
272
+
273
+ Follow dependency management—identify what foundation work or other architectural components this initiative depends on or affects.
274
+
275
+ Avoid:
276
+ - Vague fluff about future performance testing or involved benchmarking unless specifically relevant
277
+ - Speculative risk items; include only if truly relevant
278
+ - Time estimates in any form
279
+ - Task-level breakdown (that's slice planning's job)
280
+ - Code examples unless absolutely essential to convey architectural meaning
281
+
282
+ If you need more information about the component requirements or architectural constraints, stop and request clarification from the Project Manager.
283
+
284
+ Note: This is a design and planning task, not a coding task. Any code samples should be minimal and limited to what is truly needed to convey architectural information.
285
+ ```
286
+
287
+ ##### Slice Design (Phase 4)
288
+ ```markdown
289
+ We're working in our guide.ai-project.000-process, Phase 4: Slice Design (Low-Level Design). Create a detailed design for slice: {slice} in project {project} by following `guide.ai-project.004-slice-design`.
290
+
291
+ **Inputs** (two levels — use what applies):
292
+
293
+ *Strategic context* (provides the big-picture view of where this slice fits):
294
+ - Architecture document, HLD, or project spec — as identified by the Project Manager or referenced in the slice plan's parent document.
295
+
296
+ *Working input* (defines what this specific slice should accomplish — one of the following):
297
+ 1. Slice plan entry from `user/project-guides/003-slices.{project}.md` (project-level)
298
+ 2. Slice plan entry from `user/architecture/nnn-slices.{name}.md` (architecture-level)
299
+ 3. Slice description provided directly with this request
300
+
301
+ If using a slice plan, it must contain an entry for this slice. If the strategic context document is not obvious, ask the Project Manager.
302
+
303
+ Create the slice design document at `user/slices/nnn-slice.{slice-name}.md`, where `nnn` shares the initiative's base index (for the first slice) or increments sequentially from it (for subsequent slices), per `file-naming-conventions.md`. Your role is Technical Fellow.
304
+
305
+ Include:
306
+ - YAML frontmatter as described below
307
+ - Detailed technical decisions for this slice
308
+ - Data flows and component interactions
309
+ - For migration/refactoring slices: migration plan (source/destination, consumer updates, behavior verification)
310
+ - UI mockups or API/tool specifications (if applicable)
311
+ - Cross-slice dependencies and interfaces
312
+ - Success criteria specific enough for task creation
313
+ - Only template sections that are relevant to this slice — omit sections that don't apply
314
+
315
+ Avoid:
316
+ - Time estimates in hours/days/etc. You may use a 1-5 relative effort scale.
317
+ - Extensive benchmarking tasks unless actually relevant to this effort.
318
+ - Extensive or speculative risk items. Include only if truly relevant.
319
+ - Any substantial code writing. This is a planning and process task.
320
+ - Filling in template sections with boilerplate just because they exist.
321
+
322
+ YAML Frontmatter:
323
+ ---
324
+ docType: slice-design
325
+ slice: {slice-name}
326
+ project: {project}
327
+ parent: {path to the slice plan this slice comes from}
328
+ dependencies: [list-if-any]
329
+ interfaces: [list-of-slices-that-depend-on-this]
330
+ status: not started
331
+ dateCreated: YYYYMMDD
332
+ dateUpdated: YYYYMMDD
333
+ ---
334
+
335
+ If framework or platform are specified, guide(s) for the framework(s) should be provided in `ai-project-guide/framework-guides/{framework}/introduction.md`. If tools are specified, guide for each tool should be available at `ai-project-guide/tool-guides/{tool}/introduction.md`.
336
+
337
+ Stop and request clarification if you need more information to complete the slice design. This is a design and process task — not a coding task! Any code present should be minimal, and should provide essential information.
338
+ ```
339
+
340
+ ##### Task Breakdown (Phase 5)
341
+ *This should be usable for Slice or Feature task breakdown.*
342
+
343
+ ```markdown
344
+ We're working in our guide.ai-project.000-process, Phase 5: Slice Task Breakdown. Convert the design for {slice | feature} in project {project} into granular, actionable tasks. Note that this request can be used for *slice* or *feature*, but only one will be applicable to a particular request.
345
+
346
+ Your role is Senior AI. Use exactly one of the following as input:
347
+ 1. The slice design document `user/slices/{slice}.md`.
348
+ 2. The feature design document `user/features/{feature}.md`.
349
+
350
+ Create task file at `user/tasks/{sliceindex}-tasks.{slicename}.md` (where `{sliceindex}` matches the parent slice's index, preserving lineage per `file-naming-conventions.md`).
351
+ Use `guide.ai-project.005-task-breakdown` for detailed guidance on this phase.
352
+
353
+ Include:
354
+ 1. YAML front matter including slice name, project, LLD reference, dependencies, and current project state
355
+ 2. Context summary section
356
+ 3. Granular tasks following Phase 5 guidelines
357
+ 4. Create separate sub-tasks for each similar component.
358
+ 5. Organize so that tasks can be completed sequentially.
359
+ 6. Use checklist format for all task files.
360
+
361
+ Avoid:
362
+ - Time estimates in hours/days/etc. You may use a 1-5 relative effort scale.
363
+ - Extensive benchmarking tasks unless actually relevant to this effort.
364
+ - Extensive or speculative risk items. Include only if truly relevant.
365
+
366
+ For each {tool} in use, consult knowledge in `ai-project-guide/tool-guides/{tool}/`. Follow all task creation guidelines from the Process Guide.
367
+
368
+ Each task must be completable by a junior AI with clear success criteria. If insufficient information is available, stop and request clarifying information. Keep files to about 350 lines or less. If considerably more space is needed modify files as detailed here. Do not split a file if it's less than about 100 line overrun.
369
+ 1. rename current file nnn-tasks.[task section name]-1.md
370
+ 2. add new file nnn-tasks.[task-section-name]-2.md
371
+ 3. ...etc...
372
+
373
+ Notes:
374
+ * This is a project planning task, not a coding task. Code segments should be MINIMAL and kept to only what is necessary to convey information.
375
+ * Always use mathematical comparison when evaluating file length vs target size. Always compare vs actual number of lines in the file, not number of list items or checkboxes.
376
+ ```
377
+
378
+ ##### Task Breakdown - Explicit (Phase 5 - Extra)
379
+ *Use this when you have a detailed slice design especially one containing code that may have been iterated on in order to solve complex or subtle design problems. This should be added to the regular task breakdown prompt. Until that is properly supported by context-builder, we have duplicated the base task expansion prompt here.
380
+
381
+ ```markdown
382
+ We're working in our guide.ai-project.000-process, Phase 5: Slice Task Breakdown. Convert the design for {slice | feature} in project {project} into granular, actionable tasks. Note that this request can be used for *slice* or *feature*, but only one will be applicable to a particular request.
383
+
384
+ Your role is Senior AI. Use exactly one of the following as input:
385
+ 1. The slice design document `user/slices/{slice}.md`.
386
+ 2. The feature design document `user/features/{feature}.md`.
387
+
388
+ Create task file at `user/tasks/{sliceindex}-tasks.{slicename}.md` (where `{sliceindex}` matches the parent slice's index, preserving lineage per `file-naming-conventions.md`).
389
+
390
+ Include:
391
+ 1. YAML front matter including slice name, project, LLD reference, dependencies, and current project state
392
+ 2. Context summary section
393
+ 3. Granular tasks following Phase 5 guidelines
394
+ 4. Create separate sub-tasks for each similar component.
395
+ 5. Organize so that tasks can be completed sequentially.
396
+ 6. Use checklist format for all task files.
397
+
398
+ Avoid:
399
+ - Time estimates in hours/days/etc. You may use a 1-5 relative effort scale.
400
+ - Extensive benchmarking tasks unless actually relevant to this effort.
401
+ - Extensive or speculative risk items. Include only if truly relevant.
402
+
403
+ For each {tool} in use, consult knowledge in `ai-project-guide/tool-guides/{tool}/`. Follow all task creation guidelines from the Process Guide.
404
+
405
+ Each task must be completable by a junior AI with clear success criteria. If insufficient information is available, stop and request clarifying information. Keep files to about 350 lines or less. If considerably more space is needed modify files as detailed here. Do not split a file if it's less than about 100 line overrun.
406
+ 1. rename current file nnn-tasks.[task section name]-1.md
407
+ 2. add new file nnn-tasks.[task-section-name]-2.md
408
+ 3. ...etc...
409
+
410
+ Notes:
411
+ * This is a project planning task, not a coding task. Code segments should be MINIMAL and kept to only what is necessary to convey information.
412
+ * Always use mathematical comparison when evaluating file length vs target size. Always compare vs actual number of lines in the file, not number of list items or checkboxes.
413
+
414
+ ##### Important Additional Information
415
+ Note that our slice design is intricate, detailed, and has been refined extensively in order to address complex and/or subtle issues. The slice design contains code, and we *need* to use this code in our task planning.
416
+
417
+ As you are planning tasks, proceed *carefully* through the slice design, creating tasks to accomplish the design *exactly* as presented. Once you complete the task breakdown, review it in light of the slice design to ensure that:
418
+ 1. You completely addressed the design. If there are similar items, for example numerous wrapper components, ensure that your tasks explicitly address creation of each one.
419
+ 2. You did not miss any details. This is critical. Do not "gloss over", simplify, or add workarounds to any coding sections of the design even though they may be difficult.
420
+
421
+ Note also that tasks may reference the relevant design document. You do not need to replicate large pieces of the design document all over the task list. Ensure that references are accurate. Do not assume or guess anywhere in this task.
422
+
423
+ After creation of task list, you must review the entire list against the slice design to ensure that these requirements are met.
424
+ ```
425
+
426
+ ##### Slice Task Expansion (Phase 6)
427
+ ```markdown
428
+ We're working in our guide.ai-project.000-process, Phase 6: Task Enhancement and Expansion. Enhance the tasks for slice {slice} in project {project} to improve the chances that our "junior" AI workers can complete assigned tasks on their own. Only enhance tasks that can truly benefit from it. Many tasks may already be described with sufficient detail.
429
+
430
+ Use `guide.ai-project.006-task-expansion` as your detailed guide for this phase. Work on the task file `user/tasks/{sliceindex}-tasks.{slicename}.md`.
431
+
432
+ Your role is Senior AI. For each task:
433
+ - If it would benefit from expansion or subdivision, enhance it.
434
+ - If it's already appropriate, output it verbatim.
435
+ - Ensure all tasks are accounted for.
436
+
437
+ Additionally:
438
+ - Make sure that you do NOT use this expansion as a way to write code in a design and planning phase. Expanded tasks should not look like writing code for the the tasks. You may spec out interfaces or use minimal code examples where truly useful. Evaluate carefully before doing so.
439
+
440
+ After any expansion, review it against the original unexpanded task and ensure that your expansion is a detailed representation of the original task, not a reinterpretation or change of the original task.
441
+
442
+ Output results by updating the existing task file. Success: All tasks have been processed and either output as is, or enhanced and divided into further subtasks.
443
+
444
+ Note: This is a project planning task, not a coding task.
445
+ ```
446
+
447
+ ##### Task Implementation (Phase 7)
448
+ ```markdown
449
+ We are working on {slice | feature} in project {project}, phase 7 of `ai-project-guide/project-guides/guide.ai-project.000-process`.
450
+
451
+ Your job is to complete the tasks in the `user/tasks/{sliceindex}-tasks.{slicename}.md` file. Please work through the tasks, following the guidelines in our project guides, and using the relevant provided rules (`rules/`, `CLAUDE.md`, etc). Your role is "Senior AI".
452
+
453
+ Use exactly one of the following (only one match should exist):
454
+ - The slice design at `user/slices/{slice}.md`.
455
+ - The feature design at `user/features/{feature}.md`.
456
+
457
+ Always git commit at least once per task but ideally after every section of items containing a 'Success:' criteria. For example, if a file contains Task 1.2, Task 1.2.1, commit after each task. If 1.2.1 contains multiple checklists each with its own 'Success:' criteria, commit after any section containing Success. STOP and confer with Project Manager after each task, unless directed otherwise
458
+
459
+ Work carefully and sequentially through the tasks, ensuring that each task is verified complete before proceeding to the next. You should write unit tests for code as you work through the task. Ensure that tests pass and task is complete before moving to the next.
460
+
461
+ If an attempted solution does not work or you find reason to try another approach, do not make more than three attempts without stopping and obtaining confirmation from Project Manager.
462
+
463
+ Be sure to check off tasks as they are completed. If a parent file (ex: `003-slices.{project}.md`) contains checklist items, check off parent items after all child items are complete. If a `task-checker` tool|agent is available to you, use it.
464
+
465
+ Maintain the YAML frontmatter including:
466
+ - Status: not-started, in-progress, complete, not-applicable
467
+ - Date updated
468
+
469
+ Notes:
470
+ - Use the task-checker to manage lists if it is available to you.
471
+ - Ignore case sensitivity in all file and directory names.
472
+ - Use the directory-structure and file-naming-conventions guides.
473
+ - If you are missing required information or referenced files, STOP and obtain
474
+ from Project Manager (PM).
475
+ - Do not guess, assume, or proceed without required files.
476
+ ```
477
+
478
+ ##### Context Initialization
479
+ *Use this prompt when you need to switch models or refresh understanding in slice-based projects.*
480
+ ```markdown
481
+ The following provides context on our current work in project {project}.
482
+
483
+ We are using the slice-based methodology from `ai-project-guide/project-guides/guide.ai-project.000-process`. Current work context:
484
+ - Project: {project}
485
+ - Slice: {slice}
486
+ - Tasks: {task-file}
487
+ - Phase: {development-phase}
488
+ - if [slice] is provided it can be decomposed into [sliceindex]-slice.[slicename].md
489
+
490
+ Refer to the Resource Structure in `ai-project-guide/project-guides/guide.ai-project.000-process` for locations of resources. Key project documents:
491
+ - Project Documents: `project-documents/user/`.
492
+ - Slice design: user/slices/{slice}.md
493
+ - Tasks file: user/tasks/{sliceindex}-tasks.{slicename}.md
494
+
495
+ Concentrate on the most granular level available (e.g. tasks if present), and use the higher-level files as reference only if needed.
496
+ - Project HLD: user/architecture/050-arch.hld-{project}.md
497
+ *Note: legacy HLD location is: user/project-guide/050-hld.{project}.md*
498
+
499
+ If you were previously assigned a role, continue in that role. If not, assume role of Senior AI as defined in the Process Guide.
500
+
501
+ If tasks file is already present, it should be your primary focus. Slice design may be used to gain overview or as a source for generating tasks. Once we have the tasks, we primarily work from those.
502
+
503
+ If given an instruction similar to "process and stand by", make sure you understand all instructions, what files or architecture components are involved, and alert Project Manager to any missing, incomplete, or vague information preventing you from accurately carrying out your instructions. Wait for confirmation from Project Manager before proceeding further.
504
+ ```
505
+
506
+ ##### Context Initialization - Monorepo
507
+ *This is the monorepo version of the context initialization prompt. This creates some duplication but it is sufficient and direct. *
508
+ ```markdown
509
+ The following provides context on our current work in project {project}.
510
+
511
+ We are using the slice-based methodology from `ai-project-guide/project-guides/guide.ai-project.000-process`. Current work context:
512
+ - Project: {project}
513
+ - Slice: {slice}
514
+ - Tasks: {task-file}
515
+ - Phase: {development-phase}
516
+ - if [slice] is provided it can be decomposed into [sliceindex]-slice.[slicename].md
517
+
518
+ Refer to the Resource Structure in `ai-project-guide/project-guides/guide.ai-project.000-process` for locations of resources. Key project documents and locations:
519
+ - Project Documents: `project-artifacts/{project-type}/{project}` where project type == 'template' (only value in use 20251003), for example: `project-artifacts/template/react/`. This is interpreted as the value of user/ wherever that is encountered. For example if a prompt references: user/tasks/100-tasks.some-tasks, this would be interpreted as: project-artifacts/template/react/. Alternately, it can be flattened on level to: project-artifacts/template-react/.
520
+
521
+ - Slice design: user/slices/{slice}.md maps to: project-artifacts/{project-type}-{project}/slices/{slice}.md
522
+ - Tasks file: user/tasks/{sliceindex}-tasks.{slicename}.md --> synonym: {taskfile}, maps to: project-artifacts/{project-type}-{project}/tasks/{taskfile}.md
523
+
524
+ Refer to the Resource Structure in `ai-project-guide/project-guides/guide.ai-project.000-process` for locations of resources. Concentrate on the most granular level available (e.g. tasks if present), and use the higher-level files as reference only if needed. Key project documents:
525
+ - High-level design: user/architecture/050-arch.hld-{project}.md
526
+ - Current slice design: user/slices/{slice}.md
527
+ - Tasks file: user/tasks/{sliceindex}-tasks.{slicename}.md
528
+ *Note: legacy HLD location is: user/project-guide/050-hld.{project}.md*
529
+
530
+ If you were previously assigned a role, continue in that role. If not, assume role of Senior AI as defined in the Process Guide.
531
+
532
+ If tasks file is already present, it should be your primary focus. Slice design may be used to gain overview or as a source for generating tasks. Once we have the tasks, we primarily work from those.
533
+
534
+ If given an instruction similar to "process and stand by", make sure you understand all instructions, what files or architecture components are involved, and alert Project Manager to any missing, incomplete, or vague information preventing you from accurately carrying out your instructions. Wait for confirmation from Project Manager before proceeding further.
535
+ ```
536
+ ##### Tool Usage
537
+ ```markdown
538
+ You will need to consult specific knowledge for 3rd party tools, libraries, or packages, which should be available to you in the `ai-project-guide/tool-guides/[tool]/` directory for our curated knowledge. Follow these steps when working with these tools, libraries, or packages. Use proactively.
539
+
540
+ 1. Consult Overview: Start with the specific `AI Tool Overview [toolname].md` in the `ai-project-guide/tool-guides/[tool]` directory.
541
+ 2. Locate Docs: Scan the Overview for references to more detailed documentation (like local API files under `/documentation`, reference notes, or official web links).
542
+ 3. Search Docs: Search within those specific documentation sources first using `grep_search` or `codebase_search`.
543
+ 4. Additional documentation. If you have a documentation tool available (ex: context7 MCP) use it for additional information. Always use it if available and no specific tool guide is provided.
544
+ 5. Web Search Fallback: If the targeted search doesn't yield results, then search the web.
545
+ ```
546
+
547
+ ##### Feature Design
548
+ *Use this to design a feature. Features are horizontal sections that extend or modify slices. They are for work that is too large or complex to be described with only a task or few, but that does not represent a vertical slice of functionality.*
549
+
550
+ ```markdown
551
+ We're adding a new feature to project {project}, modifying slice {slice}. Features are horizontal sections that extend or modify slices. They are for work that is too large or complex to be described with only a task or few, but that does not represent a vertical slice of functionality. Create a design for the feature.
552
+
553
+ Create or modify file at features/{sliceindex}-feature.{featurename}.md, where we refer to {sliceindex}-feature.{featurename} as the compound term {feature}. Note that an existing associated slice is required in order to create a feature. The {featurename} value should be provided by Project Manager or clearly contained in existing context.
554
+
555
+ Any needed high-level design (HLD) can be provided in an ## HLD section in the document. Place detailed design in an ## LLD section in the document. Keep it concise and minimal. Use relevant methodology from `guide.ai-project.000-process` to create the design for the feature. Your role is Technical Fellow.
556
+
557
+ The feature description should be provided by the Project Manager. Ideally it will be provided under a ## User-Provided Concept or similar heading in a feature file for you. DO NOT overwrite any User-Provided (or PM-Provided) concept. Preserve this information when you edit or re-create the file.
558
+
559
+ Expected Output:
560
+ * Concise feature design document in features/{sliceindex}-feature.{featurename}.md. Create if it doesn't already exist. If file exists, edit existing file as described above.
561
+
562
+ Add YAML FrontMatter to the relevant file if it is not present:
563
+ ```yaml
564
+ ---
565
+ item: {featurename}
566
+ project: {project}
567
+ type: feature
568
+ github: {url of github issue, if one is related}
569
+ dependencies: [list-if-any]
570
+ projectState: brief current state
571
+ status: not started
572
+ dateCreated: YYYYMMDD
573
+ dateUpdated: YYYYMMDD
574
+ ---
575
+ ```
576
+ ``` markdown
577
+ Follow dependency management - identify what foundation work project elements may depend on or be affected by this change.
578
+
579
+ Guidelines:
580
+ 1. Stick to relevant information only.
581
+ 2. Follow Phase 4 guidelines substituting 'feature' for 'slice' as needed.
582
+
583
+ Avoid:
584
+ 1. Vague fluff about future performance testing or involved benchmarking, unless this is specifically relevant.
585
+ 2. Avoid vague or speculative Risk Items.
586
+ 3. Do not add a time estimate in minutes/hours/days etc. You may use 1-5 relative effort scale.
587
+
588
+ If you need more information about the feature requirements, stop and request from Project Manager. Note that this is a project and process task, NOT a coding task. Any code samples should be minimal and limited to what is truly needed to provide the information.
589
+ ```
590
+
591
+
592
+ ##### Ad-Hoc Tasks
593
+ ```markdown
594
+ Create tasks for {feature|bugfix|maintenance-work} in project {project}. This is for smaller work items that need task breakdown but don't require full slice design.
595
+
596
+ Your role is Senior AI. Analyze the work item and create a task file at `user/tasks/nnn-tasks.{item-name}.md` with:
597
+
598
+ 1. YAML front matter:
599
+ ---
600
+ item: {item-name}
601
+ project: {project}
602
+ type: feature|maintenance|bugfix
603
+ dependencies: [list-if-any]
604
+ projectState: brief current state
605
+ dateCreated: YYYYMMDD
606
+ dateUpdated: YYYYMMDD
607
+ ---
608
+
609
+ 2. Context summary explaining the work
610
+ 3. Granular tasks following Phase 5 guidelines
611
+
612
+ Skip LLD creation - go directly from description to implementable tasks. Each task should be completable by a junior AI with clear success criteria.
613
+
614
+ If the item is too complex for this approach, recommend creating a design file instead. If you need more information about the requirements, stop and request from Project Manager. Keep tasks focused and atomic.
615
+ ```
616
+
617
+ ##### Summarize Context
618
+ *Use when nearing context limit, e.g. when facing imminent auto-compaction in Claude Code. Make sure to include inside `[ ]` or Claude will ignore the instructions. Currently it appears that at best Claude will output the `[ ]` information into the new context.*
619
+ ```markdown
620
+ Perform the following items and add their output to the compacted context:
621
+ * Preserve the initial context describing what we are working on.
622
+ * Summarize current project state at time of this compaction.
623
+ * Include any open todo list items and work in progress.
624
+ * add the tag --COMPACTED-- after inserting this information.
625
+ ```
626
+
627
+ ##### Session State Summary
628
+ *Use at the end of any work session — whether a slice is complete, partially complete, or work was interrupted. Produces a DEVLOG entry that enables project resumption by a human or AI in a new session. This is distinct from Summarize Context (above), which preserves state for in-session compaction.*
629
+ ```markdown
630
+ Write a Session State Summary for project {project}. Append to DEVLOG.md in the project root. Add entry under today's date heading (## YYYYMMDD). If an entry for today already exists, append above it under a new subsection, preserving the reverse chronological order both overall, and within the entries themselves.
631
+
632
+ Your role is Senior AI.
633
+
634
+ **If a slice was completed:**
635
+ ###### Slice nnn: {Slice Name} — Complete
636
+ Include:
637
+ - Commits made during this slice (short hash + one-line description, table or list)
638
+ - What works: build status, test results, verified functionality
639
+ - What's pending: manual verification, known issues, deferred items
640
+ - Issues logged to maintenance (file reference + brief description)
641
+ - Key implementation decisions or surprises worth noting for future context
642
+ - Next: the next slice or work item to pick up
643
+
644
+ **If work is in progress (mid-slice or mid-task):**
645
+ ###### Slice nnn: {Slice Name} — In Progress
646
+ Include:
647
+ - Current task and subtask (reference the task file and specific item)
648
+ - What's been completed so far in this session
649
+ - Commits made during this session (if any)
650
+ - Blockers or open questions for Project Manager
651
+ - Key decisions made during the session
652
+ - State needed to resume: which task, what file, any important context
653
+
654
+ **If design or planning work was completed (no implementation):**
655
+ ###### Slice nnn: {Slice Name} — Design Complete
656
+ Include:
657
+ - Documents created or updated (file paths)
658
+ - Key design decisions and rationale
659
+ - Scope summary (what the design covers)
660
+ - Notable findings (broken imports, gaps discovered, deferred items)
661
+ - Next: what implementation or planning step follows
662
+
663
+ **Guidelines:**
664
+ - Keep it concise — this will be used as input for context assembly on the next session
665
+ - Do not include full code listings or verbose explanations
666
+ - Focus on: state, decisions, and continuation context
667
+ - If tests are relevant, include pass/fail counts and note any failures with brief descriptions
668
+ - Reference file paths for any issues logged to maintenance or other task files
669
+ - This is a documentation task, not a coding task
670
+
671
+ **DEVLOG.md format:**
672
+ If DEVLOG.md does not exist, create it at project-root directory with the following structure:
673
+
674
+ # Development Log
675
+
676
+ A lightweight, append-only record of development activity. Newest entries first.
677
+ Format: `## YYYYMMDD` followed by brief notes (1-3 lines per session).
678
+ ---
679
+
680
+ ## YYYYMMDD
681
+ ### Slice nnn: {Slice Name} — {Status}
682
+ - {concise session notes as described above}
683
+ ```
684
+
685
+ ##### Maintenance Task
686
+ ```markdown
687
+ Operate as a Senior AI. Use the issue description provided, and add tasks to the maintenance file to address implementation of the issue or feature. Add a new task to your maintenance file, which should be `tasks/950-tasks.maintenance.md` unless there is reason to deviate (there normally isn't). This should be used for an item small enough to represent as a single main task.
688
+
689
+ Include:
690
+ 1. A new Task {n}
691
+ 2. A very brief overview of the task (you may modify if already present).
692
+ 3. Granular but concise subtasks following Phase 5 guidelines
693
+ 4. Organize so that subtasks can be completed sequentially.
694
+ 5. Optimize for early vertical slice testability.
695
+ 6. Use checklist format for all tasks.
696
+
697
+ Avoid:
698
+ - Time estimates for subtasks. If work is that complex, this is wrong format.
699
+ - Benchmarking tasks unless actually relevant to this effort.
700
+ - Risk items. Include only if truly relevant. Be skeptical here.
701
+
702
+ For each {tool} in use, consult knowledge in `ai-project-guide/tool-guides/{tool}/`. Follow all task creation guidelines from the Process Guide.
703
+
704
+ Each task must be completable by a junior AI with clear success criteria. If insufficient information is available, stop and request clarifying information.
705
+
706
+ This is a project planning task, not a coding task.
707
+ ```
708
+
709
+ ##### Perform Routine Maintenance
710
+ ```markdown
711
+ We are performing routine maintenance by implementing solutions for incomplete tasks in the maintenance task file. Unless otherwise specified, use file `tasks/950-tasks.maintenance.md` and scan for incomplete tasks. If given a particular section heading in the file, consider only that section.
712
+
713
+ Work through maintenance items one at a time. For each item:
714
+ - Determine if task can reasonably be solved without expansion or creating more detailed tasks. Keep a list of anything requiring this additional detail and present it to the Project Manager after proceeding through all solvable items.
715
+ - Implement solutions according to our project guidelines. Ensure that you create unit tests for each solution, and that the tests pass before proceeding to the next item. Create tests as you work through each item -- do not wait until the end and try to create them all.
716
+ - Run regressions and existing tests to make sure maintenance fixes do not break any existing slices, slice boundaries, dependencies, or interfaces.
717
+ - Update tasks and check off as you go. Use a task-checker agent if one is configured.
718
+
719
+ Current project: {project}
720
+ Active slice work: {slice} (if applicable)
721
+ ```
722
+
723
+ ##### Analysis Processing
724
+ ```markdown
725
+ We need to process the artifacts from our recent code analysis.
726
+
727
+ Role: Senior AI, processing analysis results into actionable items
728
+ Context: Analysis has been completed on {project} (optionally {subproject}) and findings need to be converted into proper maintenance tasks, code review issues, or GitHub issues as appropriate.
729
+
730
+ Notes:
731
+ - Be sure to know the current date first. Do not assume dates based on training
732
+ data timeframes.
733
+
734
+ Process:
735
+ 1. Categorize Findings:
736
+ - P0 Critical: Data loss, security vulnerabilities, system failures
737
+ - P1 High: Performance issues, major technical debt, broken features
738
+ - P2 Medium: Code quality, maintainability, best practices
739
+ - P3 Low: Optimizations, nice-to-have improvements
740
+
741
+ 2. Create File and Document by Priority:
742
+ - Create markdown file `analysis/nnn-analysis.{project-name}{.subproject?}.md`
743
+ where nnn starts at 940 (analysis range).
744
+ - Note that subproject is often not specified. Do not add its term to the name
745
+ if this is the case.
746
+ - Divide file into Critical Issues (P0/P1) and Additional Issues(P2/P3)
747
+ - Add concise documentation of each issue -- overview, context, conditions.
748
+
749
+ 3. File Creation Rules:
750
+ - Use existing file naming conventions from `file-naming-conventions.md`
751
+ - Include YAML front matter for all created files
752
+ - Add the correct date (YYYYMMDD) in the file's frontmatter
753
+ - Reference source analysis document (if applicable)
754
+ - Add line numbers and specific locations where applicable
755
+
756
+ 4. GitHub Integration (if available):
757
+ - Create GitHub issues for P0/P1 items
758
+ - Label appropriately: `bug`, `critical`, `technical-debt`, `analysis`
759
+ - Reference analysis document in issue description
760
+ - Include reproduction steps and success criteria
761
+ ```
762
+
763
+ ##### Analysis Task Creation
764
+
765
+ *Create tasks based on codebase analysis. While we don't yet have a generic analysis prompt, we do have the following modified task-creation prompt for use with analysis results.*
766
+ ```markdown
767
+ We're working in our guide.ai-project.000-process, Phase 5: Slice Task Breakdown. Convert the issues from {analysis-file} into granular, actionable tasks if they are not already. Keep them in priority order (P0/P1/P2/P3).
768
+
769
+ If the tasks are already sufficiently granular and in checklist format, you do not need to modify them. Note that each success criteria needs a checkbox.
770
+
771
+ Your role is Senior AI. Use the specified analysis document `user/analysis/nnn-analysis.{project-name}{.subproject?}.md` as input. Note that subproject is optional (hence the ?). Avoid adding extra `.` characters to filename if subproject is not present.
772
+
773
+ Create task file at `user/tasks/nnn-analysis{.subproject?}-{date}.md` with:
774
+ 1. YAML front matter including slice or subproject name, project, YYYYMMDD date, main analysis file reference, dependencies, and current project state
775
+ 2. Context summary section
776
+ 3. Granular tasks following Phase 5 guidelines
777
+ 4. Keep success criteria with their respective task
778
+ 5. Always use checklist format described in guide.ai-project.000-process under Task Files.
779
+
780
+ For each {tool} in use, consult knowledge in `ai-project-guide/tool-guides/{tool}/`. Follow all task creation guidelines from the Process Guide.
781
+
782
+ Each task must be completable by a junior AI with clear success criteria. If insufficient information is available, stop and request clarifying information.
783
+
784
+ This is a project planning task, not a coding task.
785
+ ```
786
+
787
+ ##### Analysis to LLD
788
+ ```markdown
789
+ We need to create a Low-Level Design (LLD) for {feature/component} identified during codebase analysis or task planning in project {project}. It may be an expansion of an initial task section identified during analysis.
790
+
791
+ Your role is Technical Fellow as described in the Process Guide. This LLD will bridge the gap between high-level understanding and implementable tasks.
792
+
793
+ Context:
794
+ - Analysis document: `user/analysis/nnn-analysis.{project-name}{.subproject or analysis topic?}` (or specify location)
795
+ - Related task file: `user/tasks/nnn-analysis{.subproject?}-{date}.md` (if exists)
796
+ - Current issue: {brief description of what analysis revealed}
797
+
798
+ Create LLD document at: `user/features/nnn-lld.{feature-name}.md`
799
+
800
+ Required YAML front matter:
801
+ ```yaml
802
+ ---
803
+ layer: project
804
+ docType: lld
805
+ feature: {featurename}
806
+ project: {project}
807
+ triggeredBy: analysis|task-breakdown|architecture-review
808
+ sourceDocument: {path-to-analysis-or-task-file}
809
+ dependencies: [list-any-prerequisites]
810
+ affects: [list-components-or-slices-impacted]
811
+ complexity: low|medium|high
812
+ dateCreated: YYYYMMDD
813
+ dateUpdated: YYYYMMDD
814
+ ---
815
+
816
+ Guidelines for creating LLD:
817
+
818
+ Cross-Reference Requirements:
819
+
820
+ - Update source analysis/task document to reference this LLD
821
+ - Add back-reference in this LLD to triggering document
822
+ - Note any slice designs or existing features this affects
823
+
824
+ Focus Areas:
825
+
826
+ - Keep design concrete and implementation-ready
827
+ - Include code examples or pseudocode where helpful
828
+ - Reference specific files, classes, or components by name
829
+ - Address both immediate needs and future extensibility
830
+
831
+ If you need more context about the analysis findings or existing system architecture, stop and request from Project Manager.
832
+
833
+ Note: This creates implementation-ready technical designs, not high-level planning documents.
834
+ ```
835
+
836
+ ##### Analysis Task Implementation
837
+ *Phase 7 Task Implementation customized for analysis files. *
838
+ ```markdown
839
+ We are working on the analysis file {analysis} in project {project}, phase 7 of `ai-project-guide/project-guides/guide.ai-project.000-process`.
840
+
841
+ Your role is "Senior AI". Your job is to complete the tasks in the `user/tasks/nnn-analysis-{topic}.md` file. Please work through the tasks, following the guidelines in our project guides, and using the rules in the rules/ directory.
842
+
843
+ The analysis overview is available at {analysis} for additional context.
844
+
845
+ STOP and confer with Project Manager after each task, unless directed otherwise by the Project Manager. Do not update any progress files until confirmation from Project Manager.
846
+
847
+ Work carefully and ensure that each task is verified complete before proceeding to the next. If an attempted solution does not work or you find reason to try another approach, do not make more than three attempts without stopping and obtaining confirmation from Project Manager.
848
+
849
+ Check off completed tasks in the task file when verified complete. When all tasks for the slice are complete, proceed to Phase 8 (integration) with Project Manager approval.
850
+
851
+ Notes:
852
+ * Use the task-checker to manage lists if it is available to you
853
+ * Ignore case sensitivity in all file and directory names
854
+ * If you cannot locate referenced files, STOP and request information from Project Manager
855
+ * Do not guess, assume, or proceed without required files.
856
+ ```
857
+
858
+ ##### Analyze Codebase
859
+ *This is mostly specialized to front-end and web apps and should be moved to a specific guide.*
860
+ ```markdown
861
+ Purpose: Perform discovery analysis of existing codebase to:
862
+ - Document system architecture and technology stack
863
+ - Identify technical debt and improvement opportunities
864
+ - Provide foundation for creating slices, features, or maintenance tasks
865
+ - Create reference documentation for team members
866
+
867
+ This is reconnaissance work - not goal-oriented development.
868
+
869
+ Analyze the following existing codebase and document your findings. We want this to not only assist ourselves in updating and maintaining the codebase, but also to assist humans who may be working on the project.
870
+
871
+ ###### Expected Output
872
+ * Document your findings in `user/analysis/nnn-analysis.{topic}.md` where:
873
+ - nnn starts at 940 (analysis range)
874
+ - {topic} describes the analysis focus (e.g., "initial-codebase", "dependency-audit", "architecture-review")
875
+ * Write in markdown format, following our rules for markdown output.
876
+
877
+ ###### General Guidelines
878
+ * Document the codebase structure. Also note presence of any project-documents or similar folders which probably contain information for us.
879
+ * Document presence or average of tests, and an estimate of coverage if tests are present.
880
+ * Identify technologies and frameworks in use.
881
+ * What package managers are in use?
882
+ * Is there a DevOps pipeline indicated?
883
+ * Analysis should be concise and relevant - no pontificating.
884
+ * Add note in README as follows: Claude: please find code analysis details in {file mentioned above}.
885
+
886
+ ###### Front End
887
+ * If this is a JS app, does it use React? Vue? Is it NextJS? Is it typescript, javascript, or both? Does it use TailWind? ShadCN? Something else?
888
+
889
+ ###### NextJS, React
890
+ * Perform standard analysis and identify basic environment -- confirm NextJS, identify common packages in use (Tailwind, ShadCN, etc) and any unusual packages or features.
891
+ * If auth is present, attempt to determine its structure and describe its methodology
892
+ * Is the project containerized?
893
+ * If special scripts (ex: 'docker: {command}') are present, document them in the README.
894
+ * Provide a description of the UI style, interactivity, etc
895
+ * Document page structure.
896
+ * What type of architecture is used to manage SSR vs CSR?
897
+
898
+ ###### Tailwind
899
+ * Is cn used instead of string operations with parameterized or variable classNames?
900
+ * Prefer Tailwind classes, there should not be custom CSS classes.
901
+ * If this is Tailwind 4, are customizations correctly in CSS and no attempt to use tailwind.config.ts/.js.
902
+
903
+ ```
904
+
905
+ ##### Custom Instruction
906
+ *Used as a placeholder by context-builder app*
907
+ ```markdown
908
+ Custom instructions apply. See Additional Context for instruction prompt.
909
+ ```
910
+
911
+ ***
912
+ ### Experimental
913
+ *Less than no guarantees here. Generally promoted to active, or deprecated.*
914
+
915
+ ***
916
+ ### Deprecated
917
+
918
+
919
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@context-forge/core",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Core context generation engine for Context Forge — template processing, project state, prompt assembly",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -17,6 +17,7 @@
17
17
  },
18
18
  "files": [
19
19
  "dist",
20
+ "assets",
20
21
  "README.md"
21
22
  ],
22
23
  "keywords": [