@erclx/aitk 0.89.0 → 0.90.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/claude/.claude-plugin/plugin.json +1 -1
- package/claude/skills/claude-groundwork/SKILL.md +1 -1
- package/claude/skills/claude-intake/SKILL.md +8 -1
- package/claude/skills/claude-intake-answer/REQUIREMENT.md +48 -0
- package/claude/skills/claude-intake-answer/SKILL.md +90 -0
- package/claude/skills/claude-orchestrate/SKILL.md +5 -3
- package/claude/skills/claude-tasks/SKILL.md +1 -1
- package/claude/skills/claude-worktree/REQUIREMENT.md +8 -0
- package/claude/skills/claude-worktree/SKILL.md +22 -0
- package/claude/skills/toolkit-feedback/SKILL.md +1 -1
- package/claude/skills/youtube-transcripts/REQUIREMENT.md +1 -1
- package/claude/skills/youtube-transcripts/SKILL.md +1 -1
- package/docs/agents/commands.md +3 -0
- package/docs/agents/index.md +1 -0
- package/docs/agents/intake.md +77 -0
- package/docs/operating-model.md +4 -2
- package/package.json +1 -1
- package/src/cli.ts +4 -0
- package/src/commands/intake.ts +406 -0
- package/src/intake/folder.ts +280 -0
- package/src/intake/items.ts +174 -0
- package/standards/intake.md +9 -0
- package/standards/skill.md +1 -1
- package/tooling/astro/configs/astro.config.mjs +11 -0
- package/tooling/astro/configs/playwright.config.ts +4 -3
- package/tooling/astro/manifest.toml +5 -3
- package/tooling/astro/reference.md +3 -3
- package/tooling/vite-react/configs/playwright.config.ts +4 -3
- package/tooling/vite-react/configs/vite.config.ts +10 -0
- package/tooling/vite-react/manifest.toml +4 -2
- package/tooling/vite-react/reference.md +4 -4
- package/tooling/web/configs/scripts/worktree-port.sh +36 -0
- package/tooling/web/manifest.toml +3 -3
- package/tooling/web/reference.md +12 -0
|
@@ -97,7 +97,7 @@ Do not close while an open question quietly fails an outcome. Resolve it, or rec
|
|
|
97
97
|
|
|
98
98
|
## Output
|
|
99
99
|
|
|
100
|
-
Emit the full relative path from the project root for every file written or updated.
|
|
100
|
+
Emit the full relative path from the project root for every file written or updated. A bare filename names a file the reader cannot open.
|
|
101
101
|
|
|
102
102
|
Open and resume:
|
|
103
103
|
|
|
@@ -101,7 +101,14 @@ A file the pass only read gets no line, which is what keeps the block short.
|
|
|
101
101
|
|
|
102
102
|
**Open questions:** <N> awaiting your call
|
|
103
103
|
|
|
104
|
-
Next: answer the `You:` slots
|
|
104
|
+
Next: /claude-intake-answer to answer the `You:` slots from here, or type them
|
|
105
|
+
into the files, then /claude-tasks to promote what is ready
|
|
105
106
|
```
|
|
106
107
|
|
|
107
108
|
Use `📂 Resumed` in place of `📂 Opened` on a resume pass.
|
|
109
|
+
|
|
110
|
+
## Answering what this pass wrote
|
|
111
|
+
|
|
112
|
+
The slots this pass leaves empty are answered by editing each cluster file, or from chat through `claude-intake-answer`, which walks the unread items in batches and writes each selection back onto the item it answers. Name that route in the closing line so the operator finds it where they look for it.
|
|
113
|
+
|
|
114
|
+
Do not invoke it from here. It is operator-triggered, and a pass that files a dump and answers it in the same run decides items on silence.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: claude-intake-answer
|
|
3
|
+
description: Scope boundary for answering a filed intake from chat, and the write-back contract that keeps the file rather than the conversation as the record
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Claude intake answer requirement
|
|
7
|
+
|
|
8
|
+
## Gap
|
|
9
|
+
|
|
10
|
+
Without this skill, an operator answers a filed intake by opening each cluster file and typing under each item, so a dump spanning six clusters is six files navigated in turn and the cost scales with how well the pass split the domains. The folders that go unanswered are the large ones, which are the ones a breadth pass exists to produce.
|
|
11
|
+
|
|
12
|
+
A session asked to help with that fails in shapes the intake standard already names. It reads an empty slot as agreement and reports items decided that nobody reached. It writes an answer into the conversation and never into the file, so the record still reads as unread and the next session re-asks. It types the answer into `00-overview.md`, where retrieval walks item headings and finds nothing. It overwrites a slot the operator already filled, discarding a decision already made.
|
|
13
|
+
|
|
14
|
+
The write itself fails a fourth way that no prose rule prevents. Every worker runs in a linked worktree where the file-editing tools refuse a main-root path, and a stream editor expands an unescaped ampersand in the replacement to the whole match and exits zero when it matches nothing. A body instructing either route reports success and loses the answer.
|
|
15
|
+
|
|
16
|
+
The batching fails a fifth way. A folder holding thirty unread items put as thirty questions is unanswerable, and put as one flat batch it hides which cluster the operator is in and leaves a file half answered when attention runs out.
|
|
17
|
+
|
|
18
|
+
## Must
|
|
19
|
+
|
|
20
|
+
- Offer every item carrying an empty answer slot, not only the ones carrying an open question, since the standard's one-token accept exists for a verdict with no question attached
|
|
21
|
+
- Batch by cluster in the folder's own numbering, so the operator has a stopping point that leaves whole clusters unread rather than a file half answered
|
|
22
|
+
- Cap a batch at four items, which is what a structured question tool takes
|
|
23
|
+
- Rank the item's own suggestion or verdict first and give every option what it costs, since the pass already made a recommendation and burying it asks the operator to re-derive it
|
|
24
|
+
- Land every selection through a verb that resolves the root in-process and rewrites the whole line, which is the only route that works from a linked worktree
|
|
25
|
+
- Write one cluster per call, since concurrent calls against one file race on the read and keep only the last answer
|
|
26
|
+
- Carry the cluster and the label together, because items are labeled per file and a label alone names an item in every cluster at once
|
|
27
|
+
- Pass a label exactly as its heading spells it, letter suffix included, since a pass that splits a finding after the fact labels the halves rather than renumbering the file
|
|
28
|
+
- Report what stays unread by count after each cluster
|
|
29
|
+
|
|
30
|
+
## Must not
|
|
31
|
+
|
|
32
|
+
- Fill a slot the operator did not answer, including the remainder of a batch they abandoned
|
|
33
|
+
- Infer an answer from the conversation having happened, which is the inversion the intake standard states against the plan standard
|
|
34
|
+
- Overwrite a slot already carrying an answer, which is a decision already made
|
|
35
|
+
- Write anywhere in the folder but an item's answer slot, and never into the index, which carries none
|
|
36
|
+
|
|
37
|
+
## Guards
|
|
38
|
+
|
|
39
|
+
- No intake folder at all, stop and name the skill that files one
|
|
40
|
+
- The named folder carrying no unread item, stop rather than re-asking answered items
|
|
41
|
+
|
|
42
|
+
## Out of scope
|
|
43
|
+
|
|
44
|
+
- Filing a dump and writing the items, which is `claude-intake` and owns every other write into the folder
|
|
45
|
+
- Promoting an answered item onto the board, which is `claude-tasks` and runs after the answers land
|
|
46
|
+
- The item format, the answer contract, and retrieval, which `standards/intake.md` owns and this skill cites
|
|
47
|
+
- The comparable answer slots in groundwork and feature plans, which carry their own contracts and are a separate measurement
|
|
48
|
+
- Deciding when to fire. The skill is user-invoked through `disable-model-invocation`, so answering is the operator's call rather than a description match.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: claude-intake-answer
|
|
3
|
+
description: Walks an intake folder's unread items and puts them as batched questions in chat, writing each selection back onto the item it answers. Use when asked to "answer the intake", "work through the open items", "answer my intake questions", "go through the dump", or "let me answer these from here". Do NOT use to file a dump or write new items, which is `claude-intake`.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Claude intake answer
|
|
8
|
+
|
|
9
|
+
Put an intake folder's unread items as batched questions, then land each selection in the slot it answers.
|
|
10
|
+
|
|
11
|
+
A folder is answered by opening each cluster file and typing under the item, which on a dump spanning six clusters means navigating to each in turn. This walks the same items in chat and writes the answers back, so the file rather than the conversation stays the record.
|
|
12
|
+
|
|
13
|
+
Read `.claude/standards/intake.md` from the project root before writing anything, or `${CLAUDE_SKILL_DIR}/../../standards/intake.md` when the project does not have it. It holds the item format and the answer contract this skill is bound by.
|
|
14
|
+
|
|
15
|
+
## Guards
|
|
16
|
+
|
|
17
|
+
- If `aitk intake list --json` reports no folder, stop: `❌ No intake to answer. Run /claude-intake to file a dump first.`
|
|
18
|
+
- If the named folder has no unread item, stop: `❌ Every item in <slug> carries an answer. Nothing to ask.`
|
|
19
|
+
- Never fill a slot the operator did not answer. An abandoned batch leaves every unreached item unread, which is what the empty slot already means.
|
|
20
|
+
- Never infer an answer from the conversation having happened. A selection reaches the file through the verb or not at all.
|
|
21
|
+
- Do not promote an item, edit a verdict, or write outside the answer slots. Promoting runs through `claude-tasks` after the answers land.
|
|
22
|
+
|
|
23
|
+
## Step 1: pick the folder
|
|
24
|
+
|
|
25
|
+
Run `aitk intake list --json` and read the per-folder counts. With one folder carrying unread items, take it. With several, put the folders as one question carrying each slug and its unread count, and let the operator pick.
|
|
26
|
+
|
|
27
|
+
Never guess from the topic of the conversation. A session resuming against the wrong folder answers items nobody asked about.
|
|
28
|
+
|
|
29
|
+
## Step 2: collect one cluster
|
|
30
|
+
|
|
31
|
+
Run `aitk intake list <slug> --unread --json`. It returns the unread items grouped by the cluster file holding them, each carrying its label, title, open question, and suggestion.
|
|
32
|
+
|
|
33
|
+
Work one cluster at a time, in the order the folder numbers them. A dump of six clusters holding five items each is thirty questions, and a surface putting all of them at once is unusable. The cluster boundary is also where an operator who runs out of attention stops cleanly, leaving whole clusters unread rather than one file half answered.
|
|
34
|
+
|
|
35
|
+
## Step 3: put the batch
|
|
36
|
+
|
|
37
|
+
Cap each batch at four items, which is what a structured question tool takes. A cluster carrying more than four unread items takes several batches in file order.
|
|
38
|
+
|
|
39
|
+
Every item with an empty slot is offered, not only the ones carrying an open question. An item with a verdict and no question is still asking whether the verdict stands, and the standard's one-token accept exists for exactly that case.
|
|
40
|
+
|
|
41
|
+
Shape each question from what the item carries:
|
|
42
|
+
|
|
43
|
+
- The item's label and title name the question, so the operator knows which item is being asked about
|
|
44
|
+
- An item carrying `Open:` puts that question with its `Suggested:` line ranked first and marked as the suggestion
|
|
45
|
+
- An item carrying no `Open:` puts its verdict, with accepting it ranked first as `ok` and the alternatives drawn from what the verdict could otherwise be
|
|
46
|
+
|
|
47
|
+
Give every option what it means and what it costs. An option with no stated cost is not an option, since the operator picks it without knowing what the other one buys.
|
|
48
|
+
|
|
49
|
+
Send the whole batch in one turn. When the session runs on a surface carrying a structured question tool, such as `AskUserQuestion` in Claude Code, send it through one call with one entry per item. Otherwise write it as a numbered list in one message with the suggestion marked.
|
|
50
|
+
|
|
51
|
+
## Step 4: write the batch back
|
|
52
|
+
|
|
53
|
+
Land every answered item in the cluster with one call:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
aitk intake answer <slug> --cluster <file> --set <label>=<answer> --set <label>=<answer>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
One call per cluster, never one per item. Items are labeled per cluster file, so the label alone does not identify an item and the cluster travels with it. Four separate calls against one file also race on the read and drop every answer but the last.
|
|
60
|
+
|
|
61
|
+
Pass the label exactly as the heading spells it, including a letter suffix such as `3a`. Write the operator's selection as the answer, using `ok` for a verdict accepted as it stands.
|
|
62
|
+
|
|
63
|
+
The verb refuses an item that already carries an answer rather than overwriting it, and refuses the whole batch when any item in it is filled. A filled slot is a decision already made. On that refusal, drop the named item from the batch and send the rest.
|
|
64
|
+
|
|
65
|
+
An item the operator left unanswered is omitted from the call entirely. Do not pass it with an empty value, which writes a slot that reads as answered.
|
|
66
|
+
|
|
67
|
+
## Step 5: continue or stop
|
|
68
|
+
|
|
69
|
+
After each cluster, state how many clusters still carry unread items and continue to the next. Stop when the operator says to stop, and report what is left rather than pressing on.
|
|
70
|
+
|
|
71
|
+
Answers are on disk as each cluster completes, so a session ending mid-folder loses nothing.
|
|
72
|
+
|
|
73
|
+
## Output
|
|
74
|
+
|
|
75
|
+
Report per cluster as it lands, then close with the folder's state:
|
|
76
|
+
|
|
77
|
+
```plaintext
|
|
78
|
+
✅ <N> answered in <file>
|
|
79
|
+
<label>. <answer>
|
|
80
|
+
|
|
81
|
+
📋 <N> cluster(s) still carrying unread items in <slug>
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Close the run with the path so the reader can open what changed:
|
|
85
|
+
|
|
86
|
+
```plaintext
|
|
87
|
+
✅ <N> answered across <N> cluster(s) in <slug>
|
|
88
|
+
<M> item(s) left unread
|
|
89
|
+
.claude/intake/<slug>/
|
|
90
|
+
```
|
|
@@ -196,6 +196,8 @@ properly and stop when you cannot.
|
|
|
196
196
|
Serialize any track that touches a shared wiring seam with another in flight.
|
|
197
197
|
Merge the branch with the smallest shared-file footprint first, and merge a
|
|
198
198
|
branch touching `CLAUDE.md`, a Claude context entry, or a regenerated `index.md`
|
|
199
|
-
last. Have every sibling rebase on the new `main` before the next merge.
|
|
200
|
-
a
|
|
201
|
-
|
|
199
|
+
last. Have every sibling rebase on the new `main` before the next merge. Two
|
|
200
|
+
workers running a server take a port apiece without being told to, since a
|
|
201
|
+
stack derives it from the worktree it runs in through `scripts/worktree-port.sh`.
|
|
202
|
+
Read that value rather than assigning one, and set `WORKTREE_PORT_OFFSET` by
|
|
203
|
+
hand only when two worktrees derive the same offset.
|
|
@@ -97,7 +97,7 @@ The command drops the task's row from `.claude/tasks/priority.md` and leaves pro
|
|
|
97
97
|
|
|
98
98
|
## Output
|
|
99
99
|
|
|
100
|
-
Emit the full relative path from the project root for every file written or moved.
|
|
100
|
+
Emit the full relative path from the project root for every file written or moved. A bare filename names a file the reader cannot open.
|
|
101
101
|
|
|
102
102
|
Create:
|
|
103
103
|
|
|
@@ -11,6 +11,10 @@ Without this skill, the user names the worktree by hand, and a name matching no
|
|
|
11
11
|
|
|
12
12
|
Entry also writes the bare flag into the shared config, which strands the main worktree. Every command run there fails while the files sit untouched on disk, and the linked worktree keeps working, so nothing surfaces until the operator returns to the main checkout and finds the repository broken. A rename onto a branch that already exists is the third failure, and it is the one that destroys work rather than blocking it.
|
|
13
13
|
|
|
14
|
+
The tree the entry hands over is also not one the session can run. Dependencies live in a folder git ignores and never shares between working directories, so a fresh worktree arrives with none, and nothing on the entry path says so. The session finds out from whichever command needs them first, and the message it gets names a missing module rather than an empty working directory.
|
|
15
|
+
|
|
16
|
+
A stack that derives its ports from the working directory has the same shape. The number is correct and invisible, and `claude-orchestrate` sends a reader here to read it rather than assign one, so the entry that knows the working directory is the surface that owes it.
|
|
17
|
+
|
|
14
18
|
## Must
|
|
15
19
|
|
|
16
20
|
- Derive the name from the plan matched to the current branch, falling through the ordered sources rather than picking
|
|
@@ -21,9 +25,13 @@ Entry also writes the bare flag into the shared config, which strands the main w
|
|
|
21
25
|
- Test the target branch and the target directory before entering, so a stop costs no worktree
|
|
22
26
|
- Read the bare flag before writing it, and repair it on both sides of entry
|
|
23
27
|
- Announce the repair only when a write actually happened
|
|
28
|
+
- Report on one line whether the entered worktree carries its dependencies, naming the command that installs them when it does not
|
|
29
|
+
- Report the same way when the project declares no package manifest, since silence there reads as a passing check
|
|
30
|
+
- Report the port offset this worktree derives, and say so when the project installs no derivation
|
|
24
31
|
|
|
25
32
|
## Must not
|
|
26
33
|
|
|
34
|
+
- Install dependencies on the session's behalf. Entering a worktree to read is as common as entering one to run, and an install is slow and needs a network.
|
|
27
35
|
- Pick between plans when more than one could match. Ask.
|
|
28
36
|
- Enter on a name inferred from session context without confirmation
|
|
29
37
|
- Delete or overwrite a branch or a worktree directory that already carries the target name
|
|
@@ -96,4 +96,26 @@ git config core.bare false
|
|
|
96
96
|
|
|
97
97
|
The flag is not set on every entry, so read before writing and announce only when the write happened. Tracked upstream as `anthropics/claude-code#58345`, closed as not planned, so the repair stays until the tool changes.
|
|
98
98
|
|
|
99
|
+
## Step 6: report whether the tree can run
|
|
100
|
+
|
|
101
|
+
A linked worktree is a second working directory over one repository, and every ecosystem installs its dependencies into a folder git ignores. Nothing copies that folder across, so a fresh worktree arrives without it and the session learns as much from whichever command needs it first, which reports a missing module rather than an empty working directory.
|
|
102
|
+
|
|
103
|
+
Report the state on one line. Do not install. Entering a worktree to read is as common as entering one to run, and an install is slow, needs a network, and picks an ecosystem on the session's behalf.
|
|
104
|
+
|
|
105
|
+
Read the worktree root and emit the first line that matches:
|
|
106
|
+
|
|
107
|
+
- `package.json` present, `node_modules/` missing: `Dependencies are not installed. Run <install> before any build, test, or server command.` Take `<install>` from the lockfile beside the manifest, and use `bun install` when no lockfile names one.
|
|
108
|
+
- A `pyproject.toml` or `requirements.txt` present, `.venv/` missing: `No virtual environment. Create and populate one before running anything.`
|
|
109
|
+
- A manifest present with its folder alongside it: `Dependencies are installed.`
|
|
110
|
+
- No package manifest of either kind: `No package manifest, so there is nothing to install.`
|
|
111
|
+
|
|
112
|
+
The last line is what keeps the step honest on a stack this skill cannot read. Entry is not stack-aware, and silence is indistinguishable from a check that passed.
|
|
113
|
+
|
|
114
|
+
Then report the port this worktree derives, on a second line:
|
|
115
|
+
|
|
116
|
+
- `scripts/worktree-port.sh` present: run `bash scripts/worktree-port.sh` and emit `Port offset <n>. Every served port adds it to the stack default.`
|
|
117
|
+
- Absent: `No port derivation installed, so every served port is the stack default.`
|
|
118
|
+
|
|
119
|
+
The offset is what `claude-orchestrate` sends a reader here to read rather than assign, and what an operator overrides through `WORKTREE_PORT_OFFSET` when two worktrees derive the same value. Deriving it correctly and printing it nowhere leaves both instructions naming a number no surface emits.
|
|
120
|
+
|
|
99
121
|
Do not invoke `ExitWorktree` from this skill. Exit is the user's call.
|
|
@@ -58,7 +58,7 @@ cat <<'EOF' | aitk feedback
|
|
|
58
58
|
EOF
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
Report the printed path back to the user on its own line
|
|
61
|
+
Report the printed path back to the user on its own line, in the form the project's instruction file sets under `## Output`.
|
|
62
62
|
|
|
63
63
|
For a durable, cross-machine report instead of local scratch, add `--github`. The CLI opens a GitHub issue on the toolkit repo and prints the issue URL. It needs `gh` authenticated, and falls back to local scratch with a warning when `gh` is absent.
|
|
64
64
|
|
|
@@ -16,7 +16,7 @@ Two smaller failures follow the fetch. A video with no captions produces a file
|
|
|
16
16
|
## Must
|
|
17
17
|
|
|
18
18
|
- Run the CLI, which owns the fetch, the caption cleanup, and the frontmatter
|
|
19
|
-
- Surface the written path as a full relative path
|
|
19
|
+
- Surface the written path as a full relative path, in the form the project's instruction file sets under `## Output`
|
|
20
20
|
- Report a video with no captions as a fact about the video, since the file still exists and carries its metadata
|
|
21
21
|
- Name the missing external binary and stop, leaving the install to the user
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@ aitk transcripts <url>
|
|
|
26
26
|
|
|
27
27
|
- Pass `--keep-timestamps` when the user wants `[mm:ss]` markers per line instead of prose.
|
|
28
28
|
- Pass `--out <dir>` to override the output directory. The default is `transcripts/` in the current directory.
|
|
29
|
-
- The written file path prints to stdout. Surface it back to the user as a full relative path
|
|
29
|
+
- The written file path prints to stdout. Surface it back to the user as a full relative path, in the form the project's instruction file sets under `## Output`.
|
|
30
30
|
|
|
31
31
|
## After the fetch
|
|
32
32
|
|
package/docs/agents/commands.md
CHANGED
|
@@ -30,6 +30,8 @@ Full help: `aitk <command> --help`. Behavior notes for the install and sync verb
|
|
|
30
30
|
| `aitk tasks pull-request` | Record a pull request number on the task a branch closes, by stem or `--plan` (`--json`) |
|
|
31
31
|
| `aitk tasks outcome` | Mark outcomes `[x]` on a task by position, repeating `--close` (`--json`) |
|
|
32
32
|
| `aitk tasks validate` | Report board rows whose plan, task file, group, or file set does not hold (`--json`) |
|
|
33
|
+
| `aitk intake list` | Report intake folder counts, or one folder's items, keeping what is unread with `--unread` (`--json`) |
|
|
34
|
+
| `aitk intake answer` | Write selections into one cluster's answer slots, repeating `--set <item>=<answer>` (`--json`) |
|
|
33
35
|
| `aitk records validate` | Report a session record against the standard governing it, per kind (`--json`) |
|
|
34
36
|
| `aitk records push` | Commit the eight backed record folders and push them to a private records remote (`--json`) |
|
|
35
37
|
| `aitk records pull` | Fetch the records remote and write it back, refusing rather than discarding unpushed records (`--json`) |
|
|
@@ -54,6 +56,7 @@ Each domain exposes a consistent shape where applicable: `list`, `install`, `syn
|
|
|
54
56
|
| `design` | `render` |
|
|
55
57
|
| `slides` | `render`, `list` |
|
|
56
58
|
| `tasks` | `archive`, `validate` |
|
|
59
|
+
| `intake` | `list`, `answer` |
|
|
57
60
|
| `comments` | `scan` |
|
|
58
61
|
| `context` | `audit` |
|
|
59
62
|
| `markdown` | `audit` |
|
package/docs/agents/index.md
CHANGED
|
@@ -16,6 +16,7 @@ CLI catalog and invocation rules for agents, split by command domain. Start with
|
|
|
16
16
|
- [Docs](docs.md): How aitk docs resolves the toolkit's own reference surface from an install root, and how a split domain is named
|
|
17
17
|
- [Indexes](indexes.md): Flags, exit codes, and JSON shape for aitk indexes regen, plus when it auto-stages what it rewrote
|
|
18
18
|
- [Install and sync](install-and-sync.md): What each install and sync verb writes, refuses, or leaves alone, and how drift is attributed in a target project
|
|
19
|
+
- [Intake](intake.md): Reading intake folder counts and items, the three read states an item can be in, landing a batch of selections in one cluster, the refusal reasons, and why a call is scoped to one file
|
|
19
20
|
- [Markdown audit](markdown-audit.md): Running the audit over any markdown path, where its bans and checkpoints are read from, what each check reports, and why the ban half gates while the structural half reports
|
|
20
21
|
- [Output shape](output-shape.md): Two framed shapes every command renders into, how JSON and --names modes keep stdout clean, and the exit discipline that lets piped output drain
|
|
21
22
|
- [Overview](overview.md): What this folder covers, the invocation rules every command inherits, and where domain behavior is documented instead
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Intake
|
|
3
|
+
description: Reading intake folder counts and items, the three read states an item can be in, landing a batch of selections in one cluster, the refusal reasons, and why a call is scoped to one file
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Intake
|
|
7
|
+
|
|
8
|
+
## List
|
|
9
|
+
|
|
10
|
+
`aitk intake list` reports the intake folders under `.claude/intake/`, or the items one folder holds. It reads and never writes, because an answer belongs to the operator and a verb that filled one would decide what the folder exists to ask.
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
aitk intake list
|
|
14
|
+
aitk intake list toolkit-overview --unread --json
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
| Option | Behavior |
|
|
18
|
+
| --------------- | ------------------------------------------------------------------------- |
|
|
19
|
+
| `--unread` | Keep only what is unread: folders carrying one, or a folder's empty slots |
|
|
20
|
+
| `--json` | Emit a machine-readable record on stdout |
|
|
21
|
+
| `--root <path>` | Intake root, defaulting to the main worktree |
|
|
22
|
+
|
|
23
|
+
With no slug it reports per-folder counts. With one it reports every item grouped by the cluster file holding it, each carrying its label, title, open question, suggestion, and answer.
|
|
24
|
+
|
|
25
|
+
An item sits in one of three read states, and the counts keep them apart:
|
|
26
|
+
|
|
27
|
+
| State | What it means |
|
|
28
|
+
| --------- | ------------------------------------------------------- |
|
|
29
|
+
| unread | The slot is present and empty, so nobody has reached it |
|
|
30
|
+
| answered | The slot carries text, which is a decision already made |
|
|
31
|
+
| malformed | The item carries no slot, so no verb here can answer it |
|
|
32
|
+
|
|
33
|
+
The third is counted apart from both rather than folded into either. Counted as answered it hides a file that needs fixing behind a folder reading as fully worked through, and counted as unread it joins a list whose every entry `answer` then refuses.
|
|
34
|
+
|
|
35
|
+
The index is skipped, since it points at items and answers nothing itself. So is any item a file displays inside a fence, which is how a folder copying the item format into its own overview is read as the sample it is rather than as an item offering a slot no reader owns.
|
|
36
|
+
|
|
37
|
+
## Answer
|
|
38
|
+
|
|
39
|
+
`aitk intake answer` writes selections into the answer slots of one cluster file.
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
aitk intake answer toolkit-overview --cluster 05-coverage.md --set 3=ok
|
|
43
|
+
aitk intake answer toolkit-overview --cluster 11-intake-skill.md --set 3d=ok --set 9="not worth it" --json
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
| Option | Behavior |
|
|
47
|
+
| --------------------- | ----------------------------------------------------- |
|
|
48
|
+
| `--cluster <file>` | Cluster file the items live in, with or without `.md` |
|
|
49
|
+
| `--set <item=answer>` | Answer to land on an item, repeatable |
|
|
50
|
+
| `--json` | Emit a machine-readable record on stdout |
|
|
51
|
+
| `--root <path>` | Intake root, defaulting to the main worktree |
|
|
52
|
+
|
|
53
|
+
Items are labeled per cluster file, so a selection names the cluster and the label together. A label alone names an item in every cluster at once.
|
|
54
|
+
|
|
55
|
+
A label may carry a letter suffix, as in `3a` beside `3`, which is how a pass records a finding split after the fact rather than renumbering every item below it. Pass it exactly as the heading spells it.
|
|
56
|
+
|
|
57
|
+
One call writes one cluster. A call per selection is the alternative, and several of those against the same file read it before any of them writes, so every answer but the last is lost with nothing reporting it. The selections split on the first `=`, so an answer carrying its own survives intact.
|
|
58
|
+
|
|
59
|
+
An item already carrying an answer refuses rather than being overwritten, and one filled item refuses the whole batch, so a partly applied write never lands. Drop the named item and send the rest.
|
|
60
|
+
|
|
61
|
+
Exit codes: `0` every named item now carries its answer, `1` refused. The `reason` field carries `no-intake`, `no-folder`, `no-cluster`, `no-item`, `answered`, or `bad-input`.
|
|
62
|
+
|
|
63
|
+
`bad-input` covers a malformed command line: no cluster, no selection, a selection that parses to no label and answer, an empty answer, an answer carrying a line break, or two answers for one item. It is separate from the reasons describing the folder, so a caller that mistyped a flag is not sent to repair a file that is fine.
|
|
64
|
+
|
|
65
|
+
An empty answer refuses rather than writing an empty slot. The slot means unread while it is empty, so writing one back would report an item as answered that nobody decided.
|
|
66
|
+
|
|
67
|
+
An answer occupies one line, and one carrying a line break refuses before anything is read. Writing it splices a bare continuation into the item that matches none of the patterns the reader tests, so the slot reads back as the text before the break while the item counts as answered, and the refusal on an already-answered item then leaves hand-editing the file as the only correction. The whole batch refuses, so a good selection beside a broken one never lands half applied.
|
|
68
|
+
|
|
69
|
+
The folder is shared scratch at the main worktree root, so `--root` defaults to the first entry of `git worktree list` rather than the working directory. The write is an edit inside a file that already exists, which `Edit` and `Write` refuse from a linked worktree and a shell stream editor may not do, so the verb resolves the root in-process and rewrites whole lines.
|
|
70
|
+
|
|
71
|
+
Skills branch on the reason rather than on the exit code:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
aitk intake list toolkit-overview --unread --json | jq -r '.clusters[] | .cluster'
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
For the folder layout, the item format, the answer contract, and retrieval, see `.claude/standards/intake.md`.
|
package/docs/operating-model.md
CHANGED
|
@@ -125,8 +125,10 @@ at two or three worker tracks and split them across the stack so they do not
|
|
|
125
125
|
collide on the same files.
|
|
126
126
|
|
|
127
127
|
Unit checks run freely in many worktrees at once.
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
A dev server, an end-to-end run, and a screenshot run alongside each other on a
|
|
129
|
+
web stack, since every worktree derives its own port. Singleton resources (one
|
|
130
|
+
local model server, one GPU) still serialize, as does any port a stack fixes by
|
|
131
|
+
hand. See
|
|
130
132
|
[Claude Code and git worktrees](../wiki/claude/claude-worktrees.md) for merge order and the
|
|
131
133
|
port-collision detail.
|
|
132
134
|
|
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { register as capture } from '@/commands/capture'
|
|
|
20
20
|
import { register as feedback } from '@/commands/feedback'
|
|
21
21
|
import { register as transcripts } from '@/commands/transcripts'
|
|
22
22
|
import { register as tasks } from '@/commands/tasks'
|
|
23
|
+
import { register as intake } from '@/commands/intake'
|
|
23
24
|
import { register as comments } from '@/commands/comments'
|
|
24
25
|
import { register as context } from '@/commands/context'
|
|
25
26
|
import { register as markdown } from '@/commands/markdown'
|
|
@@ -53,6 +54,7 @@ function showHelp(): void {
|
|
|
53
54
|
`${GREY}│${NC} feedback ${GREY}# Write toolkit feedback from stdin to .claude/review/${NC}`,
|
|
54
55
|
`${GREY}│${NC} transcripts <url> ${GREY}# Fetch a YouTube transcript with metadata frontmatter${NC}`,
|
|
55
56
|
`${GREY}│${NC} tasks [cmd] ${GREY}# Task board commands (archive)${NC}`,
|
|
57
|
+
`${GREY}│${NC} intake [cmd] ${GREY}# Intake folders under .claude/intake/ (list, answer)${NC}`,
|
|
56
58
|
`${GREY}│${NC} comments [cmd] ${GREY}# Measure comment density and trend (scan)${NC}`,
|
|
57
59
|
`${GREY}│${NC} context [cmd] ${GREY}# Report context folder health (audit)${NC}`,
|
|
58
60
|
`${GREY}│${NC} markdown [cmd] ${GREY}# Report markdown against the attribute standards (audit)${NC}`,
|
|
@@ -87,6 +89,7 @@ function showHelp(): void {
|
|
|
87
89
|
`${GREY}│${NC} pbpaste | aitk feedback`,
|
|
88
90
|
`${GREY}│${NC} aitk transcripts https://youtu.be/VIDEO_ID`,
|
|
89
91
|
`${GREY}│${NC} aitk tasks archive --pull-request 673 --json`,
|
|
92
|
+
`${GREY}│${NC} aitk intake list toolkit-overview --unread --json`,
|
|
90
93
|
`${GREY}│${NC} aitk comments scan src --json`,
|
|
91
94
|
`${GREY}│${NC} aitk context audit --json`,
|
|
92
95
|
`${GREY}│${NC} aitk markdown audit .claude/rules --json`,
|
|
@@ -143,6 +146,7 @@ capture(program)
|
|
|
143
146
|
feedback(program)
|
|
144
147
|
transcripts(program)
|
|
145
148
|
tasks(program)
|
|
149
|
+
intake(program)
|
|
146
150
|
comments(program)
|
|
147
151
|
context(program)
|
|
148
152
|
markdown(program)
|