slicekit 0.6.0 → 0.6.1
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 +132 -216
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,116 @@
|
|
|
1
|
-
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
A closed-loop framework for spec-driven development with coding agents.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/slicekit)
|
|
6
|
+
[](https://github.com/adityapandya1/agentic-slicekit/actions/workflows/slicekit.yml)
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
|
|
9
|
+
## Why
|
|
10
|
+
|
|
11
|
+
Most agent workflows add control through prompts and rule files, and the agent can skip both.
|
|
12
|
+
slicekit checks each step outside the agent: its CLI runs git and refuses a step out of order, its
|
|
13
|
+
hooks refuse an edit to a frozen test and check the spec each time the agent finishes a turn, and
|
|
14
|
+
CI runs the same checks on every pull request.
|
|
15
|
+
|
|
16
|
+
## See it in action
|
|
17
|
+
|
|
18
|
+
The steps of a Claude Code session, from the requirement document to the release. Under each slash
|
|
19
|
+
command are lines the kit's commands print for it, taken from two sources named below the block, so
|
|
20
|
+
the pull request numbers and hosts differ between steps.
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
> /slicekit intake brief/orders.md
|
|
24
|
+
⎿ docs/intake/2026-10-31-orders.md
|
|
25
|
+
D-02
|
|
26
|
+
open: D-09 Which payment provider do refunds go through?
|
|
27
|
+
|
|
28
|
+
> /slicekit specify
|
|
29
|
+
⎿ #12 https://github.com/acme/orders/pull/12
|
|
30
|
+
|
|
31
|
+
> /slicekit gaps
|
|
32
|
+
⎿ G-3 unknown D-09 is open: Which payment provider do refunds go through?
|
|
33
|
+
D-09
|
|
34
|
+
G-3 closed by D-09
|
|
35
|
+
ready: gap-scan
|
|
36
|
+
|
|
37
|
+
> /slicekit plan
|
|
38
|
+
⎿ ready to plan
|
|
39
|
+
D-14
|
|
40
|
+
BUILD.md updated
|
|
41
|
+
|
|
42
|
+
> /slicekit build P1/S-01
|
|
43
|
+
⎿ tests-red → building
|
|
44
|
+
#1 https://example.test/pull/1
|
|
45
|
+
next: ci
|
|
46
|
+
rounds: 1 of 2
|
|
47
|
+
ci-green
|
|
48
|
+
ready: waiting for an independent review; run /slicekit review 1 in a new session
|
|
49
|
+
|
|
50
|
+
> /slicekit review 1
|
|
51
|
+
⎿ round 2
|
|
52
|
+
verdict …/.slicekit/reviews/P1-S-01i-r2.md
|
|
53
|
+
next: ci
|
|
54
|
+
ci-green
|
|
55
|
+
ready
|
|
56
|
+
|
|
57
|
+
> /slicekit release P1
|
|
58
|
+
⎿ docs/releases/P1.md
|
|
59
|
+
released P1/S-01
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Intake, specify, gaps, plan and release lines are from the examples on the guide's command pages:
|
|
63
|
+
intake from `intake`, specify from `pr`, gaps from `gaps` and `decide`, plan from `plan`,
|
|
64
|
+
`decide` and the `--write` option of `status`, release from `release`. Build and review lines are from the
|
|
65
|
+
walkthrough on `examples/backend`, except the review's `verdict` line: it is the verdict file that
|
|
66
|
+
`review start` prints, with the path shortened from the left to `…/`.
|
|
67
|
+
|
|
68
|
+
## What it covers
|
|
69
|
+
|
|
70
|
+
| Stage | Command | What you get |
|
|
71
|
+
|---|---|---|
|
|
72
|
+
| Any | `/slicekit` | any procedure below by name, for example `/slicekit build` |
|
|
73
|
+
| Intake | `/slicekit intake` | a frozen snapshot of the requirement document and one decision row per answer |
|
|
74
|
+
| Specify | `/slicekit specify` | spec files in which every requirement cites its source, and the spec pull request |
|
|
75
|
+
| Gaps | `/slicekit gaps` | each place the spec is silent, vague or in conflict with the intake, asked about and closed |
|
|
76
|
+
| Plan | `/slicekit plan` | the stack, the phases and the slice files, and the plan pull request |
|
|
77
|
+
| Build | `/slicekit build` | one slice from failing tests to a pull request with a verdict and green CI |
|
|
78
|
+
| Review | `/slicekit review` | an independent verdict from a session that holds no context of the build |
|
|
79
|
+
| Release | `/slicekit release` | the release record of a phase whose slices are merged, and the release pull request |
|
|
80
|
+
| Operate | `/slicekit ops` | the triage of a symptom: the slices that touched its files and the runbook's first checks |
|
|
81
|
+
| Audit | `/slicekit audit` | the claims of the spec and the runbook compared with the code, the tests and CI |
|
|
82
|
+
| Trace | `slicekit trace`, `slicekit impact`, `slicekit history`, `slicekit uncovered`, `slicekit shipped` | answers from the graph that `slicekit graph` builds from the kit's IDs and git |
|
|
83
|
+
|
|
84
|
+
## Quick start
|
|
85
|
+
|
|
86
|
+
In your project, with Node 22 or later and git:
|
|
2
87
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
88
|
+
```sh
|
|
89
|
+
npm install --save-dev slicekit
|
|
90
|
+
npx slicekit init --shape backend --name <your-project>
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Then open Claude Code in the project and type `/slicekit intake <your requirement document>`. To
|
|
94
|
+
see each step run on a sample project first, follow
|
|
95
|
+
[the ten-minute walkthrough](https://github.com/adityapandya1/agentic-slicekit/blob/main/docs/walkthrough.md)
|
|
96
|
+
from a clone of this repository.
|
|
97
|
+
|
|
98
|
+
## How it differs
|
|
7
99
|
|
|
8
|
-
|
|
100
|
+
- Prompt and rule-file workflows tell the agent what to do. slicekit refuses the step when the agent does not do it.
|
|
101
|
+
- Spec-only tools write the spec and stop. slicekit traces each requirement to its tests, commits, pull requests and releases, and checks the spec again on each turn and in CI.
|
|
102
|
+
- With no workflow, the agent's own report is the record. With slicekit the record is the state files and commits that its CLI writes, and the verdict files that the reviewer agent writes and the CLI checks and commits.
|
|
103
|
+
|
|
104
|
+
## Docs
|
|
105
|
+
|
|
106
|
+
- [The user guide](https://github.com/adityapandya1/agentic-slicekit/blob/main/docs/guide/README.md) explains the stages and has a page for every `slicekit` command, every `/slicekit` slash command and every check rule. A command's page gives its usage, what it reads and writes, its exit codes and an example. A check rule's page says what fails and the failure the rule prevents.
|
|
107
|
+
- [The ten-minute walkthrough](https://github.com/adityapandya1/agentic-slicekit/blob/main/docs/walkthrough.md) builds one slice of `examples/backend` from `todo` to `merged`.
|
|
108
|
+
- [The runbook](https://github.com/adityapandya1/agentic-slicekit/blob/main/docs/runbook.md) covers releasing the kit, rolling back a bad version on npm and debugging a hook on Windows.
|
|
109
|
+
- [docs/adapters.md](https://github.com/adityapandya1/agentic-slicekit/blob/main/docs/adapters.md) describes the contracts for anyone adding a git host, a tracker or an agent tool.
|
|
110
|
+
- [CHANGELOG.md](https://github.com/adityapandya1/agentic-slicekit/blob/main/CHANGELOG.md) lists what each version changed.
|
|
111
|
+
|
|
112
|
+
<details>
|
|
113
|
+
<summary>Status: preview</summary>
|
|
9
114
|
|
|
10
115
|
Phases 1 to 5 work. Phases 1 and 2 are intake, specify, the gap scan, plan, the build from red
|
|
11
116
|
tests to green, the review loop, the independent review and `/slicekit build --parallel`. Phase 3
|
|
@@ -17,24 +122,18 @@ cannot judge, commits to the session journal must be signed, the state change af
|
|
|
17
122
|
up as a pull request, and declined should-haves can go to Jira. Phase 5 is `release` (the release
|
|
18
123
|
record of a phase), `ops` (the triage of a symptom), `audit` (the claims of the spec and the
|
|
19
124
|
runbook against the code), observability steps in CI, and two more examples, `examples/fullstack`
|
|
20
|
-
and `examples/data`.
|
|
21
|
-
version changed.
|
|
125
|
+
and `examples/data`.
|
|
22
126
|
|
|
23
127
|
The kit is on npm as a preview from 0.1.1. Versions from 0.3.0 are published from CI, each with a
|
|
24
128
|
provenance attestation; the versions before it carry none. It needs Node 22 or later and git, and
|
|
25
|
-
it has no dependencies of its own.
|
|
26
|
-
|
|
27
|
-
```sh
|
|
28
|
-
npm install --save-dev slicekit
|
|
29
|
-
npx slicekit init --shape backend --name <your-project>
|
|
30
|
-
```
|
|
129
|
+
it has no dependencies of its own.
|
|
31
130
|
|
|
32
131
|
Each change to the kit ships as the next 0.x version, and a 0.x version may change how a command
|
|
33
132
|
works. After an upgrade, `npx slicekit update` shows what would change in each of the kit's files,
|
|
34
133
|
and `npx slicekit update --yes` writes the changes.
|
|
35
134
|
|
|
36
|
-
The walkthrough
|
|
37
|
-
holds (`examples/backend` and `examples/walkthrough`):
|
|
135
|
+
The walkthrough runs from a clone instead of an install, because it copies files only the
|
|
136
|
+
repository holds (`examples/backend` and `examples/walkthrough`):
|
|
38
137
|
|
|
39
138
|
```sh
|
|
40
139
|
git clone https://github.com/adityapandya1/agentic-slicekit
|
|
@@ -42,198 +141,10 @@ cd agentic-slicekit
|
|
|
42
141
|
node bin/slicekit.js --version
|
|
43
142
|
```
|
|
44
143
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
`docs/spec/00-overview.md` says what the kit is and why, `docs/decisions.md` holds every choice
|
|
48
|
-
made so far, and `BUILD.md` shows the order the kit is built in. The kit is built with itself.
|
|
49
|
-
|
|
50
|
-
## Walkthrough
|
|
51
|
-
|
|
52
|
-
This takes about ten minutes. It builds the one slice of `examples/backend`, P1/S-01 "Greet a name",
|
|
53
|
-
from `todo` to `merged`: red tests, green code, a review round, an independent review, green CI and
|
|
54
|
-
the merge.
|
|
55
|
-
|
|
56
|
-
In your own project you type two commands into Claude Code, `/slicekit build` and
|
|
57
|
-
`/slicekit review`, and the kit's agents write the tests, the code and the verdicts. (Each command
|
|
58
|
-
also has a file of its own, so `/slicekit-build` and `/slicekit-review` work too.) Here each step
|
|
59
|
-
is the command line that those two commands run, and the files the agents would write are copied
|
|
60
|
-
in from `examples/walkthrough`. A local bare repository stands in for GitHub's copy of the project,
|
|
61
|
-
and two fixture directories stand in for its pull requests and issues. So the walkthrough needs no
|
|
62
|
-
account, no agent and no network.
|
|
63
|
-
|
|
64
|
-
Run it from the root of your clone, in bash. On Windows, use Git Bash. The kit's own test runs these
|
|
65
|
-
blocks as written, in order, in one shell.
|
|
66
|
-
|
|
67
|
-
git needs a name and an email set (`git config --global user.name` and `user.email`), since the kit
|
|
68
|
-
makes commits. If your git signs commits, it signs these too, and may ask for your key at each of
|
|
69
|
-
them. To skip that for this run, run `export GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=commit.gpgsign GIT_CONFIG_VALUE_0=false`
|
|
70
|
-
first.
|
|
71
|
-
|
|
72
|
-
### 1. A project to build in
|
|
73
|
-
|
|
74
|
-
`KIT` is your clone. On Windows, `pwd -W` gives a path that Node can read; elsewhere it fails and
|
|
75
|
-
`pwd` is used. `WORK` is a new temporary directory for everything else.
|
|
76
|
-
|
|
77
|
-
```sh
|
|
78
|
-
KIT="$(pwd -W 2>/dev/null || pwd)"
|
|
79
|
-
WORK="$(mktemp -d)"
|
|
80
|
-
cp -R examples/backend "$WORK/greeting"
|
|
81
|
-
git init -q --bare "$WORK/origin.git"
|
|
82
|
-
mkdir "$WORK/githost" "$WORK/tracker"
|
|
83
|
-
export SLICEKIT_GITHOST_FIXTURE="$WORK/githost"
|
|
84
|
-
export SLICEKIT_TRACKER_FIXTURE="$WORK/tracker"
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
With `SLICEKIT_GITHOST_FIXTURE` set, the kit keeps pull requests as files in that directory instead
|
|
88
|
-
of calling `gh`. `SLICEKIT_TRACKER_FIXTURE` does the same for issues.
|
|
89
|
-
|
|
90
|
-
### 2. Add the kit to the project
|
|
91
|
-
|
|
92
|
-
These are the steps in `examples/backend/README.md`. `init` adds the hooks, the Claude Code
|
|
93
|
-
commands and the rest of the docs layout. `--cli` tells the hooks how to run the kit from your
|
|
94
|
-
clone. The path inside it is quoted, so a clone under a folder with a space in its name still works.
|
|
95
|
-
|
|
96
|
-
```sh
|
|
97
|
-
cd "$WORK/greeting"
|
|
98
|
-
git init -q -b main
|
|
99
|
-
git remote add origin "$WORK/origin.git"
|
|
100
|
-
node "$KIT/bin/slicekit.js" init --shape backend --cli "node \"$KIT/bin/slicekit.js\""
|
|
101
|
-
node "$KIT/bin/slicekit.js" status --write
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
The kit's git hook refuses a commit on `main` unless `ALLOW_PROTECTED_COMMIT=1` is set. This first
|
|
105
|
-
commit is the one time it is needed. On Windows, git may print warnings that LF will be replaced by
|
|
106
|
-
CRLF; they are harmless.
|
|
107
|
-
|
|
108
|
-
```sh
|
|
109
|
-
git add -A
|
|
110
|
-
ALLOW_PROTECTED_COMMIT=1 git commit -q -m "chore: slicekit init"
|
|
111
|
-
git push -q -u origin main
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
### 3. Pick the slice and start it
|
|
115
|
-
|
|
116
|
-
From here to step 6, the steps are what `/slicekit build` runs. `build next` prints the next slice
|
|
117
|
-
that is ready to build. `build start` makes its worktree and branch, and pushes the branch.
|
|
118
|
-
|
|
119
|
-
```sh
|
|
120
|
-
node "$KIT/bin/slicekit.js" build next
|
|
121
|
-
node "$KIT/bin/slicekit.js" build start P1/S-01
|
|
122
|
-
WT=.worktrees/P1-S-01
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
### 4. Red tests, then green code
|
|
126
|
-
|
|
127
|
-
In `/slicekit build` the developer agent writes the tests first. `build red` runs them, refuses
|
|
128
|
-
them unless they fail, and commits them. From then on the tests are frozen: a later commit that
|
|
129
|
-
changes them is refused.
|
|
130
|
-
|
|
131
|
-
```sh
|
|
132
|
-
mkdir -p "$WT/test"
|
|
133
|
-
cp "$KIT/examples/walkthrough/test/greet.test.js" "$KIT/examples/walkthrough/test/greet-empty.test.js" "$WT/test/"
|
|
134
|
-
node "$KIT/bin/slicekit.js" build red P1/S-01 --tests test/greet.test.js,test/greet-empty.test.js --worktree "$WT"
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
Then the developer agent writes the code. `build commit --require-green` commits it only when every
|
|
138
|
-
test passes.
|
|
144
|
+
</details>
|
|
139
145
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
cp "$KIT/examples/walkthrough/src/greet.js" "$WT/src/"
|
|
143
|
-
node "$KIT/bin/slicekit.js" build commit P1/S-01 --message "feat(P1/S-01): greet a name" --require-green --worktree "$WT"
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
### 5. The draft pull request and a review round
|
|
147
|
-
|
|
148
|
-
`build pr` runs the tests and `slicekit check`, pushes, and opens a draft pull request. It builds
|
|
149
|
-
the body from the slice file and from the notes that the developer agent reported. The last line it
|
|
150
|
-
prints is `verdict <path>`, the file the reviewer writes its verdict to.
|
|
151
|
-
|
|
152
|
-
```sh
|
|
153
|
-
node "$KIT/bin/slicekit.js" build pr P1/S-01 --notes "$KIT/examples/walkthrough/notes.json" --worktree "$WT" | tee "$WORK/pr.txt"
|
|
154
|
-
VERDICT="$(sed -n 's/^verdict //p' "$WORK/pr.txt")"
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
In `/slicekit build` the reviewer agent writes the verdict now. The copy here is an `APPROVE` with
|
|
158
|
-
no findings. Its `Head:` line names the commit it reviewed, here the worktree's head. `build verdict`
|
|
159
|
-
checks it, commits it to the branch and prints the next step, `ci`.
|
|
160
|
-
|
|
161
|
-
```sh
|
|
162
|
-
sed "s/^Head: .*/Head: $(git -C "$WT" log -1 --format=%H)/" "$KIT/examples/walkthrough/P1-S-01-r1.md" > "$VERDICT"
|
|
163
|
-
node "$KIT/bin/slicekit.js" build verdict P1/S-01 "$VERDICT" --worktree "$WT"
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
### 6. Green CI
|
|
167
|
-
|
|
168
|
-
On GitHub, CI reports on each push by itself. Here `host.js ci` records a green run on the pull
|
|
169
|
-
request's head. `build finish` waits for CI and, on green, records `ci-green` and pushes that
|
|
170
|
-
record. It then prints `ready: waiting for an independent review`: a second session must review the
|
|
171
|
-
slice before the merge. The push made a new head, so CI reports again.
|
|
172
|
-
|
|
173
|
-
```sh
|
|
174
|
-
node "$KIT/examples/walkthrough/host.js" ci 1 success
|
|
175
|
-
node "$KIT/bin/slicekit.js" build finish P1/S-01 --worktree "$WT"
|
|
176
|
-
node "$KIT/examples/walkthrough/host.js" ci 1 success
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
### 7. The independent review
|
|
180
|
-
|
|
181
|
-
This is what `/slicekit review 1` runs, in a new Claude Code session. `review start` checks out the
|
|
182
|
-
pull request's head in a fresh worktree, `.worktrees/review-P1-S-01`, and prints the slice, the
|
|
183
|
-
worktree, the round and the verdict path.
|
|
184
|
-
|
|
185
|
-
```sh
|
|
186
|
-
node "$KIT/bin/slicekit.js" review start 1 | tee "$WORK/review.txt"
|
|
187
|
-
VERDICT="$(sed -n 's/^verdict //p' "$WORK/review.txt")"
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
The independent reviewer's verdict is round 2, also an `APPROVE`. `build verdict --independent`
|
|
191
|
-
commits it in the review worktree and pushes it. CI reports on that new head. It still prints
|
|
192
|
-
`rounds: 1 of 2`: round 2 counts all of the slice's verdicts, while `rounds` counts only the two
|
|
193
|
-
review rounds inside `/slicekit build`, and the independent review uses neither of them.
|
|
194
|
-
|
|
195
|
-
```sh
|
|
196
|
-
sed "s/^Head: .*/Head: $(git -C .worktrees/review-P1-S-01 log -1 --format=%H)/" "$KIT/examples/walkthrough/P1-S-01i-r2.md" > "$VERDICT"
|
|
197
|
-
node "$KIT/bin/slicekit.js" build verdict P1/S-01 "$VERDICT" --independent --worktree .worktrees/review-P1-S-01
|
|
198
|
-
node "$KIT/examples/walkthrough/host.js" ci 1 success
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
`build finish` now prints `ready`: CI is green and the independent verdict is on this head.
|
|
202
|
-
|
|
203
|
-
```sh
|
|
204
|
-
node "$KIT/bin/slicekit.js" build finish P1/S-01 --worktree .worktrees/review-P1-S-01
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
### 8. The merge
|
|
208
|
-
|
|
209
|
-
A human merges. On GitHub you press Merge; here `host.js merge` makes the same merge in the bare
|
|
210
|
-
repository. The merge happened on the remote, and the slice's state is kept in files on `main`, so
|
|
211
|
-
pull `main` first. Then `status --sync` reads the merge from the git host and moves the slice to
|
|
212
|
-
`merged`.
|
|
213
|
-
|
|
214
|
-
```sh
|
|
215
|
-
node "$KIT/examples/walkthrough/host.js" merge 1
|
|
216
|
-
git pull -q --ff-only
|
|
217
|
-
node "$KIT/bin/slicekit.js" status --sync
|
|
218
|
-
node "$KIT/bin/slicekit.js" status
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
The last line reads `P1/S-01 merged PR #1 Greet a name`.
|
|
222
|
-
|
|
223
|
-
### 9. Clean up
|
|
224
|
-
|
|
225
|
-
Unset the two fixture variables. Otherwise a later slicekit command in this shell writes pull
|
|
226
|
-
requests and issues into a deleted folder, instead of calling `gh`. The same line unsets the
|
|
227
|
-
`GIT_CONFIG_*` variables, in case you set them above to turn signing off. Then go back to your
|
|
228
|
-
clone and remove `$WORK`, which holds the project, the bare repository and the fixture directories.
|
|
229
|
-
|
|
230
|
-
```sh
|
|
231
|
-
unset SLICEKIT_GITHOST_FIXTURE SLICEKIT_TRACKER_FIXTURE GIT_CONFIG_COUNT GIT_CONFIG_KEY_0 GIT_CONFIG_VALUE_0
|
|
232
|
-
cd "$KIT"
|
|
233
|
-
rm -rf "$WORK"
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
## Scope
|
|
146
|
+
<details>
|
|
147
|
+
<summary>Scope</summary>
|
|
237
148
|
|
|
238
149
|
The kit does not parse source code. Its graph is built from its own IDs and from git by
|
|
239
150
|
`slicekit graph`: requirements, decisions, slices, tests, commits, pull requests and releases. It is
|
|
@@ -247,16 +158,10 @@ pip install graphifyy && graphify install
|
|
|
247
158
|
|
|
248
159
|
Then one Claude Code session runs both: `/graphify .` for the code graph, then `/slicekit build`.
|
|
249
160
|
|
|
250
|
-
|
|
161
|
+
</details>
|
|
251
162
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
and every check rule. A command's page gives its usage, what it reads and writes, its exit codes
|
|
255
|
-
and an example. A check rule's page says what fails and the failure the rule prevents.
|
|
256
|
-
[docs/adapters.md](https://github.com/adityapandya1/agentic-slicekit/blob/main/docs/adapters.md)
|
|
257
|
-
describes the contracts for anyone adding a git host, a tracker or an agent tool.
|
|
258
|
-
|
|
259
|
-
## How the hooks find slicekit
|
|
163
|
+
<details>
|
|
164
|
+
<summary>How the hooks find slicekit</summary>
|
|
260
165
|
|
|
261
166
|
`slicekit init` writes the hook command as `node node_modules/slicekit/bin/slicekit.js` when the
|
|
262
167
|
repository has a local install, and `slicekit` otherwise, which needs slicekit on PATH. When neither
|
|
@@ -269,4 +174,15 @@ instead, pass `--cli` to init, as the walkthrough does:
|
|
|
269
174
|
hooks run from the session's working directory, so a worktree outside the repository tree needs an
|
|
270
175
|
absolute path in `cli` or a global install.
|
|
271
176
|
|
|
177
|
+
</details>
|
|
178
|
+
|
|
179
|
+
<details>
|
|
180
|
+
<summary>Built with itself</summary>
|
|
181
|
+
|
|
182
|
+
The kit is built with itself: each change to its code goes through a slice, with tests written first,
|
|
183
|
+
a review and green CI; its plans and version changes go through pull requests of their own. `docs/spec/00-overview.md` says what the kit is and why, `docs/decisions.md` holds every
|
|
184
|
+
choice made so far, and `BUILD.md` shows the order the kit is built in.
|
|
185
|
+
|
|
186
|
+
</details>
|
|
187
|
+
|
|
272
188
|
License: MIT.
|