A skill your agent uses when the user wants to see, inspect, cancel, or prune background agents fired during prior chain runs.

MITAuto-check passed

Install Background

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill background -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace background --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ai-agency/hyperflow/skills/background .claude/skills/background && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
background
GitHub stars
2.8k
Token cost
~2.2k tokens
SKILL.md length
637 words
Files
1
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when the user wants to see, inspect, cancel, or prune background agents fired during prior chain runs.

  • Works in 4 steps: Read registry, find the entry. → If status: running, signal cancellation… → Update registry entry: status:… → …
  • The user wants to see
  • SKILL.md covers Subcommands, Subcommand Details, Flow and Overview, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Background is an agent skill from jeremylongshore/tons-of-skills-marketplace. Use when the user wants to see, inspect, cancel, or prune background agents fired during prior chain runs. Read/manage .hyperflow/background/registry.json and the per-agent output buffers at .hyperflow/background/<id.md. Standalone — never auto-invoked. Trigger with /hyperflow:background, "list background agents", "what's running in background", "cancel background agent", "show background result".

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Designed for Claude Code

The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • The user wants to see
  • Prune background agents fired during prior chain runs
  • With /hyperflow:background
  • List background agents

Example prompts

  • “list background agents”
  • “s running in background”
  • “cancel background agent”
  • “/background”

Requirements

  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash(ls:*), Bash(cat:*), Bash(rm:*), Bash(find:*), Glob, Grep

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Read registry, find the entry.
  2. If status: running, signal cancellation per the provider's mechanism (Claude Code: use the runtime's cancellation API for that subagent…
  3. Update registry entry: status: cancelled, cancelled_at: .
  4. Print Cancelled — .

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash(ls:*)
    • Bash(cat:*)
    • Bash(rm:*)
    • Bash(find:*)
    • Glob
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Background loads about 2.2k tokens when it runs. Until then it costs about 104 tokens; SKILL.md has 637 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~104
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 637 words, ~2,200 tokens.

Download SKILL.mdSave it as .claude/skills/background/SKILL.md (or your agent's skills folder).
name
background
description
Use when the user wants to see, inspect, cancel, or prune background agents fired during prior chain runs. Read/manage `.hyperflow/background/registry.json` and the per-agent output buffers at `.hyperflow/background/<id>.md`. Standalone — never auto-invoked. Trigger with /hyperflow:background, "list background agents", "what's running in background", "cancel background agent", "show background result".
allowed-tools
Read, Write, Edit, Bash(ls:*), Bash(cat:*), Bash(rm:*), Bash(find:*), Glob, Grep
compatibility
Designed for Claude Code
argument-hint
<list|show|cancel|prune> [id|--all]
version
4.7.0
license
MIT
tags
background, orchestration, lifecycle

Background

Read-only-by-default management interface for background agents fired by other hyperflow skills (dispatch quality gates, deploy CI watcher, scaffold analysis refresh, cache compact, scope speculative prefetch). Reads from .hyperflow/background/registry.json + per-agent output buffers.

Full doctrine: background-agents.md.

Subcommands

SubcommandDescription
listPrint the registry: in-flight · completed-uncollected · stalled · errored
show <id>Print one agent's output buffer (.hyperflow/background/<id>.md)
cancel <id>Cancel one specific in-flight agent
cancel --allCancel every in-flight agent (use before closing a session)
pruneDelete completed .hyperflow/background/<id>.md files older than 7 days

Default subcommand when none provided: list.

Subcommand Details

list

Read .hyperflow/background/registry.json. Group entries by status and print a compact table:

markdown
## In flight (N)

| ID                                | Purpose                              | Fired      | Timeout | Blocks  |
|-----------------------------------|--------------------------------------|------------|---------|---------|
| `bg-1718049600-quality-gates-b2`  | Layer 5 gates Batch 2                | 17:30      | 18:00   | step3   |
| `bg-1718049820-ci-watcher`        | GitHub Actions watch for v4.7.0      | 17:33      | 18:33   | —       |

## Completed (uncollected, N)

| ID                                | Purpose                              | Completed  | Duration | Output |
|-----------------------------------|--------------------------------------|------------|----------|--------|
| `bg-1718045400-scaffold-refresh`  | Refresh .hyperflow/architecture.md   | 16:42      | 2m 18s   | 1.4kb  |

## Stalled / Errored (N)

| ID                                | Purpose                              | Status            | Reason            |
|-----------------------------------|--------------------------------------|-------------------|-------------------|
| `bg-1717980000-cache-compact`     | Compact learnings.md                 | STALLED           | timeout (30m)     |

Print one trailing line: <count> in flight · <count> uncollected · <count> needs attention. If registry is empty, print No background agents. and stop.

show <id>

Read .hyperflow/background/<id>.md and print it verbatim. If the agent is still running, print the registry entry first then Output buffer not yet written. and stop.

cancel <id>
  1. Read registry, find the entry.
  2. If status: running, signal cancellation per the provider's mechanism (Claude Code: use the runtime's cancellation API for that subagent ID; if unavailable, mark the entry status: cancelled and leave the agent to time out on its own — the foreground orchestrator will drop the result on collection).
  3. Update registry entry: status: cancelled, cancelled_at: <now>.
  4. Print Cancelled <id> — <purpose>.

