
Repair Agent
Rewrite a non-compliant agent definition after an audit so routing, voice, and structure match claudest-style agent contracts.
Install
npx skills add https://github.com/gupsammy/claudest --skill repair-agentWhat is this skill?
- Sample log-summarizer walkthrough from weak agent through audit report to repaired output
- CRITICAL fixes for description opener (Use this agent when…) and first-person narration in the body
- MAJOR checks for YAML folded scalar descriptions and token-length guidance (50–70 tokens)
- Violation taxonomy labeled D1/D3 for systematic diffs, not one-off chat edits
- Demonstrates expected improvement depth and report format for repair-agent runs
Adoption & trust: 1 installs on skills.sh; 253 GitHub stars; 3/3 security scanners passed (skills.sh audits); trending (+100% hot-view momentum).
Recommended Skills
Journey fit
Agent repair is canonical on Build agent-tooling because it produces an improved agent artifact developers install and invoke. The sample repairs description YAML, routing opener, and imperative body—the same surfaces you edit when authoring Claude/Cursor agents.
Common Questions / FAQ
Is Repair Agent safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Repair Agent
# Sample Repair Session: log-summarizer Demonstrates a complete repair-agent run — input agent, audit findings, and the repaired output. Use as a reference for expected report format and improvement depth. --- ## Input Agent (before repair) ```markdown --- name: log-summarizer description: | This agent should be used when you need log files summarized. --- I will analyze the log file provided by the user. Process: 1. I'll read the log file 2. I will identify errors and warnings 3. I'll produce a summary Output: A summary of the log file. ``` --- ## Audit Report ``` AGENT IMPROVEMENT REPORT: log-summarizer System prompt: 8 lines | Description: 0 examples | Tools: unrestricted VIOLATIONS ────────── CRITICAL [D1] Description does not start with "Use this agent when..." — routing model cannot match the expected pattern. Current: "This agent should be used when you need..." Fix: rewrite opening as "Use this agent when [conditions]." [D3] Body uses first-person throughout ("I will analyze", "I'll read", "I will identify", "I'll produce") — the instruction-following contract breaks. First-person reads as the agent narrating its own plan rather than following an instruction. Fix: rewrite all first-person as bare imperatives or second-person. MAJOR [D1] Description uses `|` scalar instead of `>` folded scalar — folded scalar is the convention for concise descriptions. Fix: rewrite as `>` scalar, 50-70 tokens. [D3] No persona statement — first sentence does not establish role and domain. Fix: begin with "You are a [role] specializing in [domain]." [D3] No output format section — callers cannot predict structure of returned summary. Fix: add explicit Output Format section. [D2] `tools` absent for a read-only analysis agent — grants full access by default. Least-privilege for autonomous agents requires an explicit allowlist. Fix: add tools block sequence (Read, Grep, Glob) MINOR [D2] `color` absent — no visual identity in UI. Fix: add color: cyan (information gathering / extraction semantic). [D3] No edge cases — what happens if no log file path is provided? Fix: add Edge Cases section. GAPS ───────────────────────────────────── None beyond violations above. ``` --- ## Repaired Agent (after applying all critical + major items) ```markdown --- name: log-summarizer description: > Use this agent when the user wants a log file summarized, analyzed for errors, or needs to understand what happened in a log quickly. Not for real-time log streaming or monitoring — use a dedicated observability tool. model: inherit color: cyan tools: - Read - Grep - Glob --- You are a log analysis specialist focused on extracting signal from noise in application and system logs. **Your Core Responsibilities:** 1. Identify errors, warnings, and anomalies in log output 2. Produce a concise summary that surfaces actionable information **Process:** 1. Read the log file at the path provided in the conversation 2. Scan for ERROR, WARN, FATAL, and CRITICAL level entries 3. Identify repeated patterns (same error N times) and collapse them 4. Note the time range and overall volume of the log **Output Format:** ``` Log: <filename> | Lines: <N> | Time range: <start> – <end> ERRORS (<count>): - [<timestamp>] <message> (×<count> if repeated) WARNINGS (<count>): - [<timestamp>] <message> SUMMARY: <1–2 sentences on overall health and most critical issue> ``` **Edge Cases:** - No file path provided: ask the user to share the path or paste the log content - Binary or non-text file: report "Cannot parse binary log — provide a text export" - Empty log file: report "Log is empty — no entries to summarize" ``` --- ## Changes Applied - **[D1] Description rewritten** — changed "This agent should be used when you need..." to "Use this agent when..." using `>` folded scalar with scope boundary - **[D3] First-person eliminated** — "I will an