一键导入
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 页面并帮你完成安装。
Structured code review using tiered persona subagents, confidence-gated findings, and a merge/dedup pipeline. Use when reviewing code changes before creating a PR, as a build gate, or for standalone review.
Manages the full PR lifecycle: creation, review comment handling, CI remediation, and user-approved merge
GI/GR reconciliation gate for shipment manifests — verifies every manifest item exists in queue (pre-mode) or archive (post-mode) with the expected status, and closes shipments with the single-artifact safe-close procedure that archives ONLY manifest item IDs with a verify-after-each invariant + git-revert-on-cascade instead of the destructive cascade backlogit_ship_shipment.
On-demand harness health diagnostic. Checks manifest presence, version drift, file integrity, cross-reference validity, MCP tool availability, and template variable residue. Produces a per-category graded health report.
Multi-phase security audit skill. Scans agentic config surfaces and application source for OWASP Top 10 vulnerabilities, STRIDE threats, and config hygiene issues. Produces a scored, graded report persisted to the configured security docs directory (default: docs/security).
基于 SOC 职业分类
| 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 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!("TODO: ...")).
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 result after scaffoldingThis skill operates at Tier 2 (Standard) — test scaffolding is structured but routine.