distributed-job-safety

distributed-job-safety is a skill for Claude Code from terrylica/cc-skills. It costs 22 tokens per session (4,137 once invoked), scanned A, original, MIT.

Rules for safely running many parameterized jobs at the same time with pueue, mise, and systemd-run. Parameterized jobs are repeated tasks that use different inputs, such as symbols, dates, or thresholds.

In plain words
What is it for?
Use it to design unique filenames and safe shared resources, manage concurrent data-pipeline jobs, and apply the documented safety rules to pueue and mise workflows.
Why use it?
It prevents concurrent jobs from overwriting each other's files, losing data, or failing silently.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run python scripts/process.py --symbol BTCUSDT --threshold 250.

Part of the devops-tools plugin — 25 skills shipped together , and of cc-skills

Good fit Use it to design unique filenames and safe shared resources, manage concurrent data-pipeline jobs, and apply the documented safety rules to pueue and mise workflows.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/terrylica/cc-skills
agentmods
npx agentmods add skills/terrylica/cc-skills/distributed-job-safety

Made for: Claude Code.

Or install devops-tools, the plugin that ships this one along with the rest of its 25 skills.

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 distributed-job-safety

README.md
[![agentmods](https://agentmods.dev/badge/skills/terrylica/cc-skills/distributed-job-safety/github.svg)](https://agentmods.dev/skills/terrylica/cc-skills/distributed-job-safety)
Your own site
<a href="https://agentmods.dev/skills/terrylica/cc-skills/distributed-job-safety"><img src="https://agentmods.dev/badge/skills/terrylica/cc-skills/distributed-job-safety/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for distributed-job-safety

Your own site · 80×15
<a href="https://agentmods.dev/skills/terrylica/cc-skills/distributed-job-safety"><img src="https://agentmods.dev/badge/skills/terrylica/cc-skills/distributed-job-safety.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,137 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Rogue Agent · line 342
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
  • high Tool Misuse · line 233
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium Excessive Agency · line 192
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00022 $0.04137
Opus 5.5 $0.00009 $0.01655
Sonnet 5.5 $0.00004 $0.00827
Haiku 4.5 $0.00002 $0.00414

Measured 1mo ago against content hash 8b215e27cdb4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

distributed-job-safety 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 1mo 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.

plugins/devops-tools/skills/distributed-job-safety/SKILL.md · 346 lines

How it starts

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

Distributed Job Safety

Patterns and anti-patterns for concurrent job management with pueue + moon + systemd-run, learned from production failures in distributed data pipeline orchestration.

Scope: Universal principles for any pueue workflow with concurrent parameterized jobs. Examples use illustrative names but the principles apply to any domain.

Prerequisite skills: devops-tools:pueue-job-orchestration, itp:bootstrap-monorepo (moon tasks + proto toolchains)


Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

The Nine Invariants

Non-negotiable rules for concurrent job safety. Violating any one causes silent data corruption or job failure.

Full formal specifications: references/concurrency-invariants.md

1. Filename Uniqueness by ALL Job Parameters

Every file path shared between concurrent jobs MUST include ALL parameters that differentiate those jobs.

WRONG:  {symbol}_{start}_{end}.json                    # Two thresholds collide
RIGHT:  {symbol}_{threshold}_{start}_{end}.json         # Each job gets its own file

Test: If two pueue jobs can run simultaneously with different parameter values, those values MUST appear in every shared filename, temp directory, and lock file.

2. Verify Before Mutate (No Blind Queueing)

Before queueing jobs, check what is already running. Before deleting state, check who owns it.

# WRONG: Blind queue
for item in "${ITEMS[@]}"; do
    pueue add --group mygroup -- run_job "$item" "$param"
done

# RIGHT: Check first
running=$(pueue status --json | jq '[.tasks[] | select(.status | keys[0] == "Running") | .label] | join(",")')
if echo "$running" | grep -q "${item}@${param}"; then
    echo "SKIP: ${item}@${param} already running"
    continue
fi

3. Idempotent File Operations (missing_ok=True)

Read the full file on GitHub · 346 lines

Files

What ships with it

7 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. 1mo ago Changed 8b215e27cdb4
  2. 2mo ago Changed da360f1e8a42
  3. 2mo ago Changed · +1 lines 1d236d80165f
  4. 3mo ago Changed 7099a4e09231
  5. 3mo ago First seen · 345 lines · 22 tokens per session scan A eb0146612150

Subscribe to this mod's changes

distributed-job-safety is a skill published in the GitHub repository terrylica/cc-skills (5 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 4,137 once invoked, about $0.0001 per session on Opus 5.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

distributed-job-safety compared with skills from other repositories

distributed-job-safety next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
distributed-job-safetyterrylica/cc-skillsSkill5todayMITA22Claude Code
huedominikmartn/hueSkill97526d agoMITA84Claude Code, Codex
authentication-patternstravisjneuman/.claudeSkill116todayMITA28Claude Code
example-feature-generatorqf-studio/navigatorSkill35820d agoMITA33Claude Code
content-repurposertravisjneuman/.claudeSkill116todayMITA43Claude Code
electron-desktoptravisjneuman/.claudeSkill116todayMITA38Claude Code
impact-report-writertravisjneuman/.claudeSkill116todayMITA43Claude Code