# Fix Claude Code Routines That Stall, Hang, or Clobber Main

> Rules, prompt template and preflight checklist that stop scheduled Claude Code routines from stalling, clobbering main, or leaking secrets.

Fix Claude Code Routines That Stall, Hang, or Clobber Main is a paid AI agent skill on Agensi by Georgina Hawley, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9.99 (one-time purchase)
- Creator: [Georgina Hawley](https://www.agensi.io/creators/georgina-hawley)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-10-28
- Security: scan passed (2026-10-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/fix-claude-code-routines-that-stall-hang-or-clobber-main
- Tags: devops, automation, ai-agents, claude-code, routines, scheduled-tasks, agents, prompt-template

## About this skill

Your scheduled Claude Code routine hung, lost commits, or got a proxy 403? This skill has the symptom-to-cause table, a fill-in routine prompt, and a preflight checklist from real unattended runs.

Scheduled Claude Code routines fail quietly: a background subagent hangs the run, a stale checkout overwrites main, a secret lands in a log. This pack gives your agent the rules to prevent that.

What's included:
- SKILL.md: triggers when you write or debug a routine, with a symptom-to-cause table and hard stops
- Six rule files: foreground subagents, reset before edit, commit and push, egress and secrets, one consolidated report, parallel agents in worktrees
- A fill-in routine prompt template with the rules built in
- A pass/fail preflight checklist
- Scripted test scenarios with expected answers

Honest limits: built from real runs, not official Anthropic guidance. It stops recurring failures; it won't make a weak prompt good.

## Known limitations

Requires a disposable cloud environment for hard reset rules. Not intended for use in active human-managed local checkouts.
Doesn't cover self-hosted environments, GitHub-trigger or API routines in depth, or billing and usage limits beyond a pointer.
Built from real unattended runs, not official Anthropic guidance. Doesn't make a weak routine prompt good.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Fix Claude Code Routines That Stall, Hang, or Clobber Main skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does this make my routine work by itself?

No. It gives your agent the rules and checklist that prevent the common failures. You still need a sound routine prompt.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
