composer-dependencies

composer-dependencies is a skill for Claude Code from krzysztofsurdy/code-virtuoso. It costs 84 tokens per session (1,868 once invoked), scanned A, original, MIT.

A guide for managing PHP packages with Composer, the tool that installs and tracks PHP project dependencies. It covers package updates, the composer.lock file, security checks, and automated update services.

In plain words
What is it for?
Use it to audit and update Composer packages, handle composer.lock, replace abandoned packages, resolve dependency conflicts, and configure Dependabot or Renovate.
Why use it?
It helps reduce broken updates, unnoticed security problems, and version conflicts by using a repeatable update and verification process.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the playbooks-virtuoso plugin — 5 skills shipped together

Good fit Use it to audit and update Composer packages, handle composer.lock, replace abandoned packages, resolve dependency conflicts, and configure Dependabot or Renovate.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/krzysztofsurdy/code-virtuoso/composer-dependencies
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.

Any agent
npx skills add krzysztofsurdy/code-virtuoso --skill composer-dependencies
Clone the repo
git clone --depth 1 https://github.com/krzysztofsurdy/code-virtuoso

Made for: Claude Code.

Or install playbooks-virtuoso, the plugin that ships this one along with the rest of its 5 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 composer-dependencies

README.md
[![agentmods](https://agentmods.dev/badge/skills/krzysztofsurdy/code-virtuoso/composer-dependencies/github.svg)](https://agentmods.dev/skills/krzysztofsurdy/code-virtuoso/composer-dependencies)
Your own site
<a href="https://agentmods.dev/skills/krzysztofsurdy/code-virtuoso/composer-dependencies"><img src="https://agentmods.dev/badge/skills/krzysztofsurdy/code-virtuoso/composer-dependencies/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 composer-dependencies

Your own site · 80×15
<a href="https://agentmods.dev/skills/krzysztofsurdy/code-virtuoso/composer-dependencies"><img src="https://agentmods.dev/badge/skills/krzysztofsurdy/code-virtuoso/composer-dependencies.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,868 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.00084 $0.01868
Opus 5 $0.00042 $0.00934
Sonnet 5 $0.00017 $0.00374
Haiku 4.5 $0.00008 $0.00187

Measured 9d ago against content hash 8f96e23d68d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

composer-dependencies 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 9d 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.

skills/playbooks/composer-dependencies/SKILL.md · 174 lines

How it starts

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

Composer Dependencies Update

Dependency updates are maintenance, not features. Do them regularly in small batches rather than rarely in large ones. Every update follows the same cycle: audit, update, verify, commit.

Core Principles

Principle Meaning
Changelog first Before any major dependency update, search the web for the package's changelog/UPGRADE file or ask the user to provide it - never guess what changed
Security first Run composer audit before and after every update - vulnerabilities take priority over everything
Small batches Update one package or one logical group at a time - never update everything at once
Lock file is truth Always commit composer.lock - production uses composer install, never composer update
Verify before merging Every update must pass the full test suite and static analysis before merging
Caret by default Use ^ constraints for most dependencies - it balances stability with receiving fixes

Critical First Step: Read the Changelog

Before updating any dependency to a new major version, you MUST obtain the actual changelog:

  1. Search the web for {package-name} CHANGELOG or {package-name} UPGRADE guide (e.g., doctrine/orm UPGRADE.md github)
  2. Or ask the user to provide the changelog / release notes
  3. Check the package's GitHub repository for CHANGELOG.md, UPGRADE.md, or release notes

This is non-negotiable for major updates. Each package has unique breaking changes that static skill knowledge cannot capture. For patch and minor updates, changelogs are recommended but not blocking.


Update Strategies by Risk Level

Strategy Scope Risk Frequency Command
Patch only Bug fixes (1.2.3 -> 1.2.4) Lowest Weekly composer update --patch-only
Minor New features, backward-compatible (1.2 -> 1.3) Low Biweekly composer update --minor-only
Major Breaking changes possible (1.x -> 2.0) Highest Planned, one at a time composer update vendor/package --with-all-dependencies
Security Vulnerability fixes Urgent Immediately composer audit then targeted update

Read the full file on GitHub · 174 lines

Files

What ships with it

2 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. 9d ago First seen · 174 lines · 84 tokens per session scan A 8f96e23d68d4

Subscribe to this mod's changes

composer-dependencies is a skill published in the GitHub repository krzysztofsurdy/code-virtuoso (21 stars, last pushed 3mo ago), licensed MIT. It adds 84 tokens to every session and 1,868 once invoked, about $0.0004 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-30.

Related

Other skills, from other repositories

auditing-php-applications

Audit PHP web application source for critical vulnerabilities using PHP's specific sink and footgun catalog — object injection via unserialize and phar:// POP chains, type-juggling and magic-hash auth bypass, LFI/RFI through php:// and phar:// wrappers, dynamic includes and extract()/superglobal trust, SQL injection…

trilwu/secskills · 129 tokens

mvc-expert

Expert guidelines to refactor legacy PHP codebases into clean, modern, and scalable MVC-structured projects / Pedoman ahli untuk merefaktor codebase PHP lama menjadi proyek terstruktur MVC yang bersih, modern, dan skalabel.

roedyrustam/vibes-plug · 51 tokens

phpunit-unit-test-reviewing

Internal sub-skill. Do not auto-activate. Use only when explicitly invoked by name by another skill or agent.

shopwareLabs/ai-coding-tools · 31 tokens

xml-config-migrating

Use this skill when a Shopware plugin or app-server extension needs its XML configuration migrated to PHP — phrases like "migrate services.xml", "convert my plugin config to PHP", "xml to php migration", "fix the XML deprecation", "prepare my plugin for Shopware 6.8 / Symfony 8", or when a deprecation like "The XML…

shopwareLabs/ai-coding-tools · 106 tokens

phpunit-integration-test-generation

Use this skill when the user asks to generate, write, or create integration tests for a Shopware 6 source class whose contract requires wired-up code — phrases like "generate integration tests for X", "write an integration test for this controller", "test this indexer", "create an integration test for the message…

shopwareLabs/ai-coding-tools · 184 tokens

phpunit-unit-test-writing

Use this skill when the user asks to write, generate, create, or add PHPUnit unit tests for a Shopware 6 source class — phrases like "write unit tests for X", "generate tests for ClassName", "create PHPUnit tests", "add test coverage", "test this class", "cover this with tests", "I need tests for", "unit test this"…

shopwareLabs/ai-coding-tools · 187 tokens