blocked-action-fallback
Skill34 starsChanged 8 months agoMITView on GitHub
Use the moment an action fails or a tool is missing (MCP server down, gh GraphQL rejected, connector not enabled, network 403, script needs the Mac). Walks an ordered ladder of legitimate alternate routes before reporting a blocker, and draws a hard line between "this route is broken" (try another) and "this action was refused" (stop, never route around it).
- Commits and pushes
In this repository110 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .well-known/llms.txtllms.txt
- activesaddler-curriculum-honestySkill
- article-syndication-pipelineSkill
- autonomous-execution-mandateSkill
- aws-strands-harness-not-cloneSkill
- bolt-forge-opt-in-not-cloneSkill
- ci-gha-buildkite-patterns-not-cloneSkill
- cobble-hot-store-compare-not-cloneSkill
- colab-compute-honesty-not-cloneSkill
- comet-session-loggerSkill
- craft-playbook-gateSkill
- cyberstrike-compare-not-cloneSkill
- datadog-llm-obs-compare-not-cloneSkill
- decisive-step-evaluatorSkill
- deeppattern-discipline-honesty-not-cloneSkill
- earnie-third-author-governanceSkill
- embeddinggemma-multimodal-firewallSkill
- fiddler-control-plane-honestySkill
- gitlab-sandbox-allowlist-not-trustSkill
- graphifySkill
- halo-trace-optimize-not-cloneSkill
- harness-evolution-ceilingSkill
- ideabrowser-connectorSkill
- infoq-architect-honesty-not-cloneSkill
- jit-harness-compare-not-cloneSkill
- meko-datapack-honesty-not-cloneSkill
- mintlify-knowledge-honesty-not-cloneSkill
- model-distress-governanceSkill
- multi-harness-rl-invariantsSkill
- nvidia-specdecode-al-doctorSkill
- omp-coordination-honesty-not-cloneSkill
- openui-catalog-compose-honestySkill
- package-manager-honesty-doctorSkill
- qwenwork-policy-group-honesty-not-cloneSkill
- saas-moat-honesty-not-cloneSkill
- salt-code-policy-honesty-not-cloneSkill
- show-meSkill
- siren-mcp-governanceSkill
- skool-headless-readerSkill
- snapchat-abm-playbook-stealSkill
- strands-harness-sentinelSkill
- supporter-compute-lane-not-cloneSkill
- tailscale-p2p-governance-not-cloneSkill
- thumbgate-board-loopSkill
- thumbgate-daily-discoveriesSkill
- thumbgateSkill
- token-shunt-honesty-not-cloneSkill
- typesafe-typed-questions-not-cloneSkill
- vs-coverage-gap-not-cloneSkill
- vulnerability-pre-action-diodeSkill
- windbg-evidence-diagnosticsSkill
- wisdom-context-artifact-not-cloneSkill
- zero-outbound-spend-they-pay-usSkill
- zvec-grep-compare-not-cloneSkill
- check-before-askingSkill
- ci-failure-triageSkill
- evidence-first-answerSkill
- fleet-coordinationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
If unsure whether it is BROKEN or REFUSED, treat it as REFUSED.
- Distinctive: line 75
Only name a human step when it truly requires a credential or decision an agent cannot legitimately hold (2FA, rotating a PAT, approving a …
- Very specific: line 81
NEVER approve a PR, dismiss a review, add a ruleset bypass, use --admin, or use an owner token to satisfy a control.
- Distinctive: line 83
NEVER re-issue a denied tool call through a different tool or wording.
- Very specific: line 84
NEVER grant yourself permissions or bypass Claude Code's permission checks (safety-boundaries).
- Distinctive: line 86
NEVER invent facts to fill a placeholder (prices, user counts, testimonials).
- Distinctive: line 87
ALWAYS write what you learned about a broken route into project memory / the lesson DB so the next session starts on the working route.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Blocked-Action Fallback — Try Every Legitimate Route, Then Report Once
The failure this prevents
Two opposite failures, both seen in Nov 2026 sessions:
- Giving up on the first error. A thread hit "gh pr create: GraphQL blocked" or "Gmail connector not enabled" and handed the CEO a to-do list ("please click Ready", "please send this email"). The CEO's standing rule: never tell him to do our work; exhaust alternate routes first.
- Treating a refusal as a broken route. Re-trying an action that a permission system, safety check, or branch protection refused by switching tools (MCP → gh → raw API) is evasion, not resilience. See CLAUDE.md "NEVER Bypass Branch Protection".
Step 0 — classify the failure (do not skip)
Quote the exact error, then label it:
| Class | Examples | What you do |
| ROUTE BROKEN | MCP server disconnected, proxy 403 on a host, GraphQL endpoint rejected while REST works, CLI not installed, timeout, 5xx | Walk the ladder below |
| NOT YET CONFIGURED | connector exists on the account but not enabled for this session, missing env var, repo not attached | Use the setup tool that exists for it (attach repo, connector card, environment docs), keep doing all work that doesn't depend on it |
| REFUSED | a tool call denied by the permission/safety layer, REVIEW_REQUIRED, ruleset/branch-protection block, a platform ToS or rate limit, a human said no | Stop. Do not retry the same intent through another tool. Record it as BLOCKED with the quoted reason |
If unsure whether it is BROKEN or REFUSED, treat it as REFUSED.
The ladder (ROUTE BROKEN only)
Try in order; stop at the first that works. Log each attempt (route, command, result) — that log is the evidence if you end up reporting a blocker.
- Native tool / MCP for the service (GitHub MCP, Gmail MCP, etc.). If the server is "still connecting", search for its tools again before giving up.
- Repo CLI with existing auth —
gh,npm run <script>, repo scripts inscripts/(e.g.npm run pr:manage,scripts/post-everywhere.js). - REST instead of GraphQL —
gh api repos/<owner>/<repo>/pulls -f ...creates PRs whengh pr create(GraphQL) is rejected; same for comments, labels, ready-for-review. - Repository automation — trigger an existing workflow that already owns
the action:
gh workflow run <file> -f pr_number=<N>(e.g.agent-automerge.yml), or push a commit that fires it. Never write a new workflow whose purpose is to get around a control. - The operator's machine — when the work genuinely needs local
credentials, apps or files (Mac-only scripts, signed-in browsers, launchd
jobs), queue it through
mac-dispatch(an issue marked<!-- agent:ready -->or a row in the existing herdr sheet), or start a Remote Control session / use connected folder access when the thread has them. Never queue a REFUSED action on the Mac. - Produce the artifact anyway — if nothing can send/publish it, finish everything up to the send (final copy, filled placeholders, exact command) and save it where the next session/automation will pick it up.
Reporting (only after the ladder)
One message, no to-do list for the CEO:
BLOCKED: <action> — <class>
Tried: <route 1: result> · <route 2: result> · ...
Ready to go: <artifact path / exact command>
Unblocks when: <specific condition>. I will <next action> as soon as it does.Only name a human step when it truly requires a credential or decision an agent cannot legitimately hold (2FA, rotating a PAT, approving a PR, a business decision). State it once; don't repeat it every turn.
Hard rules
- NEVER approve a PR, dismiss a review, add a ruleset bypass, use
--admin, or use an owner token to satisfy a control. A blocked merge is a finding. - NEVER re-issue a denied tool call through a different tool or wording.
- NEVER grant yourself permissions or bypass Claude Code's permission checks
(
safety-boundaries). - NEVER invent facts to fill a placeholder (prices, user counts, testimonials).
- ALWAYS write what you learned about a broken route into project memory / the lesson DB so the next session starts on the working route.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

