ralphctl: Skill for Claude Code

.claude/skills/harness-engineering/SKILL.md

harness-engineering is a skill for Claude Code from lukas-grigis/ralphctl. It costs 96 tokens per session (3,581 once invoked), scanned A, original, MIT.

A reference guide based on three Anthropic articles about building AI-agent harnesses, the systems that give agents structure, memory, progress tracking, and evaluation. It explains when to use fixed workflows, how much scaffolding to add, and how to divide generation from evaluation.

In plain words
What is it for?
Use it when designing or reviewing an agent harness, planning state and handoffs, deciding whether scaffolding is needed, removing parts after a model upgrade, or separating generators from evaluators.
Why use it?
It provides research-based reasoning for designing or auditing systems that support long-running coding work.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: mentions Claude Code; mentions Codex; mentions OpenCode.

This is lukas-grigis/ralphctl's own configuration. It tells Claude Code how to work on ralphctl itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ralphctl configures →

Reuse

Borrowing it

Nothing to install: this file belongs to lukas-grigis/ralphctl. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/lukas-grigis/ralphctl/main/.claude/skills/harness-engineering/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/lukas-grigis/ralphctl

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for harness-engineering

README.md
[![agentmods](https://agentmods.dev/badge/skills/lukas-grigis/ralphctl/harness-engineering/github.svg)](https://agentmods.dev/skills/lukas-grigis/ralphctl/harness-engineering)
Your own site
<a href="https://agentmods.dev/skills/lukas-grigis/ralphctl/harness-engineering"><img src="https://agentmods.dev/badge/skills/lukas-grigis/ralphctl/harness-engineering/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for harness-engineering

Your own site · 80×15
<a href="https://agentmods.dev/skills/lukas-grigis/ralphctl/harness-engineering"><img src="https://agentmods.dev/badge/skills/lukas-grigis/ralphctl/harness-engineering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,581 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 7 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Memory Poisoning · line 195
    Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.
    Fix: Implement context-window management that detects and rejects padding or stuffing attempts. Prioritize system instructions over user-injected content.
  • medium Prompt Injection · line 195
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 199
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 200
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 201
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 202
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 203
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00096 $0.03581
Opus 5.5 $0.00038 $0.01432
Sonnet 5.5 $0.00019 $0.00716
Haiku 4.5 $0.00010 $0.00358

Measured 2mo ago against content hash 330e695ff6fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

harness-engineering scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/harness-engineering/SKILL.md · 215 lines

How it starts

The opening of the file, as written. The whole thing — 215 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Harness Engineering — article-grounded reference

A themed synthesis of three Anthropic engineering articles on building harnesses for agentic and long-running coding work. This is the reference / the why. Two siblings carry the other halves:

  • harness-principles (skill) — the lightweight read-first trigger for structural changes.
  • .claude/docs/HARNESS-PRINCIPLES.md — the ralphctl status map (each principle tagged applied / partial / gap with a code anchor).

This skill does not restate those. It distills the source articles by theme, keeps the load-bearing verbatim quotes with attribution, and ends with a brief pointer to where each idea lives in ralphctl. Citation labels below map to the Sources section. Open the original when a rationale needs full framing.


1. Climb the complexity ladder reluctantly (workflow vs agent)

The vocabulary first. Workflows are "systems where LLMs and tools are orchestrated through predefined code paths"; agents are "systems where LLMs dynamically direct their own processes and tool usage, maintaining control over how they accomplish tasks" (Building Effective Agents). Most production work wants the predictability of a workflow, not the open-endedness of an agent.

The ladder ascends from a direct API call → the augmented LLM (retrieval / tools / memory) → a single workflow pattern → composed workflows → an autonomous agent. Five workflow patterns are named: prompt chaining, routing, parallelization (sectioning + voting), orchestrator-workers, and evaluator-optimizer. You climb a rung only when the lower one demonstrably fails.

"Consistently, the most successful implementations weren't using complex frameworks or specialized libraries. Instead, they were building with simple, composable patterns." — Building Effective Agents

"You should consider adding complexity only when it demonstrably improves outcomes." — Building Effective Agents

Corollary: invest in the agent-computer interface (ACI) as much as a human UI — tool docs, examples, and poka-yoke (e.g. absolute over relative filepaths) earn their keep. Frameworks "often create extra layers of abstraction that can obscure the underlying prompts and responses, making them harder to debug."

Read the full file on GitHub · 215 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 215 lines · 96 tokens per session scan A 330e695ff6fe

Subscribe to this mod's changes

harness-engineering is a skill published in the GitHub repository lukas-grigis/ralphctl (24 stars, last pushed 4d ago), licensed MIT. It adds 96 tokens to every session and 3,581 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

harness-engineering compared with skills from other repositories

harness-engineering next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
harness-engineeringlukas-grigis/ralphctlSkill244d agoMITA96Claude Code
memoryshobcoder/shobSkill5757d agoMITA146Claude Code, Codex
save-learningcaliber-ai-org/ai-setupSkill1.3k1mo agoMITA71Claude Code, Codex
atomic-wikidamusix/atomic-claudeSkill1155d agoMITA204Claude Code, Codex
ce-compoundelleryfamilia/loadoutSkill3329d agoMITA32Claude Code
ai-session-searchahundt/ai-session-searchSkill51yesterdayApache-2.0B108Claude Code
loadout-rememberelleryfamilia/loadoutSkill3329d agoMITA93Claude Code