ai4kanban 0.5.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.
Files changed (44) hide show
  1. package/README.md +155 -17
  2. package/bin/ai4kanban.mjs +415 -99
  3. package/dist/kanban.mjs +8989 -0
  4. package/package.json +15 -6
  5. package/skill/SKILL.md +0 -279
  6. package/skill/commands/card.mjs +0 -335
  7. package/skill/commands/init.mjs +0 -292
  8. package/skill/commands/list.mjs +0 -99
  9. package/skill/commands/misc.mjs +0 -105
  10. package/skill/commands/release.mjs +0 -132
  11. package/skill/commands/remove.mjs +0 -230
  12. package/skill/commands/setup.mjs +0 -58
  13. package/skill/config.md +0 -35
  14. package/skill/kanban.mjs +0 -280
  15. package/skill/lib/cadence.mjs +0 -96
  16. package/skill/lib/cards.mjs +0 -114
  17. package/skill/lib/frontmatter.mjs +0 -136
  18. package/skill/lib/memory.mjs +0 -130
  19. package/skill/lib/metrics.mjs +0 -39
  20. package/skill/lib/paths.mjs +0 -67
  21. package/skill/lib/questions.mjs +0 -242
  22. package/skill/lib/readme.mjs +0 -113
  23. package/skill/lib/reconcile.mjs +0 -114
  24. package/skill/lib/recurring.mjs +0 -61
  25. package/skill/lib/releases.mjs +0 -468
  26. package/skill/lib/setup.mjs +0 -196
  27. package/skill/lib/validate.mjs +0 -165
  28. package/skill/lib/yaml.mjs +0 -25
  29. package/skill/references/add-task.md +0 -82
  30. package/skill/references/auto-refine.md +0 -18
  31. package/skill/references/document-feature.md +0 -31
  32. package/skill/references/local-ui.md +0 -34
  33. package/skill/references/module-map.md +0 -45
  34. package/skill/references/presets/indie-hacker.md +0 -24
  35. package/skill/references/presets/validate-on-reddit.md +0 -82
  36. package/skill/references/propose.md +0 -57
  37. package/skill/references/prune-memory.md +0 -30
  38. package/skill/references/recurring-task.md +0 -65
  39. package/skill/references/refine.md +0 -71
  40. package/skill/references/reject.md +0 -26
  41. package/skill/references/releases.md +0 -31
  42. package/skill/references/resolve.md +0 -84
  43. package/skill/references/setup.md +0 -87
  44. package/skill/references/update.md +0 -73
package/README.md CHANGED
@@ -7,39 +7,176 @@ breaks the idea down, settles what it can on its own, asks you the rest, and kee
7
7
  until the spec is clear enough to build. The board is plain Markdown in `docs/kanban/`,
8
8
  versioned in git.
9
9
 
10
- This package is the setup command. The board and the skill are the product.
10
+ This package is the command, the board's own bookkeeping, and the flows the agent works by.
11
+ The board is the product.
11
12
 
