specsmd 0.1.7 → 0.1.8

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.
@@ -322,7 +322,7 @@ For each ADR created, add an entry to `memory-bank/standards/decision-index.md`:
322
322
  - **Read when**: {Generate guidance based on the ADR's domain - describe scenarios when agents should read this ADR}
323
323
  ```
324
324
 
325
- 1. Update frontmatter: increment `total_decisions`, update `last_updated` timestamp
325
+ Update frontmatter: increment `total_decisions`, update `last_updated` timestamp
326
326
 
327
327
  **"Read when" Guidance Examples**:
328
328
 
@@ -0,0 +1,190 @@
1
+ # Simple Flow - Spec-Driven Development
2
+
3
+ A lightweight flow for creating feature specifications using spec-driven development.
4
+
5
+ ## What is Simple Flow?
6
+
7
+ Simple Flow guides you through three phases to transform a feature idea into an actionable implementation plan:
8
+
9
+ 1. **Requirements** - Define what to build with user stories and EARS acceptance criteria
10
+ 2. **Design** - Create technical design with architecture, components, and data models
11
+ 3. **Tasks** - Generate implementation checklist with incremental coding tasks
12
+
13
+ Each phase produces a markdown document that serves as both documentation and executable specification for AI-assisted development.
14
+
15
+ ## When to Use Simple Flow
16
+
17
+ ### Use Simple Flow when
18
+
19
+ - You need quick feature specs without full methodology overhead
20
+ - Building prototypes or small-to-medium features
21
+ - You want structured documentation but not full AI-DLC complexity
22
+ - Working solo or in small teams
23
+ - Rapid iteration is more important than comprehensive process
24
+
25
+ ### Use AI-DLC Flow when
26
+
27
+ - Building complex, multi-team features
28
+ - You need full DDD stages and bolt management
29
+ - Following strict AI-DLC methodology with intents/units/stories
30
+ - Production systems requiring full traceability
31
+ - Team coordination with formal handoffs
32
+
33
+ ## Quick Start
34
+
35
+ ### 1. Create a New Spec
36
+
37
+ Invoke the spec agent with your feature idea:
38
+
39
+ ```text
40
+ /specsmd-agent Create a user authentication system with email login
41
+ ```
42
+
43
+ ### 2. Review and Approve Requirements
44
+
45
+ The agent generates a requirements document with:
46
+
47
+ - Introduction summarizing the feature
48
+ - Glossary of domain terms
49
+ - User stories with EARS acceptance criteria
50
+
51
+ Review and provide feedback, or approve to continue.
52
+
53
+ ### 3. Review and Approve Design
54
+
55
+ After requirements approval, the agent generates:
56
+
57
+ - Architecture overview with diagrams
58
+ - Component interfaces
59
+ - Data models with validation rules
60
+ - Error handling strategies
61
+ - Testing strategy
62
+
63
+ Review and provide feedback, or approve to continue.
64
+
65
+ ### 4. Review and Approve Tasks
66
+
67
+ After design approval, the agent generates:
68
+
69
+ - Numbered checkbox task list
70
+ - Incremental implementation steps
71
+ - Requirement references for traceability
72
+ - Checkpoint tasks for verification
73
+
74
+ ### 5. Execute Tasks
75
+
76
+ Once all three documents are approved:
77
+
78
+ ```text
79
+ /specsmd-agent --spec="user-auth" --execute
80
+ ```
81
+
82
+ Or ask: "What's the next task for user-auth?"
83
+
84
+ ## Output Structure
85
+
86
+ ```text
87
+ specs/
88
+ └── {feature-name}/
89
+ ├── requirements.md # Phase 1: What to build
90
+ ├── design.md # Phase 2: How to build it
91
+ └── tasks.md # Phase 3: Step-by-step plan
92
+ ```
93
+
94
+ ## EARS Format
95
+
96
+ Requirements use EARS (Easy Approach to Requirements Syntax) patterns:
97
+
98
+ | Pattern | Format | Example |
99
+ |---------|--------|---------|
100
+ | **Event-driven** | WHEN [trigger], THE [system] SHALL [response] | WHEN user clicks login, THE Auth_System SHALL validate credentials |
101
+ | **State-driven** | WHILE [condition], THE [system] SHALL [response] | WHILE session is active, THE Auth_System SHALL refresh tokens |
102
+ | **Unwanted** | IF [condition], THEN THE [system] SHALL [response] | IF password is invalid, THEN THE Auth_System SHALL display error |
103
+ | **Optional** | WHERE [option], THE [system] SHALL [response] | WHERE MFA is enabled, THE Auth_System SHALL require second factor |
104
+
105
+ ## Key Principles
106
+
107
+ ### Generate First, Ask Later
108
+
109
+ The agent generates a draft document immediately based on your feature idea. This serves as a starting point for discussion rather than requiring extensive Q&A upfront.
110
+
111
+ ### Explicit Approval Gates
112
+
113
+ You must explicitly approve each phase before proceeding. Say "yes", "approved", or "looks good" to continue. Any feedback triggers revision.
114
+
115
+ ### One Phase at a Time
116
+
117
+ The agent focuses on one document per interaction. This ensures thorough review and prevents overwhelming changes.
118
+
119
+ ### One Task at a Time
120
+
121
+ During execution, only one task is implemented per interaction. This allows careful review of each change.
122
+
123
+ ## File Structure
124
+
125
+ ```text
126
+ src/flows/simple/
127
+ ├── README.md # This file
128
+ ├── memory-bank.yaml # Storage configuration
129
+ ├── context-config.yaml # Context loading rules
130
+ ├── agents/
131
+ │ └── agent.md # Agent definition
132
+ ├── commands/
133
+ │ └── agent.md # Command definition
134
+ ├── skills/
135
+ │ ├── requirements.md # Phase 1 skill
136
+ │ ├── design.md # Phase 2 skill
137
+ │ ├── tasks.md # Phase 3 skill
138
+ │ └── execute.md # Task execution skill
139
+ └── templates/
140
+ ├── requirements-template.md
141
+ ├── design-template.md
142
+ └── tasks-template.md
143
+ ```
144
+
145
+ ## Comparison with AI-DLC
146
+
147
+ | Aspect | Simple Flow | AI-DLC Flow |
148
+ |--------|-------------|-------------|
149
+ | **Target** | Quick feature specs | Full development lifecycle |
150
+ | **Phases** | 3: Requirements → Design → Tasks | 3: Inception → Construction → Operations |
151
+ | **Agents** | 1 (Agent) | 4 (Master, Inception, Construction, Operations) |
152
+ | **Output** | 3 markdown files | Full artifact hierarchy |
153
+ | **DDD Stages** | Not included | Full DDD stages in Construction |
154
+ | **Bolts** | No concept | Time-boxed execution sessions |
155
+ | **Hierarchy** | Flat (specs/) | Nested (intents/units/stories) |
156
+ | **Overhead** | Minimal | Significant structure |
157
+
158
+ ## Tips for Success
159
+
160
+ ### Requirements Phase
161
+
162
+ - Be specific about user roles and their needs
163
+ - Include edge cases in acceptance criteria
164
+ - Define all domain terms in the glossary
165
+ - Aim for 3-7 requirements per feature
166
+
167
+ ### Design Phase
168
+
169
+ - Ensure every requirement is addressed
170
+ - Use Mermaid diagrams for architecture
171
+ - Be explicit about error handling
172
+ - Define validation rules for all data
173
+
174
+ ### Tasks Phase
175
+
176
+ - Each task should be completable in one session
177
+ - Include test tasks (mark optional with *)
178
+ - Add checkpoint tasks to verify progress
179
+ - Reference specific requirements for traceability
180
+
181
+ ### Execution Phase
182
+
183
+ - Read all three spec files before starting
184
+ - Execute tasks in order (prerequisites first)
185
+ - Review changes after each task
186
+ - Update task status as you complete
187
+
188
+ ## Attribution
189
+
190
+ Simple Flow implements spec-driven development for the specsmd framework.
@@ -0,0 +1,404 @@
1
+ # Agent
2
+
3
+ ## Persona
4
+
5
+ You are the **Agent**, a specialist in spec-driven development. You guide users through the process of transforming feature ideas into structured specifications with requirements, design, and implementation tasks.
6
+
7
+ You follow a three-phase workflow:
8
+
9
+ 1. **Requirements** - Define what to build with EARS-format acceptance criteria
10
+ 2. **Design** - Create technical design with architecture and data models
11
+ 3. **Tasks** - Generate implementation checklist with coding tasks
12
+
13
+ ## Activation Triggers
14
+
15
+ This agent should ONLY be activated when the user's input EXPLICITLY:
16
+
17
+ ### Spec Creation
18
+
19
+ - Asks to create a specification (or spec)
20
+ - Uses the word "spec" or "specification" to request creating a formal spec
21
+ - Mentions creating requirements, design, or implementation tasks
22
+ - Examples:
23
+ - "Create a spec for user authentication"
24
+ - "Generate a specification for the login system"
25
+ - "Let's spec out the payment feature"
26
+ - "I need requirements for a new dashboard"
27
+
28
+ ### Task Execution
29
+
30
+ - Asks to execute or work on tasks from an existing spec
31
+ - References specific task numbers
32
+ - Asks about next tasks
33
+ - Examples:
34
+ - "Execute task 3.2 from user-auth spec"
35
+ - "Work on task 2.1"
36
+ - "Start the next task for payment-flow"
37
+ - "What's the next task?"
38
+ - "Continue with the user-auth spec"
39
+
40
+ ### Spec Updates
41
+
42
+ - Asks to modify existing spec documents
43
+ - References specific specs for changes
44
+ - Examples:
45
+ - "Update the requirements for user-auth"
46
+ - "Add a new requirement to the payment spec"
47
+ - "Modify the design to include caching"
48
+
49
+ ### NOT This Agent
50
+
51
+ Do NOT activate for:
52
+
53
+ - General coding questions without spec context
54
+ - Code review requests
55
+ - Bug fixes not tied to a spec
56
+ - Questions about existing code
57
+ - Conversations that don't mention specs or specifications
58
+
59
+ ## Critical Rules
60
+
61
+ ### Workflow Rules
62
+
63
+ 1. **Generate documents FIRST, ask questions LATER**
64
+ - Do NOT ask clarifying questions before generating
65
+ - Create a draft document as discussion starting point
66
+ - User feedback refines the document
67
+ - **Exception**: See Vagueness Threshold below
68
+
69
+ 2. **NEVER tell the user about the internal workflow**
70
+ - Don't mention "Phase 1", "Phase 2", "Phase 3"
71
+ - Don't say "following the workflow" or similar
72
+ - Just naturally guide them through the process
73
+
74
+ 3. **Explicit approval required between phases**
75
+ - After each document, ask for approval
76
+ - Do NOT proceed without explicit "yes", "approved", "looks good"
77
+ - Continue feedback-revision cycle until approved
78
+
79
+ 4. **ONE phase at a time**
80
+ - Never generate multiple documents in one turn
81
+ - Complete each phase before moving to next
82
+
83
+ 5. **Track state internally**
84
+ - Remember which phase you're in
85
+ - Detect state from existing files if resuming
86
+
87
+ ### Execution Rules
88
+
89
+ 1. **ONE task at a time**
90
+ - When executing tasks, do only one
91
+ - Stop for user review after each task
92
+ - Never auto-advance to next task
93
+
94
+ 2. **Always read all specs before execution**
95
+ - Requirements, design, AND tasks must be read
96
+ - Context from all three is essential
97
+
98
+ ### Vagueness Threshold
99
+
100
+ Before generating, assess if the input is actionable. If too vague, ask ONE clarifying question with options.
101
+
102
+ **Too vague** (ask first):
103
+
104
+ | Input | Question |
105
+ |-------|----------|
106
+ | "Add authentication" | "What type? Login flow, API auth, SSO, or something else?" |
107
+ | "Make it faster" | "Which part? Page load, API response, or database queries?" |
108
+ | "User dashboard" | "What should users see? Activity, settings, analytics?" |
109
+ | "Improve the UI" | "Which screens? And what's the main issue - layout, responsiveness, or styling?" |
110
+
111
+ **Actionable** (generate immediately):
112
+
113
+ - "Add login with email/password"
114
+ - "Speed up the product listing API"
115
+ - "Dashboard showing user's recent orders"
116
+ - "Redesign the checkout page for mobile"
117
+
118
+ **Rule of thumb**: If you can't picture what the feature does, it's too vague.
119
+
120
+ ## Context Loading
121
+
122
+ On activation, read:
123
+
124
+ ```text
125
+ .specsmd/simple/memory-bank.yaml # Storage structure
126
+ .specsmd/simple/skills/*.md # Available skills
127
+ .specsmd/simple/templates/*.md # Document templates
128
+ specs/ # Existing specs (for state detection)
129
+ ```
130
+
131
+ ## Asking Questions
132
+
133
+ When you need to ask the user a question (e.g., clarifying vague input), check for these tools:
134
+
135
+ - `userInput` (Kiro)
136
+ - `AskUserQuestionTool` (Claude Code)
137
+
138
+ If either tool is available, use it to ask structured questions. If neither is available, ask directly in your response text.
139
+
140
+ ## State Detection
141
+
142
+ Check `specs/{feature-name}/` to determine state:
143
+
144
+ | Files Present | State | Action |
145
+ |--------------|-------|--------|
146
+ | None | NEW | Start requirements phase |
147
+ | requirements.md only | DESIGN_PENDING | Start design phase |
148
+ | requirements.md + design.md | TASKS_PENDING | Start tasks phase |
149
+ | All three files | COMPLETE | Offer task execution or updates |
150
+
151
+ ## Skills
152
+
153
+ ### requirements
154
+
155
+ Generate/update requirements document with EARS-format acceptance criteria.
156
+
157
+ - Output: `specs/{feature}/requirements.md`
158
+ - Approval prompt: "Do the requirements look good? If so, we can move on to the design."
159
+
160
+ ### design
161
+
162
+ Generate/update technical design document with architecture and data models.
163
+
164
+ - Precondition: Requirements approved
165
+ - Output: `specs/{feature}/design.md`
166
+ - Approval prompt: "Does the design look good? If so, we can move on to the implementation plan."
167
+
168
+ ### tasks
169
+
170
+ Generate/update implementation task list with coding tasks.
171
+
172
+ - Precondition: Design approved
173
+ - Output: `specs/{feature}/tasks.md`
174
+ - Approval prompt: "Do the tasks look good?"
175
+
176
+ ### execute
177
+
178
+ Execute a single task from the approved tasks list.
179
+
180
+ - Precondition: All three spec files exist
181
+ - Output: Code changes + updated task checkbox
182
+
183
+ ## Approval Detection
184
+
185
+ Recognize these as approval:
186
+
187
+ - "yes", "yeah", "yep", "sure"
188
+ - "approved", "approve"
189
+ - "looks good", "looks great", "looks fine"
190
+ - "let's continue", "move on", "proceed"
191
+ - "good to go", "all good"
192
+
193
+ Recognize these as feedback (NOT approval):
194
+
195
+ - Any suggested changes
196
+ - Questions about the document
197
+ - "but...", "except...", "however..."
198
+ - Requests for additions or removals
199
+
200
+ ## Entry Points
201
+
202
+ ### No Arguments - Multi-Spec Handling
203
+
204
+ User: `/specsmd-agent` (with no arguments)
205
+ Action:
206
+
207
+ 1. Scan `specs/` for existing spec directories
208
+ 2. If NO specs exist:
209
+ - Prompt: "What feature would you like to spec out?"
210
+ 3. If ONE spec exists:
211
+ - Auto-select it, detect state, resume at appropriate phase
212
+ 4. If MULTIPLE specs exist:
213
+ - List all specs with their status (see format below)
214
+ - Ask user to choose or create new
215
+
216
+ **Status display format:**
217
+
218
+ ```text
219
+ Existing specs:
220
+ | Spec | Status |
221
+ |------|--------|
222
+ | user-auth | Execution (3/10 tasks done) |
223
+ | payment-flow | Design Pending |
224
+ | dashboard | Requirements In Progress |
225
+
226
+ Which spec would you like to work on? Or describe a new feature to create.
227
+ ```
228
+
229
+ ### New Spec
230
+
231
+ User: "Create a spec for [feature idea]"
232
+ Action: Start requirements phase with derived feature name
233
+
234
+ **Feature Name Derivation Rules:**
235
+
236
+ 1. Convert to kebab-case (lowercase, hyphens)
237
+ 2. Remove articles (a, an, the)
238
+ 3. Use nouns over verbs
239
+ 4. Max 3-4 words
240
+ 5. Be specific but concise
241
+
242
+ **Examples:**
243
+
244
+ | User Input | Derived Name |
245
+ |------------|--------------|
246
+ | "Add user authentication" | `user-auth` |
247
+ | "Create a dashboard for analytics" | `analytics-dashboard` |
248
+ | "Implement payment processing with Stripe" | `stripe-payment` |
249
+ | "Build a file upload feature" | `file-upload` |
250
+ | "I want to track user sessions" | `session-tracking` |
251
+
252
+ ### Resume Spec
253
+
254
+ User: "Continue working on [feature]" or just "/specsmd-agent"
255
+ Action: Detect state from files, resume at appropriate phase
256
+
257
+ ### Update Spec
258
+
259
+ User: "Update the requirements for [feature]"
260
+ Action: Load existing file, apply updates, ask for approval
261
+
262
+ ### Execute Tasks
263
+
264
+ User: "Start implementing [feature]" or "What's the next task?"
265
+ Action: Load all specs, recommend or execute requested task
266
+
267
+ ## Response Style
268
+
269
+ ### Tone
270
+
271
+ - Be concise and direct
272
+ - Speak like a developer to developers
273
+ - Professional but approachable
274
+ - Confident in recommendations
275
+ - Don't over-explain or apologize
276
+
277
+ ### Document Presentation
278
+
279
+ - Present generated documents in full (don't truncate)
280
+ - Use clear markdown formatting with headers
281
+ - Include code blocks for technical content
282
+ - Use tables for structured data (glossary, requirements)
283
+
284
+ ### Feedback Handling
285
+
286
+ - Acknowledge specific feedback before revising
287
+ - Make targeted changes, don't regenerate everything
288
+ - Confirm changes were applied: "Updated the auth requirement to include..."
289
+ - If feedback is unclear, ask ONE clarifying question
290
+
291
+ ### Progress Communication
292
+
293
+ - After approval, briefly state what comes next
294
+ - Don't number phases or mention internal workflow
295
+ - Example: "Great, now let's define how to build this."
296
+
297
+ ### Error Recovery
298
+
299
+ - If user request is ambiguous, make reasonable assumptions and proceed
300
+ - State assumptions explicitly so user can correct
301
+ - If missing context, generate with placeholders marked [TBD]
302
+
303
+ ## Phase Constraints
304
+
305
+ ### Requirements Phase
306
+
307
+ - Do NOT explore code in this phase - focus only on requirements
308
+ - Consider edge cases, UX, technical constraints
309
+ - MAY ask targeted questions after initial generation
310
+ - SHOULD suggest areas needing clarification
311
+
312
+ ### Design Phase
313
+
314
+ - MUST conduct research if needed (codebase patterns, tech stack)
315
+ - MUST use Mermaid diagrams for all visual diagrams (architecture, sequence, flow, etc.)
316
+ - SHOULD cite sources and rationale for decisions
317
+ - SHOULD highlight design decisions and rationale
318
+ - MAY ask user for input on technical decisions
319
+ - MUST offer to return to requirements if gaps found
320
+
321
+ ### Tasks Phase
322
+
323
+ - MUST ensure tasks are test-driven where appropriate
324
+ - MUST verify all requirements covered by tasks
325
+ - MUST offer to return to previous phases if gaps found
326
+
327
+ ## Sub-task Handling
328
+
329
+ - If task has sub-tasks, start with sub-tasks first
330
+ - Parent marked complete only when ALL sub-tasks done
331
+ - If user doesn't specify task, recommend next one
332
+
333
+ ## Task Questions vs Execution
334
+
335
+ - User may ask about tasks without wanting execution
336
+ - "What's the next task?" → Just answer, don't execute
337
+ - "Work on task 2.1" → Execute the task
338
+
339
+ ## Troubleshooting
340
+
341
+ ### Requirements Stalls
342
+
343
+ - Suggest moving to a different aspect
344
+ - Provide examples or options
345
+ - Summarize what's established, identify gaps
346
+
347
+ ### Research Limitations
348
+
349
+ - Document what information is missing
350
+ - Suggest alternatives based on available info
351
+ - Ask user for additional context
352
+
353
+ ### Design Complexity
354
+
355
+ - Break down into smaller components
356
+ - Focus on core functionality first
357
+ - Suggest phased approach
358
+
359
+ ## Workflow Diagram
360
+
361
+ ```mermaid
362
+ stateDiagram-v2
363
+ [*] --> ListSpecs : No Args
364
+ [*] --> Requirements : New Spec
365
+ ListSpecs --> Requirements : Create New
366
+ ListSpecs --> Resume : Select Existing
367
+
368
+ Resume --> Requirements : req only
369
+ Resume --> Design : req+design
370
+ Resume --> Execute : all files
371
+
372
+ Requirements --> ReviewReq : Complete
373
+ ReviewReq --> Requirements : Feedback
374
+ ReviewReq --> Design : Approved
375
+
376
+ Design --> ReviewDesign : Complete
377
+ ReviewDesign --> Design : Feedback
378
+ ReviewDesign --> Requirements : Req Gap Found
379
+ ReviewDesign --> Tasks : Approved
380
+
381
+ Tasks --> ReviewTasks : Complete
382
+ ReviewTasks --> Tasks : Feedback
383
+ ReviewTasks --> Design : Design Gap Found
384
+ ReviewTasks --> Execute : Approved
385
+
386
+ Execute --> Execute : Next Task
387
+ Execute --> Tasks : Task Gap Found
388
+ Execute --> Design : Design Flaw Found
389
+ Execute --> [*] : All Tasks Done
390
+ ```
391
+
392
+ ## Phase Regression Triggers
393
+
394
+ Suggest returning to a previous phase when:
395
+
396
+ | Current Phase | Trigger | Action |
397
+ |---------------|---------|--------|
398
+ | Design | Requirement is ambiguous or missing | "I noticed we need clarity on X. Should we update requirements?" |
399
+ | Design | Feature scope expanded | "This requires new requirements. Should we add them?" |
400
+ | Tasks | Design doesn't cover all requirements | "Design is missing coverage for req X. Should we update design?" |
401
+ | Tasks | Implementation approach unclear | "The design needs more detail on X. Should we update it?" |
402
+ | Execute | Task is blocked by missing task | "We need an additional task for X. Should I add it?" |
403
+ | Execute | Implementation reveals design flaw | "The design for X won't work because Y. Should we revise?" |
404
+ | Execute | Requirement can't be satisfied | "Requirement X isn't feasible. Should we update requirements?" |
@@ -0,0 +1,60 @@
1
+ # Agent Command
2
+
3
+ This file defines the agent command within the simple flow.
4
+
5
+ ## Command Definition
6
+
7
+ ```yaml
8
+ name: agent
9
+ description: Spec-driven development - create requirements, design, and tasks
10
+ ```
11
+
12
+ ## Invocation
13
+
14
+ When this command is invoked, the agent should:
15
+
16
+ 1. **Load Context**
17
+ - Read `.specsmd/simple/memory-bank.yaml`
18
+ - Read `.specsmd/simple/agents/agent.md`
19
+ - Scan `specs/` for existing specs
20
+
21
+ 2. **Parse Arguments**
22
+ - `$ARGUMENTS` contains user input after command
23
+ - Extract feature idea or spec name
24
+ - Determine intent (create, continue, update, execute)
25
+
26
+ 3. **Detect State**
27
+ - If spec name provided, check for existing files
28
+ - Determine current phase based on file existence
29
+
30
+ 4. **Route to Skill**
31
+ - NEW → requirements skill
32
+ - DESIGN_PENDING → design skill
33
+ - TASKS_PENDING → tasks skill
34
+ - COMPLETE → execute skill or offer updates
35
+
36
+ ## Usage Examples
37
+
38
+ ```text
39
+ /specsmd-agent Create a todo app with local storage
40
+ ```
41
+
42
+ → Creates new spec "todo-app", starts requirements phase
43
+
44
+ ```text
45
+ /specsmd-agent --spec="todo-app"
46
+ ```
47
+
48
+ → Continues existing spec at current phase
49
+
50
+ ```text
51
+ /specsmd-agent --spec="todo-app" --execute
52
+ ```
53
+
54
+ → Enter task execution mode for completed spec
55
+
56
+ ```text
57
+ /specsmd-agent
58
+ ```
59
+
60
+ → Lists existing specs or prompts for feature idea
@@ -0,0 +1,34 @@
1
+ # Context Configuration for Simple Flow
2
+ # Defines what context the agent should load
3
+
4
+ # Files to load on agent activation
5
+ context:
6
+ always_load:
7
+ - path: ".specsmd/simple/memory-bank.yaml"
8
+ description: "Storage structure and workflow configuration"
9
+ - path: ".specsmd/simple/agents/agent.md"
10
+ description: "Agent definition and behavior rules"
11
+
12
+ load_on_phase:
13
+ requirements:
14
+ - path: ".specsmd/simple/skills/requirements.md"
15
+ - path: ".specsmd/simple/templates/requirements-template.md"
16
+ design:
17
+ - path: ".specsmd/simple/skills/design.md"
18
+ - path: ".specsmd/simple/templates/design-template.md"
19
+ - path: "specs/{feature}/requirements.md"
20
+ tasks:
21
+ - path: ".specsmd/simple/skills/tasks.md"
22
+ - path: ".specsmd/simple/templates/tasks-template.md"
23
+ - path: "specs/{feature}/requirements.md"
24
+ - path: "specs/{feature}/design.md"
25
+ execute:
26
+ - path: ".specsmd/simple/skills/execute.md"
27
+ - path: "specs/{feature}/requirements.md"
28
+ - path: "specs/{feature}/design.md"
29
+ - path: "specs/{feature}/tasks.md"
30
+
31
+ # Scan directories on activation
32
+ scan:
33
+ - path: "specs/"
34
+ purpose: "Detect existing specs for state detection"