@alterset/alterspec-client 0.4.4 → 0.4.5
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 +4 -0
- package/agent-instructions.md +32 -0
- package/developer-guide.md +3 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -80,6 +80,10 @@ npx @alterset/alterspec-client key
|
|
|
80
80
|
|
|
81
81
|
The dispatcher's tools appear in the next Claude Code session started in the repository.
|
|
82
82
|
|
|
83
|
+
`init` doesn't touch your `CLAUDE.md`. So that Claude knows where the export is and how to treat it outside the
|
|
84
|
+
skills too, copy the block in [`agent-instructions.md`](agent-instructions.md) (in this package) into your agent's
|
|
85
|
+
instructions, wherever you keep them.
|
|
86
|
+
|
|
83
87
|
## Working day
|
|
84
88
|
|
|
85
89
|
You talk to Claude Code; the skills call the dispatcher and the CLI for you.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Instructions for your coding agent
|
|
2
|
+
|
|
3
|
+
The client's skills tell Claude how to use the export while one of them runs. Outside a skill (ordinary coding in
|
|
4
|
+
the repository, a review, a session after its context was summarised) the agent knows only what your own instructions
|
|
5
|
+
say. Copy the block below into them: `CLAUDE.md`, a file under `.claude/`, `AGENTS.md` or wherever your team keeps
|
|
6
|
+
them. Replace `<export>` with the path of your export clone (`export` in `.alterspec-client.json`), and change the
|
|
7
|
+
wording to suit your team.
|
|
8
|
+
|
|
9
|
+
The export's own `README.md` explains how the export is laid out and how to read it; it is written by the same
|
|
10
|
+
alterspec version as the export, so it is always the right description of that export. This block only points there.
|
|
11
|
+
|
|
12
|
+
```markdown
|
|
13
|
+
## Product spec
|
|
14
|
+
|
|
15
|
+
The product spec is in `<export>/`, an alterspec export: the signed-off spec, in business terms only. Before you
|
|
16
|
+
work from it, read its `README.md` (at least "How to read the spec" and "For coding agents").
|
|
17
|
+
|
|
18
|
+
- Treat it as the requirements. Build what it says, nothing it doesn't say. Technology, architecture, data storage
|
|
19
|
+
and APIs are ours to decide; the spec never decides them.
|
|
20
|
+
- Never edit, commit or switch branches in `<export>/`; the alterspec client pulls it.
|
|
21
|
+
- Look objects up by ID: the file names are the IDs (`modules/*/capabilities/CAP-….md`, `entities/ENT-….md`), and
|
|
22
|
+
`export.json` lists every object with its file. Read only the part you need: `_shards/` holds every document cut
|
|
23
|
+
by section and every collection by item.
|
|
24
|
+
- Reference spec IDs (CAP-…, RULE-…, CAP-…-AC-NN) in test names and comments where code implements them. Write one
|
|
25
|
+
test per acceptance criterion, named by its ID.
|
|
26
|
+
- Take rule messages, labels and states word for word from the spec and the screens' experience contracts.
|
|
27
|
+
- The mockups in `experience/*/mockups/` are the agreed look and behaviour; don't copy their code.
|
|
28
|
+
- If the spec is silent, ambiguous or contradicts itself or the code, stop and ask, naming the IDs involved. Never
|
|
29
|
+
fill a gap with an invented business rule.
|
|
30
|
+
- Work on a task goes through the alterspec skills (`/alterspec-task-context`); every commit of a task carries the
|
|
31
|
+
trailers they describe.
|
|
32
|
+
```
|
package/developer-guide.md
CHANGED
|
@@ -209,6 +209,9 @@ objects, so the worktrees don't conflict.
|
|
|
209
209
|
- **Only you move your task on.** Going away for a while? Release it. An admin can force a release only when you are
|
|
210
210
|
gone, and that is logged.
|
|
211
211
|
- **Keep the client current.** Run `init` again now and then (or when your admin says so); it updates the skills.
|
|
212
|
+
- **Tell Claude about the spec outside the skills too.** The skills explain the export only while they run. Copy the
|
|
213
|
+
block in [`agent-instructions.md`](agent-instructions.md) (in this package) into your `CLAUDE.md` or wherever you
|
|
214
|
+
keep your agent's instructions, with your export clone's path.
|
|
212
215
|
|
|
213
216
|
## When something goes wrong
|
|
214
217
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alterset/alterspec-client",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "The alterspec client: takes tasks of an alterspec export from the dispatcher into a developer's repository.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Alterset d.o.o.",
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"files": [
|
|
34
34
|
"dist",
|
|
35
35
|
"assets",
|
|
36
|
-
"developer-guide.md"
|
|
36
|
+
"developer-guide.md",
|
|
37
|
+
"agent-instructions.md"
|
|
37
38
|
],
|
|
38
39
|
"engines": {
|
|
39
40
|
"node": ">=20"
|