---
name: Code Harness
slug: code-harness
category: Quality
description: Code Harness calls an engineering scaffold before generating, refactoring, reviewing, or debugging code. Use it to catch broken assumptions, behavior changes, and contract violations when working on implementations or architecture.
github: "https://github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/main/plugins/community/ejentum-code"
language: Python
stars: 2617
forks: 384
install: "npx degit https://github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/main/plugins/community/ejentum-code ~/.claude/skills/ejentum-code"
installs_to: ~/.claude/skills/ejentum-code
source_path: plugins/community/ejentum-code/SKILL.md
collection_size: 53
category_size: 1354
collection_url: "https://dirskills.com/collections/jeremylongshore/claude-code-plugins-plus-skills"
added: 2026-08-12T04:42:56.295Z
last_synced: 2026-08-12T04:42:56.295Z
canonical_url: "https://dirskills.com/skills/code-harness"
---

# Code Harness

Code Harness calls an engineering scaffold before generating, refactoring, reviewing, or debugging code. Use it to catch broken assumptions, behavior changes, and contract violations when working on implementations or architecture.

**Install:**

```bash
npx degit https://github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/main/plugins/community/ejentum-code ~/.claude/skills/ejentum-code
```

## README

# Code Harness

When this skill triggers, call the `code` tool from the `ejentum` MCP server. Pass a 1-2 sentence framing of WHAT you are coding or reviewing as the `query` argument. Include the failure risk to avoid where possible.

Good query: `review a Python refactor that converts raise UserNotFound to silent default return; tests still pass`
Bad query: `look at this code`

The tool returns a structured scaffold containing:

- `[CODE FAILURE]`: engineering failure pattern to avoid
- `[ENGINEERING PROCEDURE]`: steps to follow
- `[REASONING TOPOLOGY]`: decision flow
- `[CORRECT PATTERN]`: shape correct code should take
- `[VERIFICATION]`: self-check
- `Amplify:` and `Suppress:` signals

Absorb internally. Do NOT echo bracket labels in the user-facing reply. Apply the scaffold's failure-pattern check against your draft before responding; if your code exhibits the named failure, rewrite.

If the API is unreachable, proceed with native engineering. The scaffold enhances; it is not a hard dependency.

Latency cost: ~1 second. Benefit: catches the kinds of behavioral changes and silent contract violations that look plausible but break under real conditions.
