Shell Patterns

A guide to running local shell commands and managing background jobs. A background job continues running while you work on something else.

In plain words
What is it for?
Use it to run commands, monitor long-running work, inspect job results, cancel stuck jobs, and handle structured progress messages.
Why use it?
It helps separate quick commands from longer processes and provides a way to inspect, shape, or cancel their output and status.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/lukacf/meerkat/shell-patterns
Any agent
npx skills add lukacf/meerkat --skill shell-patterns
Clone the repo
git clone --depth 1 https://github.com/lukacf/meerkat

Made for: Claude Code, Codex.

Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 347 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00012 $0.00347
Opus 5 $0.00006 $0.00173
Sonnet 5 $0.00002 $0.00069
Haiku 4.5 $0.00001 $0.00035

Measured 2d ago against content hash fe94b5694db3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Shell Patterns 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 2d ago.

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.

meerkat-tools/skills/shell-patterns/SKILL.md · 35 lines

What it actually says

Shell Patterns

Use shell tools for concrete local commands, verification, and long-running processes. Keep commands scoped to the user's workspace and report important results back into the conversation.

Operating Rules

  • Use shell for short foreground commands.
  • For ordinary long-running commands, use shell with background: true, keep the returned job_id, then inspect with shell_job_status or list jobs with shell_jobs.
  • A background shell submission is durable, but its worker is explicitly non-resumable. After a restart the job record remains and a lost worker becomes worker_lost; Meerkat does not silently replay the command.
  • Use monitor_start only when that high-trust tool is explicitly visible and the script follows its declared protocol. Framed JSONL can emit typed notification, checkpoint, progress, and complete frames; notifications do not complete the job.
  • Cancel stuck or obsolete jobs with shell_job_cancel.
  • Shell output is truncated. Shape large output with tools such as rg, head, tail, or structured command flags.
  • Set the working directory intentionally. Prefer absolute paths when a command crosses project boundaries.
  • Treat shell output as evidence to reason from, not as durable work state. Add WorkGraph evidence separately when a shared item needs proof.
  • Shell is classified as mutating because Meerkat cannot prove an arbitrary command is read-only. It is unavailable under read-only tool policy.
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. 2d ago First seen · 35 lines · 12 tokens per session scan A fe94b5694db3

Subscribe to this mod's changes

Shell Patterns is a skill published in the GitHub repository lukacf/meerkat (20 stars, last pushed 2d ago), licensed Apache-2.0. It adds 12 tokens to every session and 347 once invoked, about $0.0001 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

zh-output-example

Reviews Chinese skill documentation for publication readiness. Invoke when the user asks in Chinese to review a skill.

bytedance/deer-flow · 24 tokens

argent-tv-interact

Control and inspect TV apps via argent — Apple TV (tvOS), Android TV (leanback), and Amazon Fire TV (Vega). Boot the target, read focus, navigate with the D-pad remote, type, screenshot, and on Vega debug the JS runtime (evaluate, console logs, network inspector). Use when a task targets a TV (runtimeKind "tv", or…

software-mansion/argent · 107 tokens

review-offered-task

Review a task that has been offered to you and decide whether to accept or reject it.

desplega-ai/agent-swarm · 22 tokens

company-hiring-intelligence

Reverse-engineer what a company is building by scraping their job postings, careers page, LinkedIn Jobs, and engineering blog using TinyFish web agents. Use whenever a user wants to understand a company's strategic direction from hiring signals, do competitive intelligence, figure out a tech stack from job…

tinyfish-io/tinyfish-cookbook · 169 tokens

aidd-dev:08:for-sure

Iterative agent loop that tracks attempts and retries until a success condition is met. Use when the user says "for sure", "make sure", "keep trying until", "loop until done", "don't stop until", or needs guaranteed completion of a task with explicit success criteria.

ai-driven-dev/framework · 66 tokens

Swift Performance Optimization Skill

Use when investigating measured Swift or Apple-platform regressions in CPU, memory, launch, scrolling, animation hitches, image processing, energy, networking, or concurrency, or when designing performance tests and Instruments experiments. Do not use for speculative micro-optimization, ordinary refactoring, or a…

termio-sh/termio · 68 tokens