agentleFS
varunk130varunk130/ai-workflow-playbooks/skills/human-escalation/SKILL.md

human-escalation

Skill2 starsChanged 6 months agoMITView on GitHub

Recognize when to stop autonomous work and escalate decisions, ambiguity, or risk to a human.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Stop and ask a human when any of these conditions are met:

    line 14
  2. Distinctive:

    When escalating, provide structured context:

    line 39
  3. Distinctive:

    Not everything needs human involvement.

    line 60
  4. Distinctive:

    When blocked on a human decision:

    line 68
  5. Distinctive:

    Document exactly where you stopped and what's needed

    line 70
  6. Distinctive:

    Do NOT make a guess and continue - the cost of rework exceeds the cost of waiting

    line 72
  7. Distinctive:

    After receiving human input:

    line 75
  8. Distinctive:

    Document the decision (in an ADR, spec update, or code comment)

    line 77
  9. Distinctive:

    If the decision changes your earlier assumptions, audit your prior work

    line 78
  10. Distinctive:

    Don't repeat yourself: - If you've escalated and are waiting, don't re-escalate on the same issue

    line 84
  11. Distinctive:

    Learn the boundary: - After escalating, note whether the human wanted to be asked about that type of decision in the future

    line 86

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Human Escalation

What This Skill Enables

An agent that knows the boundary of its own authority and competence - pausing to involve a human when decisions carry risk, when requirements are ambiguous, or when the task exceeds what autonomous execution should handle. Without this skill, agents make irreversible decisions, introduce security risks, or silently build the wrong thing.

Core Competencies

1. Escalation Triggers

Stop and ask a human when any of these conditions are met:

Ambiguity

  • Requirements can be interpreted multiple ways
  • The spec is missing or contradicts itself
  • You're making an assumption that would be expensive to reverse

Risk

  • The change affects authentication, authorization, or payment flows
  • The change modifies database schemas in production
  • The change deletes data or removes functionality
  • The change modifies CI/CD pipelines or deployment configuration

Uncertainty

  • You've attempted a fix twice and it's still failing
  • The error message doesn't match any known pattern
  • You're unsure whether a dependency change is safe
  • The test suite has failures you can't explain

Scope

  • The task is growing beyond the original request
  • You've discovered a deeper problem beneath the reported issue
  • Implementing the request properly requires changing the architecture

2. Escalation Format

When escalating, provide structured context:

ESCALATION: [One-line summary of what needs human input]

CONTEXT:
- What I was doing: [task description]
- What I found: [the issue or ambiguity]
- What I've tried: [attempts made, if any]

OPTIONS:
A) [First option] — Pros: [...] Cons: [...]
B) [Second option] — Pros: [...] Cons: [...]
C) [Do nothing / defer] — Pros: [...] Cons: [...]

MY RECOMMENDATION: [Option X] because [reasoning]

BLOCKING: [Yes/No — can I continue other work while waiting?]

3. Knowing What NOT to Escalate

Not everything needs human involvement. Handle these autonomously:

  • Fixing lint errors or formatting issues
  • Writing tests for existing behavior
  • Renaming variables to match project conventions
  • Adding error handling for documented edge cases
  • Resolving straightforward merge conflicts in your own files

4. Graceful Pausing

When blocked on a human decision:

  • Save your current state (commit work-in-progress to a branch)
  • Document exactly where you stopped and what's needed
  • Switch to other unblocked tasks if available
  • Do NOT make a guess and continue - the cost of rework exceeds the cost of waiting

5. Post-Escalation Follow-Through

After receiving human input:

  • Confirm your understanding of the decision before implementing
  • Document the decision (in an ADR, spec update, or code comment)
  • If the decision changes your earlier assumptions, audit your prior work

Behavioral Rules

  1. When in doubt, ask - The cost of a question is low; the cost of a wrong autonomous decision is high
  2. Provide options, not just questions - Frame escalations as choices with tradeoffs
  3. Don't repeat yourself - If you've escalated and are waiting, don't re-escalate on the same issue
  4. Respect the answer - Implement what was decided, even if you'd have chosen differently
  5. Learn the boundary - After escalating, note whether the human wanted to be asked about that type of decision in the future

Failure Modes

FailureSymptomCorrection
Never escalatingMaking risky decisions autonomously, breaking thingsReview the trigger list; err on the side of asking
Escalating everythingHuman feels like the agent can't work independentlyHandle routine decisions autonomously; only escalate triggers
Escalating without contextHuman can't make a decision from the information givenAlways use the structured escalation format
Continuing after escalatingBuilding on a guess while waiting for an answerPause the blocked task; switch to unblocked work
Not documenting the decisionSame question gets re-escalated in the next sessionRecord every human decision in the spec or ADR

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.