If the agent already completed, print Agent <id> already <status> — nothing to cancel.

cancel --all

For every entry with status: running, run the cancel flow. Print summary: Cancelled N agents.

prune

find .hyperflow/background/ -name "bg-*.md" -mtime +7 -delete plus remove their entries from registry.json (only entries with status: complete | error | stalled | cancelled older than 7 days are pruned). Print: Pruned N output buffers · N registry entries.

Flow

  1. Parse subcommand from invocation (default: list).
  2. Read .hyperflow/background/registry.json (if absent, treat as empty).
  3. Execute subcommand.
  4. Print result.

Overview

/hyperflow:background is the user-facing read/manage interface for background agents. The orchestrator itself maintains the registry as a side-effect of run_in_background: true Agent dispatches in other skills — this skill never fires a background agent, it only reads/manages the registry.

Prerequisites

  • .hyperflow/background/registry.json exists (created on first background dispatch by any other skill — if absent, all subcommands degrade gracefully).
  • .hyperflow/ initialized (run /hyperflow:scaffold if missing — though this skill works even without scaffold, since the registry is created on demand).
Show full SKILL.md (254 more words)Show less

Instructions

See Subcommands and Subcommand Details. Summary:

  1. Parse the subcommand (default list when none given).
  2. Read the registry from .hyperflow/background/registry.json.
  3. Execute the subcommand against the registry + per-agent output buffers.
  4. Print compact result; do not modify any source code.

Output

  • list — table of in-flight / completed-uncollected / stalled+errored, with one trailing summary line.
  • show <id> — file contents of .hyperflow/background/<id>.md.
  • cancel <id> / cancel --all — one-line confirmation per cancelled agent + total.
  • prune — count of pruned buffers + registry entries.

Error Handling

FailureBehavior
Registry file missingTreat as empty — list prints No background agents.; other subcommands print No registry — fire a background agent first. and stop.
Registry JSON malformedPrint Registry malformed — back up to .hyperflow/background/registry.json.bak and re-create empty. Move file, write empty registry, continue.
show <id> for unknown idList 3 closest IDs by Levenshtein distance.
cancel <id> for already-completed agentPrint Agent <id> already <status> — nothing to cancel.
Provider cancellation API unavailableMark entry status: cancelled in registry; the foreground orchestrator drops the result on collection. Print Marked <id> as cancelled (provider has no live cancellation API — agent will run to completion or timeout, but result will be discarded).
Prune called with no eligible entriesPrint Nothing to prune — no completed buffers older than 7 days.

Examples

List in-flight + completed background agents
/hyperflow:background list

## In flight (1)
| ID                                | Purpose                              | Fired | Timeout | Blocks |
|-----------------------------------|--------------------------------------|-------|---------|--------|
| `bg-1718049600-quality-gates-b2`  | Layer 5 gates Batch 2                | 17:30 | 18:00   | step3  |

## Completed (uncollected, 1)
| ID                                | Purpose                              | Completed | Duration | Output |
|-----------------------------------|--------------------------------------|-----------|----------|--------|
| `bg-1718045400-scaffold-refresh`  | Refresh .hyperflow/architecture.md   | 16:42     | 2m 18s   | 1.4kb  |

1 in flight · 1 uncollected · 0 needs attention
Show a completed agent's output
/hyperflow:background show bg-1718045400-scaffold-refresh

# Background Result — Refresh .hyperflow/architecture.md

| Field      | Value                                |
|------------|--------------------------------------|
| Agent ID   | `bg-1718045400-scaffold-refresh`     |
| Fired at   | 2026-05-16T16:40:00Z                 |
| Completed  | 2026-05-16T16:42:18Z (2m 18s)        |
| Status     | complete                             |
| Tokens     | worker 4.2k                          |

