Hub: send in the field (032), coherent speak box (033), stream head band (034), Match at full width with its pile (035, 036), Home without the outer box (037), badge to Match (038), rejects that survive a changed or withdrawn card (039), the release card (040), code marks in the review diff (041), why Deny is off (042), the undo window clock (043), widgets without inner boxes (044), the Artifacts head on one line (045), accepting a red gate's risk (046), one code box (047), done rows greyed and folded (048), one control height (049), menus that stay open (050), radio settings in the Device card (051), bubbles beside the modes (052), agent settings on every face and name (053), pin only by menu (054), WASD in Match (055), the flowing card edge (056), Schedules in Controls (057) and the hub poll cost (059). Skills: the coach leaves for its own repository kevinveenbirkenbach/coach (058; test_install pins its four skills in skills-lock.json and stays red until that repository is published and pinned), hooks and timers start fewer processes (060), council files on hot paths stay bounded and mirror by marker instead of mtime (061), scripts and hooks hand agents less output (062), and block.py builds the commit table and message block in one run (063). Requirement documents 032 to 063 with their implementation amendments. MEDUSA false positives accepted after kvb-think-criticize (36 lines): MM-SCAN-058 (pla inside replace or plan), JB-SCAN-616/641 (the local clip helper), CODEGEN-SCAN-001 (drop-in paths), CGS-SCAN-029 (systemctl argv from constants), CGS-SCAN-040 (runner poll loop), FLA-SCAN-055 (feedback), WM-SCAN-354, AI-BACKDOOR-006, GENAI-SCAN-1270, B604 (runner shell path for passkey-verified commands), TC004, EXA002, EXA006, EXA010 and WEB-SSRF. 🎯 Fix: 92 % 💥 Break: 8 % 💸 Tokens: 89 % ⏱️ Velocity: – 🛡️ Security: ~100 % 🏆 Score: 95 🚦 Gate: ⛔ break 8 % > 5 Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
97 lines
4.4 KiB
Markdown
97 lines
4.4 KiB
Markdown
# 058 - Coach Repository
|
|
|
|
## User Story
|
|
|
|
As the operator, I want the coach in a repository of its own with commands
|
|
to switch it on and off, so that the skills repository stays lean and the
|
|
coach costs no tokens until I switch it on.
|
|
|
|
## Decisions (operator-confirmed 2026-11-25; do not re-litigate)
|
|
|
|
1. **Own repository** (operator): `github.com/kevinveenbirkenbach/coach`,
|
|
public, cloned at `~/Repositories/github.com/kevinveenbirkenbach/coach`.
|
|
`kvb-coach` (with `scripts/coach.py` and `hooks/reminder.sh`),
|
|
`kvb-coach-meditation` (with `scripts/meditation.py` and
|
|
`assets/meditation.html`) and their tests move there with their code. The
|
|
first commit names the skills commit they came from. Rejected: a private
|
|
repository, which needs `gh auth` on every host. Until the operator
|
|
creates the GitHub repository the clone is built in the gitignored
|
|
`.state/coach` of the skills repository, which the agent sandbox may
|
|
write; the lock entries follow the push, written by `npx skills add`,
|
|
which computes each `computedHash`.
|
|
2. **Commands** (operator): `/kvb-coach` coaches on demand as today;
|
|
`/kvb-coach-on` switches the hourly reminder on, `/kvb-coach-off` off;
|
|
`/kvb-coach-meditation` stays.
|
|
3. **Flag, not hook edits** (operator): on and off set the `coach` row of
|
|
`<council>/schedules.json` (057), the same row the Schedules tab switches.
|
|
The reminder hook stays registered and prints nothing while off. When the
|
|
hook is missing, `/kvb-coach-on` hands the operator the install command
|
|
instead of editing `~/.claude/settings.json`.
|
|
4. **Installed by default, off** (operator): `skills-lock.json` pins the four
|
|
coach skills at a commit of the coach repository; the installer registers
|
|
the reminder hook; the row starts off.
|
|
5. **Removed from skills**: `skills/kvb-coach*`, `tests/test_coach.py` and
|
|
`tests/test_meditation.py` leave the skills repository; every reference
|
|
in other skills, the README and the tests points to the coach repository.
|
|
|
|
## Approach
|
|
|
|
```mermaid
|
|
flowchart TD
|
|
subgraph P["🧭 0 · Preparation"]
|
|
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
|
P2 -- "✏️ corrections" --> P1
|
|
end
|
|
P2 -- "🤖 yes" --> O1
|
|
subgraph O["🧑 O · Operator"]
|
|
O1["🌐 Create the public repo coach"] --> O2["🔓 Sandbox write for its clone"]
|
|
end
|
|
O2 --> A1
|
|
subgraph A["🧘 A · Coach repository"]
|
|
A1["📦 Move skills, code and tests"] --> A2["🔛 kvb-coach-on and kvb-coach-off"]
|
|
A2 --> A3["🔒 Lock entry in skills"] --> A4["🧹 Remove from skills"]
|
|
A4 --> A5["✍️ Tests written, not run"]
|
|
end
|
|
A5 --> C1
|
|
subgraph C["🧪 C · All of 057 and 058"]
|
|
C1["🧪 Unit, then e2e once"] --> C2{"🟢 Green?"}
|
|
C2 -- "🔴 no: fix" --> C1
|
|
C2 -- "🟢 yes" --> CF{"💬 Operator feedback?"}
|
|
CF -- "✏️ changes" --> A1
|
|
end
|
|
CF -- "👍 fits" --> D1["🏁 Review, commit and push with operator OK, hand-over"]
|
|
```
|
|
|
|
## Acceptance Criteria
|
|
|
|
### Coach repository
|
|
|
|
- [ ] The repository holds `skills/kvb-coach`, `skills/kvb-coach-on`,
|
|
`skills/kvb-coach-off`, `skills/kvb-coach-meditation`, `tests/`, a
|
|
README, the licence of the skills repository and a `make test` target.
|
|
- [ ] `coach.py schedule on` and `schedule off` write only the `coach` row
|
|
of `schedules.json` and keep every other row byte for byte.
|
|
- [ ] `reminder.sh` prints nothing while the row is off or the file is
|
|
missing.
|
|
|
|
### Skills repository
|
|
|
|
- [ ] `skills-lock.json` lists the four coach skills with `source`
|
|
`kevinveenbirkenbach/coach` and one commit; `make install` installs
|
|
them into `~/.claude/skills`.
|
|
- [ ] `git grep -n kvb-coach` in skills finds only the lock, the installer's
|
|
reminder list, the README pointer to the coach repository, the
|
|
`coach` row's hook path in `schedules.py` (057), the tests of those and
|
|
the CHANGELOG history. Amended during implementation (2026-11-25): the
|
|
first draft forgot the 057 row and the history.
|
|
- [ ] `skills/kvb-coach*`, `tests/test_coach.py` and `tests/test_meditation.py`
|
|
are gone.
|
|
|
|
### Tests
|
|
|
|
- [ ] Unit (coach repository): `test_coach.py` and `test_meditation.py`
|
|
moved; a test for `schedule on` and `off` and for the silent reminder.
|
|
- [ ] Integration: skills `test_install.py` checks the lock entries and the
|
|
registered reminder.
|
|
- [ ] E2E: n/a: no page change beyond the Schedules row of 057.
|