@we-scrum/cli 6.11.3 → 6.11.20
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 +58 -0
- package/dist/cli.js +287 -80
- package/package.json +6 -5
- package/src/cli.ts +4 -0
- package/src/commands/analysis.ts +53 -0
- package/src/commands/index.ts +2 -0
- package/src/commands/policy.ts +40 -2
- package/src/commands/story.ts +0 -10
- package/src/commands/task-type.ts +24 -0
- package/src/hbs.d.ts +5 -0
- package/src/helpers/change-hint.helper.ts +59 -0
- package/src/helpers/index.ts +1 -0
- package/src/helpers/project-helper.ts +7 -5
- package/src/helpers/template.helper.ts +6 -2
- package/src/helpers/we-scrum.helper.ts +207 -11
- package/src/utils/index.ts +1 -0
- package/src/utils/read-content.ts +11 -0
- package/templates/analyse-story-skill.hbs +197 -0
- package/templates/analysis-dsl.md +218 -0
- package/templates/analysis-review-criteria.hbs +22 -0
- package/templates/get-next-task.hbs +1 -1
- package/templates/review-analysis-skill.hbs +4 -25
- package/templates/analysis-dsl-legend.hbs +0 -10
package/README.md
CHANGED
|
@@ -28,12 +28,28 @@ we-scrum use-project --projectId <id> # Set project directly
|
|
|
28
28
|
|
|
29
29
|
The selected project is persisted in `~/.we-scrum.json` and used by all subsequent commands.
|
|
30
30
|
|
|
31
|
+
### Claude Code skills
|
|
32
|
+
|
|
33
|
+
When the project has a `.claude` folder, the CLI installs these skills in `.claude/skills/` (during `use-project`, then after each CLI version change):
|
|
34
|
+
|
|
35
|
+
| Skill | Purpose |
|
|
36
|
+
|---|---|
|
|
37
|
+
| `/analyse-story <id>` | Write or revise the analysis of a story, change by change, and apply the requests left in the change threads |
|
|
38
|
+
| `/review-analysis <id>` | Review the analysis of a story and post the findings as change threads |
|
|
39
|
+
| `/develop-story <id>` | Implement the tasks of a story one by one |
|
|
40
|
+
|
|
41
|
+
The syntax of an analysis is documented in a single reference file, installed in `.claude/skills/analyse-story/analysis-dsl.md` for developers and Claude Code ([source](templates/analysis-dsl.md)).
|
|
42
|
+
|
|
31
43
|
### Guidelines
|
|
32
44
|
|
|
33
45
|
```bash
|
|
34
46
|
we-scrum synchronize-guidelines # Sync guidelines from we-scrum into the project (alias: synchronize-development-policies)
|
|
47
|
+
we-scrum get-analysis-guidelines # List the analysis guidelines: change type, matching rules and synchronized file
|
|
48
|
+
we-scrum get-analysis-guidelines --changeType <Object|Route|Enumeration|Handler|OpenTask> [criteria] # Find the guideline matching a change
|
|
35
49
|
```
|
|
36
50
|
|
|
51
|
+
The criteria options are `--taskType <name>`, `--objectName <name>`, `--routeMethod <method>` and `--relationObjects <a,b,c>`.
|
|
52
|
+
|
|
37
53
|
### Story analysis
|
|
38
54
|
|
|
39
55
|
```bash
|
|
@@ -41,6 +57,23 @@ we-scrum get-story-description --identificationNumber <id> # Get the descripti
|
|
|
41
57
|
we-scrum get-story-analysis --identificationNumber <id> # Get the analysis DSL for a story
|
|
42
58
|
```
|
|
43
59
|
|
|
60
|
+
`get-story-analysis` appends read-only hint lines to the change descriptions: their threads and the paths of their analysis, development and unit tests guidelines.
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
we-scrum update-story-analysis --identificationNumber <id> [--content <dsl>] # Create or update one change
|
|
64
|
+
we-scrum reorganize-story-analysis --identificationNumber <id> [--content <content>] # Sort sections and changes
|
|
65
|
+
we-scrum delete-change --changeId <changeId> # Delete one change
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Without `--content`, the content is read from stdin. `update-story-analysis` accepts exactly one change, removes the hint lines and prints the id of the change. See the [DSL reference](templates/analysis-dsl.md) for both formats.
|
|
69
|
+
|
|
70
|
+
### Task types
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
we-scrum get-task-types # List the task types, the exact names to use in an OpenTask header
|
|
74
|
+
we-scrum get-task-type-template --name <name> # Print the template of a task type
|
|
75
|
+
```
|
|
76
|
+
|
|
44
77
|
### Story development
|
|
45
78
|
|
|
46
79
|
```bash
|
|
@@ -87,6 +120,31 @@ Clears the breakpoint so development can resume. The id is included in the `get-
|
|
|
87
120
|
we-scrum update-iteration --name <name> [--capacity <capacity>] [--comment <comment>] [--startDate <date>] [--endDate <date>]
|
|
88
121
|
```
|
|
89
122
|
|
|
123
|
+
## Writing analysis guidelines
|
|
124
|
+
|
|
125
|
+
This section is for tech leads. Analysis guidelines are written in the we-scrum web app and followed by `analyse-story` and `review-analysis`. The following structure is a suggestion, it is not enforced:
|
|
126
|
+
|
|
127
|
+
```markdown
|
|
128
|
+
## Required information
|
|
129
|
+
What must be known to write the change (e.g. who can call the route, the expected volume).
|
|
130
|
+
|
|
131
|
+
## Questions to ask when it is missing
|
|
132
|
+
The questions Claude Code opens as a thread on the change, instead of guessing.
|
|
133
|
+
|
|
134
|
+
## Naming rules
|
|
135
|
+
How to name the objects, properties, routes, handlers.
|
|
136
|
+
|
|
137
|
+
## Example
|
|
138
|
+
One good change, written in the analysis DSL.
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
An analysis guideline differs from a task type template:
|
|
142
|
+
|
|
143
|
+
| | Task type template | Analysis guideline |
|
|
144
|
+
|---|---|---|
|
|
145
|
+
| Defines | The shape of an `OpenTask` description | The content and decisions required |
|
|
146
|
+
| Applies to | The `OpenTask` changes of one task type | Any change type, according to the matching rules, or the whole analysis |
|
|
147
|
+
|
|
90
148
|
## Requirements
|
|
91
149
|
|
|
92
150
|
- Node.js 22+
|