intense-visions/harness-engineering/harness-soundness-review

Claude Code and agent skill by intense-visions/harness-engineering

Trust tier 2
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install intense-visions/harness-engineering/harness-soundness-review

SKILL.md

The same SKILL.md was published earlier as intense-visions/harness-engineering/harness-soundness-review.

Harness Soundness Review

Deep soundness analysis of specs and plans. Auto-fixes inferrable issues, surfaces design decisions to you. Runs automatically before sign-off.

When to Use

  • Automatically invoked by harness-brainstorming before spec sign-off (--mode spec)
  • Automatically invoked by harness-planning before plan sign-off (--mode plan)
  • Manually invoked to review a spec or plan on demand
  • NOT for reviewing implementation code (use harness-code-review)
  • NOT as a replacement for mechanical validation (harness validate, check-deps remain as-is)
  • NOT in CI — this is a design-time skill

Arguments

  • `--mode spec` — Run spec-mode checks (S1-S7). Invoked by harness-brainstorming.
  • `--mode plan` — Run plan-mode checks (P1-P7). Invoked by harness-planning.

Process

Pause points

Every point below where this skill stops for the human carries a marker line, _Pause point (<class>): resolve per the Pause Protocol._ followed by a <!-- pause: <class> --> comment. Resolve each one with the Pause Protocol: agents/skills/templates/pause-protocol.md (also shipped in the harness CLI package at dist/agents/skills/templates/pause-protocol.md).

  • Re-read autonomy at every pause point: gather_context({ path, session, include: ["autonomy"] }).
  • irreversible and gate pauses stop at every autonomy level.
  • A ceremony or judgment pause auto-resolves only when autonomy is trusted, the pause states a recommendation, a judgment fork passed the self-audit, and record_auto_decision returned recorded: true. In every other case, pause exactly as written below.
  • If you cannot read the protocol or resolve autonomy, pause.
Iron Law

No spec or plan may be signed off without a converged soundness review. Inferrable fixes are applied silently. Design decisions are always surfaced to the user.


Finding Schema

Every finding conforms to this structure:

json
{
"id": "string — unique identifier",
"check": "string — e.g. S1, P3",
"title": "string — one-line summary",
"detail": "string — explanation with evidence",
"severity": "error | warning — errors block sign-off",
"autoFixable": "boolean — whether fixable without user input",
"suggestedFix": "string | undefined — what the fix would do",
"evidence": ["string[] — references to spec/plan sections and codebase files"]
}

Phase 1: CHECK — Run All Checks for Current Mode

Execute all checks for the active mode. Classify each finding as autoFixable: true or false. Record total issue count.

Traceability and Cross-Check Tools

Run check_traceability to verify that all requirements in the spec/plan have corresponding implementation artifacts. Run validate_cross_check to verify plan-to-implementation alignment as part of the soundness assessment.

Graph Detection and Fallback

Before running checks, determine graph availability:

  1. Check whether .harness/graph/ exists.
  2. If present, these MCP tools enhance checks S3, S5, P1, P3, P4:
  • query_graph — traverse module/dependency nodes to verify referenced patterns and architectural compatibility
  • find_context_for — search for related design decisions from other specs
  • get_relationships — verify dependency direction and layer compliance
  • get_impact — analyze downstream impact to verify dependency completeness
  1. If absent, use the "Without graph" path for every check. Do not block or warn — all checks produce useful results from document analysis and codebase reads alone.

Per-check procedures include "Without graph" and "With graph" variants. Use whichever matches step 1.

Spec Mode Checks (--mode spec)
#CheckWhat it detectsAuto-fixable?
S1Internal coherenceContradictions between decisions, technical design, and success criteriaNo — surface to user
S2Goal-criteria traceabilityGoals without success criteria; orphan criteria not tied to any goalYes — add missing links, flag orphans
S3Unstated assumptionsImplicit assumptions not called out (e.g., single-tenant, always-online)Partially — infer obvious ones, surface ambiguous
S4Requirement completenessMissing error/edge cases, failure modes; EARS unwanted-behavior gapsPartially — add obvious error cases, surface design-dependent
S5Feasibility red flagsDesign depends on nonexistent codebase capabilities or incompatible patternsNo — surface with evidence
S6YAGNI re-scanSpeculative features that crept in during conversationNo — surface to user
S7TestabilityVague success criteria not observable or measurable ("should be fast")Yes — add thresholds where inferrable
S1 Internal Coherence

Analyze: Decisions table, Technical Design, Success Criteria, Non-goals.

Detection:

  1. Verify each decision is consistent with Technical Design. "Use approach A" in decisions + "approach B" in design = contradiction.
  2. Verify no success criterion contradicts a decision or non-goal.
  3. Verify no non-goal has a corresponding implementation section.
  4. Flag any pair where one section asserts X and another asserts not-X.

Classification: Always severity: "error", autoFixable: false. Contradictions require user judgment.

Example:

json
{
"id": "S1-001",
"check": "S1",
"title": "Decision contradicts Technical Design",
"detail": "D3 says 'use SQLite' but Technical Design > Data Layer describes PostgreSQL with migrations.",
"severity": "error",
"autoFixable": false,
"suggestedFix": "Align Technical Design with decision (SQLite) or update decision to PostgreSQL.",
"evidence": ["Decisions D3: 'Use SQLite'", "Technical Design > Data Layer: 'PostgreSQL schema'"]
}
S2 Goal-Criteria Traceability

