update-project

update-project is a command for Claude Code from specsnl/agent-specs. It costs 15 tokens per session (3,906 once invoked), scanned A, original, MIT.

A command for updating dependencies in Laravel-based Specs projects through isolated Git commits. It runs project commands in a controlled task environment and checks repository safety first.

In plain words
What is it for?
Use it to perform a full dependency update while separating changes by phase and keeping unrelated files out of the commits.
Why use it?
It reduces the risk of mixing dependency changes with unrelated work or updating a project with uncommitted files. It also stops when required branch or repository conditions are not met.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions AGENTS.md.

Part of the laravel plugin — 4 skills, 1 command shipped together

Good fit Use it to perform a full dependency update while separating changes by phase and keeping unrelated files out of the commits.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/specsnl/agent-specs/update-project
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.

Clone the repo
git clone --depth 1 https://github.com/specsnl/agent-specs

Made for: Claude Code.

Or install laravel, the plugin that ships this one along with the rest of its 4 skills, 1 command.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/specsnl/agent-specs/update-project/github.svg)](https://agentmods.dev/commands/specsnl/agent-specs/update-project)
Your own site
<a href="https://agentmods.dev/commands/specsnl/agent-specs/update-project"><img src="https://agentmods.dev/badge/commands/specsnl/agent-specs/update-project/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 update-project

Your own site · 80×15
<a href="https://agentmods.dev/commands/specsnl/agent-specs/update-project"><img src="https://agentmods.dev/badge/commands/specsnl/agent-specs/update-project.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,906 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.00015 $0.03906
Opus 5.5 $0.00006 $0.01562
Sonnet 5.5 $0.00003 $0.00781
Haiku 4.5 $0.00002 $0.00391

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

Security

Grade A, and why

update-project 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/laravel/commands/update-project.md · 273 lines

How it starts

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

Goal

Perform a full dependency update of the project.

All commands MUST be executed via task. Never run composer, npm, node, or php directly on the host.

Each phase specifies its own error-handling policy. Some phases allow attempting a fix before aborting — follow the per-phase instructions rather than a blanket stop rule.

Commit Strategy

When committing changes at the end of each phase, only stage files that are directly related to that phase's purpose. If other files have changed that are unrelated to the phase (e.g., a markdown file or documentation updated as a side-effect of running a command), commit those separately with a descriptive commit message that reflects what those changes actually are. Never bundle unrelated changes into a phase commit.

Phase 1 --- Repository Safety Checks

  1. Ensure the working (git) tree is clean:
    • No staged changes
    • No unstaged changes
    • No untracked files
    • If not clean: Abort immediately
      • Inform the user to commit or stash changes
  2. Synchronize with remote: git fetch --prune
  3. Check if vendor-updates already exists on the remote. If it does, abort and inform the user to delete the remote branch before continuing.
  4. Check if local main branch is up to date with origin/main:
    • If behind → abort and inform the user to pull the latest changes.
    • If ahead with unique commits → abort and inform the user to push or rebase their commits.
    • If diverged → This can occur when testing locally (e.g., running task checkall) — the local branch may have commits not yet pushed to the remote. Ask the user which branch to use as the source for the vendor-updates branch in step 5: origin/main or local main. Choosing local main allows you to test iterations without pushing to the remote.
      Warning: choosing the local main branch may lead to merge conflicts later if the remote main has commits the local branch doesn't know about (common when you don't push test iterations).
  5. Prepare branch vendor-updates:
    • If branch does not exist → create from the chosen branch in step 4 (origin/main by default, or local main if the user selected it in a diverged state)
    • If branch exists:
      • If fully merged into main → delete locally and recreate from the chosen branch.
      • If behind on main and has NO unique commits → reset vendor-updates to the chosen branch.
      • If it contains unique commits → abort and notify user.
  6. Make sure that there is an auth.json file in the project root with correct credentials for private repositories if the composer.json file contains a repositories section with private repositories like filament. If not, abort and inform the user to create it. Suggest to the user to run task setup:auth.

Read the full file on GitHub · 273 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. 1mo ago Changed · +1 lines 628ff75767c7
  2. 1mo ago First seen · 272 lines · 15 tokens per session scan A acca07c175f6

Subscribe to this mod's changes

update-project is a command published in the GitHub repository specsnl/agent-specs (2 stars, last pushed 1mo ago), licensed MIT. It adds 15 tokens to every session and 3,906 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-31.