@jeiemgi/cckit 0.5.0 → 0.7.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-plugin/plugin.json +1 -1
- package/AGENTS.md +34 -3
- package/README.md +95 -6
- package/bin/cckit +90 -3
- package/cckit.config.json +7 -2
- package/kit.config.schema.json +26 -1
- package/package.json +1 -1
- package/profiles/automation.json +2 -1
- package/profiles/content.json +2 -1
- package/profiles/minimal.json +2 -1
- package/profiles/research.json +2 -1
- package/profiles/software.json +2 -1
- package/scripts/benchmark/benchmark-test.sh +83 -0
- package/scripts/benchmark/gate.sh +55 -0
- package/scripts/benchmark/lib/bench-common.sh +70 -0
- package/scripts/benchmark/lib/model.sh +116 -0
- package/scripts/benchmark/report.sh +105 -0
- package/scripts/benchmark/run-quality.sh +102 -0
- package/scripts/benchmark/run.sh +166 -0
- package/scripts/benchmark/stop-check.sh +83 -0
- package/scripts/commitlint-test.sh +58 -0
- package/scripts/init.sh +57 -1
- package/scripts/kit-self-update.sh +55 -0
- package/scripts/lib/board-view-test.sh +1 -0
- package/scripts/lib/board-view.sh +1 -0
- package/scripts/lib/captain-test.sh +62 -0
- package/scripts/lib/captain.sh +105 -17
- package/scripts/lib/cckit-output.sh +1 -0
- package/scripts/lib/commitlint.sh +54 -0
- package/scripts/lib/config-path-test.sh +1 -0
- package/scripts/lib/config-path.sh +1 -0
- package/scripts/lib/copilot-test.sh +1 -0
- package/scripts/lib/copilot.sh +1 -0
- package/scripts/lib/effort-dispatch-test.sh +10 -0
- package/scripts/lib/effort-flows-test.sh +1 -0
- package/scripts/lib/effort-metrics-test.sh +1 -0
- package/scripts/lib/effort-metrics.sh +1 -0
- package/scripts/lib/effort-ops-test.sh +360 -0
- package/scripts/lib/effort-ops.sh +372 -16
- package/scripts/lib/effort-parity-test.sh +1 -0
- package/scripts/lib/effort-plan.sh +1 -0
- package/scripts/lib/effort-slug-test.sh +32 -0
- package/scripts/lib/effort-slug.sh +72 -8
- package/scripts/lib/effort.sh +1 -0
- package/scripts/lib/engine-adapter.sh +1 -0
- package/scripts/lib/errors-header-test.sh +86 -0
- package/scripts/lib/gh-log.sh +1 -0
- package/scripts/lib/gh-project-test.sh +1 -0
- package/scripts/lib/gh-project.sh +1 -0
- package/scripts/lib/git-remote-test.sh +1 -0
- package/scripts/lib/git-remote.sh +1 -0
- package/scripts/lib/handoff.sh +23 -2
- package/scripts/lib/kit-brief-test.sh +292 -0
- package/scripts/lib/kit-brief.sh +376 -0
- package/scripts/lib/kit-cli-test.sh +1 -0
- package/scripts/lib/kit-cli.sh +1 -0
- package/scripts/lib/kit-config-resolve.sh +1 -0
- package/scripts/lib/kit-config-test.sh +14 -0
- package/scripts/lib/kit-config.sh +7 -0
- package/scripts/lib/kit-engine-test.sh +1 -0
- package/scripts/lib/kit-events.sh +1 -0
- package/scripts/lib/kit-gc-test.sh +125 -0
- package/scripts/lib/kit-gc.sh +193 -5
- package/scripts/lib/kit-interview-test.sh +1 -0
- package/scripts/lib/kit-interview.sh +1 -0
- package/scripts/lib/kit-lib-test.sh +226 -0
- package/scripts/lib/kit-lib.sh +308 -0
- package/scripts/lib/kit-local.sh +1 -0
- package/scripts/lib/kit-manifest.sh +1 -0
- package/scripts/lib/kit-mode-test.sh +1 -0
- package/scripts/lib/kit-mode.sh +1 -0
- package/scripts/lib/kit-msg-test.sh +1 -0
- package/scripts/lib/kit-msg.sh +1 -0
- package/scripts/lib/kit-operate.sh +1 -0
- package/scripts/lib/kit-profile-test.sh +1 -0
- package/scripts/lib/kit-profile.sh +1 -0
- package/scripts/lib/kit-state-test.sh +89 -0
- package/scripts/lib/kit-state.sh +61 -0
- package/scripts/lib/kit-status-test.sh +233 -0
- package/scripts/lib/kit-status.sh +415 -0
- package/scripts/lib/kit-task-ops-test.sh +22 -0
- package/scripts/lib/kit-task-ops.sh +51 -2
- package/scripts/lib/next.sh +1 -0
- package/scripts/lib/plan-machine-test.sh +54 -0
- package/scripts/lib/plan-machine.sh +86 -25
- package/scripts/lib/plan-next-test.sh +1 -0
- package/scripts/lib/plan-next.sh +1 -0
- package/scripts/lib/pr-evidence-test.sh +259 -0
- package/scripts/lib/pr-evidence.sh +220 -35
- package/scripts/lib/project-scan.sh +1 -0
- package/scripts/lib/react-detect.sh +1 -0
- package/scripts/lib/render-test.sh +1 -0
- package/scripts/lib/render.sh +1 -0
- package/scripts/lib/role-identity.sh +1 -0
- package/scripts/lib/secret-guard.sh +21 -1
- package/scripts/lib/toon.sh +1 -0
- package/scripts/lib/ui.sh +1 -0
- package/scripts/lib/version-bump-test.sh +1 -0
- package/scripts/lib/version-bump.sh +1 -0
- package/scripts/lib/worktree-bootstrap-test.sh +220 -0
- package/scripts/lib/worktree-issue-test.sh +15 -1
- package/scripts/lib/worktree-issue.sh +23 -8
- package/scripts/lib/worktree-start.sh +191 -7
- package/scripts/lib/zsh-safety-test.sh +10 -0
- package/scripts/orchestrate.sh +8 -1
- package/scripts/portable-test.sh +13 -2
- package/scripts/self-install-test.sh +282 -0
- package/scripts/setup-labels.sh +1 -0
- package/scripts/status.sh +68 -40
- package/scripts/task-sync.sh +13 -0
- package/scripts/ux-a11y-scan.sh +96 -0
- package/scripts/ux-ds-audit.sh +146 -0
- package/scripts/ux-graph-scan.sh +188 -0
- package/skills/kit-autopilot/SKILL.md +6 -1
- package/skills/kit-cleanup/SKILL.md +83 -0
- package/skills/kit-effort-close/SKILL.md +3 -0
- package/skills/kit-effort-new/SKILL.md +7 -0
- package/skills/kit-effort-start/SKILL.md +39 -4
- package/skills/kit-gc/SKILL.md +19 -0
- package/skills/kit-next/SKILL.md +5 -0
- package/skills/kit-status/SKILL.md +92 -0
- package/skills/kit-task-start/SKILL.md +7 -1
- package/skills/kit-ux-audit/SKILL.md +241 -0
- package/skills/kit-ux-audit/references/a11y.md +79 -0
- package/skills/kit-ux-audit/references/consistency.md +106 -0
- package/skills/kit-ux-audit/references/graph-model.md +92 -0
- package/skills/kit-ux-audit/references/heuristics.md +157 -0
- package/skills/kit-ux-audit/references/report.md +172 -0
- package/templates/agents/ux.md +89 -0
- package/templates/benchmarks/SCHEMA.md +75 -0
- package/templates/benchmarks/abstain.jsonl +8 -0
- package/templates/benchmarks/adversarial.jsonl +8 -0
- package/templates/benchmarks/benchmark.config.json +14 -0
- package/templates/benchmarks/quality.jsonl +8 -0
- package/templates/benchmarks/retrieval.jsonl +7 -0
- package/templates/rules/branch-naming.md +20 -1
- package/templates/rules/communication-style.md +8 -0
- package/templates/rules/delegation-brief.md +38 -4
- package/templates/rules/effort-model.md +47 -4
- package/templates/rules/naming-and-ids.md +199 -0
- package/templates/rules/task-management.md +1 -1
- package/templates/settings/settings.json.tmpl +9 -0
- package/templates/skills/concrete/SKILL.md +117 -0
- package/templates/skills/karpathy-guidelines/SKILL.md +1 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# kit-ux-audit — heuristic catalogue
|
|
2
|
+
|
|
3
|
+
The audit itself. The **ux** agent applies every heuristic below to the graph slices it receives
|
|
4
|
+
(§2 of SKILL.md). Each has: the graph signal that triggers it, the default severity, and whether a
|
|
5
|
+
finding needs visual confirmation (`needs_visual`) rather than being assertable from structure alone.
|
|
6
|
+
|
|
7
|
+
Severity: `crit` (blocks a core task / data-loss risk) · `p1` (frequent friction) ·
|
|
8
|
+
`p2` (noticeable, localized) · `p3` (polish).
|
|
9
|
+
|
|
10
|
+
Node kinds referenced: `route` `screen` `container` `component` `data-entity` `form` `field`
|
|
11
|
+
`mutation` `store`. Edge types: `imports` `renders` `navigates-to` `reads` `writes` `mutates`
|
|
12
|
+
`validates` `duplicates`. See `graph-model.md` for how both graph sources map to these.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## H1 — Scattered edit surfaces (multiple sources of truth)
|
|
17
|
+
|
|
18
|
+
**Signal:** one `data-entity` has `writes` or `mutates` edges from ≥ 3 distinct `screen` nodes.
|
|
19
|
+
**Why it hurts:** the user (and the team) can't predict where a value "really" changes; edits made
|
|
20
|
+
in one place look absent in another.
|
|
21
|
+
**Severity:** `p1` (≥ 3 screens) → `crit` if the screens disagree on which fields they expose.
|
|
22
|
+
**Report:** list every editing screen for the entity, and whether each is full CRUD or partial.
|
|
23
|
+
**needs_visual:** false (structural).
|
|
24
|
+
|
|
25
|
+
## H2 — Read/write asymmetry
|
|
26
|
+
|
|
27
|
+
**Signal:** a `screen` has a prominent `reads` edge to an entity (rendered in a detail view / table)
|
|
28
|
+
but no `writes`/`mutates` edge to it and no `navigates-to` edge to a screen that has one — or the
|
|
29
|
+
inverse (write-only screen with no confirmation/readback).
|
|
30
|
+
**Why it hurts:** "I can see it but I can't change it here, and nothing tells me where to."
|
|
31
|
+
**Severity:** `p2` → `p1` if the entity is core (high fan-in).
|
|
32
|
+
**needs_visual:** true — confirm the field is actually surfaced as if editable.
|
|
33
|
+
|
|
34
|
+
## H3 — Deep path to a frequent action
|
|
35
|
+
|
|
36
|
+
**Signal:** click-depth from an entry `route` to a `mutation` (or the `screen` that hosts it) ≥ 4,
|
|
37
|
+
where the mutation is flagged frequent (create/save on a core entity, or high fan-in).
|
|
38
|
+
**Why it hurts:** routine work costs too many navigations.
|
|
39
|
+
**Severity:** `p1` (depth 4) → `crit` (depth ≥ 6 or no shortcut/deep-link exists).
|
|
40
|
+
**Report:** the shortest path found, and whether a deep link or command exists to skip it.
|
|
41
|
+
**needs_visual:** false.
|
|
42
|
+
|
|
43
|
+
## H4 — Orphan / dead-end screen
|
|
44
|
+
|
|
45
|
+
**Signal (orphan):** a `route`/`screen` with zero inbound `navigates-to` edges from within the app
|
|
46
|
+
(reachable only by typing the URL). **Signal (dead-end):** a `screen` with zero outbound
|
|
47
|
+
`navigates-to` and no back affordance in its container.
|
|
48
|
+
**Why it hurts:** orphans are undiscoverable; dead-ends trap the user.
|
|
49
|
+
**Severity:** `p1` → `p2` if it is an intentional deep-link target (e.g. an email link landing).
|
|
50
|
+
**needs_visual:** true for dead-ends (a global nav / breadcrumb may provide the exit).
|
|
51
|
+
|
|
52
|
+
## H5 — Ambiguous / divergent duplicate route
|
|
53
|
+
|
|
54
|
+
**Signal:** two `route` nodes resolve to the same `screen`/`data-entity` view but sit under
|
|
55
|
+
different `container` parents (different layout, nav context, or breadcrumb), or the same screen is
|
|
56
|
+
`renders`-reachable from ≥ 2 containers with different chrome.
|
|
57
|
+
**Why it hurts:** the user can't tell "where they are"; bookmarks and links behave inconsistently.
|
|
58
|
+
**Severity:** `p2` → `p1` if the two versions expose different actions on the same entity.
|
|
59
|
+
**needs_visual:** true — confirm the chrome/actions actually differ.
|
|
60
|
+
|
|
61
|
+
## H6 — Heavy form
|
|
62
|
+
|
|
63
|
+
**Signal:** a `form` node with any of: field count ≥ 12; required-field ratio ≥ 0.7 with count ≥ 8;
|
|
64
|
+
≥ 2 cross-field `validates` dependencies; multi-step (`form` spans ≥ 2 `screen`/step nodes) **with
|
|
65
|
+
no** progress/stepper node; no autosave/draft `mutation` on a form that is long or multi-step.
|
|
66
|
+
**Why it hurts:** high completion cost, high abandonment, lost work.
|
|
67
|
+
**Severity:** `p1` → `crit` for multi-step + no progress + no draft on a core flow.
|
|
68
|
+
**Report:** the specific triggers (count, required ratio, steps, missing stepper/draft).
|
|
69
|
+
**needs_visual:** true for "no progress indicator" (a stepper may be rendered but not modeled).
|
|
70
|
+
|
|
71
|
+
## H7 — Diverging create vs edit form
|
|
72
|
+
|
|
73
|
+
**Signal:** a `duplicates` edge between two `form` nodes (or two forms writing the same entity)
|
|
74
|
+
whose field sets differ by more than labels — one exposes fields the other hides, or validation
|
|
75
|
+
differs.
|
|
76
|
+
**Why it hurts:** you can create a record you can't fully edit later, or vice versa; rules feel
|
|
77
|
+
arbitrary.
|
|
78
|
+
**Severity:** `p1`.
|
|
79
|
+
**Report:** field-level diff (present-in-create / present-in-edit / different-validation).
|
|
80
|
+
**needs_visual:** false (structural), unless field identity is uncertain → then true.
|
|
81
|
+
|
|
82
|
+
## H8 — Inconsistent pattern for the same job
|
|
83
|
+
|
|
84
|
+
**Signal:** the same task (same `mutation` verb on the same entity kind, or `renders` of the same
|
|
85
|
+
primitive role) is presented three different structural ways across screens — e.g. one entity is
|
|
86
|
+
edited inline in a table on screen A, in a modal on screen B, on a dedicated route on screen C.
|
|
87
|
+
**Why it hurts:** every screen re-teaches the interaction.
|
|
88
|
+
**Severity:** `p2` → `p1` if it's a core entity.
|
|
89
|
+
**needs_visual:** true — confirm the presentation modes (modal vs page vs inline) from the screen.
|
|
90
|
+
**Scope note:** presentation/token drift on shared primitives (className overrides, "variants in
|
|
91
|
+
disguise") is a **design-system** concern — that is the `consistency` lane, not this one. H8 is
|
|
92
|
+
only about *structural* pattern divergence for the same task.
|
|
93
|
+
|
|
94
|
+
## H9 — Configuration-overloaded shared component ("god component")
|
|
95
|
+
|
|
96
|
+
**Signal:** a `component` node with fan-in ≥ 10 (`rendered` by many screens) AND a wide prop/variant
|
|
97
|
+
surface (many distinct call-site configurations in the graph, or flagged by the scan as a repeated
|
|
98
|
+
high-arity call).
|
|
99
|
+
**Why it hurts:** one component tries to be every screen's answer; call sites are hard to reason
|
|
100
|
+
about and easy to misconfigure.
|
|
101
|
+
**Severity:** `p2` → `p1` if its screens visibly diverge because of config.
|
|
102
|
+
**needs_visual:** false for the structural flag; true if recommending a split.
|
|
103
|
+
**Scope note:** the *deep* variant analysis belongs to the `consistency` lane; here just flag the
|
|
104
|
+
overload and its blast radius.
|
|
105
|
+
|
|
106
|
+
## H10 — Overloaded container / screen
|
|
107
|
+
|
|
108
|
+
**Signal:** a `screen`/`container` node with `reads`/`writes` edges to ≥ 4 distinct `data-entity`
|
|
109
|
+
nodes AND ≥ 2 child `form` nodes.
|
|
110
|
+
**Why it hurts:** the screen has no single job; users can't form a mental model of "what this page
|
|
111
|
+
is for".
|
|
112
|
+
**Severity:** `p2` → `p1` if it also hosts a core `mutation`.
|
|
113
|
+
**needs_visual:** true — confirm it reads as one dense screen, not well-separated tabs/sections.
|
|
114
|
+
|
|
115
|
+
## H11 — Inconsistent destructive-action guard
|
|
116
|
+
|
|
117
|
+
**Signal:** across `mutation` nodes whose verb is delete/remove/archive on comparable entities,
|
|
118
|
+
some have an associated confirm step/node and some do not.
|
|
119
|
+
**Why it hurts:** the user learns "delete asks first" on one screen and loses data on another.
|
|
120
|
+
**Severity:** `p1` → `crit` if any unguarded delete is irreversible on a core entity.
|
|
121
|
+
**Report:** guarded vs unguarded list.
|
|
122
|
+
**needs_visual:** true — a confirm dialog may be triggered in code the graph doesn't model.
|
|
123
|
+
|
|
124
|
+
## H12 — Navigation-away data-loss risk
|
|
125
|
+
|
|
126
|
+
**Signal:** a `screen` hosting a `form` with local edit state has outbound `navigates-to` edges (or
|
|
127
|
+
renders nav) with no unsaved-changes guard `node`/handler and no autosave `mutation`.
|
|
128
|
+
**Why it hurts:** a stray click discards typed work.
|
|
129
|
+
**Severity:** `p1` → `crit` for long/multi-step forms (compounds with H6).
|
|
130
|
+
**needs_visual:** true — a `beforeunload` / route guard may exist outside the graph.
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Output contract
|
|
135
|
+
|
|
136
|
+
For every triggered heuristic emit one finding object (schema in `report.md`):
|
|
137
|
+
|
|
138
|
+
```
|
|
139
|
+
{ "id": "H3-checkout-save",
|
|
140
|
+
"heuristic": "H3", "title": "4 clicks from Home to save an order line",
|
|
141
|
+
"severity": "p1",
|
|
142
|
+
"entity": "OrderLine",
|
|
143
|
+
"screens": ["Home", "Orders", "OrderDetail", "OrderLineEdit"],
|
|
144
|
+
"evidence": ["path route:/ → screen:Orders → screen:OrderDetail → form:OrderLineForm",
|
|
145
|
+
"no deep-link node to OrderLineEdit"],
|
|
146
|
+
"confidence": "high",
|
|
147
|
+
"needs_visual": false,
|
|
148
|
+
"recommendation": "Add an inline edit on the Orders table row, or a /orders/:id/line/:n deep link." }
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Rules for the agent:
|
|
152
|
+
- Run **all twelve**. A heuristic with no hits produces no finding — do not pad.
|
|
153
|
+
- **Never invent an edge.** If a verdict depends on something the graph doesn't contain, set
|
|
154
|
+
`needs_visual: true` and say what to check, rather than asserting.
|
|
155
|
+
- Rank findings `crit` → `p3`, then by number of screens touched.
|
|
156
|
+
- Keep `recommendation` to one or two concrete sentences (a change, not an essay).
|
|
157
|
+
- Cite node/edge ids in `evidence` so the reader can find it in `graph.html` / the scan JSON.
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
# kit-ux-audit — the report
|
|
2
|
+
|
|
3
|
+
The report is **written, not rendered**. After the **ux** agent returns `findings.json`, author
|
|
4
|
+
`UX_FLOW_REPORT.html` yourself, following the **`kit-docs-writer`** skill — its page template,
|
|
5
|
+
voice rules, scannability mechanics, and the "before you finish" checklist. Load that skill and
|
|
6
|
+
hold to it. This file adds only what is specific to a UX audit report: the section order for this
|
|
7
|
+
content, and the visual identity.
|
|
8
|
+
|
|
9
|
+
**Not an artifact.** The report is a self-contained HTML file written into the target repo
|
|
10
|
+
(`<target>/UX_FLOW_REPORT.html`). Do not publish it with the Artifact tool.
|
|
11
|
+
|
|
12
|
+
## `findings.json` — the ux agent's output (the raw material)
|
|
13
|
+
|
|
14
|
+
```json
|
|
15
|
+
{
|
|
16
|
+
"meta": {
|
|
17
|
+
"target": "apps/web/src", "app": "Acme Console", "framework": "next", "router": "app-router",
|
|
18
|
+
"monorepo": true, "lane": "all", "graph_source": "graphify",
|
|
19
|
+
"graph_stats": { "nodes": 1840, "edges": 4120, "screens": 46, "entities": 21, "forms": 14 },
|
|
20
|
+
"generated_at": "2026-09-02T18:30:00Z", "files_opened": 8,
|
|
21
|
+
"visual": { "ran": false, "shots": 0, "reason": "no --visual" }
|
|
22
|
+
},
|
|
23
|
+
"findings": [
|
|
24
|
+
{
|
|
25
|
+
"id": "H3-invoice-line", "lane": "flows", "heuristic": "H3",
|
|
26
|
+
"title": "5 clicks from Home to edit an invoice line item",
|
|
27
|
+
"severity": "crit|p1|p2|p3", "scope": "InvoiceLine",
|
|
28
|
+
"screens": ["Home", "Billing", "Billing/Invoices", "Billing/InvoiceDetail", "Billing/InvoiceLineEdit"],
|
|
29
|
+
"evidence": ["shortest path: route:/ -> ... -> form:InvoiceLineForm", "no deep-link node"],
|
|
30
|
+
"confidence": "high|med|low", "needs_visual": false,
|
|
31
|
+
"recommendation": "One or two concrete sentences — a change, not an essay.",
|
|
32
|
+
"effort_hint": "effort|quick|null", "shot": "H3-invoice-line.png"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"edit_surface_map": { "Plan": ["Settings/Billing", "Settings/Plan", "Admin/Workspace"] },
|
|
36
|
+
"flow_map": [
|
|
37
|
+
{ "entry": "/", "screen": "Home", "depth": 0, "flags": [] },
|
|
38
|
+
{ "entry": "/", "screen": "Billing/InvoiceLineEdit", "depth": 5, "flags": ["deep"] },
|
|
39
|
+
{ "entry": null, "screen": "Tools/LegacyImport", "depth": null, "flags": ["orphan"] }
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
`heuristic` is `H1`–`H12` (`heuristics.md`), `C1`–`C6` (`consistency.md`), or `A1`–`A5` (`a11y.md`).
|
|
45
|
+
`severity`: `crit` blocks a core task or risks data loss · `p1` frequent friction · `p2` localized
|
|
46
|
+
· `p3` polish. `needs_visual: true` → the agent could not confirm from structure; it goes on the
|
|
47
|
+
"look at this" list, and if a screenshot was captured it goes inline.
|
|
48
|
+
|
|
49
|
+
## Section order (this is the `kit-docs-writer` page template, filled for an audit)
|
|
50
|
+
|
|
51
|
+
1. **Title** — `UX audit — <app name>`. Plain. No cleverness.
|
|
52
|
+
2. **One-line description** — one sentence: what this report tells the reader and what was scanned.
|
|
53
|
+
e.g. "What in <app>'s flows, forms, and markup is likely to confuse or slow a user, found by
|
|
54
|
+
reading the app's component graph rather than clicking through every screen."
|
|
55
|
+
3. **Run facts** — a short definition list: target path, framework/router, lane, graph source +
|
|
56
|
+
node/edge counts, when it ran, how many source files were opened, whether the visual pass ran.
|
|
57
|
+
If `graph_source` is `scan`, one CAUTION callout: the graph is an approximate text scan, so
|
|
58
|
+
findings lean on structure — run `/graphify` for a semantic graph.
|
|
59
|
+
4. **The one diagram (only if it earns its place)** — a left-to-right flow of the single worst
|
|
60
|
+
tangle (e.g. the deepest path, or the entity edited from the most screens). Self-explanatory
|
|
61
|
+
from the title. Skip it if no single flow is worth drawing — do not draw a restated sentence.
|
|
62
|
+
5. **What was found** — the counts (critical / high / medium / low) and one sentence: "N findings
|
|
63
|
+
across M screens." Then the findings themselves, **grouped under a heading per severity**,
|
|
64
|
+
highest first. Each finding is a short block, not a card:
|
|
65
|
+
- a bold lead line: the finding title
|
|
66
|
+
- `Where:` the scope and the screen list
|
|
67
|
+
- `Why it slows people down:` one plain sentence (define the heuristic term here the first time
|
|
68
|
+
it appears, in one clause — "H6, a heavy form: many fields, most required, several steps")
|
|
69
|
+
- `Evidence:` the `evidence` lines, in a code block
|
|
70
|
+
- `Fix:` the recommendation, plus the `effort_hint` as "small change" / "its own effort"
|
|
71
|
+
- the screenshot inline if one was captured; otherwise, if `needs_visual`, one line: "Needs a
|
|
72
|
+
look at the running screen to confirm."
|
|
73
|
+
6. **Flow map** — the `flow_map` as an indented list from each entry route. `deep` rows show their
|
|
74
|
+
click depth; `orphan` rows are pulled into a separate short list titled "Reachable only by
|
|
75
|
+
typing the URL".
|
|
76
|
+
7. **Where each piece of data is edited** — a table: entity → every screen that writes it → count.
|
|
77
|
+
Link the count to the matching H1 finding when it is 3 or more.
|
|
78
|
+
8. **Still to check by hand** — every `needs_visual` finding with no screenshot: the screen, what
|
|
79
|
+
to look at, which finding. For the `a11y` lane, add one line: a rendered-app axe / Lighthouse
|
|
80
|
+
pass is still owed — this report only reads the source.
|
|
81
|
+
9. **What to do next** — no dead end. Two or three concrete next steps in order: the first thing to
|
|
82
|
+
fix, how to turn the rest into work (`/kit-effort-new` for a sweep, the quick lane for a
|
|
83
|
+
one-file fix), and re-running the audit to verify. This is the "next-section buttons" slot.
|
|
84
|
+
|
|
85
|
+
## Voice (from `kit-docs-writer` — non-negotiable here too)
|
|
86
|
+
|
|
87
|
+
- **Zero analogies.** Describe the actual flow, never "it's like…".
|
|
88
|
+
- **Define every heuristic term once**, in one clause, the first time it appears.
|
|
89
|
+
- **Front-load.** The first words of every heading and bullet carry the meaning.
|
|
90
|
+
- Short paragraphs, one idea each. Lists over prose. Code and paths in code blocks.
|
|
91
|
+
- Callouts sparingly: CAUTION for the approximate-graph note and for any `crit` finding, NOTE for
|
|
92
|
+
a beginner aside, TIP for a shortcut. Not more.
|
|
93
|
+
- Lead with the outcome: "Move the plan editor to one screen" beats "It would be good to consider…".
|
|
94
|
+
|
|
95
|
+
## Visual identity — the font is the protagonist
|
|
96
|
+
|
|
97
|
+
One embedded `<style>` block, no external CSS, no CDN beyond Google Fonts. Screenshots embedded as
|
|
98
|
+
`data:` URIs.
|
|
99
|
+
|
|
100
|
+
- **Display face: Datatype** (Google Fonts). It carries the report — the title, every section
|
|
101
|
+
heading, every finding lead line, and the big severity counts are Datatype, set large, tight
|
|
102
|
+
(`letter-spacing: -0.02em`), and confident. Labels (`Where:`, `Fix:`, run-fact keys) are Datatype
|
|
103
|
+
in small caps / uppercase with positive tracking. This is the one memorable move; spend it here.
|
|
104
|
+
Stack: `"Datatype", "Open Sans", "Helvetica Neue", Arial, sans-serif`.
|
|
105
|
+
- **Body face: Open Sans** (Google Fonts). All running text, `Where/Why/Fix` values, table cells,
|
|
106
|
+
the flow list. Plain and quiet so Datatype stays the protagonist. Stack:
|
|
107
|
+
`"Open Sans", "Helvetica Neue", Arial, sans-serif`.
|
|
108
|
+
- **Mono face: IBM Plex Mono** (Google Fonts). Evidence, ids, paths, code. Neutral and humanist,
|
|
109
|
+
so it sits with Open Sans without competing with Datatype. Stack:
|
|
110
|
+
`"IBM Plex Mono", ui-monospace, "SF Mono", "Courier New", monospace`.
|
|
111
|
+
- **Antialiasing.** On `body`: `-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;`
|
|
112
|
+
and `text-rendering: optimizeLegibility;`.
|
|
113
|
+
- **One `<link>`, three families:**
|
|
114
|
+
```html
|
|
115
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
116
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
117
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Datatype:wght@400;500;700&family=Open+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap">
|
|
118
|
+
```
|
|
119
|
+
- **Neutrals:** a warm off-white ground with a faint bias toward the accent, not a flat grey.
|
|
120
|
+
- **Severity is color + word + a left rule**, never color alone: `crit` a desaturated red, `p1`
|
|
121
|
+
amber, `p2` blue, `p3` slate — each defined as a token on bare `:root`. The accent (one, cool)
|
|
122
|
+
is separate from the severity colors.
|
|
123
|
+
- **One accent moment.** Datatype at display size on the title is the anchor; everything else is
|
|
124
|
+
restrained.
|
|
125
|
+
|
|
126
|
+
## Accessibility & semantic HTML (the report is a worked example)
|
|
127
|
+
|
|
128
|
+
- Full document: `<!doctype html>`, `<html lang="en">`, `<head>` with charset, viewport, `<title>`,
|
|
129
|
+
`<meta name="color-scheme" content="light dark">`.
|
|
130
|
+
- Landmarks: one `<main>`, a `<header>` for title + one-liner + run facts, one `<section>` per
|
|
131
|
+
numbered part above, each named by `aria-labelledby` → its heading, a `<footer>` to close.
|
|
132
|
+
A skip link to the findings is the first focusable element.
|
|
133
|
+
- Headings: exactly one `<h1>` (the title); `<h2>` per section; severity groups and finding lead
|
|
134
|
+
lines are `<h3>`. No skipped level.
|
|
135
|
+
- Right element for the content: run facts and each finding's `Where/Why/Fix` are `<dl>`; the
|
|
136
|
+
severity counts, screen lists, flow map, and "still to check" list are `<ul>`/`<ol>`; the
|
|
137
|
+
data-edit map is a `<table>` with `<caption>`, `<th scope="col">`, and a row header per entity.
|
|
138
|
+
No `<div>` doing a list's or a table's job.
|
|
139
|
+
- Every screenshot `<img>` has a descriptive `alt` (finding id + title) and a `<figcaption>`; a
|
|
140
|
+
decorative rule is `aria-hidden`.
|
|
141
|
+
- Visible `:focus-visible` on anything focusable; `prefers-reduced-motion` respected; wide blocks
|
|
142
|
+
(evidence, table, flow list) scroll inside their own `overflow-x:auto` container so the page
|
|
143
|
+
body never scrolls sideways.
|
|
144
|
+
- Theme-aware: full light palette on bare `:root`; dark overrides under
|
|
145
|
+
`@media (prefers-color-scheme: dark)` guarded `:root:not([data-theme="light"])`, and again under
|
|
146
|
+
`:root[data-theme="dark"]`. `body` sets an explicit token background.
|
|
147
|
+
- The page is fully readable with no JavaScript. If you add a severity filter, it is progressive
|
|
148
|
+
enhancement over an already-complete page (real `<button type="button">`, `aria-pressed`, toggle
|
|
149
|
+
the `hidden` property).
|
|
150
|
+
|
|
151
|
+
## Theme system tokens (starting point — adjust hues, keep the structure)
|
|
152
|
+
|
|
153
|
+
```css
|
|
154
|
+
:root{
|
|
155
|
+
--bg:#f7f6f2; --surface:#fffdf8; --ink:#1a1a1e; --muted:#67675f; --line:#e7e4da;
|
|
156
|
+
--accent:#3f3ac4;
|
|
157
|
+
--crit:#a5322a; --p1:#8a5a12; --p2:#325f8f; --p3:#6a6a72;
|
|
158
|
+
}
|
|
159
|
+
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
|
|
160
|
+
--bg:#131316; --surface:#1c1c21; --ink:#ededf0; --muted:#a1a1aa; --line:#2c2c34;
|
|
161
|
+
--accent:#a6a2f4;
|
|
162
|
+
--crit:#ec7d72; --p1:#e0ad60; --p2:#7fabd8; --p3:#a1a1aa;
|
|
163
|
+
}}
|
|
164
|
+
:root[data-theme="dark"]{
|
|
165
|
+
--bg:#131316; --surface:#1c1c21; --ink:#ededf0; --muted:#a1a1aa; --line:#2c2c34;
|
|
166
|
+
--accent:#a6a2f4;
|
|
167
|
+
--crit:#ec7d72; --p1:#e0ad60; --p2:#7fabd8; --p3:#a1a1aa;
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
Run the `kit-docs-writer` "before you finish" checklist, then this file's accessibility list,
|
|
172
|
+
before you call the report done.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ux
|
|
3
|
+
description: UX sub-agent. Owns UX/UI flow analysis, information architecture, data-editing surfaces, form usability, design-system consistency judgment, and semantic-HTML / accessibility review — all reasoned over a component/screen graph rather than screen-by-screen. Invoked by kit-ux-audit and for any "is this flow confusing", "where can this data be edited", "is this consistent", "is this markup accessible" question.
|
|
4
|
+
when_to_use: A UX/IA audit, flow review, "too many places to edit X", form-usability check, design-system consistency pass, or accessibility / semantic-HTML review. Graph-driven — give it graph slices, not source files. For a purely visual per-screen critique of a running app, use the designer agent instead.
|
|
5
|
+
tools: [Read, Grep, Glob, Bash]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# UX Sub-Agent — {{PROJECT_NAME}}
|
|
9
|
+
|
|
10
|
+
## Identity
|
|
11
|
+
|
|
12
|
+
You are the **UX engineer** for {{PROJECT_NAME}}. You judge how the app's flows, data-editing
|
|
13
|
+
surfaces, forms, design-system usage, and markup hang together — from a **graph** of the app
|
|
14
|
+
(routes ↔ screens ↔ containers ↔ components ↔ data entities ↔ forms), not by opening screen after
|
|
15
|
+
screen. Detection is deterministic (a script or the graph); you do the judgment.
|
|
16
|
+
|
|
17
|
+
Authority:
|
|
18
|
+
|
|
19
|
+
- ✅ Flow / navigation analysis — click-depth, orphan/dead-end screens, ambiguous routes
|
|
20
|
+
- ✅ Information architecture — where data is read vs written, single source of truth
|
|
21
|
+
- ✅ Data-editing surfaces — the same entity editable from many screens
|
|
22
|
+
- ✅ Form usability — field load, required density, multi-step, progress, draft/autosave
|
|
23
|
+
- ✅ Design-system consistency **judgment** — LAYOUT / VISUAL / BEHAVIOR classification, variant
|
|
24
|
+
proposals, sibling-screen drift (detection is a script)
|
|
25
|
+
- ✅ Semantic HTML + accessibility — non-semantic interactives, text alternatives, labels,
|
|
26
|
+
heading/landmark structure, focus and keyboard
|
|
27
|
+
- ❌ Visual/brand decisions — new token values, new visual direction (route to Designer)
|
|
28
|
+
- ❌ Implementation — writing the component code (route to Frontend)
|
|
29
|
+
- ❌ Inventing a relationship the graph does not contain
|
|
30
|
+
|
|
31
|
+
## How you work
|
|
32
|
+
|
|
33
|
+
1. **You receive graph slices as compact JSON — not source files.** Routes/screens with
|
|
34
|
+
click-depth; god-nodes; community bridges; per data-entity its reads/writes/mutates edges; per
|
|
35
|
+
form its field/required counts, steps, host screens, duplicates. For the consistency and a11y
|
|
36
|
+
lanes you receive the deterministic scanner's occurrence lists.
|
|
37
|
+
2. **Apply the full catalogue for the lane** — every heuristic, no cherry-picking:
|
|
38
|
+
- flows → `skills/kit-ux-audit/references/heuristics.md` (H1–H12)
|
|
39
|
+
- consistency → `skills/kit-ux-audit/references/consistency.md` (C1–C6)
|
|
40
|
+
- a11y → `skills/kit-ux-audit/references/a11y.md` (A1–A5)
|
|
41
|
+
3. **Never invent an edge.** If a verdict needs something the graph/scan does not show, set
|
|
42
|
+
`needs_visual: true` and say exactly what to check — do not assert it.
|
|
43
|
+
4. **Open a source file only to confirm a specific flagged finding**, and only within the caller's
|
|
44
|
+
file cap. Report how many you opened.
|
|
45
|
+
5. **Cite node/edge ids (or file:line) in every finding's `evidence`** so a reader can find it.
|
|
46
|
+
|
|
47
|
+
## Output — one finding object per triggered heuristic
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
{ "id": "H3-invoice-line", "lane": "flows", "heuristic": "H3",
|
|
51
|
+
"title": "5 clicks from Home to edit an invoice line item",
|
|
52
|
+
"severity": "crit|p1|p2|p3",
|
|
53
|
+
"scope": "InvoiceLine",
|
|
54
|
+
"screens": ["Home", "Billing", "Billing/Invoices", "Billing/InvoiceDetail", "Billing/InvoiceLineEdit"],
|
|
55
|
+
"evidence": ["shortest path: route:/ -> screen:Billing -> ... -> form:InvoiceLineForm",
|
|
56
|
+
"no deep-link node to screen:BillingInvoiceLineEdit"],
|
|
57
|
+
"confidence": "high|med|low",
|
|
58
|
+
"needs_visual": false,
|
|
59
|
+
"recommendation": "One or two concrete sentences — a change, not an essay.",
|
|
60
|
+
"effort_hint": "effort|quick|null" }
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
- A heuristic with no hits produces **no finding** — do not pad.
|
|
64
|
+
- Rank `crit → p3`, then by number of screens touched.
|
|
65
|
+
- Group by lane when returning findings for `--lane all`.
|
|
66
|
+
|
|
67
|
+
## Routing
|
|
68
|
+
|
|
69
|
+
- **Design DECISIONS** (a new visual value, which of two treatments wins, a new variant's look) →
|
|
70
|
+
the **designer** agent.
|
|
71
|
+
- **IMPLEMENTATION** with existing tokens/patterns → the **frontend** agent.
|
|
72
|
+
- You produce the analysis and the ranked findings; you do not file issues or write component code.
|
|
73
|
+
|
|
74
|
+
## Voice + style
|
|
75
|
+
|
|
76
|
+
- Lead with the finding, then the evidence, then the fix. Tables for comparisons (sibling-screen
|
|
77
|
+
drift, create-vs-edit field diffs). No long intros.
|
|
78
|
+
- Every finding names a concrete node/screen/entity, never "the UX feels off".
|
|
79
|
+
|
|
80
|
+
<!-- IF:MEMORY -->
|
|
81
|
+
## Memory (MemPalace)
|
|
82
|
+
|
|
83
|
+
| Action | Tool | Params |
|
|
84
|
+
| --------------- | ----------------------- | ------------------------------------- |
|
|
85
|
+
| Wake-up recall | `mempalace_diary_read` | wing=`agent-ux` |
|
|
86
|
+
| Search history | `mempalace_search` | wing=`{{WING}}` room=`architecture` |
|
|
87
|
+
| Save finding | `mempalace_add_drawer` | wing=`{{WING}}` room=`architecture` |
|
|
88
|
+
| Save diary | `mempalace_diary_write` | wing=`agent-ux`, topic=audit |
|
|
89
|
+
<!-- /IF:MEMORY -->
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Benchmark datasets — schema
|
|
2
|
+
|
|
3
|
+
This folder is your project's **documentation benchmark**: a set of questions that measure how well
|
|
4
|
+
an agent starting cold can **find and use your own canonical docs** (rules, ADRs, wiki pages). cckit
|
|
5
|
+
ships the *runner* and this *example set*; the data is **per-project** — you grow it.
|
|
6
|
+
|
|
7
|
+
Run it after any docs or kit-version change to catch retrieval / routing / findability regressions.
|
|
8
|
+
|
|
9
|
+
## Files
|
|
10
|
+
|
|
11
|
+
| File | Tier | What it tests | Scoring |
|
|
12
|
+
| --- | --- | --- | --- |
|
|
13
|
+
| `retrieval.jsonl` | retrieval | plain question → the one canonical doc | objective top-hit path match |
|
|
14
|
+
| `adversarial.jsonl` | adversarial | paraphrased / no-keyword / split / trap | objective top-hit path match |
|
|
15
|
+
| `abstain.jsonl` | abstain | unanswerable → agent must return NONE | any path returned = fail |
|
|
16
|
+
| `quality.jsonl` | quality | claim-style answer correctness | model judge, 0..1, mean |
|
|
17
|
+
| `benchmark.config.json` | — | lists the sets, the knowledge dir, and the autopilot targets | — |
|
|
18
|
+
|
|
19
|
+
Each `*.jsonl` file has **one JSON object per line**. Blank lines and `#` comment lines are ignored,
|
|
20
|
+
so you can annotate freely.
|
|
21
|
+
|
|
22
|
+
## Record shapes
|
|
23
|
+
|
|
24
|
+
**Retrieval / adversarial** — `expect` is a path relative to the knowledge dir, or an array of
|
|
25
|
+
acceptable paths (use an array when the answer is legitimately split across docs):
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{"id": "ret-01", "q": "How do we cut a release?", "expect": "releasing.md"}
|
|
29
|
+
{"id": "adv-04", "q": "Where do we write down a design decision?", "expect": ["adr/README.md", "architecture.md"]}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
**Abstain** — there is no documented answer; the agent must not invent one. `expect` is always
|
|
33
|
+
`"NONE"`, and returning *any* path fails the record:
|
|
34
|
+
|
|
35
|
+
```json
|
|
36
|
+
{"id": "abs-01", "q": "What is the DB admin password?", "expect": "NONE"}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**Quality** — a claim-style prompt plus a `must` rubric (the required points). The judge scores the
|
|
40
|
+
answer's coverage of those points, not its tone — the rubric is what de-biases the judge:
|
|
41
|
+
|
|
42
|
+
```json
|
|
43
|
+
{"id": "qual-01", "claim": "Summarize our release process.", "must": ["version bumped", "changelog updated", "tag published"]}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Path matching
|
|
47
|
+
|
|
48
|
+
Matching is lenient about *where* a path is rooted (a leading `./` or a leading knowledge-dir prefix
|
|
49
|
+
is stripped) and about basename equality, but strict about *which* document is named. So
|
|
50
|
+
`knowledge/releasing.md`, `releasing.md`, and `./releasing.md` all match the expected `releasing.md`.
|
|
51
|
+
|
|
52
|
+
## Running
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# offline shape check (no model) — run in CI / the no-mistakes gate
|
|
56
|
+
scripts/benchmark/run.sh --dry
|
|
57
|
+
scripts/benchmark/run-quality.sh --dry
|
|
58
|
+
|
|
59
|
+
# live run (uses the configured model backend)
|
|
60
|
+
scripts/benchmark/run.sh # retrieval + adversarial + abstain
|
|
61
|
+
scripts/benchmark/run-quality.sh # quality (judged)
|
|
62
|
+
scripts/benchmark/report.sh # writes RESULTS.md a non-expert can read
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Model backend (pluggable)
|
|
66
|
+
|
|
67
|
+
The backend has **no hard dependency on a provider**. Selection is by environment:
|
|
68
|
+
|
|
69
|
+
| Env | Backend |
|
|
70
|
+
| --- | --- |
|
|
71
|
+
| _(default)_ | headless `claude -p` — the $0-API subscription path |
|
|
72
|
+
| `BENCH_MODEL_ENDPOINT=<url>` (+ optional `BENCH_MODEL`, `BENCH_API_KEY`) | any OpenAI-compatible `/chat/completions` endpoint |
|
|
73
|
+
| `BENCH_BACKEND=mock` | deterministic offline stand-in (used by `--dry` / tests) |
|
|
74
|
+
|
|
75
|
+
`BENCH_TIMEOUT_SECS` (default 90) caps each model call via a portable timeout.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# abstain.jsonl — questions with NO documented answer. The agent must abstain (return NONE), not
|
|
2
|
+
# invent a doc. Any path returned is a FAIL. `expect` is always "NONE".
|
|
3
|
+
# EXAMPLE DATA — replace with plausible-but-undocumented questions for YOUR project.
|
|
4
|
+
# Schema: {"id","q","expect":"NONE"}
|
|
5
|
+
{"id": "abs-01", "q": "What is the production database's admin password?", "expect": "NONE"}
|
|
6
|
+
{"id": "abs-02", "q": "Which vendor do we use for physical office security badges?", "expect": "NONE"}
|
|
7
|
+
{"id": "abs-03", "q": "What is the CEO's personal phone number?", "expect": "NONE"}
|
|
8
|
+
{"id": "abs-04", "q": "How do we file our quarterly corporate taxes?", "expect": "NONE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# adversarial.jsonl — the SAME canonical docs, reached through harder inputs: paraphrased, no shared
|
|
2
|
+
# keyword, split-canonical (either doc is right), or a trap that sounds related but isn't.
|
|
3
|
+
# EXAMPLE DATA — replace with your project's own hardened questions.
|
|
4
|
+
# Schema: {"id","q","expect"} (same as retrieval; expect may be an array for split-canonical).
|
|
5
|
+
{"id": "adv-01", "q": "A teammate wants to ship a new version to users — where's the runbook?", "expect": "releasing.md"}
|
|
6
|
+
{"id": "adv-02", "q": "Off which line should I start a new piece of work?", "expect": "branching.md"}
|
|
7
|
+
{"id": "adv-03", "q": "New hire, day one — what should they read first?", "expect": "onboarding.md"}
|
|
8
|
+
{"id": "adv-04", "q": "We disagreed on a design choice and want to write down the reasoning we settled on.", "expect": ["adr/README.md", "architecture.md"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Example benchmark config shipped by cckit. Datasets are PER-PROJECT: replace the records in the *.jsonl files with your own project's questions + expected canonical-doc paths, then grow them over time. cckit ships only this example + the schema (benchmarks/SCHEMA.md).",
|
|
3
|
+
"knowledgeDir": "knowledge",
|
|
4
|
+
"sets": [
|
|
5
|
+
{ "name": "retrieval", "file": "retrieval.jsonl", "tier": "retrieval" },
|
|
6
|
+
{ "name": "adversarial", "file": "adversarial.jsonl", "tier": "adversarial" },
|
|
7
|
+
{ "name": "abstain", "file": "abstain.jsonl", "tier": "abstain" },
|
|
8
|
+
{ "name": "quality", "file": "quality.jsonl", "tier": "quality" }
|
|
9
|
+
],
|
|
10
|
+
"target": {
|
|
11
|
+
"minRecords": 12,
|
|
12
|
+
"cleanRounds": 2
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# quality.jsonl — claim-style prompts graded 0..1 for answer completeness. Each carries a `must`
|
|
2
|
+
# rubric (the required points) so the judge scores coverage, not tone. This de-biases the judge.
|
|
3
|
+
# EXAMPLE DATA — replace with your project's real claims + rubrics.
|
|
4
|
+
# Schema: {"id","claim","must":[ "point", "point", ... ]}
|
|
5
|
+
{"id": "qual-01", "claim": "Summarize our release process end to end.", "must": ["version is bumped", "changelog is updated", "a tag/release is published", "who approves or triggers it"]}
|
|
6
|
+
{"id": "qual-02", "claim": "Explain our branching model to a new contributor.", "must": ["the base/integration branch is named", "feature branches base off it", "how work merges back"]}
|
|
7
|
+
{"id": "qual-03", "claim": "What are the first steps for onboarding a new engineer?", "must": ["access/accounts are provisioned", "the repo is set up locally", "which docs to read first"]}
|
|
8
|
+
{"id": "qual-04", "claim": "Describe how and where we record architectural decisions.", "must": ["decisions are written as ADRs (or equivalent)", "where they live in the repo", "each states context and the decision"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# retrieval.jsonl — direct questions. The agent should point at the ONE canonical doc that answers.
|
|
2
|
+
# EXAMPLE DATA — replace `q` + `expect` with your project's real questions and canonical-doc paths.
|
|
3
|
+
# Schema: {"id","q","expect"} where expect = a knowledge-relative path, or an array of acceptable paths.
|
|
4
|
+
{"id": "ret-01", "q": "How do we cut and publish a release?", "expect": "releasing.md"}
|
|
5
|
+
{"id": "ret-02", "q": "What is our branching model and where do feature branches base off?", "expect": "branching.md"}
|
|
6
|
+
{"id": "ret-03", "q": "How is the onboarding process for a new contributor documented?", "expect": "onboarding.md"}
|
|
7
|
+
{"id": "ret-04", "q": "Where do we record architectural decisions?", "expect": ["adr/README.md", "architecture.md"]}
|
|
@@ -8,10 +8,29 @@ Canonical naming + merge-order rules so you're never confused about *what a bran
|
|
|
8
8
|
<kind>/<issue-number>-<slug>
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
- `<kind>` — one of the closed set below
|
|
11
|
+
- `<kind>` — one of the closed set below, or one of the two effort prefixes named next. No others.
|
|
12
12
|
- `<issue-number>` — the issue this branch closes. **Always required** for human work.
|
|
13
13
|
- `<slug>` — short kebab-case description (≤ 5 words).
|
|
14
14
|
|
|
15
|
+
### Effort prefixes (the two exceptions to the closed set)
|
|
16
|
+
|
|
17
|
+
An effort's integration branch and its sub-branches are **not** in the kind table — they are named
|
|
18
|
+
after the effort, not after a kind of change:
|
|
19
|
+
|
|
20
|
+
| Pattern | What | `N` |
|
|
21
|
+
| --- | --- | --- |
|
|
22
|
+
| `effort/<N>-<slug>` | the effort's ONE integration branch, cut from the base; its ONE PR opens from here. `effort-model.md` writes it `effort/<N>` — same branch, slug elided | the **parent effort issue's** GitHub issue number |
|
|
23
|
+
| `sub/<N><letter>-<slug>` | one sub-issue of that effort, cut from `effort/<N>` and merged back into it | the same parent effort issue number, plus one lowercase letter |
|
|
24
|
+
|
|
25
|
+
`effort-start` creates the first and `orchestrate` the second; do not hand-roll either.
|
|
26
|
+
|
|
27
|
+
**Effort sub-branches** add one lowercase letter to the number — `sub/<N><letter>-<slug>`
|
|
28
|
+
(`sub/1604a-parser`), branched from `effort/<N>` and merged back into it (`rules/effort-model.md`).
|
|
29
|
+
Tooling derives the parent effort **#N** from that form, so `gc` protects a live sub the same way
|
|
30
|
+
it protects any branch whose issue is still open. One trailing letter only — `16a04` or `1604a4`
|
|
31
|
+
is not an issue number and gets no protection. (The parser honors the suffix for any kind, not
|
|
32
|
+
just `sub` — it errs toward protection rather than risk deleting a misnamed live branch.)
|
|
33
|
+
|
|
15
34
|
### Closed set of kinds
|
|
16
35
|
|
|
17
36
|
| Kind | For | Typical risk |
|
|
@@ -20,3 +20,11 @@
|
|
|
20
20
|
- Use tables for comparisons and status
|
|
21
21
|
- Use bullets for lists and steps
|
|
22
22
|
- If something needs explanation, keep it tight
|
|
23
|
+
|
|
24
|
+
## Durable prose
|
|
25
|
+
|
|
26
|
+
- Commits, PR and issue bodies, rules, ADRs and knowledge docs go through the `concrete` skill
|
|
27
|
+
before they are written: it names each cut by offense and never deletes for length.
|
|
28
|
+
- **A delegated agent inherits this only through its brief.** Stating the mandate here does not make
|
|
29
|
+
it fire in a sub-agent — `delegation-brief.md` § *Durable prose — the concrete pass* is what
|
|
30
|
+
carries it into a delegated agent's context, and `cckit brief` emits that block.
|