Background job patterns with shell and job management tools
Scanned 9/2/2026
Install to Claude Code
npx -y skills add lukacf/meerkat --skill shell-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Shell Patterns?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/lukacf-shell-patterns)More formats (shields.io, HTML) on the badges page.
---
name: Shell Patterns
description: Background job patterns with shell and job management tools
requires_capabilities: [builtins, shell]
---
# 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.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!