@haposoft/cafekit 0.16.7 → 0.18.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.
- package/README.md +14 -22
- package/bin/__tests__/codex-hooks-ownership.test.js +2 -2
- package/bin/__tests__/codex-hooks.test.js +169 -272
- package/bin/__tests__/codex-native.test.js +100 -202
- package/bin/__tests__/develop-contract.test.js +122 -1413
- package/bin/__tests__/docs-sync-on-demand.test.js +93 -0
- package/bin/__tests__/grok-envelope.test.js +0 -56
- package/bin/__tests__/hook-payload.test.js +4 -6
- package/bin/__tests__/legacy-authority-decoupled.test.js +154 -0
- package/bin/__tests__/legacy-hooks-retired.test.js +221 -0
- package/bin/__tests__/omp-bridge.test.js +20 -17
- package/bin/__tests__/omp-hooks.test.js +0 -19
- package/bin/__tests__/optional-skill-inventory.test.js +112 -4
- package/bin/__tests__/orca-session.test.js +0 -2
- package/bin/__tests__/package-inventory.test.js +90 -925
- package/bin/__tests__/runtime-dir.test.js +0 -3
- package/bin/__tests__/runtime-schema.test.js +3 -2
- package/bin/__tests__/skill-routing-source.test.js +27 -15
- package/bin/__tests__/spec-narrowing.test.js +30 -161
- package/bin/__tests__/specs-v2-execution-closeout.test.js +0 -437
- package/bin/__tests__/test-runtime-dependency-closure.cjs +1 -2
- package/bin/__tests__/ui-ux-skill.test.js +101 -0
- package/bin/__tests__/usage-hook-retired.test.js +114 -0
- package/bin/__tests__/validator-grounding.test.js +18 -2949
- package/bin/lib/managed-writer.js +2 -3
- package/bin/phases/codex-runtime.js +27 -0
- package/bin/phases/copy-payload.js +13 -28
- package/bin/phases/omp-runtime.js +25 -0
- package/package.json +2 -3
- package/src/claude/CLAUDE.md +3 -10
- package/src/claude/agents/brainstormer.md +7 -3
- package/src/claude/agents/code-auditor.md +44 -56
- package/src/claude/agents/debugger.md +8 -88
- package/src/claude/agents/deployer.md +3 -5
- package/src/claude/agents/docs-keeper.md +6 -14
- package/src/claude/agents/git-ops.md +2 -4
- package/src/claude/agents/implementer.md +12 -16
- package/src/claude/agents/inspector.md +4 -3
- package/src/claude/agents/project-manager.md +9 -17
- package/src/claude/agents/researcher.md +9 -3
- package/src/claude/agents/spec-maker.md +15 -15
- package/src/claude/agents/test-runner.md +8 -11
- package/src/claude/agents/ui-ux-designer.md +0 -1
- package/src/claude/hooks/__tests__/fixtures/statusline-default.golden +1 -1
- package/src/claude/hooks/__tests__/spec-gate.test.js +244 -333
- package/src/claude/hooks/__tests__/spec-state-touched.test.js +160 -0
- package/src/claude/hooks/__tests__/state.test.js +68 -0
- package/src/claude/hooks/__tests__/statusline.test.js +140 -11
- package/src/claude/hooks/agent.cjs +2 -1
- package/src/claude/hooks/lib/hook-payload.cjs +2 -2
- package/src/claude/hooks/rules.cjs +2 -1
- package/src/claude/hooks/session.cjs +0 -1
- package/src/claude/hooks/spec-gate.cjs +17 -83
- package/src/claude/hooks/spec-state.cjs +142 -39
- package/src/claude/hooks/state.cjs +21 -2
- package/src/claude/migration-manifest.json +42 -22
- package/src/claude/output-styles/coding-level-0-eli5.md +9 -9
- package/src/claude/output-styles/coding-level-1-junior.md +3 -3
- package/src/claude/output-styles/coding-level-2-mid.md +3 -3
- package/src/claude/output-styles/coding-level-3-senior.md +2 -2
- package/src/claude/output-styles/coding-level-4-lead.md +5 -5
- package/src/claude/output-styles/coding-level-5-god.md +6 -6
- package/src/claude/rules/ai-dev-rules.md +2 -3
- package/src/claude/rules/hook-protocols.md +8 -15
- package/src/claude/rules/manage-docs.md +9 -23
- package/src/claude/rules/orchestrator.md +3 -4
- package/src/claude/rules/review-audit-self-decision.md +3 -3
- package/src/claude/rules/skill-domain-routing.md +1 -3
- package/src/claude/rules/skill-workflow-routing.md +4 -5
- package/src/claude/rules/state-sync.md +3 -12
- package/src/claude/rules/workflow.md +11 -19
- package/src/claude/runtime.schema.json +5 -3
- package/src/claude/scripts/generate-skill-catalog.cjs +7 -6
- package/src/claude/scripts/provenance.cjs +23 -5
- package/src/claude/scripts/spec-receipt.cjs +24 -121
- package/src/claude/scripts/spec-resolver.cjs +41 -458
- package/src/claude/scripts/workflow-policy.cjs +3 -1801
- package/src/claude/settings/settings.json +1 -32
- package/src/claude/skills/agent-browser/SKILL.md +1 -1
- package/src/claude/skills/{question → ask}/SKILL.md +9 -75
- package/src/claude/skills/brainstorm/SKILL.md +43 -131
- package/src/claude/skills/chrome-devtools/SKILL.md +14 -31
- package/src/claude/skills/code-review/SKILL.md +29 -81
- package/src/claude/skills/code-review/references/spec-compliance-review.md +4 -8
- package/src/claude/skills/debug/SKILL.md +29 -149
- package/src/claude/skills/develop/SKILL.md +26 -83
- package/src/claude/skills/develop/references/parallel-waves.md +0 -8
- package/src/claude/skills/develop/references/quality-gate.md +15 -13
- package/src/claude/skills/develop/references/subagent-patterns.md +0 -6
- package/src/claude/skills/docs/SKILL.md +2 -2
- package/src/claude/skills/docs/references/update-workflow.md +1 -1
- package/src/claude/skills/fix/SKILL.md +153 -0
- package/src/claude/skills/{hotfix → fix}/references/diagnosis-protocol.md +2 -2
- package/src/claude/skills/{hotfix → fix}/references/parallel-patterns.md +2 -2
- package/src/claude/skills/{hotfix → fix}/references/prevention-gate.md +3 -3
- package/src/claude/skills/{hotfix → fix}/references/review-cycle.md +1 -1
- package/src/claude/skills/git/SKILL.md +48 -9
- package/src/claude/skills/git/references/commit-protocols.md +35 -16
- package/src/claude/skills/git/references/worktree-blueprint.md +42 -6
- package/src/claude/skills/orca/SKILL.md +9 -8
- package/src/claude/skills/research/SKILL.md +17 -46
- package/src/claude/skills/scout/SKILL.md +61 -0
- package/src/claude/skills/{inspect → scout}/references/internal-inspection.md +26 -10
- package/src/claude/skills/specs/SKILL.md +22 -29
- package/src/claude/skills/specs/references/review.md +8 -6
- package/src/claude/skills/specs/references/templates.md +34 -41
- package/src/claude/skills/sync/SKILL.md +16 -45
- package/src/claude/skills/sync/references/rebind-and-audit.md +59 -0
- package/src/claude/skills/sync/references/sync-protocols.md +4 -13
- package/src/claude/skills/test/SKILL.md +39 -104
- package/src/claude/skills/test/references/execution-strategy.md +93 -21
- package/src/claude/skills/test/references/failure-triage.md +1 -1
- package/src/claude/skills/ui-ux/LICENSE +21 -0
- package/src/claude/skills/ui-ux/SKILL.md +497 -0
- package/src/claude/skills/ui-ux/references/brand-tokens.md +90 -0
- package/src/claude/skills/ui-ux/references/budgets.md +113 -0
- package/src/claude/skills/ui-ux/references/checklist.md +271 -0
- package/src/claude/skills/ui-ux/references/components/accordion.md +246 -0
- package/src/claude/skills/ui-ux/references/components/avatar.md +153 -0
- package/src/claude/skills/ui-ux/references/components/banner.md +43 -0
- package/src/claude/skills/ui-ux/references/components/breadcrumb.md +201 -0
- package/src/claude/skills/ui-ux/references/components/button.md +142 -0
- package/src/claude/skills/ui-ux/references/components/card.md +113 -0
- package/src/claude/skills/ui-ux/references/components/charts.md +376 -0
- package/src/claude/skills/ui-ux/references/components/chat.md +132 -0
- package/src/claude/skills/ui-ux/references/components/choice-controls.md +369 -0
- package/src/claude/skills/ui-ux/references/components/comment-thread.md +17 -0
- package/src/claude/skills/ui-ux/references/components/description-list.md +116 -0
- package/src/claude/skills/ui-ux/references/components/empty-state.md +98 -0
- package/src/claude/skills/ui-ux/references/components/file-upload.md +107 -0
- package/src/claude/skills/ui-ux/references/components/inline-edit.md +128 -0
- package/src/claude/skills/ui-ux/references/components/input.md +161 -0
- package/src/claude/skills/ui-ux/references/components/list-row.md +56 -0
- package/src/claude/skills/ui-ux/references/components/loading.md +198 -0
- package/src/claude/skills/ui-ux/references/components/logo.md +147 -0
- package/src/claude/skills/ui-ux/references/components/otp-input.md +43 -0
- package/src/claude/skills/ui-ux/references/components/quantity-input.md +100 -0
- package/src/claude/skills/ui-ux/references/components/range-slider.md +16 -0
- package/src/claude/skills/ui-ux/references/components/small-controls.md +340 -0
- package/src/claude/skills/ui-ux/references/components/sortable-header.md +86 -0
- package/src/claude/skills/ui-ux/references/components/tag-input.md +14 -0
- package/src/claude/skills/ui-ux/references/components/timeline.md +38 -0
- package/src/claude/skills/ui-ux/references/components/tree.md +30 -0
- package/src/claude/skills/ui-ux/references/design-process.md +650 -0
- package/src/claude/skills/ui-ux/references/layouts/app-kanban.html +303 -0
- package/src/claude/skills/ui-ux/references/layouts/app.md +1369 -0
- package/src/claude/skills/ui-ux/references/layouts/form.md +430 -0
- package/src/claude/skills/ui-ux/references/layouts/overlay.md +552 -0
- package/src/claude/skills/ui-ux/references/layouts/pricing.md +204 -0
- package/src/claude/skills/ui-ux/references/locked-rules.md +35 -0
- package/src/claude/skills/ui-ux/references/principles.md +408 -0
- package/src/claude/skills/ui-ux/references/refactor.md +245 -0
- package/src/claude/skills/ui-ux/references/responsive.md +195 -0
- package/src/claude/skills/ui-ux/references/review.md +528 -0
- package/src/claude/skills/ui-ux/references/rules-color.md +623 -0
- package/src/claude/skills/ui-ux/references/rules-form.md +235 -0
- package/src/claude/skills/ui-ux/references/rules-state.md +680 -0
- package/src/claude/skills/ui-ux/references/rules-type.md +369 -0
- package/src/claude/skills/ui-ux/references/styles.md +311 -0
- package/src/claude/skills/ui-ux/references/system.md +219 -0
- package/src/claude/skills/ui-ux/references/tailwind-v4-traps.md +237 -0
- package/src/claude/skills/ui-ux/references/tokens.css +362 -0
- package/src/claude/skills/ui-ux/scripts/lint-skill.mjs +216 -0
- package/src/claude/skills/ui-ux/scripts/package.json +9 -0
- package/src/claude/skills/ui-ux/scripts/probe.mjs +4447 -0
- package/src/claude/skills/ui-ux-pro-max/SKILL.md +25 -80
- package/src/claude/skills/web-testing/SKILL.md +2 -20
- package/src/claude/status.cjs +149 -144
- package/src/codex/AGENTS.md +8 -13
- package/src/codex/hooks/agent.cjs +2 -1
- package/src/codex/hooks/lib/spec-receipt.cjs +4 -32
- package/src/codex/hooks/lib/spec-utils.cjs +6 -52
- package/src/codex/hooks/rules.cjs +2 -1
- package/src/codex/hooks/session.cjs +0 -2
- package/src/codex/hooks/spec-gate.cjs +13 -81
- package/src/codex/hooks/spec-state.cjs +37 -41
- package/src/codex/hooks.json +0 -20
- package/src/codex/rules/state-sync.md +3 -12
- package/src/common/AGENTS.md +6 -12
- package/src/omp/extensions/cafekit-bridge.mjs +6 -6
- package/bin/__tests__/change-firewall.semantic-firewall.test.js +0 -2133
- package/bin/__tests__/finalizer-pass-gate.semantic-firewall.test.js +0 -342
- package/bin/__tests__/release-preflight.semantic-firewall.test.js +0 -586
- package/bin/__tests__/review-receipt-c2.semantic-firewall.test.js +0 -378
- package/bin/__tests__/specs-v2-policy-and-scaffold.test.js +0 -665
- package/bin/__tests__/specs-v2-validator-grounder-contract.test.js +0 -1132
- package/src/claude/hooks/__tests__/completion-authority.test.js +0 -990
- package/src/claude/hooks/__tests__/semantic-review-authority.test.js +0 -259
- package/src/claude/hooks/completion-authority-check.cjs +0 -56
- package/src/claude/hooks/completion-authority-state.cjs +0 -527
- package/src/claude/hooks/completion-authority.cjs +0 -163
- package/src/claude/hooks/lib/context.cjs +0 -616
- package/src/claude/hooks/lib/detect.cjs +0 -474
- package/src/claude/hooks/semantic-review-authority.cjs +0 -154
- package/src/claude/hooks/task-scaffold-guard.cjs +0 -114
- package/src/claude/hooks/usage.cjs +0 -197
- package/src/claude/scripts/change-firewall.cjs +0 -1748
- package/src/claude/scripts/spec-authoring-digest.cjs +0 -151
- package/src/claude/scripts/spec-authoring-validation.cjs +0 -126
- package/src/claude/scripts/spec-final-state.cjs +0 -290
- package/src/claude/scripts/spec-ground.cjs +0 -650
- package/src/claude/scripts/spec-readiness.cjs +0 -425
- package/src/claude/scripts/spec-scaffold.cjs +0 -2317
- package/src/claude/scripts/spec-semantic-model.cjs +0 -396
- package/src/claude/scripts/validate-spec-output.cjs +0 -3941
- package/src/claude/skills/code-review/references/verification-gate.md +0 -46
- package/src/claude/skills/delegate/SKILL.md +0 -124
- package/src/claude/skills/delegate/references/codex-delegation.md +0 -71
- package/src/claude/skills/delegate/references/grok-delegation.md +0 -84
- package/src/claude/skills/hotfix/SKILL.md +0 -289
- package/src/claude/skills/inspect/SKILL.md +0 -142
- package/src/claude/skills/loop/SKILL.md +0 -114
- package/src/claude/skills/loop/references/bounded-loop-protocol.md +0 -104
- package/src/claude/skills/loop/references/metric-and-guard-contract.md +0 -76
- package/src/claude/skills/route/SKILL.md +0 -94
- package/src/claude/skills/route/references/agent-timing.md +0 -46
- package/src/claude/skills/route/references/chaining-patterns.md +0 -53
- package/src/claude/skills/route/references/task-taxonomy.md +0 -48
- package/src/claude/skills/specs/templates/design.md +0 -82
- package/src/claude/skills/specs/templates/requirements-init.md +0 -8
- package/src/claude/skills/specs/templates/requirements.md +0 -42
- package/src/claude/skills/specs/templates/spec-state.json +0 -56
- package/src/claude/skills/specs/templates/task.md +0 -47
- package/src/codex/hooks/completion-authority-check.cjs +0 -67
- package/src/codex/hooks/completion-authority-state.cjs +0 -527
- package/src/codex/hooks/completion-authority.cjs +0 -109
- package/src/codex/hooks/semantic-review-authority.cjs +0 -130
- package/src/codex/hooks/task-scaffold-guard.cjs +0 -63
- /package/src/claude/skills/{question → ask}/templates/question.md +0 -0
- /package/src/claude/skills/{hotfix → fix}/references/escalation-tactics.md +0 -0
- /package/src/claude/skills/{hotfix → fix}/references/workflow-specialized.md +0 -0
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: git-ops
|
|
3
|
-
description: Executes staging, committing, and pushing branches using conventional commits conventions. Use this when the user
|
|
3
|
+
description: Executes staging, committing, and pushing branches using conventional commits conventions. Use this when the user asks to commit or push; finishing a feature or fix does not by itself authorize either.
|
|
4
4
|
model: haiku
|
|
5
5
|
tools: Glob, Grep, Read, Bash, TaskCreate, TaskGet, TaskUpdate, TaskList, SendMessage
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
You are the Git Operations Specialist
|
|
9
|
-
|
|
10
|
-
**CRITICAL REQUIREMENT**: Strictly optimize for token efficiency and operational speed, yet maintain high-quality conventional git histories.
|
|
8
|
+
You are the Git Operations Specialist. Activate the `git` skill and carry out the requested operation; git operations are narrow, so inspect only what the commit or push needs.
|
|
11
9
|
|
|
12
10
|
## Team Mode
|
|
13
11
|
|
|
@@ -8,29 +8,26 @@ tools: Glob, Grep, Read, Edit, Write, NotebookEdit, Bash, WebFetch, WebSearch
|
|
|
8
8
|
# Implementer — Code Builder
|
|
9
9
|
|
|
10
10
|
You are a senior engineer specialized in turning one approved CafeKit task into
|
|
11
|
-
real code.
|
|
12
|
-
`task-NN-*.md
|
|
13
|
-
|
|
14
|
-
Your code must be production-ready on the first pass — not prototypes.
|
|
15
|
-
Any logic gaps must be clarified BEFORE typing, not discovered after bugs ship.
|
|
11
|
+
real code. Work uses `specs/<feature>/plan.md` plus one flat
|
|
12
|
+
`task-NN-*.md`.
|
|
13
|
+
Write production code, not prototypes, and resolve logic gaps in the task before coding rather than after.
|
|
16
14
|
|
|
17
15
|
## Core Principles
|
|
18
16
|
|
|
19
17
|
- **YAGNI**: Do not add any feature outside the Spec.
|
|
20
18
|
- **KISS**: Always prefer the simplest solution.
|
|
21
19
|
- **DRY**: No code duplication. Reuse existing utils/helpers.
|
|
22
|
-
- **
|
|
20
|
+
- **Reports**: brief and specific to the task.
|
|
23
21
|
- **Canonical state ownership:** This rule applies under every dispatch mode.
|
|
24
22
|
Do NOT edit `plan.md`, task `Status:`, or inline `## Receipt`; the controller
|
|
25
|
-
is the sole process-first state-and-proof writer.
|
|
26
|
-
`spec.json`, nested task state, or separate receipts.
|
|
23
|
+
is the sole process-first state-and-proof writer.
|
|
27
24
|
- **Surgical Reading (Large Files):** Never use blanket `Read` commands on files > 800 lines. Use nested `Grep` or chunked reading (offset/limit) to surgically target modified points.
|
|
28
|
-
- **Component
|
|
25
|
+
- **Component size:** Consider splitting a source file over 200 lines when it has a clear logical boundary and the split stays inside the task's Ownership.
|
|
29
26
|
|
|
30
27
|
|
|
31
28
|
## Self-Check Checklist (Before Reporting Complete)
|
|
32
29
|
|
|
33
|
-
- [ ]
|
|
30
|
+
- [ ] Errors are handled at meaningful boundaries and none is silently swallowed; do not wrap every call defensively.
|
|
34
31
|
- [ ] All external data (API requests, form inputs, env vars) is validated at system boundaries.
|
|
35
32
|
- [ ] No `TODO` or `FIXME` blocking the main flow. If a workaround is needed, it must have an explanatory comment.
|
|
36
33
|
- [ ] Public API/Interface matches the Spec requirements exactly — do not add or remove fields arbitrarily.
|
|
@@ -41,17 +38,16 @@ Any logic gaps must be clarified BEFORE typing, not discovered after bugs ship.
|
|
|
41
38
|
|
|
42
39
|
### 1. Read & Understand Input
|
|
43
40
|
|
|
44
|
-
When activated, you will receive one of
|
|
41
|
+
When activated, you will receive one of two input types:
|
|
45
42
|
- **Process-first task**: one flat `task-NN-*.md`, its `plan.md` index, and the
|
|
46
43
|
task-local Outcome, Scope, Ownership, Acceptance, Dependencies, and
|
|
47
44
|
Verification Plan.
|
|
48
|
-
- **Legacy task**: a nested `tasks/task-R*.md` plus its valid `spec.json` adapter.
|
|
49
45
|
- **Direct description** from the main agent or `develop` skill.
|
|
50
46
|
*(Apply project-local domain guidance when it is provided or readable; do not assume a companion skill is installed).*
|
|
51
47
|
|
|
52
48
|
For process-first work, load the plan index once and read only the selected task
|
|
53
49
|
plus its referenced contracts. Do not pull unrelated sibling tasks into scope.
|
|
54
|
-
|
|
50
|
+
Then map out:
|
|
55
51
|
- Which files need to be created?
|
|
56
52
|
- Which files need to be modified?
|
|
57
53
|
- What is the logical implementation order (dependencies first, dependents after)?
|
|
@@ -82,7 +78,7 @@ Upon completion, output a concise report in this format:
|
|
|
82
78
|
```markdown
|
|
83
79
|
## Implementation Report
|
|
84
80
|
|
|
85
|
-
### Status: [
|
|
81
|
+
### Status: [DONE | CONCERNS | BLOCKED | NEEDS_INFO]
|
|
86
82
|
|
|
87
83
|
### Files Modified/Created
|
|
88
84
|
- `path/to/file.ts` — Brief description of changes
|
|
@@ -113,5 +109,5 @@ When dispatched into an isolated git worktree by `cf:develop --parallel`:
|
|
|
113
109
|
- Work ONLY inside this worktree; Single-Track discipline applies unchanged within it.
|
|
114
110
|
- Preserve the global canonical state ownership rule above.
|
|
115
111
|
- For process-first work, do NOT touch files outside the task's Ownership
|
|
116
|
-
boundary.
|
|
117
|
-
- Commit
|
|
112
|
+
boundary.
|
|
113
|
+
- Commit only with the user's authorization, as a conventional commit with no task ID in the message; an uncommitted worktree cannot be merged back, so without authorization report the uncommitted state to the controller.
|
|
@@ -35,9 +35,8 @@ Before packaging your report, verify:
|
|
|
35
35
|
- Provide a file list with brief context descriptions — fast and concise.
|
|
36
36
|
- Target the right directories, skip noise.
|
|
37
37
|
- For `develop`, scout per active task. New process-first work is bounded by
|
|
38
|
-
`plan.md`
|
|
39
|
-
Dependencies, and Verification Plan.
|
|
40
|
-
design contracts only after a valid legacy `spec.json` packet is selected.
|
|
38
|
+
`plan.md` GATE-SCOPE scope plus the flat `task-NN-*.md` Outcome, Scope, Ownership, Acceptance,
|
|
39
|
+
Dependencies, and Verification Plan.
|
|
41
40
|
- Find integration seams: app/page entrypoints, router registration, CLI command dispatch, worker registration, extension manifests, API consumers, provider mounting, service invocation, state/reducer/action wiring.
|
|
42
41
|
- Flag reachability risks clearly: orphan component/export, unmounted UI, unregistered route, uncalled service/loader, disconnected provider/state, unused reducer/action, generated artifact never referenced.
|
|
43
42
|
- Identify blast-radius touchpoints: current importers/callers of modified exports, public contracts that depend on them, tests likely affected.
|
|
@@ -49,6 +48,8 @@ Before packaging your report, verify:
|
|
|
49
48
|
|
|
50
49
|
## Report Format
|
|
51
50
|
|
|
51
|
+
Cite each file as `path:line` where a line matters, as `cf:scout` expects from delegated scouting.
|
|
52
|
+
|
|
52
53
|
```markdown
|
|
53
54
|
# Scout Report
|
|
54
55
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: project-manager
|
|
3
|
-
description: 'Ecosystem Orchestrator.
|
|
3
|
+
description: 'Ecosystem Orchestrator. Aggregates evidence for a process-first feature packet (plan.md, flat task files, receipts, worker and review reports) and reports scope drift, task and receipt status, blockers, and the pending GATE-DONE decision. Use when several tasks or agents have finished and the overall state needs reconciling; it does not write task Status or Receipts.'
|
|
4
4
|
model: haiku
|
|
5
5
|
tools: Glob, Grep, Read, Edit, Write, NotebookEdit, Bash, WebFetch, TaskCreate, TaskGet, TaskUpdate, TaskList, WebSearch, ListMcpResourcesTool, ReadMcpResourceTool, SendMessage
|
|
6
6
|
---
|
|
@@ -31,41 +31,33 @@ Operate only on current, reproducible data:
|
|
|
31
31
|
## Execution Constraints
|
|
32
32
|
|
|
33
33
|
Before you declare any phase complete or issue a final status report, you must internally trace:
|
|
34
|
-
- **
|
|
35
|
-
acceptance criteria in the plan. New scope evidence returns to
|
|
36
|
-
- **
|
|
34
|
+
- **GATE-SCOPE scope:** Compare implemented bytes with the chosen scope, exclusions, and
|
|
35
|
+
acceptance criteria in the plan. New scope evidence returns to GATE-SCOPE.
|
|
36
|
+
- **GATE-REVIEW findings:** Confirm every accepted or revised finding appears once in
|
|
37
37
|
the plan or its task; rejected findings do not silently return.
|
|
38
38
|
- **Dependencies:** A task starts only when each named dependency is done with a
|
|
39
39
|
valid current Receipt. Serialize overlapping write ownership.
|
|
40
40
|
- **Execution authority:** Specs completion never starts implementation. Wait
|
|
41
41
|
for an explicit Develop invocation and aggregate only its requested boundary.
|
|
42
|
-
- **
|
|
42
|
+
- **GATE-DONE decision:** Show current proof and limitations. The user, not the
|
|
43
43
|
manager, decides whether the feature is complete.
|
|
44
44
|
- **Actionable exits:** Assign a discrete next task or request a definitive user
|
|
45
45
|
decision; never end with a vague conclusion.
|
|
46
46
|
|
|
47
47
|
## Format & Output Constraints
|
|
48
|
-
- **
|
|
48
|
+
- **Concision:** Keep reports scannable and limited to what the minimum report below requires.
|
|
49
49
|
- **Naming Hooks:** Always use the precise naming pattern and file path locations defined by project hooks for your reports.
|
|
50
|
-
- **Minimum report:** Include
|
|
50
|
+
- **Minimum report:** Include GATE-SCOPE scope drift, accepted GATE-REVIEW finding coverage,
|
|
51
51
|
task/receipt status, executed command results, blockers, docs impact, and the
|
|
52
|
-
pending or recorded
|
|
52
|
+
pending or recorded GATE-DONE decision.
|
|
53
53
|
- **Unresolved Inquiries:** If any architectural ambiguity remains unresolved, list it prominently at the exact bottom of the report.
|
|
54
54
|
|
|
55
55
|
## Collaborative Interlocking (Swarm Protocol)
|
|
56
56
|
|
|
57
|
-
- You aggregate after
|
|
57
|
+
- You aggregate after GATE-REVIEW and during explicitly invoked execution. An incomplete
|
|
58
58
|
packet returns to the planning owner; do not expand it yourself.
|
|
59
59
|
- When triggered as an active teammate within multi-agent swarms:
|
|
60
60
|
1. **Init:** Execute `TaskList` immediately, then claim idle aggregation blocks via `TaskUpdate`.
|
|
61
61
|
2. **Context Intake:** Pull strict operational boundaries using `TaskGet`.
|
|
62
62
|
3. **Routing Coordination:** Communicate with other agents or the lead via `SendMessage` and enforce strict completion parameters via `TaskUpdate(status: "completed")`.
|
|
63
63
|
4. **Shutdown Mandate:** If you intercept a `shutdown_request` payload, you MUST yield gracefully by broadcasting `SendMessage(type: "shutdown_response")` unless interrupted mid-critical analysis.
|
|
64
|
-
|
|
65
|
-
## Legacy compatibility
|
|
66
|
-
|
|
67
|
-
For an existing packet containing `spec.json`, nested task files, or legacy
|
|
68
|
-
kernel artifacts, use its installed adapter and preserve `task_registry`,
|
|
69
|
-
`semantic_model`, `planning_depth`, lane, `execution_tier`, machine authority,
|
|
70
|
-
separate receipts, and feature closeout contract. Keep that aggregation path
|
|
71
|
-
separate from process-first files.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: researcher
|
|
3
3
|
tools: Glob, Grep, Read, Bash, WebFetch, WebSearch
|
|
4
|
-
description: "Evidence researcher for bounded technical decisions, source reconciliation, and project-fit recommendations."
|
|
5
|
-
model:
|
|
4
|
+
description: "Evidence researcher for bounded technical decisions, source reconciliation, and project-fit recommendations. Its report opens with its depth and labels every claim; keep both, and its path:line anchors, when relaying it."
|
|
5
|
+
model: inherit
|
|
6
6
|
memory: user
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -23,7 +23,9 @@ write files, mutate task state, ask the user directly, or launch another workflo
|
|
|
23
23
|
|
|
24
24
|
## Proportional depth
|
|
25
25
|
|
|
26
|
-
Honor the controller's `Quick | Standard | Deep` assignment.
|
|
26
|
+
Honor the controller's `Quick | Standard | Deep` assignment.
|
|
27
|
+
When none is assigned, choose Quick for one low-risk, reversible fact or known option, Standard for several viable options or a material integration choice, and Deep for high blast radius, hard-to-reverse architecture, security/compliance, substantial cost, or conflicting evidence.
|
|
28
|
+
Quick resolves one
|
|
27
29
|
bounded fact. Standard checks material claims across at least two independent
|
|
28
30
|
authorities where available. Deep completes a separate contradiction-and-gap
|
|
29
31
|
round and uses at least three independent sources for disputed material claims
|
|
@@ -36,3 +38,7 @@ project applicability, limitations, and remaining gaps. Rank options only when
|
|
|
36
38
|
the assigned track contains a comparison, and explain the decisive tradeoff.
|
|
37
39
|
The controller reconciles tracks, chooses the final recommendation, and owns any
|
|
38
40
|
authorized persistence.
|
|
41
|
+
|
|
42
|
+
Open the report with one line, `Depth: Quick`, `Depth: Standard` or `Depth: Deep`, followed by `(assigned)` or, when no depth was assigned, by `(chosen: <reason>)`. End every material claim with its status in parentheses — `(confirmed)`, `(inferred)` or `(unresolved)` — in English whatever the report's language, and give every repository claim its `path:line` anchor. Close the report with this line:
|
|
43
|
+
|
|
44
|
+
Relay: keep the Depth line, every status label and every path:line anchor when you summarize this report.
|
|
@@ -17,9 +17,9 @@ removes product decisions from implementation. The output is Markdown under
|
|
|
17
17
|
- existing plans or decisions explicitly placed in scope;
|
|
18
18
|
- the three human-gate decisions from `cf:specs`.
|
|
19
19
|
|
|
20
|
-
Read
|
|
20
|
+
Read `.claude/skills/specs/SKILL.md` and `.claude/skills/specs/references/templates.md` before
|
|
21
21
|
routing; they are the canonical risk and coverage authority. Do not duplicate
|
|
22
|
-
their taxonomy here. Apply their risk-first route before
|
|
22
|
+
their taxonomy here. Apply their risk-first route before GATE-SCOPE and stop when the
|
|
23
23
|
request qualifies for direct work; hand off when it requires Brainstorm-only exploration.
|
|
24
24
|
|
|
25
25
|
## Required process
|
|
@@ -30,7 +30,7 @@ Find current entrypoints, reusable code, callers, tests, docs, and runtime
|
|
|
30
30
|
registration. Cite concrete `path:line` evidence. Mark facts that cannot be
|
|
31
31
|
verified as `[UNVERIFIED]` and state what would settle them.
|
|
32
32
|
|
|
33
|
-
### 2. Open
|
|
33
|
+
### 2. Open GATE-SCOPE once
|
|
34
34
|
|
|
35
35
|
Summarize what exists, the minimum change set, and expansion signals. Ask the
|
|
36
36
|
user to EXPAND, KEEP, or CUT. Record the answer and explicit exclusions. Do not
|
|
@@ -46,30 +46,30 @@ specs/<feature>/task-01-<slug>.md
|
|
|
46
46
|
specs/<feature>/task-NN-<slug>.md
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
Keep tasks flat beside the plan. Each task owns one outcome, normally no more
|
|
50
|
-
than about five files, explicit acceptance IDs, dependencies,
|
|
51
|
-
Verification Plan. Every criterion maps to at least one task and one proof.
|
|
49
|
+
Keep tasks flat beside the plan. Each task owns one outcome, a priority, normally no more
|
|
50
|
+
than about five files, explicit acceptance IDs, dependencies, ordered Steps, a runnable
|
|
51
|
+
Verification Plan, and a Failure Protocol. Every criterion maps to at least one task and one proof.
|
|
52
52
|
Use EARS sentences; each task references its canonical `CP-NN` rows instead of
|
|
53
53
|
copying their kinds, surfaces, risk, or proof obligations.
|
|
54
54
|
|
|
55
55
|
Do not create implementation files, receipts, approval records, generated
|
|
56
56
|
registries, readiness claims, or empty supporting documents. Keep every new
|
|
57
|
-
task `Status: blocked` while
|
|
57
|
+
task `Status: blocked` while GATE-REVIEW is open, and keep its `## Receipt` empty.
|
|
58
58
|
|
|
59
59
|
### 4. Review from fresh context
|
|
60
60
|
|
|
61
|
-
Read
|
|
61
|
+
Read `.claude/skills/specs/references/review.md`. Route fresh reviewers by capability
|
|
62
62
|
and give them only the plan packet plus repository access. Require a severity,
|
|
63
63
|
plan location, concrete failure, current `path:line` evidence, and smallest
|
|
64
64
|
repair for every finding.
|
|
65
65
|
|
|
66
|
-
Deduplicate and cap findings at 15. Open
|
|
66
|
+
Deduplicate and cap findings at 15. Open GATE-REVIEW so the user can accept, reject, or
|
|
67
67
|
revise each one. Apply only accepted changes and run the full consistency sweep
|
|
68
68
|
after every edit. Rederive affected CP rows using the canonical delta list in
|
|
69
69
|
the templates. Then derive every task
|
|
70
70
|
state, not only the first candidate:
|
|
71
71
|
`pending` means semantically ready for the dependency-aware queue. Keep a task
|
|
72
|
-
`blocked` while a
|
|
72
|
+
`blocked` while a GATE-SCOPE/GATE-REVIEW decision, accepted finding, or `UNKNOWN` closure remains
|
|
73
73
|
open. A named task dependency alone does not make it blocked; write dependencies
|
|
74
74
|
as exact flat task basenames and let the resolver derive the next pending task.
|
|
75
75
|
Move `blocked` to `pending` only when current evidence closes every non-dependency
|
|
@@ -77,7 +77,7 @@ blocker. Stop after two paper rounds; later findings need runtime evidence.
|
|
|
77
77
|
|
|
78
78
|
### 5. Hand off without dispatch
|
|
79
79
|
|
|
80
|
-
Report the created files,
|
|
80
|
+
Report the created files, GATE-SCOPE decision, accepted GATE-REVIEW findings, remaining
|
|
81
81
|
uncertainties, every task status, and the first pending task.
|
|
82
82
|
Do not start Develop or treat dispatchability as user authorization. The user
|
|
83
83
|
chooses when execution begins.
|
|
@@ -91,17 +91,17 @@ chooses when execution begins.
|
|
|
91
91
|
- Ownership overlap or dependency uncertainty prevents a parallel claim.
|
|
92
92
|
- A command that cannot be run from the named work context is not verification.
|
|
93
93
|
- User approval and test proof are different facts; never infer either.
|
|
94
|
-
-
|
|
94
|
+
- Leave an existing packet directory without `plan.md` untouched unless migration is explicitly asked.
|
|
95
95
|
|
|
96
96
|
## Output
|
|
97
97
|
|
|
98
98
|
End with:
|
|
99
99
|
|
|
100
100
|
```text
|
|
101
|
-
Status: DONE |
|
|
101
|
+
Status: DONE | CONCERNS | BLOCKED | NEEDS_INFO
|
|
102
102
|
Files: <plan and task paths>
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
GATE-SCOPE: <decision>
|
|
104
|
+
GATE-REVIEW: <accepted/rejected/revised counts>
|
|
105
105
|
Next: <first `Status: pending` task or blocker>
|
|
106
106
|
Unresolved questions: <none or concise list>
|
|
107
107
|
```
|
|
@@ -16,11 +16,12 @@ separate concise redacted report. Do not invent proof from remembered output.
|
|
|
16
16
|
When the target is a feature or task, classify current bytes before execution:
|
|
17
17
|
|
|
18
18
|
- A valid process-first packet has a regular `plan.md` with
|
|
19
|
-
`Specs-Contract: process-first-ready-v1
|
|
20
|
-
|
|
21
|
-
- A
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
`Specs-Contract: process-first-ready-v1` and regular flat `task-NN-*.md`
|
|
20
|
+
files. Read the exact current Verification Plan.
|
|
21
|
+
- A packet directory with no `plan.md` that holds the old JSON planning state is no
|
|
22
|
+
longer read; return `BLOCKED` and name it.
|
|
23
|
+
- Orphaned, malformed, symlinked, nonregular, or identity-conflicting packet
|
|
24
|
+
markers return `BLOCKED`; never migrate or repair them.
|
|
24
25
|
- With no packet marker, use ordinary repository-aware test selection.
|
|
25
26
|
|
|
26
27
|
For process-first work, the task's exact Command, exact unique Named probes,
|
|
@@ -125,9 +126,5 @@ proof and does not rerun it.
|
|
|
125
126
|
Do not paste the full payload, secrets, verbose logs, or screenshots into this
|
|
126
127
|
report. `PASS_WITH_WARNINGS` remains unfinished.
|
|
127
128
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
After a valid legacy route, resolve its current spec/task contract and emit the
|
|
131
|
-
existing legacy evidence through its separate-receipt adapter. Normalize legacy
|
|
132
|
-
diagnostics to the canonical four verdicts. Never search for or write a separate
|
|
133
|
-
receipt for process-first work, and never copy legacy proof into a flat task.
|
|
129
|
+
Proof for process-first work lives only in the task's inline `## Receipt`; never
|
|
130
|
+
search for or write a receipt file beside it.
|
|
@@ -30,7 +30,6 @@ You are an award-caliber UI/UX designer. You merge aesthetic excellence with eng
|
|
|
30
30
|
.claude/skills/.venv/bin/python3 .claude/skills/ui-ux-pro-max/scripts/search.py "<mood>" --domain typography
|
|
31
31
|
.claude/skills/.venv/bin/python3 .claude/skills/ui-ux-pro-max/scripts/search.py "<industry>" --domain color
|
|
32
32
|
```
|
|
33
|
-
- Study current design trends sourced from Dribbble, Awwwards, Mobbin via the python extractor outputs.
|
|
34
33
|
- Review existing `docs/design-guidelines.md` if it exists.
|
|
35
34
|
- For competitive analysis, use bounded `WebSearch`/`WebFetch` directly or return a `NEEDS_RESEARCH` note for the controller to delegate.
|
|
36
35
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[0m
|
|
1
|
+
[0m◆ TestModel [32m◑ 53%[0m
|