harness-architect

Generates failing Rust test harnesses with uncompilable-proof scaffolding for unimplemented features.

1|Updated Oct 17, 2025
One-click install
npx skills add https://github.com/softwaresalt/csv-managed --skill harness-architect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: harness-architect
Source: https://github.com/softwaresalt/csv-managed/tree/main/.github/skills/harness-architect
Command: npx skills add https://github.com/softwaresalt/csv-managed --skill harness-architect

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Harness-architect solves the problem of teams shipping unverified changes by creating executable, compilable test harness boundaries that intentionally fail until the target behavior is implemented.

Core Features & Use Cases

  • Failing harness scaffolds: Generates strict Rust test harnesses for a feature or chore so downstream work starts from a red, executable contract.
  • Task-to-scenario traceability: Translates each selected work item’s acceptance criteria into named test scenarios and preserves mapping back to the correct backlog item.
  • Compilation and red-phase verification: Ensures the harnesses pass cargo check --all-targets and that cargo test fails with the expected unimplemented!("Worker: ...") marker.
  • Correct placement strategy: Writes unit, integration, and contract harnesses into the appropriate module/test directories with companion production stubs.
  • Optional intercom telemetry: Uses the agent-intercom pack to ping/broadcast status events when available for better observability.

Quick Start

Use harness-architect with a feature or chore ID, then let it scaffold failing harnesses and verify compilation and the red phase before labeling the tasks harness-ready.

Frequently Asked Questions about harness-architect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold failing Rust tests before implementing production logic?

Failing Rust test harnesses are generated by converting work item acceptance criteria into parameterized test scenarios and production stubs. These harnesses compile successfully via cargo check but fail during cargo test with an expected unimplemented marker until the feature is implemented.

What is a red phase test harness in Rust development?

A red phase test harness is a compilable Rust test suite that intentionally fails with an unimplemented marker. It translates acceptance criteria into named test scenarios, establishing executable boundaries that verify target behavior before production logic is implemented.

How do I ensure my Rust test scaffolds compile but fail correctly?

Use a two-step verification gate: run cargo check --all-targets to ensure compilation, then run cargo test to confirm all scenarios fail with the expected unimplemented marker. This guarantees the harness is executable and correctly red before implementation begins.

Can I use test scaffolding for modified or migrated Rust codebases?

Yes, test scaffolding applies to new, modified, migrated, and exploratory Rust tasks. It converts acceptance criteria into parameterized test scenarios and production stubs, placing unit, integration, and contract harnesses into the appropriate module directories with companion production stubs.

What's the best way to trace Rust test scenarios back to backlog tasks?

The best way to trace Rust test scenarios back to backlog tasks is to translate each work item's acceptance criteria into named test scenarios that preserve mapping back to the correct backlog item. This ensures executable contracts remain linked to their originating feature or chore ID.

Why do my Rust test harnesses need an unimplemented marker during scaffolding?

Rust test harnesses need an unimplemented marker during scaffolding to enforce a strict red-phase gate where all tests fail predictably. This ensures downstream work starts from an executable contract that only passes when the actual target behavior is implemented.