shark-exec

shark-exec is a skill for Claude Code from keugenek/shark. It costs 4 tokens per session (3,109 once invoked), scanned A, original, Apache-2.0.

A method for running slow shell commands in the background and checking their progress separately.

In plain words
What is it for?
Use it for commands expected to take more than about five seconds, including CI watches, package builds, tests, Docker operations, and polling tasks.
Why use it?
It keeps the coding agent responsive while builds, tests, downloads, or monitoring commands continue running.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Part of the shark plugin — 6 skills, 5 commands shipped together

Good fit Use it for commands expected to take more than about five seconds…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/keugenek/shark/shark-exec
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add keugenek/shark --skill shark-exec
Clone the repo
git clone --depth 1 https://github.com/keugenek/shark

Made for: Claude Code.

Or install shark, the plugin that ships this one along with the rest of its 6 skills, 5 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for shark-exec

README.md
[![agentmods](https://agentmods.dev/badge/skills/keugenek/shark/shark-exec.svg)](https://agentmods.dev/skills/keugenek/shark/shark-exec)
Your own site
<a href="https://agentmods.dev/skills/keugenek/shark/shark-exec"><img src="https://agentmods.dev/badge/skills/keugenek/shark/shark-exec.svg" alt="Measured on agentmods" height="20"></a>
Per session 4 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,109 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00004 $0.03109
Opus 5 $0.00002 $0.01554
Sonnet 5 $0.00001 $0.00622
Haiku 4.5 $0.00000 $0.00311

Measured 7d ago against content hash a3f1de82ad74, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

shark-exec scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/poll-and-deliver.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

shark-exec/SKILL.md · 347 lines

How it starts

The opening of the file, as written. The whole thing — 347 lines — stays where its author put it; the contents beside it link to each section on GitHub.

shark-exec

Never block the main turn. This skill wraps any slow shell command in a background process + poller, so the agent always replies to the user within 30 seconds — even if the command takes 10 minutes.


When to Use

Use this skill whenever you're about to call a shell command and the command is expected to take more than ~5 seconds. Examples:

  • gh run watch <run-id> — waiting for CI
  • npm run build / pytest / cargo build
  • docker build, docker pull
  • Long-running remote commands
  • Any command with a long blocking wait
  • Any command that polls, watches, or tails output

Do NOT use for:

  • Quick reads (cat, ls, git status) — inline is fine
  • Commands you're confident finish in <5s

Protocol (Step by Step)

Step 1 — Send Immediate Acknowledgment

Before spawning the background job, send the user a reply:

⏳ [label] running in background (max Xs)...

Example: ⏳ CI: run #12345 — watching in background (max 120s)...

This must be the first thing you do — before exec, before writing state. Silence = failure.

Step 2 — Launch Background Process

Launch the command in the background using your agent's background execution primitive (see Runtime Adapters below).

You'll get back a handle to identify the process (session ID, PID, etc.).

# Generic pseudocode
handle = background_exec("gh run watch 12345")

Step 3 — Write State

Read <workspace>/skills/shark/shark-exec/state/pending.json. If it doesn't exist, start with {"jobs": []}.

Append your new job:

{
  "jobs": [
    {
      "sessionId": "sess-abc-123",
      "label": "CI: run #12345",
      "command": "gh run watch 12345",
      "startedAt": 1710000000000,
      "maxSeconds": 120,
      "cronJobId": null
    }
  ]
}

Critical: startedAt must be the actual current timestamp in milliseconds (Date.now()), not a hardcoded placeholder.

Set cronJobId: null for now — you'll fill it in step 4.

Read the full file on GitHub · 347 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 347 lines · 4 tokens per session scan A a3f1de82ad74

Subscribe to this mod's changes

shark-exec is a skill published in the GitHub repository keugenek/shark (11 stars, last pushed 2d ago), licensed Apache-2.0. It adds 4 tokens to every session and 3,109 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

background-tasks

Async task execution authority — Celery workers and beat scheduler, APScheduler in-process cron, bare Redis LPUSH/BRPOP queues, dead-letter queues, idempotency patterns, task monitoring, and Docker Compose worker definitions for Python pipelines.

LuuOW/meridian-mcp · 51 tokens

vertx-expert

Expert knowledge for Eclipse Vert.x, the reactive engine behind Quarkus. Use for deep reactive programming, Event Loop, and non-blocking I/O questions.

kinhluan/rules-quarkus-skills · 37 tokens

resolve-conflicts

Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling…

tailcallhq/forgecode · 68 tokens

github-pr-description

Generate and create pull request descriptions automatically using GitHub CLI. Use when the user asks to create a PR, generate a PR description, make a pull request, or submit changes for review. Analyzes git diff and commit history to create comprehensive, meaningful PR descriptions that explain what changed, why it…

tailcallhq/forgecode · 72 tokens

debug-cli

Use when users need to debug, modify, or extend the code-forge application's CLI commands, argument parsing, or CLI behavior. This includes adding new commands, fixing CLI bugs, updating command options, or troubleshooting CLI-related issues.

tailcallhq/forgecode · 49 tokens

write-release-notes

Generate engaging, high-energy release notes for a given version tag. Fetches the release from GitHub, retrieves every linked PR's title and description, then synthesizes all changes into a polished, user-facing release note with an enthusiastic tone. Use when the user asks to write, generate, or create release notes…

tailcallhq/forgecode · 105 tokens