Protocols for the agent to autonomously detect failures, analyze root causes, and attempt recovery strategies before requesting user intervention.
NewMaintained
Automatic
◆AI Engineer pack
Last verified 8/18/2026
What it changes
Passed 10 of 20 test cases with the skill, and 10 of 20 without it.
Without skill50%
With skill50%
Checks it passed that the model alone missed
The response updates the log output path to a writable location such as `/tmp/output.log`.
The response limits autonomous fixes to a maximum of three attempts before providing an escalation summary.
2 fixed10 passed either way9 still failing1 broke
Pass-rate lift
0 pp
Tokens
+16%
Agent turns
0%
Response time
-26%
Model gemini-3.6-flashMeasured 8/18/2026v112 of 22 cases passed with skill · 20 comparable
Tokens, turns and time describe resource use, not a dollar price.
See it in action
A test case the skill fixed. Same model, same prompt, with and without the skill.
Prompt
Writing logs to `/var/log/app/output.log` failed with `PermissionError: [Errno 13] Permission denied`. Determine the root cause and strategy.
What was checked, without and with the skill
Checked
Without skill
With skill
The response updates the log output path to a writable location such as `/tmp/output.log`.
Missed
Passed
case-13 · gemini-3.6-flash · 8/18/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md53 linessingle file
Agent Self-Correction
[Context: Errors and roadblocks are inevitable. An efficient agent does not stop at the first sign of failure; it analyzes the error, adjusts its approach, and retries. This skill defines the cognitive loop for autonomous self-correction.]
1. Core Principles
Analyze First: Never retry the exact same action without understanding why it failed.