@weave-tools/weave-it 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +868 -0
- package/dist/cli.d.ts +5 -0
- package/dist/cli.js +4538 -0
- package/dist/cli.js.map +1 -0
- package/package.json +65 -0
- package/templates/opencode/commands/weave-architect.md +7 -0
- package/templates/opencode/commands/weave-capture.md +7 -0
- package/templates/opencode/commands/weave-clarify.md +7 -0
- package/templates/opencode/commands/weave-execute.md +7 -0
- package/templates/opencode/commands/weave-explore.md +7 -0
- package/templates/opencode/commands/weave-issues.md +7 -0
- package/templates/opencode/commands/weave-knowledge.md +7 -0
- package/templates/opencode/commands/weave-new.md +7 -0
- package/templates/opencode/commands/weave-next.md +7 -0
- package/templates/opencode/commands/weave-prd.md +7 -0
- package/templates/opencode/commands/weave-prepare.md +7 -0
- package/templates/skills/weave-architect/SKILL.md +291 -0
- package/templates/skills/weave-architect/api-contract-template.md +21 -0
- package/templates/skills/weave-architect/frontend-backend-template.md +21 -0
- package/templates/skills/weave-architect/index-template.md +24 -0
- package/templates/skills/weave-architect/schema-template.md +21 -0
- package/templates/skills/weave-capture/SKILL.md +398 -0
- package/templates/skills/weave-clarify/SKILL.md +513 -0
- package/templates/skills/weave-execute/SKILL.md +215 -0
- package/templates/skills/weave-explore/SKILL.md +434 -0
- package/templates/skills/weave-issues/SKILL.md +441 -0
- package/templates/skills/weave-knowledge/SKILL.md +161 -0
- package/templates/skills/weave-knowledge/knowledge-templates.md +63 -0
- package/templates/skills/weave-new/SKILL.md +76 -0
- package/templates/skills/weave-next/SKILL.md +216 -0
- package/templates/skills/weave-prd/SKILL.md +419 -0
- package/templates/skills/weave-prd/prd-template.md +186 -0
- package/templates/skills/weave-prepare/SKILL.md +94 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: weave-new
|
|
3
|
+
description: Start a new Weave change exploration from a title or topic. Use when the user wants to begin capturing a change under wiki/changes and create the matching change branch.
|
|
4
|
+
last_changed_in: 0.1.0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Purpose
|
|
8
|
+
|
|
9
|
+
Start a new Weave change exploration.
|
|
10
|
+
|
|
11
|
+
Use this when the user is starting from a title or topic, not when they are already deep in a discussion. For an existing discussion, prefer `weave-capture`.
|
|
12
|
+
|
|
13
|
+
# Workflow
|
|
14
|
+
|
|
15
|
+
1. Run:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
weave workspace --json
|
|
19
|
+
weave change current
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
2. Identify the current workspace or repo context from `weave workspace --json`. In workspace mode, the workspace root owns the change store even if implementation later touches registered sub-repos.
|
|
23
|
+
|
|
24
|
+
3. Run:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
weave change new "<title>"
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Use `--type <type>` when the work is not a new capability. Supported values are `feat`, `fix`, `refactor`, `docs`, `test`, `ci`, and `chore`.
|
|
31
|
+
|
|
32
|
+
Use `--slug <slug>` only when the user requested a specific folder or branch slug.
|
|
33
|
+
|
|
34
|
+
4. Report the change id, resolved workspace/repo context, branch status, and that the new change is now current.
|
|
35
|
+
|
|
36
|
+
# Behavior Rules
|
|
37
|
+
|
|
38
|
+
- The CLI owns change id generation, folder creation, status metadata, and git branch creation.
|
|
39
|
+
- The created branch is `change/{change-id}`.
|
|
40
|
+
- Do not create `prd.md`.
|
|
41
|
+
- For `feat` changes, the CLI scaffolds `exploration.md` and starts at `stage: exploration`; treat `exploration.md` as the first artifact.
|
|
42
|
+
- For non-feature changes (`fix`, `refactor`, `docs`, `test`, `ci`, `chore`), the CLI does not scaffold `exploration.md` and starts at `stage: started`. The first real artifact is created later by the fitting skill: `weave-architect` for diagnosis or RCA, `weave-issues` when the work is already clear, or `weave-prd`/`weave-explore` only when expected behavior is unclear.
|
|
43
|
+
- After creating a `feat` change, suggest the user go into plan mode and use `weave-explore` to explore the discussion; do not do any product discovery yourself using this skill. After creating a non-feature change, recommend the fitting next skill instead of `weave-explore`.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
# Silent Weave Command Output
|
|
48
|
+
|
|
49
|
+
Weave skills run Weave CLI commands silently by default. Use command results
|
|
50
|
+
as internal context, not response content.
|
|
51
|
+
|
|
52
|
+
Do not show raw stdout, JSON payloads, command echoes, lifecycle payloads,
|
|
53
|
+
internal state-write confirmations, or verbatim notice text unless the user
|
|
54
|
+
explicitly asks for diagnostic output.
|
|
55
|
+
|
|
56
|
+
Surface only information that changes what the user or agent should do next:
|
|
57
|
+
blockers, failures, missing relevant repos, branch or task outcomes,
|
|
58
|
+
lifecycle failures, package-outdated notices, relevant outdated or modified
|
|
59
|
+
skills, and user-required actions.
|
|
60
|
+
|
|
61
|
+
Notice handling:
|
|
62
|
+
|
|
63
|
+
- `package_outdated`: show only when present. Say exactly:
|
|
64
|
+
`A newer Weave version is available. Run \`weave status\` for details, then upgrade Weave when convenient.`
|
|
65
|
+
- `skills_outdated`: suppress unrelated skills. If the invoked skill is outdated, say:
|
|
66
|
+
`The installed \`<skill-name>\` skill appears older than the bundled template. Run \`weave status\` for details, then \`weave agent update --all\` when you want to refresh installed skills.`
|
|
67
|
+
- `skills_outdated`: if multiple skills used in this workflow are outdated, say:
|
|
68
|
+
`Some installed skills used in this workflow appear older than the bundled templates: \`<skill-a>\`, \`<skill-b>\`. Run \`weave status\` for details, then \`weave agent update --all\` when you want to refresh them.`
|
|
69
|
+
- `skills_modified`: suppress unless the invoked skill is modified locally or the user is asking about skill updates. If the invoked skill is modified, say:
|
|
70
|
+
`The installed \`<skill-name>\` skill has local edits, so its behavior may differ from the bundled template. Run \`weave status\` or \`weave agent diff\` if you want to inspect the difference.`
|
|
71
|
+
- `skills_modified`: if the user asks to update skills and installed skills have local edits, say:
|
|
72
|
+
`Some installed skills have local edits. \`weave agent update\` may skip or protect them; run \`weave status\` or \`weave agent diff\` before updating.`
|
|
73
|
+
|
|
74
|
+
Do not say `Notices: ...`, `The command returned notices`, raw
|
|
75
|
+
`notices[].message`, full notice JSON, or full skill lists unless the user
|
|
76
|
+
asks for diagnostics.
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: weave-next
|
|
3
|
+
description: Answer what to do next for the active Weave change by inspecting artifact state, current artifact context, and resume notes without mutating files.
|
|
4
|
+
last_changed_in: 0.1.0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Weave Next
|
|
8
|
+
|
|
9
|
+
Use this skill when the user wants to know what command to run next for an active Weave change.
|
|
10
|
+
|
|
11
|
+
`weave-next` is read-only advisory. It orients the user; it does not perform the recommended work.
|
|
12
|
+
|
|
13
|
+
# Behavior Rules
|
|
14
|
+
|
|
15
|
+
- Do not require Plan Mode.
|
|
16
|
+
- Do not write repo-tracked artifacts.
|
|
17
|
+
- Do not create, revise, capture, approve, or advance artifacts.
|
|
18
|
+
- Do not set or clear artifact context.
|
|
19
|
+
- Do not invoke or delegate to `weave-explore`, `weave-prd`, `weave-architect`, `weave-issues`, `weave-knowledge`, `weave-capture`, or `weave-clarify`.
|
|
20
|
+
- Do not document or rely on formal target arguments such as `weave-next prd` in v1.
|
|
21
|
+
- Use live artifacts as canonical current truth.
|
|
22
|
+
- Use session notes only for resume points, rationale, unresolved context, and newer explicit user decisions.
|
|
23
|
+
- Mention `weave-capture` only as an optional checkpoint when there is useful current discussion context to preserve.
|
|
24
|
+
|
|
25
|
+
# Resolve Context
|
|
26
|
+
|
|
27
|
+
Start by discovering the current Weave session:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
weave workspace --json
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Resolve the active change for the current cwd-dispatched workspace or repo context:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
weave change current --json
|
|
37
|
+
weave change status --json
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Inspect current artifact context when available:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
weave artifact current --json
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
If `weave artifact current --json` is unavailable or fails, continue from active change and artifact state. In the output, say that no valid current artifact context was available.
|
|
47
|
+
|
|
48
|
+
If no active change exists, stop and say:
|
|
49
|
+
|
|
50
|
+
```text
|
|
51
|
+
No active Weave change found. Run `weave change new` or `weave change switch`, then run `weave-next` again.
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
# Scope
|
|
55
|
+
|
|
56
|
+
Inspect only the resolved workspace or repo context whose current change matches the active change.
|
|
57
|
+
|
|
58
|
+
Do not summarize unrelated repos from the same Weave session. In workspace mode, treat registered sub-repos as implementation locations inside the single workspace change context, not as separate artifact targets.
|
|
59
|
+
|
|
60
|
+
If the current branch does not match the active change branch, include that branch mismatch before recommending the next command.
|
|
61
|
+
|
|
62
|
+
# Required Read Order
|
|
63
|
+
|
|
64
|
+
For the active change, read live artifacts first:
|
|
65
|
+
|
|
66
|
+
```text
|
|
67
|
+
wiki/changes/<change-id>/status.yml
|
|
68
|
+
wiki/changes/<change-id>/exploration.md
|
|
69
|
+
wiki/changes/<change-id>/prd.md
|
|
70
|
+
wiki/changes/<change-id>/architecture.md
|
|
71
|
+
wiki/changes/<change-id>/architecture/index.md
|
|
72
|
+
wiki/changes/<change-id>/architecture/*.md
|
|
73
|
+
wiki/changes/<change-id>/tasks.md
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Architecture may be legacy file mode or folder mode. If `architecture/` exists, treat `architecture/index.md` as the entry point and direct child facet files as part of the architecture lane. If both `architecture.md` and `architecture/` exist, mention the conflict before recommending the next step.
|
|
77
|
+
|
|
78
|
+
Then read relevant recent session notes newest-first:
|
|
79
|
+
|
|
80
|
+
```text
|
|
81
|
+
wiki/changes/<change-id>/sessions/*-exploration.md
|
|
82
|
+
wiki/changes/<change-id>/sessions/*-prd.md
|
|
83
|
+
wiki/changes/<change-id>/sessions/*-architecture.md
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Prefer the latest relevant `## Next Resume Point` for resume guidance. Avoid a full history audit unless the latest notes are ambiguous or conflict with live artifacts.
|
|
87
|
+
|
|
88
|
+
If a session note conflicts with the live artifact, prefer the live artifact unless the latest session records an explicit newer user decision.
|
|
89
|
+
|
|
90
|
+
# Artifact State Signals
|
|
91
|
+
|
|
92
|
+
Classify each artifact conservatively.
|
|
93
|
+
|
|
94
|
+
Treat an artifact as missing when its file or folder shape does not exist.
|
|
95
|
+
|
|
96
|
+
Treat an artifact as not usable when it is blank, whitespace-only, scaffold-only with headings but no substantive content, or explicitly marked not ready for the next lane.
|
|
97
|
+
|
|
98
|
+
For `exploration.md`, use `PRD Readiness` when present:
|
|
99
|
+
|
|
100
|
+
- `Ready` means the exploration can support PRD work.
|
|
101
|
+
- `Not ready` means recommend exploration work before PRD work.
|
|
102
|
+
|
|
103
|
+
For `prd.md`, open product questions or unresolved PRD session context can make PRD resume work primary even when architecture exists.
|
|
104
|
+
|
|
105
|
+
For the architecture artifact, open technical questions, unresolved architecture session context, missing folder index, or substantive facet-only context can make architecture resume work primary before issues.
|
|
106
|
+
|
|
107
|
+
For issue evidence, use conservative v1 heuristics only:
|
|
108
|
+
|
|
109
|
+
- populated `tasks.md`
|
|
110
|
+
- obvious issue URLs in artifacts
|
|
111
|
+
- `#123`-style issue references in artifacts
|
|
112
|
+
|
|
113
|
+
Do not treat an empty or scaffold-only `tasks.md` as issue breakdown evidence.
|
|
114
|
+
|
|
115
|
+
# Recommendation Rules
|
|
116
|
+
|
|
117
|
+
Source-aware stale-first recommendation:
|
|
118
|
+
|
|
119
|
+
- If `status.yml.stale` contains one or more lanes, recommend refreshing stale lanes before forward progress.
|
|
120
|
+
- stale `prd` -> run `weave-prd`
|
|
121
|
+
- stale `architecture` -> run `weave-architect`
|
|
122
|
+
- stale `issues` -> run `weave-issues`
|
|
123
|
+
- Explain which upstream lane invalidated the recommendation when `invalidated_by` is present.
|
|
124
|
+
- Treat stale entries as source-aware dependency invalidation from `status.yml.artifacts`, not proof that every earlier pipeline lane was completed.
|
|
125
|
+
|
|
126
|
+
Knowledge freshness recommendation:
|
|
127
|
+
|
|
128
|
+
- If `status.yml.knowledge.status` is `pending`, recommend `weave-knowledge` after any stale artifact lanes are resolved.
|
|
129
|
+
- If `status.yml.knowledge.status` is `stale`, recommend `weave-knowledge` after the invalidating upstream context is resolved.
|
|
130
|
+
- If knowledge was previously `updated` or `none` and artifact stale lanes exist afterward, report knowledge as effectively stale without writing `status.yml`.
|
|
131
|
+
- Explain that `weave-next` is read-only and does not mutate knowledge status.
|
|
132
|
+
|
|
133
|
+
Type-aware forward recommendation:
|
|
134
|
+
|
|
135
|
+
- missing, scaffold-only, or not-ready `exploration.md` -> run `weave-explore`
|
|
136
|
+
- ready `exploration.md` plus missing `prd.md` -> run `weave-prd`
|
|
137
|
+
- usable `prd.md` plus missing `architecture.md` -> run `weave-architect`
|
|
138
|
+
- usable `architecture.md` plus no issue evidence -> run `weave-issues`
|
|
139
|
+
- populated `tasks.md` or obvious issue references -> implementation handoff ready
|
|
140
|
+
- For `fix`, `refactor`, `docs`, `test`, `ci`, and `chore`, prefer architecture or issues when product behavior is already clear; do not require PRD just to advance.
|
|
141
|
+
- For `feat`, prefer exploration or PRD when product behavior, scope, requirements, or acceptance remain unclear.
|
|
142
|
+
|
|
143
|
+
Resume recommendation:
|
|
144
|
+
|
|
145
|
+
- valid current artifact context `exploration` with unresolved resume work -> run `weave-explore`
|
|
146
|
+
- valid current artifact context `prd` with unresolved resume work -> run `weave-prd`
|
|
147
|
+
- valid current artifact context `architecture` with unresolved resume work -> run `weave-architect`
|
|
148
|
+
|
|
149
|
+
When resume and forward recommendations differ, make the resume command primary and show the forward recommendation as `Alternate Pipeline Step`.
|
|
150
|
+
|
|
151
|
+
When there is no valid resume context, make the type-aware recommendation primary.
|
|
152
|
+
|
|
153
|
+
# Output Format
|
|
154
|
+
|
|
155
|
+
Use these headings when relevant and keep them easy to scan:
|
|
156
|
+
|
|
157
|
+
```text
|
|
158
|
+
Current Change
|
|
159
|
+
Artifact State
|
|
160
|
+
Resume Context
|
|
161
|
+
Recommended Next Step
|
|
162
|
+
Alternate Pipeline Step
|
|
163
|
+
Reason
|
|
164
|
+
Optional Checkpoint
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Omit empty sections when they would add noise.
|
|
168
|
+
|
|
169
|
+
In `Current Change`, include change id, title when available, target repo or repos, and branch health.
|
|
170
|
+
|
|
171
|
+
In `Artifact State`, summarize `exploration.md`, `prd.md`, `architecture.md`, and issue/task evidence.
|
|
172
|
+
|
|
173
|
+
In `Artifact State`, also summarize knowledge status when `status.yml.knowledge` is present.
|
|
174
|
+
|
|
175
|
+
In `Resume Context`, include current artifact context and the latest relevant `Next Resume Point` when present.
|
|
176
|
+
|
|
177
|
+
In `Recommended Next Step`, name exactly one primary command or say implementation handoff is ready.
|
|
178
|
+
|
|
179
|
+
In `Alternate Pipeline Step`, show the next forward command only when it differs from the resume recommendation.
|
|
180
|
+
|
|
181
|
+
In `Reason`, explain the decisive signals briefly.
|
|
182
|
+
|
|
183
|
+
In `Optional Checkpoint`, mention `weave-capture` only when there is useful discussion context to preserve.
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
# Silent Weave Command Output
|
|
188
|
+
|
|
189
|
+
Weave skills run Weave CLI commands silently by default. Use command results
|
|
190
|
+
as internal context, not response content.
|
|
191
|
+
|
|
192
|
+
Do not show raw stdout, JSON payloads, command echoes, lifecycle payloads,
|
|
193
|
+
internal state-write confirmations, or verbatim notice text unless the user
|
|
194
|
+
explicitly asks for diagnostic output.
|
|
195
|
+
|
|
196
|
+
Surface only information that changes what the user or agent should do next:
|
|
197
|
+
blockers, failures, missing relevant repos, branch or task outcomes,
|
|
198
|
+
lifecycle failures, package-outdated notices, relevant outdated or modified
|
|
199
|
+
skills, and user-required actions.
|
|
200
|
+
|
|
201
|
+
Notice handling:
|
|
202
|
+
|
|
203
|
+
- `package_outdated`: show only when present. Say exactly:
|
|
204
|
+
`A newer Weave version is available. Run \`weave status\` for details, then upgrade Weave when convenient.`
|
|
205
|
+
- `skills_outdated`: suppress unrelated skills. If the invoked skill is outdated, say:
|
|
206
|
+
`The installed \`<skill-name>\` skill appears older than the bundled template. Run \`weave status\` for details, then \`weave agent update --all\` when you want to refresh installed skills.`
|
|
207
|
+
- `skills_outdated`: if multiple skills used in this workflow are outdated, say:
|
|
208
|
+
`Some installed skills used in this workflow appear older than the bundled templates: \`<skill-a>\`, \`<skill-b>\`. Run \`weave status\` for details, then \`weave agent update --all\` when you want to refresh them.`
|
|
209
|
+
- `skills_modified`: suppress unless the invoked skill is modified locally or the user is asking about skill updates. If the invoked skill is modified, say:
|
|
210
|
+
`The installed \`<skill-name>\` skill has local edits, so its behavior may differ from the bundled template. Run \`weave status\` or \`weave agent diff\` if you want to inspect the difference.`
|
|
211
|
+
- `skills_modified`: if the user asks to update skills and installed skills have local edits, say:
|
|
212
|
+
`Some installed skills have local edits. \`weave agent update\` may skip or protect them; run \`weave status\` or \`weave agent diff\` before updating.`
|
|
213
|
+
|
|
214
|
+
Do not say `Notices: ...`, `The command returned notices`, raw
|
|
215
|
+
`notices[].message`, full notice JSON, or full skill lists unless the user
|
|
216
|
+
asks for diagnostics.
|