agent-method 1.5.12
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.
- package/README.md +343 -0
- package/bin/wwa.js +115 -0
- package/docs/internal/cli-commands.yaml +259 -0
- package/docs/internal/doc-tokens.yaml +1103 -0
- package/docs/internal/feature-registry.yaml +1643 -0
- package/lib/boundaries.js +247 -0
- package/lib/cli/add.js +170 -0
- package/lib/cli/casestudy.js +1000 -0
- package/lib/cli/check.js +323 -0
- package/lib/cli/close.js +838 -0
- package/lib/cli/completion.js +735 -0
- package/lib/cli/deps.js +234 -0
- package/lib/cli/digest.js +73 -0
- package/lib/cli/doc-review.js +486 -0
- package/lib/cli/docs.js +315 -0
- package/lib/cli/helpers.js +198 -0
- package/lib/cli/implement.js +169 -0
- package/lib/cli/init.js +280 -0
- package/lib/cli/pipeline.js +206 -0
- package/lib/cli/plan.js +140 -0
- package/lib/cli/record.js +98 -0
- package/lib/cli/refine.js +202 -0
- package/lib/cli/report-helpers.js +113 -0
- package/lib/cli/review.js +76 -0
- package/lib/cli/routable.js +109 -0
- package/lib/cli/route.js +101 -0
- package/lib/cli/scan.js +133 -0
- package/lib/cli/serve.js +23 -0
- package/lib/cli/status.js +65 -0
- package/lib/cli/update-docs.js +574 -0
- package/lib/cli/upgrade.js +222 -0
- package/lib/cli/watch.js +32 -0
- package/lib/dependencies.js +196 -0
- package/lib/init.js +692 -0
- package/lib/mcp-server.js +612 -0
- package/lib/pipeline.js +907 -0
- package/lib/registry.js +132 -0
- package/lib/watcher.js +165 -0
- package/package.json +54 -0
- package/templates/README.md +363 -0
- package/templates/entry-points/.cursorrules +90 -0
- package/templates/entry-points/AGENT.md +90 -0
- package/templates/entry-points/CLAUDE.md +88 -0
- package/templates/extensions/MANIFEST.md +110 -0
- package/templates/extensions/analytical-system.md +96 -0
- package/templates/extensions/code-project.md +77 -0
- package/templates/extensions/data-exploration.md +117 -0
- package/templates/full/.context/BASE.md +101 -0
- package/templates/full/.context/COMPOSITION.md +47 -0
- package/templates/full/.context/INDEX.yaml +56 -0
- package/templates/full/.context/METHODOLOGY.md +246 -0
- package/templates/full/.context/PROTOCOL.yaml +169 -0
- package/templates/full/.context/REGISTRY.md +75 -0
- package/templates/full/.cursorrules +90 -0
- package/templates/full/AGENT.md +90 -0
- package/templates/full/CLAUDE.md +90 -0
- package/templates/full/Management/DIGEST.md +23 -0
- package/templates/full/Management/STATUS.md +46 -0
- package/templates/full/PLAN.md +67 -0
- package/templates/full/PROJECT-PROFILE.md +61 -0
- package/templates/full/PROJECT.md +80 -0
- package/templates/full/REQUIREMENTS.md +30 -0
- package/templates/full/ROADMAP.md +39 -0
- package/templates/full/Reviews/INDEX.md +41 -0
- package/templates/full/Reviews/backlog.md +52 -0
- package/templates/full/Reviews/plan.md +43 -0
- package/templates/full/Reviews/project.md +41 -0
- package/templates/full/Reviews/requirements.md +42 -0
- package/templates/full/Reviews/roadmap.md +41 -0
- package/templates/full/Reviews/state.md +56 -0
- package/templates/full/SESSION-LOG.md +102 -0
- package/templates/full/STATE.md +42 -0
- package/templates/full/SUMMARY.md +27 -0
- package/templates/full/agentWorkflows/INDEX.md +42 -0
- package/templates/full/agentWorkflows/observations.md +65 -0
- package/templates/full/agentWorkflows/patterns.md +68 -0
- package/templates/full/agentWorkflows/sessions.md +92 -0
- package/templates/full/intro/README.md +39 -0
- package/templates/full/registry/feature-registry.yaml +25 -0
- package/templates/full/registry/features/catalog.yaml +743 -0
- package/templates/full/registry/features/protocol.yaml +121 -0
- package/templates/full/registry/features/routing.yaml +358 -0
- package/templates/full/registry/features/workflows.yaml +404 -0
- package/templates/full/todos/backlog.md +19 -0
- package/templates/starter/.context/BASE.md +66 -0
- package/templates/starter/.context/INDEX.yaml +51 -0
- package/templates/starter/.context/METHODOLOGY.md +228 -0
- package/templates/starter/.context/PROTOCOL.yaml +165 -0
- package/templates/starter/.cursorrules +90 -0
- package/templates/starter/AGENT.md +90 -0
- package/templates/starter/CLAUDE.md +90 -0
- package/templates/starter/Management/DIGEST.md +23 -0
- package/templates/starter/Management/STATUS.md +46 -0
- package/templates/starter/PLAN.md +67 -0
- package/templates/starter/PROJECT-PROFILE.md +44 -0
- package/templates/starter/PROJECT.md +80 -0
- package/templates/starter/ROADMAP.md +39 -0
- package/templates/starter/Reviews/INDEX.md +75 -0
- package/templates/starter/SESSION-LOG.md +102 -0
- package/templates/starter/STATE.md +42 -0
- package/templates/starter/SUMMARY.md +27 -0
- package/templates/starter/agentWorkflows/INDEX.md +61 -0
- package/templates/starter/intro/README.md +37 -0
- package/templates/starter/registry/feature-registry.yaml +25 -0
- package/templates/starter/registry/features/catalog.yaml +743 -0
- package/templates/starter/registry/features/protocol.yaml +121 -0
- package/templates/starter/registry/features/routing.yaml +358 -0
- package/templates/starter/registry/features/workflows.yaml +404 -0
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
# ============================================================
|
|
2
|
+
# LAYER 2: GUIDED WORKFLOWS
|
|
3
|
+
# How features compose into reusable task patterns.
|
|
4
|
+
# ============================================================
|
|
5
|
+
|
|
6
|
+
workflows:
|
|
7
|
+
- id: WF-01
|
|
8
|
+
name: standard-task
|
|
9
|
+
project_types: [universal]
|
|
10
|
+
description: >
|
|
11
|
+
The default workflow for any task. Review current state, plan the work,
|
|
12
|
+
implement changes, update documentation and context, close with
|
|
13
|
+
management file updates. This is the backbone pattern.
|
|
14
|
+
steps:
|
|
15
|
+
- name: review
|
|
16
|
+
stage: scope
|
|
17
|
+
description: Read current state, understand context, identify what needs to change
|
|
18
|
+
features: [QRY-01, QRY-02, CTX-03]
|
|
19
|
+
agent_action: >
|
|
20
|
+
Load entry point + STATE.md (cold start). Classify the query.
|
|
21
|
+
Load the scoped context. Understand the current position and
|
|
22
|
+
what decisions have been made. Read relevant files.
|
|
23
|
+
- name: plan
|
|
24
|
+
stage: plan
|
|
25
|
+
description: Propose structured plan with verification criteria
|
|
26
|
+
features: [TSK-01, HAI-01, STT-02]
|
|
27
|
+
agent_action: >
|
|
28
|
+
Draft a plan with objectives, steps, read/produce specs, and
|
|
29
|
+
verification criteria. Surface any unknowns as open questions.
|
|
30
|
+
Present to human for approval. Wait before executing.
|
|
31
|
+
- name: implement
|
|
32
|
+
stage: execute
|
|
33
|
+
description: Execute plan, record decisions, cascade changes
|
|
34
|
+
features: [STT-01, QRY-03, CTX-05, HAI-03]
|
|
35
|
+
agent_action: >
|
|
36
|
+
Follow the plan step by step. After each file change, check
|
|
37
|
+
cascades and update dependent files. Record every decision in
|
|
38
|
+
STATE.md immediately. If the project structure changed, update
|
|
39
|
+
the map in BASE.md.
|
|
40
|
+
- name: document
|
|
41
|
+
stage: execute
|
|
42
|
+
description: Update context files and triggered docs
|
|
43
|
+
features: [CTX-04, CTX-05, HAI-04]
|
|
44
|
+
agent_action: >
|
|
45
|
+
If new domain areas were discovered, propose specialist context
|
|
46
|
+
files. Update BASE.md map if structure changed. Check docs
|
|
47
|
+
trigger table and update human-facing docs if structural changes.
|
|
48
|
+
- name: update
|
|
49
|
+
stage: close
|
|
50
|
+
description: Close session with audit trail and position update
|
|
51
|
+
features: [TSK-03, TSK-04, STT-03]
|
|
52
|
+
agent_action: >
|
|
53
|
+
Write SUMMARY.md entry. Update STATE.md position. Mark ROADMAP.md
|
|
54
|
+
if phase complete. The "Next" field bridges to the next session.
|
|
55
|
+
|
|
56
|
+
- id: WF-02
|
|
57
|
+
name: code-change
|
|
58
|
+
project_types: [code]
|
|
59
|
+
description: >
|
|
60
|
+
When the user asks to modify code. The agent doesn't just change files —
|
|
61
|
+
it maintains the project's understanding of itself.
|
|
62
|
+
steps:
|
|
63
|
+
- name: review
|
|
64
|
+
stage: scope
|
|
65
|
+
description: Understand what exists before changing it
|
|
66
|
+
features: [QRY-01, QRY-02, CTX-03]
|
|
67
|
+
agent_action: >
|
|
68
|
+
Load context for the relevant domain. Read the files that will
|
|
69
|
+
be affected. Read tests first. Understand dependencies.
|
|
70
|
+
- name: plan
|
|
71
|
+
stage: plan
|
|
72
|
+
description: Propose code changes with cascade impacts identified
|
|
73
|
+
features: [TSK-01, HAI-01]
|
|
74
|
+
agent_action: >
|
|
75
|
+
Plan the code change. Identify cascade triggers. List all files
|
|
76
|
+
affected (direct + cascade). Include context updates in the plan.
|
|
77
|
+
- name: implement
|
|
78
|
+
stage: execute
|
|
79
|
+
description: Make changes, cascade, update context
|
|
80
|
+
features: [STT-01, QRY-03, CTX-05]
|
|
81
|
+
agent_action: >
|
|
82
|
+
Make the code change. Immediately cascade to dependent files.
|
|
83
|
+
Update .context/BASE.md codebase map if structure changed.
|
|
84
|
+
Record the decision in STATE.md.
|
|
85
|
+
- name: context-sync
|
|
86
|
+
stage: execute
|
|
87
|
+
description: Ensure future sessions understand the change
|
|
88
|
+
features: [CTX-04, CTX-05, HAI-03]
|
|
89
|
+
agent_action: >
|
|
90
|
+
This is the key step. Update the codebase map so the next session
|
|
91
|
+
knows about the new code. If a new domain emerged, propose a
|
|
92
|
+
specialist. The agent is building understanding for its future self.
|
|
93
|
+
- name: update
|
|
94
|
+
stage: close
|
|
95
|
+
description: Record and close
|
|
96
|
+
features: [TSK-03, TSK-04, STT-03]
|
|
97
|
+
agent_action: Write audit trail. Update position. Bridge to next session.
|
|
98
|
+
|
|
99
|
+
- id: WF-03
|
|
100
|
+
name: context-refresh
|
|
101
|
+
project_types: [universal]
|
|
102
|
+
description: >
|
|
103
|
+
Resync the agent's understanding with the actual project state.
|
|
104
|
+
Used when the project has changed significantly between sessions.
|
|
105
|
+
steps:
|
|
106
|
+
- name: scan
|
|
107
|
+
stage: scope
|
|
108
|
+
description: Read current .context/ and compare against reality
|
|
109
|
+
features: [QRY-01, CTX-02]
|
|
110
|
+
agent_action: >
|
|
111
|
+
Load all .context/ files. Scan the actual project structure.
|
|
112
|
+
Identify drift: new items, removed items, renamed files,
|
|
113
|
+
updated dependencies.
|
|
114
|
+
- name: compare
|
|
115
|
+
stage: plan
|
|
116
|
+
description: Identify what's stale and what's missing
|
|
117
|
+
features: [CTX-05]
|
|
118
|
+
agent_action: >
|
|
119
|
+
Build a diff between what .context/ says and what exists.
|
|
120
|
+
Flag significant drift to the user.
|
|
121
|
+
- name: update-context
|
|
122
|
+
stage: execute
|
|
123
|
+
description: Rewrite context files to match reality
|
|
124
|
+
features: [CTX-05, CTX-04]
|
|
125
|
+
agent_action: >
|
|
126
|
+
Update BASE.md project map. Update affected specialist files.
|
|
127
|
+
If new domain areas are discovered, propose new specialists.
|
|
128
|
+
- name: cascade
|
|
129
|
+
stage: execute
|
|
130
|
+
description: Propagate context changes
|
|
131
|
+
features: [QRY-03]
|
|
132
|
+
agent_action: >
|
|
133
|
+
If scoping rules or cascade rules need updating,
|
|
134
|
+
update the entry point.
|
|
135
|
+
- name: record
|
|
136
|
+
stage: close
|
|
137
|
+
description: Log what changed and why
|
|
138
|
+
features: [STT-01, TSK-04]
|
|
139
|
+
agent_action: >
|
|
140
|
+
Record context changes in STATE.md. Write SUMMARY entry
|
|
141
|
+
documenting what drifted and what was corrected.
|
|
142
|
+
|
|
143
|
+
- id: WF-04
|
|
144
|
+
name: bootstrap
|
|
145
|
+
project_types: [universal]
|
|
146
|
+
description: >
|
|
147
|
+
First session on a new project. Get from zero to working agent
|
|
148
|
+
collaboration as fast as possible.
|
|
149
|
+
steps:
|
|
150
|
+
- name: detect
|
|
151
|
+
stage: initialize
|
|
152
|
+
description: Identify project type and runtime
|
|
153
|
+
features: [TPL-02, TPL-03]
|
|
154
|
+
agent_action: >
|
|
155
|
+
Determine which entry point was loaded. Detect whether this
|
|
156
|
+
is greenfield or brownfield. Choose template tier.
|
|
157
|
+
Infer project type from directory contents.
|
|
158
|
+
- name: initialize
|
|
159
|
+
stage: scope
|
|
160
|
+
description: Set up project context
|
|
161
|
+
features: [TPL-01, CTX-01]
|
|
162
|
+
agent_action: >
|
|
163
|
+
Help user fill in PROJECT.md. Create initial .context/BASE.md.
|
|
164
|
+
For brownfield, scan the project to populate the map.
|
|
165
|
+
- name: map
|
|
166
|
+
stage: execute
|
|
167
|
+
description: Build the project understanding
|
|
168
|
+
features: [CTX-05]
|
|
169
|
+
agent_action: >
|
|
170
|
+
Walk project structure. Record paths, purposes, patterns.
|
|
171
|
+
Map dependencies. This is the foundation for all future sessions.
|
|
172
|
+
- name: pair
|
|
173
|
+
stage: execute
|
|
174
|
+
description: Set up context pairing
|
|
175
|
+
features: [CTX-04]
|
|
176
|
+
agent_action: >
|
|
177
|
+
Identify domain areas. Suggest specialist context files.
|
|
178
|
+
Add scoping rules for each domain to the entry point.
|
|
179
|
+
- name: ready
|
|
180
|
+
stage: close
|
|
181
|
+
description: Confirm setup and orient
|
|
182
|
+
features: [STT-03, TSK-04]
|
|
183
|
+
agent_action: >
|
|
184
|
+
Set STATE.md to initial position. Write first SUMMARY entry.
|
|
185
|
+
The project is now ready for real work.
|
|
186
|
+
|
|
187
|
+
- id: WF-05
|
|
188
|
+
name: data-exploration
|
|
189
|
+
project_types: [data]
|
|
190
|
+
description: >
|
|
191
|
+
When the user submits data and wants to explore it. The agent builds
|
|
192
|
+
structured understanding and provides interactive access. Context IS
|
|
193
|
+
the primary artifact — not a maintenance side effect.
|
|
194
|
+
steps:
|
|
195
|
+
- name: ingest
|
|
196
|
+
stage: scope
|
|
197
|
+
description: First contact with the data — scan structure, classify, measure
|
|
198
|
+
features: [QRY-01, EXP-01, CTX-05]
|
|
199
|
+
agent_action: >
|
|
200
|
+
Scan data sources for structure (columns, types, files, layout).
|
|
201
|
+
Sample content. Measure scale. Detect quality signals.
|
|
202
|
+
Present initial findings to user. Build draft BASE.md data inventory.
|
|
203
|
+
- name: map
|
|
204
|
+
stage: plan
|
|
205
|
+
description: Build the data model — schemas, relationships, taxonomies
|
|
206
|
+
features: [CTX-05, EXP-01, HAI-01]
|
|
207
|
+
agent_action: >
|
|
208
|
+
Build field inventories, identify keys and join paths, map
|
|
209
|
+
derived metrics, note quality issues. For documents: build index,
|
|
210
|
+
identify entities, map cross-references. Present to user for
|
|
211
|
+
correction and approval.
|
|
212
|
+
- name: reference
|
|
213
|
+
stage: execute
|
|
214
|
+
description: Build navigable reference artifacts
|
|
215
|
+
features: [EXP-02, CTX-04, EXP-04]
|
|
216
|
+
agent_action: >
|
|
217
|
+
Transform raw mapping into structured references: entity registries,
|
|
218
|
+
topic taxonomies, dimension indices, metric catalogs. Each entry
|
|
219
|
+
must be addressable, cross-linked, and source-attributed.
|
|
220
|
+
- name: explore
|
|
221
|
+
stage: execute
|
|
222
|
+
description: Interactive querying — user asks, agent routes to data
|
|
223
|
+
features: [EXP-03, EXP-04, CTX-03]
|
|
224
|
+
agent_action: >
|
|
225
|
+
Classify user query against queryable dimensions. Load appropriate
|
|
226
|
+
specialist. Answer from references when possible, access raw data
|
|
227
|
+
only when needed. Propose new dimensions when queries reveal gaps.
|
|
228
|
+
- name: refine
|
|
229
|
+
stage: close
|
|
230
|
+
description: Evolve understanding based on exploration
|
|
231
|
+
features: [EXP-02, STT-01, TSK-04]
|
|
232
|
+
agent_action: >
|
|
233
|
+
Add new queryable dimensions discovered during exploration.
|
|
234
|
+
Update references. Record exploration insights in STATE.md.
|
|
235
|
+
Write SUMMARY entry bridging to next session.
|
|
236
|
+
|
|
237
|
+
- id: WF-06
|
|
238
|
+
name: analytical-system
|
|
239
|
+
project_types: [analytical]
|
|
240
|
+
description: >
|
|
241
|
+
When the user works on prompt composition, evaluation pipelines,
|
|
242
|
+
context analysis, or ML chain orchestration. The agent maps
|
|
243
|
+
analytical components, builds structured understanding, and
|
|
244
|
+
supports iterative refinement of analytical artifacts.
|
|
245
|
+
steps:
|
|
246
|
+
- name: discover
|
|
247
|
+
stage: scope
|
|
248
|
+
description: Identify analytical components, chains, and pipeline stages
|
|
249
|
+
features: [QRY-01, QRY-02, CTX-03]
|
|
250
|
+
agent_action: >
|
|
251
|
+
Load context for the analytical domain. Identify chains
|
|
252
|
+
(input → transformation → output). Map pipeline stages.
|
|
253
|
+
Understand what components exist and how they connect.
|
|
254
|
+
- name: map-chains
|
|
255
|
+
stage: plan
|
|
256
|
+
description: Build the chain model and propose specialist structure
|
|
257
|
+
features: [TSK-01, HAI-01, CTX-05]
|
|
258
|
+
agent_action: >
|
|
259
|
+
Document each chain with its stages, inputs, outputs, and
|
|
260
|
+
evaluation criteria. Propose specialist context files for
|
|
261
|
+
distinct knowledge domains. Present chain model for approval.
|
|
262
|
+
- name: build-context
|
|
263
|
+
stage: execute
|
|
264
|
+
description: Create structured context for analytical components
|
|
265
|
+
features: [CTX-04, CTX-05, STT-01]
|
|
266
|
+
agent_action: >
|
|
267
|
+
Build specialist files for each analytical domain (composition,
|
|
268
|
+
evaluation, execution, domain knowledge). Record architectural
|
|
269
|
+
decisions about chain structure in STATE.md.
|
|
270
|
+
- name: compose
|
|
271
|
+
stage: execute
|
|
272
|
+
description: Build or modify analytical artifacts (prompts, pipelines, evaluations)
|
|
273
|
+
features: [STT-01, QRY-03, HAI-03]
|
|
274
|
+
agent_action: >
|
|
275
|
+
Create or modify the analytical artifacts. Follow cascade rules
|
|
276
|
+
for pipeline changes (upstream change → downstream specs update).
|
|
277
|
+
Maintain dual-audience separation for documentation.
|
|
278
|
+
- name: evaluate
|
|
279
|
+
stage: verify
|
|
280
|
+
description: Check analytical artifacts against evaluation criteria
|
|
281
|
+
features: [TSK-02]
|
|
282
|
+
agent_action: >
|
|
283
|
+
Run evaluation criteria against completed work. For prompts:
|
|
284
|
+
check against scoring rubrics. For pipelines: verify stage
|
|
285
|
+
contracts. Report results with specific evidence.
|
|
286
|
+
- name: refine
|
|
287
|
+
stage: close
|
|
288
|
+
description: Record findings and bridge to next iteration
|
|
289
|
+
features: [TSK-03, TSK-04, STT-03]
|
|
290
|
+
agent_action: >
|
|
291
|
+
Write SUMMARY entry documenting what was built and evaluation
|
|
292
|
+
results. Update STATE.md with refinement direction. The "Next"
|
|
293
|
+
field should identify what to iterate on.
|
|
294
|
+
|
|
295
|
+
- id: WF-07
|
|
296
|
+
name: specification-project
|
|
297
|
+
project_types: [universal]
|
|
298
|
+
description: >
|
|
299
|
+
When the primary output is specifications, standards, or methodology
|
|
300
|
+
documents rather than code or data artifacts. The agent helps
|
|
301
|
+
structure, draft, review, and cross-reference specification content.
|
|
302
|
+
steps:
|
|
303
|
+
- name: research
|
|
304
|
+
stage: scope
|
|
305
|
+
description: Gather prior art, constraints, and requirements
|
|
306
|
+
features: [QRY-01, QRY-02, CTX-03]
|
|
307
|
+
agent_action: >
|
|
308
|
+
Load relevant context. Read existing specs, research docs,
|
|
309
|
+
and requirements. Identify what the spec needs to cover
|
|
310
|
+
and what prior decisions constrain it.
|
|
311
|
+
- name: outline
|
|
312
|
+
stage: plan
|
|
313
|
+
description: Propose spec structure with sections and cross-references
|
|
314
|
+
features: [TSK-01, HAI-01, STT-02]
|
|
315
|
+
agent_action: >
|
|
316
|
+
Draft a spec outline with sections, cross-references to
|
|
317
|
+
existing specs, and verification criteria. Surface any
|
|
318
|
+
open questions about scope or approach. Wait for approval.
|
|
319
|
+
- name: draft
|
|
320
|
+
stage: execute
|
|
321
|
+
description: Write spec content with traceability
|
|
322
|
+
features: [STT-01, QRY-03, CTX-05, HAI-03]
|
|
323
|
+
agent_action: >
|
|
324
|
+
Write each spec section. Cross-reference related specs.
|
|
325
|
+
Record design decisions in STATE.md immediately. Follow
|
|
326
|
+
cascade rules when spec changes affect other documents.
|
|
327
|
+
- name: cross-reference
|
|
328
|
+
stage: execute
|
|
329
|
+
description: Ensure consistency across related specifications
|
|
330
|
+
features: [QRY-03, CTX-05]
|
|
331
|
+
agent_action: >
|
|
332
|
+
Check that this spec is consistent with all related specs.
|
|
333
|
+
Update cross-references. Flag contradictions. Update
|
|
334
|
+
context files if the spec changes the project's understanding.
|
|
335
|
+
- name: review
|
|
336
|
+
stage: verify
|
|
337
|
+
description: Verify spec completeness and consistency
|
|
338
|
+
features: [TSK-02]
|
|
339
|
+
agent_action: >
|
|
340
|
+
Check spec against outline criteria. Verify all sections
|
|
341
|
+
are substantive. Confirm cross-references are valid.
|
|
342
|
+
Report coverage gaps.
|
|
343
|
+
- name: record
|
|
344
|
+
stage: close
|
|
345
|
+
description: Update management files and bridge to next spec
|
|
346
|
+
features: [TSK-03, TSK-04, STT-03]
|
|
347
|
+
agent_action: >
|
|
348
|
+
Write SUMMARY entry. Update STATE.md position. If this
|
|
349
|
+
spec enables other specs, note the dependency in "Next."
|
|
350
|
+
|
|
351
|
+
- id: WF-08
|
|
352
|
+
name: discovery
|
|
353
|
+
project_types: [universal]
|
|
354
|
+
description: >
|
|
355
|
+
When the methodology is applied to an existing project (brownfield) or
|
|
356
|
+
when a major re-assessment is needed. The agent systematically builds
|
|
357
|
+
understanding of the project before contributing to it. Discovery must
|
|
358
|
+
complete before the agent can work effectively.
|
|
359
|
+
steps:
|
|
360
|
+
- name: inventory
|
|
361
|
+
stage: scope
|
|
362
|
+
description: Walk the project structure and build a complete file/module inventory
|
|
363
|
+
features: [QRY-01, SCAN-01, CTX-05]
|
|
364
|
+
agent_action: >
|
|
365
|
+
Walk the entire project directory. Record every significant path,
|
|
366
|
+
its purpose, and its key patterns. Build the project map in
|
|
367
|
+
.context/BASE.md. This is the foundation — skip nothing.
|
|
368
|
+
- name: map
|
|
369
|
+
stage: plan
|
|
370
|
+
description: Map dependencies, connections, and data flows between components
|
|
371
|
+
features: [SCAN-02, HAI-01]
|
|
372
|
+
agent_action: >
|
|
373
|
+
Parse package manifests, trace imports, map service connections.
|
|
374
|
+
Present the dependency map to the human for validation. Flag
|
|
375
|
+
any surprising connections or circular dependencies.
|
|
376
|
+
- name: extract
|
|
377
|
+
stage: execute
|
|
378
|
+
description: Identify patterns, conventions, and implicit architectural decisions
|
|
379
|
+
features: [SCAN-03, STT-01, CTX-04]
|
|
380
|
+
agent_action: >
|
|
381
|
+
Sample key files. Identify naming conventions, error handling
|
|
382
|
+
patterns, test approaches, design patterns. Record discovered
|
|
383
|
+
architectural decisions in STATE.md. Propose specialist context
|
|
384
|
+
files for distinct domains.
|
|
385
|
+
- name: assess
|
|
386
|
+
stage: verify
|
|
387
|
+
description: Evaluate technical debt, risks, and improvement opportunities
|
|
388
|
+
features: [SCAN-04, STT-02]
|
|
389
|
+
agent_action: >
|
|
390
|
+
Based on inventory and patterns, identify areas of concern:
|
|
391
|
+
outdated deps, missing tests, inconsistencies, security issues.
|
|
392
|
+
Write findings as open questions in STATE.md with severity.
|
|
393
|
+
Present assessment to human — they decide priorities.
|
|
394
|
+
- name: bootstrap
|
|
395
|
+
stage: close
|
|
396
|
+
description: Finalize context files, update entry point, record discovery session
|
|
397
|
+
features: [CTX-01, TSK-03, TSK-04, STT-03]
|
|
398
|
+
agent_action: >
|
|
399
|
+
Finalize .context/BASE.md with complete project map. Write
|
|
400
|
+
specialist context files approved during extract step. Update
|
|
401
|
+
entry point scoping table with project-specific query types.
|
|
402
|
+
Write SUMMARY entry. Update STATE.md position. Set lifecycle
|
|
403
|
+
stage to Development (or Design if architecture needs work).
|
|
404
|
+
|