## Output
<refreshed architecture.md content fragments + diff summary>
Cancel everything before closing the session
/hyperflow:background cancel --all

Cancelled bg-1718049600-quality-gates-b2 — Layer 5 gates Batch 2
Cancelled bg-1718049820-ci-watcher — GitHub Actions watch for v4.7.0
Cancelled 2 agents.

Resources

  • background-agents.md — full doctrine: when to use, hard rules, registry shape, failure modes, anti-patterns.
  • DOCTRINE.md — rule 8 (background extensions), rule 9 (no AI-attributed background commits).
  • output-style.md — table conventions for list output.

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/ai-agency/hyperflow/skills/background of jeremylongshore/tons-of-skills-marketplace.

Open the folder on GitHubat commit cfae287

Compare with similar skills

Background next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Background compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Background this skilljeremylongshore/tons-of-skills-marketplace2.8k—~2.2kAutomated safety check: PassMIT
Node Inspect Debuggeropenclaw/openclaw392k1 repos~894Automated safety check: PassMIT
OMC Mode CancellationYeachan-Heo/oh-my-claudecode40k—~4.6kAutomated safety check: PassMIT
Python Background Jobswshobson/agents40k—~1.8kAutomated safety check: PassMIT
CancelQ00/ouroboros6.2k—~983Automated safety check: PassMIT
Blender Motion State Inspectionaffaan-m/ECC276k1 repos~2kAutomated safety check: PassMIT

Similar skills

  • Node Inspect Debugger

    openclaw/openclaw

    Debug Node.js with node inspect, --inspect, breakpoints, CDP, heap, and CPU profiles.

    392k GitHub starsUsed in 1 repo~894 tokens
    Frontend & DesignAuto-check passed
  • OMC Mode Cancellation

    Yeachan-Heo/oh-my-claudecode

    Detects and gracefully cancels whichever OMC mode, autopilot, ralph, swarm, pipeline, or team, is currently active, then clears its state.

    40k GitHub stars~4.6k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Python Background Jobs

    wshobson/agents

    Python background job patterns including task queues, workers, and event-driven architecture.

    40k GitHub stars~1.8k tokensUpdated 5 days ago
    Backend & APIsAuto-check passed
  • Cancel

    Q00/ouroboros

    Cancel stuck or orphaned executions

    6.2k GitHub stars~983 tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • A skill your agent uses when inspecting Blender characters, rigs, poses, animation retargeting, ground contact, facing direction, or model-vs-motion alignment where screenshots alone are not enough.

    276k GitHub starsUsed in 1 repo~2k tokens
    Game DevelopmentAuto-check passed
  • Inspect Disk

    felixrieseberg/windows95

    Inspect or modify the Windows 95 disk image offline with mtools — no QEMU, no Electron, no boot.

    24k GitHub stars~1.3k tokensUpdated 29 days ago
    Auto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated today
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated today
    Auto-check passed

Questions about Background

What does Background do?

A skill your agent uses when the user wants to see, inspect, cancel, or prune background agents fired during prior chain runs. Background is an agent skill from jeremylongshore/tons-of-skills-marketplace. Use when the user wants to see, inspect, cancel, or prune background agents fired during prior chain runs.

When should I use Background?

Background fits situations like: the user wants to see; prune background agents fired during prior chain runs; with /hyperflow:background; list background agents.

How do I install Background in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill background -a claude-code`. Or copy the skill folder (plugins/ai-agency/hyperflow/skills/background in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/background in your project. Claude Code loads it when a task matches its description.

How do I install Background in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill background -a codex`. Or copy the skill folder (plugins/ai-agency/hyperflow/skills/background in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/background in your project. Codex loads it when a task matches its description.

Can I use Background in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill background -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/background, .gemini/skills/background, .github/skills/background and .opencode/skills/background in your project.

What does Background need to run?

SKILL.md names no scripts, command-line tools or credentials: Background is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash(ls:*), Bash(cat:*), Bash(rm:*), Bash(find:*), Glob, Grep. Compatibility (from SKILL.md): Designed for Claude Code.

Does Background access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Background safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Background use?

Background is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Background use?

About 2.2k tokens (SKILL.md is roughly 8.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Background?

Skills that share tags, products or a category with Background: Node Inspect Debugger (openclaw/openclaw, 392k stars), OMC Mode Cancellation (Yeachan-Heo/oh-my-claudecode, 40k stars), Python Background Jobs (wshobson/agents, 40k stars) and Cancel (Q00/ouroboros, 6.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Background?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.