Skip to content
Agentmart
Submit a tool

background-automation

WHEN to auto-invoke: Setting up recurring or self-paced tasks, watching CI or deploys, babysitting pull requests, configuring monitors, running long jobs in…

Skill by gr8monk3ys

IndexedGPL-3.0
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/gr8monk3ys-background-automation

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

WHEN to auto-invoke: Setting up recurring or self-paced tasks, watching CI or deploys, babysitting pull requests, configuring monitors, running long jobs in the background, scheduling check-ins, polling for a condition, or wiring Claude Code on the web/cloud sessions and PR activity subscriptions. WHEN NOT to invoke: One-off synchronous edits, writing application feature code, pure UI/styling work, or anything that finishes in a single turn with no waiting.

Use cases: design, devops, writing, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/background-automation

Tools it pre-approves 4

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Read,
  • Bash,
  • Grep,
  • Glob

What's inside

Skill name
background-automation
Description
WHEN to auto-invoke: Setting up recurring or self-paced tasks, watching CI or deploys, babysitting pull requests, configuring monitors, running long jobs in the background, scheduling check-ins, polling for a condition, or wiring Claude Code on the web/cloud sessions and PR activity subscriptions. WHEN NOT to invoke: One-off synchronous edits, writing application feature code, pure UI/styling work, or anything that finishes in a single turn with no waiting.
License
GPL-3.0
Allowed tools
Read,, Bash,, Grep,, Glob
Instructions
68 lines in SKILL.md · view on GitHub

Before installing

  • Pre-approves some shell commands

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Background Automation Skill

You are an expert at Claude Code's automation primitives: loops, monitors, background
tasks, and PR activity subscriptions. Use them to do work that spans time or waits on
external events — without burning turns on `sleep`.

## Pick the right primitive

| Need | Use | Notes |
| --- | --- | --- |
| Run a prompt on a fixed cadence | **`/loop <interval> <prompt>`** | e.g. `/loop 10m /verify`. Recurring loops auto-expire after 7 days. |
| Self-paced repetition with no fixed interval | **`/loop <prompt>`** (dynamic mode) | You decide the next delay each iteration. |
| Wait on an event (CI, file change, log line) | **Monitor** (`persistent: true`) | Events arrive as notifications and wake the loop immediately — do not poll. |
| Run a long command without blocking | **Background task** (`run_in_background`) | You are re-invoked when it exits; check output later. |
| React to PR comments / reviews / CI | **PR activity subscription** | Subscribe, then end the turn; events wake the session. |

## Rules that matter

1. **Never `sleep` to wait for an external event.** Arm a monitor or subscribe; let the
   event wake you. `sleep` just burns a turn and the wall-clock cost.
2. **A monitor is the wake signal; the loop delay is only a fallback heartbeat.** When a
   monitor is armed, lean on a longer fallback (≈20-30 min) — idle ticks past the cache
   window are pure overhead.
3. **Arm a monitor once.** On later iterations, list running tasks first and skip
   re-arming if one already exists.
4. **Loops have a terminal state.** "Get CI green", "babysit this PR" — drive to
   merged/closed. Re-diagnose on every failure; one attempt is not the task.
5. **Stop when asked.** Tear down monitors and subscriptions the moment the user says
   stop.

## Monitors config

Background watchers live in `monitors/monitors.json` (in this plugin, under
`.claude/monitors/`). Each entry runs a long-lived command; its stdout lines are
delivered to the session as notifications.

```json
[
  {
    "name": "typecheck-watch",
    "command": "npx tsc --noEmit --watch --pretty false",
    "description": "Streams TypeScript errors as you edit",
    "when": "always"
  }
]
```

- Keep monitors low-noise: a watcher that emits on every keystroke will flood the
  session. Prefer commands that only print on a real state change (errors, failures).
- `when` gates activation (`always`, or a condition). Document any project-specific log
  paths users must adjust.

## Recipes

**Watch a deploy until it settles**

```text
/loop check the Vercel deploy for this branch every 10m
```

**Babysit a PR to green** — subscribe to PR activity, arm a `tsc --watch` monitor for
local signal, and set a ~20m fallback heartbeat for the transitions webhooks miss (CI
success, merge-conflict). See the `/babysit` command, which wires this together.

**Long test/build run** — start it as a background task and continue other work; handle
the result when you are re-invoked on exit.

From gr8monk3ys/skills, GPL-3.0.

More from gr8monk3ys/skills

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 20, 2026 (2 months ago)
Last release
Oct 13, 2026 (16 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
GPL-3.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from gr8monk3ys

Cite this page

background-automation skill. Agent Mart. https://agentmart.dev/skills/gr8monk3ys-background-automation (last updated 2026-10-24)