ワンクリックで
harness-architect
Scaffolds compilable but failing test harnesses for feature and chore tasks
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Scaffolds compilable but failing test harnesses for feature and chore tasks
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Usage: Build feature {spec-name} phase {phase-number}. Implements a single phase from the spec's task plan, iterating build-test cycles until the phase passes its constitution gate, then records memory, logs decisions, and commits.
Use this skill when the user asks to map, document, or onboard into an existing codebase. Produces structured documentation covering stack, structure, architecture, conventions, integrations, testing, and concerns. Only documents what is verifiable from files or terminal output — never infers or assumes.
Use before any creative work — creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements, and design through collaborative dialogue before implementation.
Browser automation skill. Drives agent-browser through structured navigate→snapshot→interact→re-snapshot flows with authentication support, form automation, visual verification, and explicit human checkpoints for external flows.
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes.
Systematic root-cause debugging with verification. Use for errors, stack traces, broken tests, flaky tests, regressions, or anything not working as expected.
| name | harness-architect |
| description | Scaffolds compilable but failing test harnesses for feature and chore tasks |
| argument-hint | feature=001-{SUFFIX_FEATURE} tasks=001.001-{SUFFIX_TASK},001.002-{SUFFIX_TASK} |
| input | {"properties":{"feature":{"type":"string","description":"Feature or chore ID to scaffold harnesses for"},"tasks":{"type":"string","description":"Comma-separated task IDs to scaffold (optional, defaults to all ready tasks)"}},"required":["feature"]} |
Scaffold strict test harnesses for a feature's or chore's ready work items. The output must compile cleanly, fail for the intended not-yet-implemented behavior, and leave clear harness commands for downstream build execution.
Use this skill when a release unit needs executable test boundaries before implementation starts. The skill prepares the red phase and stops there. It does not implement production logic.
When the agent-intercom capability pack is installed, call ping at
session start. If reachable, broadcast at every step. If unreachable,
warn the operator that visibility is degraded and continue locally.
| Event | Level | Message prefix |
|---|---|---|
| Session start | info | [HARNESS] Starting: feature={input.feature} |
| Tasks loaded | info | [HARNESS] Ready tasks: {task_count} |
| Codebase analyzed | info | [HARNESS] Context gathered: {module_count} modules |
| Harness generated | info | [HARNESS] Generated: {test_file} ({scenario_count} scenarios) |
| Compilation check | info | [HARNESS] Compilation: {result} |
| Red phase check | info | [HARNESS] Red phase: {result} |
| Label applied | success | [HARNESS] harness-ready: {task_id} |
| Complete | success | [HARNESS] Complete: {task_count} tasks harnessed |
${input:feature}: (Required) Feature or chore ID such as 001-F${input:tasks}: (Optional) Comma-separated task IDs to scaffold.
When omitted, use all ready tasks under the feature.${input:tasks} is present, restrict the scope to that explicit
task set.When the agent-engram capability pack is installed, prefer indexed
symbol lookup and code-graph tools over broad grep when surveying
existing modules, test patterns, and import paths.
For each task, select the appropriate harness strategy:
| Posture | When to use | Harness pattern |
|---|---|---|
| test-first | New functionality with clear inputs/outputs | Write failing tests for expected behavior |
| characterization-first | Modifying existing behavior | Write tests that capture current behavior then modify |
| migration-first | Moving code between modules | Write tests at the destination, verify source behavior |
| spike | Exploratory with uncertain approach | Write minimal integration test, implement spike, expand tests |
Write harness files into the module that matches the work item's scope:
tests//integration/ when the
task spans modules or runtime boundariestests//contract/ when the task
defines API, CLI, or schema behaviorWrite companion stub files into the production module that the tests exercise. Do not place scaffolding in unrelated modules.
Run cargo check --all-targets including tests. The harness MUST compile.
If compilation fails, fix the harness until it compiles. Do not proceed with a non-compiling harness.
Run cargo test for the harness tests. ALL tests MUST fail with
the expected failure marker (unimplemented!("Worker: ...")).
If any test passes (false positive) or fails with an unexpected error (compilation vs runtime), fix the harness.
After both checks pass (P-004 gate satisfied):
harness-ready label using the backlog tool's
update operation.Compilation: PASS,
Red Phase: CONFIRMED.The skill is complete only when the selected tasks have:
cargo check --all-targets result after scaffoldingThis skill operates at Tier 2 (Standard) — test scaffolding is structured but routine.