Install
$ agentstack add skill-microstone88-claude-harness-skills-harness-design-review ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Harness Design Review
To audit any software project, apply Harness Engineering principles. A harness is the system of constraints, context, and verification that keeps code safe, correct, and evolvable. This skill runs a structured multi-dimension review and produces a scored report with actionable findings.
> Definition: A harness consists of two control mechanisms: > - Guides (Feedforward): Steer work before it happens — conventions, architecture docs, linting rules, CLAUDE.md, templates > - Sensors (Feedback): Detect drift after the fact — tests, CI gates, static analysis, code review, custom scripts
> Reference: Martin Fowler — "Harness Engineering for Coding Agents" / Ford, Parsons, Kua — "Building Evolutionary Architectures" (fitness function-driven development)
When to Invoke
/harness-design-review # Full codebase review
/harness-design-review src/auth # Scoped to a module
/harness-design-review --quick # Architecture + Security only (5 min)
The 6 Dimensions
Full dimension checklists are in [references/dimensions.md](references/dimensions.md).
| Dimension | What It Measures | Guides | Sensors | |-----------|-----------------|--------|---------| | Architecture Fitness | Layering, DI patterns, module boundaries, concurrency contracts | Architecture docs, naming conventions | Structural linting, import analysis | | Maintainability | Naming, complexity, documentation, dead code | Style guides, complexity limits | Static analysis (cyclomatic complexity, duplication) | | Behavior / Testability | Test coverage, test quality, error path coverage, contract observability | TDD workflow, test patterns | Coverage tools, CI gate on coverage % | | Security | Secrets management, input validation, auth patterns, dependency CVEs | Secure coding guidelines | SAST, dep scan, secret scanner | | Observability | Structured logging, distributed tracing, metrics, alerting | Logging conventions | Log format linting, trace coverage check | | Deployment Fitness | CI/CD pipeline, rollback capability, feature flags, DORA proxy metrics | Deployment runbook | Pipeline audit, rollback test |
How to Run This Review
Step 0: Scope
If an argument was provided (path or module name), scope all phases to that subtree. Otherwise default to the full source tree and test tree.
Step 1: Architecture Fitness
Read any architecture documentation (CLAUDE.md, CONVENTIONS.md, ARCHITECTURE.md, README.md, or equivalent). Then verify:
- Layer boundaries — ViewModels/controllers do not import view-layer types directly; services accessed through protocols/interfaces, not concrete singletons
- Dependency injection — Protocol-based DI used for all testable dependencies; no service locator anti-pattern
- File/module size discipline — Flag files exceeding the project's stated size limit (default: >300 lines indicates missing decomposition)
- Circular dependencies — Check for circular imports across modules
- Single responsibility — Each file/class has one clear responsibility; flag files mixing concerns
# Find largest files (adapt path and extension)
find src/ -name "*.ts" -exec wc -l {} + | sort -rn | head -20
# Or for Swift, Python, Go, Java, etc. — change the extension
Output: List of violations with file:line references and severity (CRITICAL / HIGH / MEDIUM / LOW).
Step 2: Maintainability
Spot-check 10 files across the codebase for:
- Naming conventions — Consistent with the project's stated convention (camelCase, snake_case, PascalCase, etc.); no single-letter variables outside closures/lambdas
- Complexity hotspots — Functions with deep nesting (>3 levels) or long parameter lists (>5 params) or cyclomatic complexity >10
- Comment quality — Non-obvious logic has inline comments; API boundaries have doc comments; no redundant comments restating what code already says
- Dead code — Unused private functions, commented-out code blocks, unreferenced exports
- Error handling —
catchblocks do not silently swallow errors; error context is preserved and logged
Output: Maintainability score 0–10 with top 5 specific findings.
Step 3: Behavior / Testability
- Coverage scan — Identify major classes/modules in scope. For each, check whether a corresponding test file exists
- Test quality — Spot-check 3–5 test files for:
- Uses the project's test framework assertions (not
print/ manual inspection) - No
sleep()/ polling in async tests — uses proper async testing primitives - Mocks/stubs are interface-based, not inheritance-based where possible
- Tests are deterministic (no reliance on wall clock or uncontrolled external state)
- Error path coverage — Check that
catchbranches and guard/else paths have corresponding test cases - Integration vs unit isolation — Verify unit tests do not make real network calls; integration tests are gated behind explicit configuration
Output: Coverage gap table (module → has tests: yes/no) + test quality issues found.
Step 4: Security
- Secrets discipline — No API keys, tokens, or credentials hardcoded in source files; secrets stored in environment variables, vault, or gitignored config files
- Dependency CVEs — Run dependency audit (
npm audit,pip audit,bundle audit,govulncheck, etc.) - Input validation — User-supplied input validated/sanitized before use in queries, commands, or external API calls; parameterized queries for any database access
- Authentication/authorization — Auth state verified before protected operations; no auth bypass paths
- Network security — All external calls use HTTPS/TLS; no
allowArbitraryLoadsorverify=Falsein production paths
# Generic secret pattern scan (adapt to your codebase)
grep -rn "sk-\|AIza\|Bearer \|api_key\s*=\|password\s*=" src/ | grep -v "test\|mock\|example\|template" | head -20
Output: Security findings with OWASP category tags where applicable.
Step 5: Observability
- Structured logging — Logs are structured (JSON or key-value pairs), not bare
print/console.logstrings; log levels used correctly (debug vs info vs warn vs error) - Trace coverage — Distributed trace IDs propagated across service/async boundaries; no "blind spots" in request flows
- Metrics/dashboards — Key business and technical metrics instrumented (request rate, error rate, latency); at least one dashboard exists for production monitoring
- Alerting — Alerts exist for error rate spikes, latency degradation, and critical business events
- Correlation IDs — Request IDs propagated through all logs for a given user action
Output: Observability score 0–10 with gaps identified.
Step 6: Deployment Fitness
Evaluate against DORA proxy metrics and pipeline completeness:
| Check | Present? | Notes | |-------|----------|-------| | CI runs on every PR | | | | All tests run in CI (not just unit) | | | | Linting / static analysis in CI | | | | Automated deployment to staging | | | | Rollback mechanism documented and tested | | | | Feature flags for risky changes | | | | Zero-downtime deployment supported | | | | Dependency vulnerability scan in CI | | |
Output: Deployment fitness score 0–10.
Step 7: Harness Fitness Gaps
Identify what automated enforcement is missing — constraints that exist only as conventions but aren't machine-verified. For each gap, recommend a concrete guide (feedforward) or sensor (feedback) to close it.
Use the 11 Engineering Excellence Pillars as a checklist scaffold. Full checklist in [references/dimensions.md](references/dimensions.md).
Step 8: Write the Report
HARNESS DESIGN REVIEW REPORT
=============================
Scope: [path or "full codebase"]
Date: [today]
Project: [project name]
DIMENSION SCORES
----------------
Architecture Fitness: [0-10]
Maintainability: [0-10]
Behavior Coverage: [0-10]
Security: [0-10]
Observability: [0-10]
Deployment Fitness: [0-10]
Overall: [0-10]
CRITICAL (fix before next PR)
------------------------------
1. [file:line] Description — why it matters
HIGH (fix this sprint)
----------------------
1. ...
MEDIUM (fix within 2 sprints)
------------------------------
1. ...
LOW / IMPROVEMENTS
------------------
1. ...
TOP 3 MISSING HARNESS MECHANISMS
----------------------------------
1. [Guide/Sensor] What to add and why
2. ...
3. ...
Quick-Run Mode
For a fast 5-minute spot check (architecture + security only):
/harness-design-review --quick [optional path]
Runs only Phase 1 (Architecture) and Phase 4 (Security). Produces a condensed findings list.
Overall Health Brackets
| Score | Meaning | |-------|---------| | ≥8.0 | Production-hardened codebase | | 6.0–7.9 | Solid foundation, specific gaps to address | | 4.0–5.9 | Significant gaps, delivery risk | | <4.0 | Pre-production quality, major structural work required |
Integration with Other Skills
| Finding | Next Step | |---------|-----------| | CRITICAL architecture violations | Add missing tests with everything-claude-code:tdd-workflow | | Security findings | Deep audit with everything-claude-code:security-review | | Maintainability score <7 | Dead code cleanup with everything-claude-code:refactor-cleaner | | Harness fitness gaps | Add enforcement hooks with update-config | | AI feature in scope | Cross-run with agent-harness-review for runtime harness quality |
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: microstone88
- Source: microstone88/claude-harness-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.