agentleFS
Ormus-SolutionsOrmus-Solutions/ormus-agent-ops/skills/agent-ops/SKILL.md

agent-ops

Skill0 starsChanged 7 months agoMITView on GitHub

Operational actions on tasks in an autonomous coding agent — stop, requeue, dead-letter, retry-subtasks, bump-priority. The mechanic's toolbox for running agents.

  • Sends data out

4 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 1

    1. HermeticOrmus/ormus-agent-ops★ 0100% same

    Edited · 0

    None found.

    Wrote their own version · 3

    1. weellio/gander★ 10same name
    2. LuisSambrano/antigravity-config★ 8same name
    3. Vann-Dev/AgentBridge★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository6 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 5

    Distinctive

    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
  1. Very specific:

    Stop a currently-running task.

    line 21
  2. Distinctive:

    If your agent decomposes tasks into subtasks, retry only the failed subtasks of a parent (don't restart the whole tree).

    line 65
  3. Distinctive:

    Don't want to redo the work that already passed

    line 74
  4. Distinctive:

    Document which your agent uses in your env / runbook.

    line 92
  5. Distinctive:

    After each action, confirm with:

    line 117
  6. Distinctive:

    If your agent's API doesn't expose all these endpoints, omit the subcommands you don't need.

    line 139
  7. Very specific:

    After running operational actions, suggest /agent-status to verify the new state.

    line 140

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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

/agent-ops — Operational Actions

The verbs you need when something needs to be done to a task right now.

Prerequisites

VarPurpose
AGENT_API_URLBase URL of the agent's HTTP API
AGENT_API_TOKENBearer token

Subcommands

/agent-ops stop <task-id>

Stop a currently-running task. The task should transition to stopped (or whatever your agent's stopped state is named).

curl -s -X POST -H "Authorization: Bearer $AGENT_API_TOKEN" \
  "$AGENT_API_URL/api/tasks/<task-id>/stop"

When to use:

  • Task is in a runaway loop
  • Task is doing the wrong thing (operator changed mind)
  • Task is consuming excessive cost / time

/agent-ops requeue <task-id>

Move a failed or stopped task back to queued so a worker picks it up again.

curl -s -X POST -H "Authorization: Bearer $AGENT_API_TOKEN" \
  "$AGENT_API_URL/api/tasks/<task-id>/requeue"

When to use:

  • Failure was infrastructure (/agent-triage classified as infra)
  • Task was stopped to prioritize something else, now ready to resume
  • Operator fixed a credential / env issue and wants to retry

/agent-ops dead-letter <task-id> [reason]

Move a task to dead-letter status. It won't be retried automatically. Optional reason logged for audit.

curl -s -X POST -H "Authorization: Bearer $AGENT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"reason": "<reason>"}' \
  "$AGENT_API_URL/api/tasks/<task-id>/dead-letter"

When to use:

  • Task is wontfix (scope changed, no longer needed)
  • Task has hit max retries with no progress
  • Task is fundamentally broken in a way operator action can't fix

/agent-ops retry-subtasks <task-id>

If your agent decomposes tasks into subtasks, retry only the failed subtasks of a parent (don't restart the whole tree).

curl -s -X POST -H "Authorization: Bearer $AGENT_API_TOKEN" \
  "$AGENT_API_URL/api/tasks/<task-id>/retry-subtasks"

When to use:

  • A 5-subtask plan failed at subtask 3; subtasks 1-2 succeeded
  • Don't want to redo the work that already passed
  • The retry endpoint should re-examine pending/failed subtasks only

/agent-ops priority <task-id> <priority>

Bump or lower a task's queue priority. Useful when the user/operator decides this task should jump the line.

curl -s -X PATCH -H "Authorization: Bearer $AGENT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"priority": <priority>}' \
  "$AGENT_API_URL/api/tasks/<task-id>"

Priority semantics depend on your agent. Common conventions:

  • Lower number = higher priority (1 = highest, 10 = lowest), OR
  • Higher number = higher priority

Document which your agent uses in your env / runbook.

/agent-ops cancel <task-id> [reason]

Like dead-letter but for queued (not yet running) tasks. Removes from queue without ever executing.

curl -s -X POST -H "Authorization: Bearer $AGENT_API_TOKEN" \
  -d '{"reason": "<reason>"}' \
  "$AGENT_API_URL/api/tasks/<task-id>/cancel"

Bulk variant

Each subcommand accepts multiple task IDs:

/agent-ops requeue task-1 task-2 task-3
/agent-ops dead-letter task-4 task-5 "scope changed"

Iterate, but always confirm count + IDs before executing bulk operations. A bulk dead-letter on the wrong list deletes work.

Output

After each action, confirm with:

ACTION    <verb>
TASK      <task-id>
NEW STATE <state>
RESULT    ✓ ok / ✗ <error>

For bulk:

BULK ACTION  <verb> on <N> tasks
SUCCESS      <N>
FAILED       <N>
  • <task-id> — <error>

Notes

  • Never run a bulk action without listing the IDs first. Confirm the user wants exactly those IDs to receive the action.
  • For irreversible actions (dead-letter, cancel with state cleanup), require explicit user confirmation even for single tasks.
  • If your agent's API doesn't expose all these endpoints, omit the subcommands you don't need. The skill is a menu, not a contract.
  • After running operational actions, suggest /agent-status to verify the new state.

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.