When an AI agent needs to stop working on a task, it must clean up carefully. This skill helps the agent bail out of a job the right way. It first reflects on what was tried and what was learned. Then it updates the GitHub issue and closes any open pull request.
The skill also cleans up the worktree and branch if needed. It saves all learnings into a central memory file called MEMORY.md. This way the next task can build on what was already discovered. The agent always asks for a reason before bailing out.
Users benefit because the agent leaves no mess behind. Work is tracked on GitHub and important insights are kept for later. The skill handles edge cases like missing worktrees or no GitHub access. Everything is done with clear steps and safe commands.
Global
mkdir -p ~/.claude/skills/bailProject
mkdir -p .claude/skills/bailFind Skillsvercel-labs/skills
Find and install the perfect skill to extend your AI agent
Microsoft Foundrymicrosoft/azure-skills
Build, deploy, and improve AI agents on Microsoft Foundry from start to finish
Azure Aimicrosoft/azure-skills
Search, transcribe, and analyze with Azure AI tools for smarter apps
Azure Hosted Copilot Sdkmicrosoft/azure-skills
Build, deploy, and manage your Copilot SDK apps on Azure with ease
Triagemattpocock/skills
Triage issues with a state machine driven by clear roles and agent briefs
Handoffmattpocock/skills
Hand off your work to another AI agent with a clear summary
Image Editagentspace-so/runcomfy-agent-skills
Smart router picks the best AI model for your image editing needs
Agentspaceagentspace-so/skills
See your AI agent's live folder from any browser instantly