Analyze: Overview (goals), Success Criteria.

Detection:

  1. Extract goals from Overview.
  2. For each goal, check at least one success criterion covers it. No match = gap.
  3. For each criterion, check it traces to a goal. No match = orphan.
  4. Flag gaps and orphans separately (different fix strategies).

Classification:

  • Missing links (goals without criteria): severity: "warning", autoFixable: true. Fix: add criterion derived from Technical Design.
  • Orphan criteria: severity: "warning", autoFixable: false. Removing criteria is a design decision.

Example:

json
{
"id": "S2-001",
"check": "S2",
"title": "Goal has no success criterion",
"detail": "Goal 'Support offline mode' has no corresponding criterion.",
"severity": "warning",
"autoFixable": true,
"suggestedFix": "Add: 'App functions without network for all read operations, returning cached data.'",
"evidence": ["Overview: 'Support offline mode'", "Success Criteria: no match"]
}
S3 Unstated Assumptions

Analyze: Technical Design, Decisions table, data structures, integration points.

Detection:

  • Document analysis: Scan for implicit assumptions about runtime (single-process, always-online), data (fits in memory, UTF-8 only), deployment (single-tenant, specific cloud), user context (admin access). Check whether spec states them.
  • Without graph: Read referenced source files to identify conventions the spec assumes but does not state. Use Grep/Glob to verify referenced patterns exist.
  • With graph: Use query_graph for related modules' assumptions. Use find_context_for to surface conflicting design decisions.

Classification:

  • Obvious (Node.js runtime, filesystem access, UTF-8): severity: "warning", autoFixable: true. Fix: add to Assumptions section.
  • Ambiguous (single-tenant vs multi-tenant, concurrency model): severity: "warning", autoFixable: false. User decides.

Example:

json
{
"id": "S3-001",
"check": "S3",
"title": "Implicit Node.js runtime assumption",
"detail": "Technical Design references 'path.join' and 'fs.readFileSync' without declaring Node.js runtime.",
"severity": "warning",
"autoFixable": true,
"suggestedFix": "Add to Assumptions: 'Runtime: Node.js >= 18.x (LTS).'",
"evidence": [
"Technical Design > File Operations: path.join, fs.readFileSync",
"No Assumptions section"
]
}
json
{
"id": "S3-002",
"check": "S3",
"title": "Ambiguous concurrency model",
"detail": "Technical Design describes a background job processor but does not specify in-process, worker thread, or separate process. Affects error isolation and deployment.",
"severity": "warning",
"autoFixable": false,
"suggestedFix": "Add decision specifying concurrency model: in-process event loop, worker_threads, or separate process.",
"evidence": [
"Technical Design > Job Processor: 'processes background jobs'",
"Decisions table: no concurrency entry"
]
}
S4 Requirement Completeness

Analyze: Technical Design (data structures, API endpoints, integration points), Success Criteria.

Detection:

  • Error cases: For each operation, identify what happens on missing/null/malformed input. Flag operations with no defined error behavior.
  • Edge cases: For each numeric field, check boundary values (zero, negative, overflow). For each string field, check empty string, very long string, and special character handling. For each collection, check empty collection behavior.
  • Failure modes: For each external dependency, check timeout/unavailability/partial-failure behaviors. Apply EARS "Unwanted" pattern: "If [failure], then system shall [graceful behavior]."
  • Codebase context: Read referenced modules for established error patterns.

Classification:

  • Obvious error cases (file I/O, network, JSON parsing): severity: "warning", autoFixable: true. Fix follows codebase patterns.
  • Design-dependent error handling (retry? cache? fail?): severity: "warning", autoFixable: false.

Example:

json
{
"id": "S4-001",
"check": "S4",
"title": "Missing file-not-found error case",
"detail": "Config read with fs.readFileSync has no ENOENT handling. Codebase convention (packages/core/src/config.ts) returns defaults.",
"severity": "warning",
"autoFixable": true,
"suggestedFix": "Add: 'If config file missing (ENOENT), return default config. Log debug message.'",
"evidence": [
"Technical Design: 'read config from harness.config.json'",
"Codebase: config.ts returns defaults on ENOENT"
]
}
json
{
"id": "S4-002",
"check": "S4",
"title": "Undefined retry strategy for external service",
"detail": "Technical Design calls an external API for license validation but specifies no timeout, unavailability, or error behavior. Design decision affects UX (block vs degrade).",
"severity": "warning",
"autoFixable": false,
"suggestedFix": "Add decision: 'When license API unavailable: (a) fail open with warning, (b) fail closed, or (c) cache last result for N hours.'",
"evidence": [
"Technical Design > License Check: 'call /api/validate on startup'",
"No fallback behavior specified"
]
}
S5 Feasibility Red Flags

Analyze: Technical Design (referenced modules, dependencies, patterns, APIs).

Detection:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
14
Repository forks
7
7-day trend score
14

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 30 Apr 2026, 7 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/intense-visions/harness-engineering/harness-soundness-review/badge)](https://verified-skill.com/skills/intense-visions/harness-engineering/harness-soundness-review)

Something wrong with this skill or its page? Tell us.