@esneiderbravo/speclaw 2.0.1 → 2.0.2
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/dist/modules/lawbook/assets/agents/planner.md +3 -0
- package/dist/modules/lawbook/assets/skills/cortex/steps/02-dispatch-loop.md +3 -0
- package/dist/modules/lawbook/assets/skills/draft/steps/02-understand.md +12 -9
- package/dist/modules/lawbook/assets/skills/explore/steps/02-summarize.md +11 -3
- package/package.json +1 -1
|
@@ -13,6 +13,9 @@ Turn the explorer brief + user intent into a reviewable change under
|
|
|
13
13
|
`lawbook/changes/<name>/` at the confirmed ceremony level. Prefer `draft` /
|
|
14
14
|
`quick` skills.
|
|
15
15
|
|
|
16
|
+
A complete explorer brief is the code map. Do not re-investigate it. Call
|
|
17
|
+
Compass only for a gap the brief names.
|
|
18
|
+
|
|
16
19
|
## Questions
|
|
17
20
|
|
|
18
21
|
If anything material is ambiguous, **stop**. Return numbered questions to the
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
For the current Cortex stage (`cortex` action `brief` or `status`):
|
|
4
4
|
|
|
5
5
|
1. Dispatch (spawn or adopt) the matching role with a clear handoff brief.
|
|
6
|
+
When the role is the planner, paste the explorer brief into the prompt
|
|
7
|
+
unchanged: symbols with files, callers and callees, blast radius, standards
|
|
8
|
+
already read, recommended approach, open questions, and gaps.
|
|
6
9
|
2. On role completion, call the matching Cortex op:
|
|
7
10
|
- exploring → `advance`
|
|
8
11
|
- planning with questions → `advance` + `pauseForQuestions` + `openQuestions`
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
# Understand the request and the code
|
|
2
2
|
|
|
3
|
-
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
- When the handoff includes a complete explorer brief (symbols with files,
|
|
4
|
+
callers and callees, blast radius, standards already read, recommended
|
|
5
|
+
approach, open questions, and gaps), that brief is the code map. Call
|
|
6
|
+
`compass_find` or `compass_explore` only for a gap the brief names. Re-read
|
|
7
|
+
a file under `docs/standards/` only when the brief does not cite it.
|
|
8
|
+
- When the handoff has no complete explorer brief, refresh the index with
|
|
9
|
+
`compass_index`, then use `compass_explore` and `compass_find` (mode:
|
|
10
|
+
concept) before grep/read to locate the code and its blast radius. Read the
|
|
11
|
+
governing standards in `docs/standards/`.
|
|
6
12
|
- Clarify what the user wants (feature / fix / refactor) and confirm scope.
|
|
7
|
-
- Use `compass_explore` and `compass_find` (mode: concept) (speclaw's code index) BEFORE
|
|
8
|
-
grep/read to locate the real code the change touches and its blast radius.
|
|
9
13
|
- **Propose a ceremony level** with `lawbook_level` (mode `propose`) using the
|
|
10
|
-
paths
|
|
11
|
-
writing artifacts. For an obvious one-liner,
|
|
12
|
-
|
|
13
|
-
frontend, testing) so the change complies with the project's law.
|
|
14
|
+
paths and symbols from the brief or from that locate pass; **confirm with the
|
|
15
|
+
human** (mode `set`) before writing artifacts. For an obvious one-liner,
|
|
16
|
+
offer `speclaw quick` instead.
|
|
14
17
|
|
|
15
18
|
Next: read `steps/03-name-capabilities.md` and do only what it says.
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
# Summarize
|
|
2
2
|
|
|
3
|
-
Produce a
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Produce a brief the planner can use as the code map. Include only these fields:
|
|
4
|
+
|
|
5
|
+
- symbols, each with its file
|
|
6
|
+
- callers and callees
|
|
7
|
+
- blast radius
|
|
8
|
+
- standards in `docs/standards/` already read
|
|
9
|
+
- recommended approach
|
|
10
|
+
- open questions
|
|
11
|
+
- gaps: the phrase "nothing unresolved", or each symbol that is still unresolved
|
|
12
|
+
|
|
13
|
+
When the direction is clear, offer to `draft` the change.
|
|
6
14
|
|
|
7
15
|
No further steps remain — explore workflow complete.
|