llm-job-pipeline: Command for Claude Code

.claude/commands/jobs-update.md

jobs-update is a command for Claude Code from ncalavera/llm-job-pipeline. It costs 21 tokens per session (728 once invoked), scanned A, original, MIT.

An update command for an existing software project that pulls the latest code, refreshes dependencies when needed, applies database migrations, and summarises the changes. Database migrations update a database's structure to match newer code.

In plain words
What is it for?
Use it from the project root to update the job pipeline, install changed dependencies, and apply pending migrations.
Why use it?
It keeps code and database structure in sync while protecting uncommitted work. It stops when local changes are unsafe to update or when a fast-forward-only pull cannot proceed.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is ncalavera/llm-job-pipeline's own configuration. It tells Claude Code how to work on llm-job-pipeline itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything llm-job-pipeline configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/migrate.py.

Reuse

Borrowing it

Nothing to install: this file belongs to ncalavera/llm-job-pipeline. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ncalavera/llm-job-pipeline/main/.claude/commands/jobs-update.md
Clone the repo
git clone --depth 1 https://github.com/ncalavera/llm-job-pipeline

Made for: Claude Code.

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 jobs-update

README.md
[![agentmods](https://agentmods.dev/badge/commands/ncalavera/llm-job-pipeline/jobs-update/github.svg)](https://agentmods.dev/commands/ncalavera/llm-job-pipeline/jobs-update)
Your own site
<a href="https://agentmods.dev/commands/ncalavera/llm-job-pipeline/jobs-update"><img src="https://agentmods.dev/badge/commands/ncalavera/llm-job-pipeline/jobs-update/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 jobs-update

Your own site · 80×15
<a href="https://agentmods.dev/commands/ncalavera/llm-job-pipeline/jobs-update"><img src="https://agentmods.dev/badge/commands/ncalavera/llm-job-pipeline/jobs-update.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 728 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.00021 $0.00728
Opus 5 $0.00010 $0.00364
Sonnet 5 $0.00004 $0.00146
Haiku 4.5 $0.00002 $0.00073

Measured 2d ago against content hash 530deeefb04c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

jobs-update 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.

.claude/commands/jobs-update.md · 75 lines

How it starts

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

/jobs-update

Bring an existing install up to date safely. git pull alone is not enough: new code can expect schema changes, so this command pulls and runs the migration runner so the database matches the code.

Run this from the project root whenever you want the latest version.

Steps

  1. Confirm the working tree is safe to update. Run git status.

    • If there are uncommitted changes to tracked files, stop and show them. Ask whether to commit, stash (git stash), or abort. Never discard the user's changes automatically.
    • .env, config/user_profile.md and the local data/ database are gitignored, so a pull never touches them — reassure the user of that.
  2. Record the current version so the changelog is meaningful:

    git rev-parse --short HEAD
    
  3. Pull the latest code (fast-forward only, so a diverged local branch fails loudly instead of producing a surprise merge):

    git pull --ff-only
    

    If it fails because the branch diverged, stop and report — let the user decide how to reconcile.

  4. Refresh Python dependencies only if they changed since the old HEAD:

    git diff --name-only <OLD_SHA> HEAD | grep -q requirements.txt && \
      pip install -r requirements.txt
    

    If requirements.txt did not change, skip this and say so.

  5. Apply pending database migrations. This works for both backends — it reads SUPABASE_DB_URL from the environment to decide SQLite vs Supabase, and it takes an automatic backup (data/backups/) before touching anything:

    python3 scripts/migrate.py
    

    Show its output. If it reports "Up to date", say there were no schema changes.

    • If it exits with "ABORTED — destructive statements" (exit 2), STOP. Do not re-run with --allow-destructive on the user's behalf. Show the listed migrations and let the user decide — that flag can drop or overwrite their data.
    • On SQLite, a failed migration auto-restores the database from the backup, so the data is never left half-migrated. Relay that if it happens.

Read the full file on GitHub · 75 lines

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 Changed 530deeefb04c
  2. 12d ago First seen · 75 lines · 21 tokens per session scan A c093b1744531

Subscribe to this mod's changes

jobs-update is a command published in the GitHub repository ncalavera/llm-job-pipeline (2 stars, last pushed 3d ago), licensed MIT. It adds 21 tokens to every session and 728 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-31.