12
- ## Install
13
+ ## Start with the board app
14
+
15
+ Most people never type any of this. The board comes as a desktop app —
16
+ <https://ai4kanban.dev/download>, nothing to install first: no Node, no npx, no terminal —
17
+ and setting a board up there is a guided first run: three questions, one to a screen, then
18
+ a **Finish setup** button that works down the rest. No build is signed yet, so macOS blocks
19
+ the first open: drag the app in from the `.dmg`, then click through the warning that it
20
+ cannot be checked.
21
+
22
+ What follows is the same board from a terminal — and the way to put an agent on a card
23
+ without a chat session and without a browser.
24
+
25
+ ## Get the command
26
+
27
+ The [board app](https://ai4kanban.dev/download) brings `akb` with it — the first open puts
28
+ it on your PATH and it updates when the app does, so if you have the app you have the
29
+ command. Install it on its own where the app can't run — a server, a container, or a Linux
30
+ box, whose AppImage leaves no command behind:
31
+
32
+ ```bash
33
+ npm install -g ai4kanban
34
+ ```
35
+
36
+ That puts `akb` on your path. Every example below also works as
37
+ `npx --yes ai4kanban@latest <command>` — the same command, fetched each time, if you would
38
+ rather not install anything.
39
+
40
+ ## Install into a project
13
41
 
14
42
  From your project root:
15
43
 
16
44
  ```bash
17
- npx ai4kanban install
45
+ akb install --tracks feature,bug,research
18
46
  ```
19
47
 
20
- That copies the skill into `.claude/skills/kanban/` (Claude Code) and
21
- `.agents/skills/kanban/` (Codex), then scaffolds `docs/kanban/` — the track folders, the
22
- board index, the memory set, and a blank `config.md`.
48
+ That scaffolds `docs/kanban/`: the track folders, the board index, the memory set, and a
49
+ blank `config.md`. Nothing is written outside that folder that is the whole footprint.
50
+
51
+ Pass the tracks your project actually splits into. Normally you don't run this by hand —
52
+ you paste the install prompt from <https://ai4kanban.dev/INSTALL_PROMPT.txt> and your agent
53
+ reads the repo, picks the tracks, runs this command, and fills in the config afterwards.
54
+
55
+ ## Drive the board from your coding agent
23
56
 
24
- Pass the tracks your project actually splits into:
57
+ Optional, and separate from the board on purpose: a board works from the app on its own.
58
+ Add it when you want Claude Code or Codex to work the same board too.
25
59
 
26
60
  ```bash
27
- npx ai4kanban install --tracks feature,bug,research
61
+ akb skill # is it here, and how current
62
+ akb skill install # add it, or bring an older copy up to date
28
63
  ```
29
64
 
30
- Normally you don't run this by hand. You paste the install prompt from
31
- <https://ai4kanban.dev/INSTALL_PROMPT.txt> and your agent reads the repo, picks the tracks,
32
- runs this command, and fills in the config afterwards.
65
+ That writes one file into `.claude/skills/kanban/` (Claude Code) and
66
+ `.agents/skills/kanban/` (Codex): `SKILL.md`, a short note telling a coding agent the board
67
+ is here and that `akb` owns it. The board app does the same thing from a button:
68
+ **Configuration → Skill**.
69
+
70
+ Nothing else is copied in. The flows ship inside the command (`akb guide`), so a newer
71
+ command is newer flows in every project at once — and the command itself stays where npm put
72
+ it, so a project's git history never carries 350 kB of it.
73
+
74
+ An agent that finds no `akb` on the PATH doesn't stop: the note's first section says what to
75
+ run instead — the copy in this project where there is one, and otherwise `npx --yes
76
+ ai4kanban@<the version that wrote the note>`, pinned so the rules match the board. A run
77
+ started from the app or the CLI is told the same thing in its own words, and `akb skill`
78
+ says it to you at the moment the note lands.
33
79
 
34
80
  ## Update
35
81
 
82
+ Two lines, and there is no third:
83
+
36
84
  ```bash
37
- npx ai4kanban update
85
+ npm install -g ai4kanban@latest # a newer command
86
+ akb update # a repaired board, from the project root
38
87
  ```
39
88
 
40
- Overwrites every skill folder it finds with this version, repairs a board written by an
41
- older release, and prints which version you moved from and to with a link to everything
42
- that changed in between. Your cards, config, and memory are never touched.
89
+ `akb update` refreshes a skill folder that is already there it never adds one, since not
90
+ having it is an ordinary state now adds whatever an older release never wrote to the
91
+ board, clears out what it no longer writes, and prints which version you moved from and to
92
+ with a link to everything that changed in between. Your cards, config, and memory are never
93
+ touched.
94
+
95
+ It can't do the first line to itself — replacing the file that is running is how you get
96
+ half a command — so it checks npm and names that line when it is behind, rather than
97
+ reporting success a release late.
98
+
99
+ ## Put an agent to work
100
+
101
+ `akb` starts the board's runs, watches them, and holds the settings they run under — so a
102
+ card can be built from a terminal, over ssh, or from a script, without a chat session and
103
+ without a browser.
104
+
105
+ ```bash
106
+ akb implement 12 # build the card
107
+ akb refine 12 # sharpen it until it is ready to build
108
+ akb create "add dark mode" # write the card(s) for it
109
+ akb propose # write the next tasks
110
+ akb archive 12 # finish it
111
+ ```
112
+
113
+ Add `--print` to any of them and nothing starts: it prints what to do instead, filled in
114
+ for this board — the card's own path, the steps it has left, the memory file its modules
115
+ point at, and the command that closes the job.
116
+
117
+ ```bash
118
+ akb implement 12 --print # the steps, for whoever is asking
119
+ ```
120
+
121
+ That is the mode for an agent already in a session: it does the job in the conversation
122
+ it is already in, rather than paying for a second agent to do the job it is sitting there
123
+ to do. Start a run when you want the work to happen on its own. `akb help runs` carries
124
+ the whole rule, beside the commands it applies to. An agent working inside a run the board
125
+ started always gets the printed flow, so a run can't spawn a copy of itself.
126
+
127
+ The run keeps working after the command returns. Watch it, or stop it, from anywhere —
128
+ including from the board app, which drives its buttons through these same commands:
129
+
130
+ ```bash
131
+ akb runs # what is running, and what ran lately
132
+ akb log 3f2a1b04 --follow # watch a run as it goes
133
+ akb stop 3f2a1b04 # end one
134
+ akb resume 3f2a1b04 # continue one that failed
135
+ ```
136
+
137
+ Which agent runs them — Claude Code, Codex, Cursor, OpenCode or DeepSeek Harness — and
138
+ what it is set to:
139
+
140
+ ```bash
141
+ akb agent # what runs, and how it is set up
142
+ akb agent list # the agents it can run, and what each one takes
143
+ akb agent use codex
144
+ akb agent set model gpt-5.1-codex
145
+ akb agent set apiKey sk-… # saved to docs/kanban/.env, never shown back
146
+ akb agent test # one small chat, to see it works
147
+ ```
148
+
149
+ Runs use these settings, never what your shell happens to export. `akb help` lists
150
+ everything, and `--json` on any command answers a program instead of a person.
151
+
152
+ An API key is the one thing to leave to the user. Hand them the line rather than typing it
153
+ for them: a key an agent types lands in its transcript and in the shell history, and a
154
+ saved key is never read back.
155
+
156
+ ## The manual
157
+
158
+ `akb help runs` is what a coding agent reads: every command it may call — the card work,
159
+ the runs, the agent settings — and when to call each. `akb board help` is the board's own
160
+ bookkeeping beneath it: ids, a card's fields, the index, the releases.
161
+
162
+ The flows are `akb guide`:
163
+
164
+ ```bash
165
+ akb guide # every flow, one line each
166
+ akb guide board # how the board works: card format, layout, memory
167
+ akb guide refine # one card, vague to ready
168
+ akb guide plan-release # fill a release from its goal
169
+ ```
170
+
171
+ A printed flow already carries the ones its action needs, in full, so this is for the
172
+ rest.
173
+
174
+ A run that writes or changes a card is followed by `akb refine` on that card, started as a
175
+ run of its own once the first one ends — so `akb create "…"`, `akb revise`, `akb resolve`,
176
+ `akb propose` and `akb plan-release` all come back with their cards refined. Archiving or
177
+ rejecting a card does the same for every card it was blocking that now has nothing left in
178
+ its way. Each one is an ordinary run: it shows in `akb runs`, has its own log, and
179
+ `akb stop` ends it.
43
180
 
44
181
  ## What it won't do
45
182
 
@@ -48,11 +185,12 @@ tasks — all of that needs a judgement call, so it stays the agent's job. When
48
185
  hits something it can't decide, it prints it under **Needs your attention** and leaves it
49
186
  alone.
50
187
 
51
- Both commands are safe to run twice.
188
+ `akb install`, `akb skill install` and `akb update` are all safe to run twice.
52
189
 
53
190
  ## Also
54
191
 
55
- - The board UI: `npx ai4kanban-ui` — a local page over the same Markdown files.
56
192
  - Source and docs: <https://github.com/ai4kanban/ai4kanban>
193
+ - `npx ai4kanban-ui` still serves the board in a browser, but that way is deprecated — the
194
+ app above is those same pages in a window.
57
195
 
58
196
  Node 18+. No dependencies.