feat(hub): requirements 023 to 031 and line comments on grant-time code
023 box heads: one head band per box under its top border; in widget mode its controls join the widget title band. 024 Match card content: merge cards show their diff (the runner previews a review's tree against its worktree HEAD), every card carries legal and architecture scores, the null under command cards is gone. 025 Radio speak card: no hint text, a rounder flowing card, a MAYDAY toggle beside push to talk. 026 widget zoom: zoom a widget's content by keyboard and the context menu. 027 slash skill suggestions: every field that messages agents suggests skills after a slash, from a skills index the tree timer writes. 028 Resources accounts: an Accounts panel (provider, renewal, resets, usage and remaining, host-local, emails never in git) and panel checkboxes. 029 Controls layout: Rules and Groups pages laid out. 030 Yes/No answers as buttons, and nothing hides: rows the runner cannot run stay greyed with the reason. 031 mic in fields. Line comments (operator 2026-11-24): wherever code waits for a grant (Waits on Operator, the stream, the review overlay) selected lines or a right-clicked row take a comment that marks its lines and collects on the card; Deny opens with them as the reason and Call preselected, Grant sends them after the signed grant as one post. Requirement 003 decision 4 and its contract follow. Tests are written for every requirement and run once on this head. 🎯 Fix: 80 % 💥 Break: 20 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: ~95 % 🏆 Score: 61 🚦 Gate: ⛔ fix 80 % < 90, break 20 % > 5; security ~95 % < 100: ask the operator before the commit Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7d1926e3de
commit
2722cda1b5
120 files changed
+5372
-486
No files matched your search
@@ -0,0 +1,83 @@
|
||||
# 027 - Slash Skill Suggestions
|
||||
|
||||
## User Story
|
||||
|
||||
As the operator, I want skill suggestions when I type "/" in any message to
|
||||
agents, so that I call a skill by its exact name without looking it up.
|
||||
|
||||
## Decisions (operator-confirmed 2026-11-23; do not re-litigate)
|
||||
|
||||
1. **Source**: a host timer writes a skills index (name, description,
|
||||
source) next to `branch-tree.json`, from `~/.claude/skills`,
|
||||
`~/.agents/skills` and every repository of the pkgmgr tree
|
||||
(`.claude/skills`, `.agents/skills`); the hub serves it at `/api/skills`
|
||||
with name, description and source only. In a field tied to an agent or
|
||||
card, the skills of its repository rank first. Rejected: mounting every
|
||||
repository into the hub.
|
||||
2. **Fields**: every field whose text reaches an agent: radio composer,
|
||||
agent message, Match feedback and line comments, choice "Other" answers,
|
||||
reject feedback, rule request replies, diff feedback; one shared helper
|
||||
attaches to each.
|
||||
3. **Trigger**: "/" at the field's start or after whitespace opens a list
|
||||
filtered by the typed prefix (name matches first); ↑/↓ move, Enter or Tab
|
||||
inserts `/<name>` and a space, Esc closes; "/" inside a word or path
|
||||
opens nothing;
|
||||
the global "/" search key keeps working outside text fields.
|
||||
4. **No send**: picking only inserts text.
|
||||
5. **Timing**: 023 decision 5.
|
||||
|
||||
## Approach
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
subgraph P["🧭 0 · Preparation"]
|
||||
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
|
||||
P2 -- "✏️ corrections" --> P1
|
||||
end
|
||||
P2 -- "🤖 yes, after 026" --> A1
|
||||
subgraph A["📚 A · Index"]
|
||||
A1["🗂️ Host timer writes the skills index"] --> A2["🌐 /api/skills"]
|
||||
A2 --> A3["✍️ Unit and integration tests written"]
|
||||
end
|
||||
A3 --> B1
|
||||
subgraph B["⌨️ B · Suggestions"]
|
||||
B1["🧩 Shared slash helper"] --> B2["🔗 Attached to every agent field"]
|
||||
B2 --> B3["✍️ E2E tests written"]
|
||||
end
|
||||
B3 --> C1
|
||||
subgraph C["🧪 C · After 030"]
|
||||
C1["🧪 All tests of 023 to 030 once"] --> C2{"🟢 Green?"}
|
||||
C2 -- "🔴 no: fix" --> C1
|
||||
C2 -- "🟢 yes" --> CF{"💬 Operator feedback on screenshots?"}
|
||||
CF -- "✏️ changes" --> A1
|
||||
end
|
||||
CF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
|
||||
```
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
### Index
|
||||
|
||||
- [ ] The index lists fixture skills of all three sources with their
|
||||
source; a name in two sources shows once per source.
|
||||
- [ ] `/api/skills` serves name, description and source only, sorted by
|
||||
name; no path and no body.
|
||||
- [ ] A new skill folder shows in `/api/skills` after the next timer run,
|
||||
without a hub restart.
|
||||
|
||||
### Suggestions
|
||||
|
||||
- [ ] In each field of decision 2, "/kvb-org-r" lists kvb-org-radio first;
|
||||
Enter inserts "/kvb-org-radio " at the caret.
|
||||
- [ ] In a field tied to a core card, a core project skill ranks above a
|
||||
global one with the same prefix.
|
||||
- [ ] "a/b" opens no list; Esc closes the list and keeps the text.
|
||||
- [ ] A test enumerates decision 2's fields and finds the helper on each.
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: frontmatter parser (missing description, no `SKILL.md`), filter
|
||||
and rank order.
|
||||
- [ ] Integration: the timer's index over fixture dirs, `/api/skills`,
|
||||
refresh.
|
||||
- [ ] E2E: every field of decision 2; screenshots.
|
||||
Reference in new issue
Block a user