/agentic-systems:agent-harness-designfrom agentic-systems
Designs or reviews agent tool definitions, error handling, and stop conditions. Use for new agents, high retry rates, ambiguous invocations, or silent failures.
Ships in agentic-systems. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use when designing or improving how an agent invokes tools, handles errors, and decides when to stop.
read_file, run_tests, apply_patchdo_action, execute, handleKeep tool inputs narrow:
{
"name": "run_tests",
"parameters": {
"path": { "type": "string", "description": "Path to test file or directory" },
"filter": { "type": "string", "description": "Optional test name filter" }
}
}
Every tool response must include:
status: "success" | "warning" | "error"summary: one-line result (human-readable)next_actions: list of follow-up steps the agent should considerartifacts: file paths or IDs produced (empty list if none)Avoid run_bash / shell_exec style catch-all tools unless:
If you must use a catch-all, add a PreToolUse validation hook for dangerous patterns.
Every tool must define what happens on failure:
| Case | Required response |
|---|---|
| Invalid input | Reject immediately with status: "error" and exact field name |
| Transient failure | Include retry_after hint and idempotency note |
| Non-recoverable | State stop: true and describe the manual resolution step |
Do not return partial success with no indication that something failed.
Define retry limits in the harness, not inside tool implementations:
max_retries: 2
stop_conditions:
- tool returns status: "error" with stop: true
- same tool called with identical inputs twice in a row
- completion signal received
Never retry indefinitely. Declare a hard ceiling.
| Risk level | Tool granularity |
|---|---|
| High (deploy, migrate, permissions) | Micro — one action, one confirmation |
| Medium (edit, read, search) | Standard — composite is fine |
| Low (format, report, list) | Macro — batch operations acceptable |
status, summary, next_actions, and artifactsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agent-harness, tool-design, error-handling, retry-logic, agent-quality
5 skills in this plugin
/canonical-advisor-routingUse when routing a prompt to a local provider CLI for a second opinion, review, or plan -- you are about to call a provider directly, need the response saved for later, or want a single consistent way to invoke codex/gemini/claude./context-retrieval-loopUse when starting work in an unfamiliar area of a codebase, spawning a subagent that needs targeted file context, a first search pass missed the relevant file, or the file scope of a task is unclear./model-routingUse when selecting a model for a new task or subagent, deciding whether to escalate after a failed attempt, or designing a multi-agent pipeline with mixed task complexity.npx claudepluginhub yeaight7/agent-powerups --plugin agentic-systemsOther plugins' skills for the same job