update-project

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

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 commands/specsnl/agent-specs/update-project
Clone the repo
git clone --depth 1 https://github.com/specsnl/agent-specs
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. 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.00015 $0.03906
Opus 5 $0.00008 $0.01953
Sonnet 5 $0.00003 $0.00781
Haiku 4.5 $0.00002 $0.00391

Measured yesterday against content hash acca07c175f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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 · 272 lines

How it starts

The opening of the file, as written. The whole thing — 272 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 · 272 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. yesterday 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 16d ago), licensed MIT. It adds 15 tokens to every session and 3,906 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.