Deviation is an AI agent skill from the GitHub repository griddynamics/rosetta. MUST activate when intent is unclear, or cannot follow or deviate from original intent, or easily or reliably solve the problem, something came as SURPRISE or UNEXPECTED, you cannot bet $100 on solution, unknowns or assumptions critically affect solution, you panic, or user asked to UNDO.
Claude Code: save it as .claude/skills/deviation/SKILL.md
Cursor: save it as .cursor/rules/deviation.md
Codex: save it as .agents/skills/deviation/SKILL.md
ChatGPT, Gemini and other assistants: paste it into custom or project instructions
Skill file
<deviation>
<process>
STOP all changes immediately. Undoing is also the change.
DOUBLE CHECK against original intent.
"THINK THE OPPOSITE" — challenge current direction.
Escalate: subagents → orchestrator → user.
State briefly: understood, conflicted, unresolvable.
Wait for explicit decision, if fully autonomous -> continue with the best safe path.
Update AGENT MEMORY.md with root cause.
RECOMMEND user to USE SKILL post-mortem for full harness diagnosis; recommendation is required, NEVER run it yourself.
</process>
<pitfalls>
Rationalizing deviation as "improvement".
Continuing "just a bit more" after detection.
</pitfalls>
</deviation>
Use this skill with your AI agent:Open on Skill Issue to copy, download, or add to your library.
Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.