Agent skill

Php Composer Setup

by agnesoft in agnesoft/agdb

Install PHP and Composer, verify they are available in PATH, and confirm the PHP tooling required by this repository works.

Apache-2.0Auto-check: notes

Install Php Composer Setup

skills CLI
$ npx skills add agnesoft/agdb --skill php-composer-setup -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install agnesoft/agdb php-composer-setup --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/agnesoft/agdb.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/php-composer-setup .claude/skills/php-composer-setup && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
php-composer-setup
GitHub stars
143
Token cost
~1k tokens
SKILL.md length
486 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
Apache-2.0

At a glance

Install PHP and Composer, verify they are available in PATH, and confirm the PHP tooling required by this repository works.

  • Works in 4 steps: Detect whether PHP and Composer are… → Install missing tools using the most… → Verify that both tools are available in… → …
  • SKILL.md covers Goals, General procedure, Verification commands and Windows, plus 5 more sections
  • Calls winget, php and composer

What it does

Php Composer Setup is an agent skill from agnesoft/agdb. Install PHP and Composer, verify they are available in PATH, and confirm the PHP tooling required by this repository works. Use this when PHP or Composer are missing, or when commands under agdbapi/php fail because the environment is not set up.

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with PHP. The repository describes itself as: Agnesoft Graph Database. The licence is Apache-2.0.

Example prompts

  • “/php-composer-setup”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Detect whether PHP and Composer are already installed.
  2. Install missing tools using the most appropriate package manager for the current OS.
  3. Verify that both tools are available in PATH.
  4. Confirm that the repository's PHP tooling can run.

What it can do on your machine

Read from SKILL.md and the folder at commit 0d70098. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • winget
    • php
    • composer
    • brew
    • choco
    • apt
    • dnf

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Php Composer Setup loads about 1k tokens when it runs. Until then it costs about 66 tokens; SKILL.md has 486 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~66
When it runs · the whole SKILL.md, loaded when a task matches
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteRuns commands with sudoSKILL.md:76
    - Debian or Ubuntu: `sudo apt update && sudo apt install -y php-cli composer`
  • NoteRuns commands with sudoSKILL.md:77
    - Fedora: `sudo dnf install -y php-cli composer`
  • NoteRuns commands with sudoSKILL.md:78
    - Arch: `sudo pacman -Sy php composer`

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from agnesoft/agdb at commit 0d70098, republished under its Apache-2.0 licence (© agnesoft). 486 words, ~1,023 tokens.

Download SKILL.mdSave it as .claude/skills/php-composer-setup/SKILL.md (or your agent's skills folder).
name
php-composer-setup
description
Install PHP and Composer, verify they are available in PATH, and confirm the PHP tooling required by this repository works. Use this when PHP or Composer are missing, or when commands under agdb_api/php fail because the environment is not set up.
argument-hint
[windows|linux|macos] [optional package manager or version]
disable-model-invocation
true

PHP and Composer Setup

Use this skill when the workspace needs PHP and Composer installed or verified before running commands in agdb_api/php.

Repository context:

  • The PHP API client lives in agdb_api/php.
  • Common PHP validation commands in this repository are:
    • cd agdb_api/php/ && ./ci.sh coverage
    • cd agdb_api/php/ && ./ci.sh analyse
    • cd agdb_api/php/ && ./ci.sh format

Goals

  1. Detect whether PHP and Composer are already installed.
  2. Install missing tools using the most appropriate package manager for the current OS.
  3. Verify that both tools are available in PATH.
  4. Confirm that the repository's PHP tooling can run.

General procedure

  1. Detect the operating system and check whether php and composer are already available.
  2. Prefer the native package manager for the OS.
  3. Do not reinstall tools that are already working unless the user explicitly asks for a version change.
  4. If installation updates PATH, tell the user a new terminal might be required and re-run verification.
  5. After installation, verify both binaries before attempting repository commands.
  6. If a command requires elevated privileges, explain that clearly before running it.

Verification commands

Run these first:

  • php --version
  • composer --version

If both succeed, move directly to repository verification.

Windows

Preferred package manager order:

  1. winget
  2. choco

Suggested commands:

  • Check for winget: winget --version
  • Install PHP with winget: winget install --id PHP.PHP.8.4 --source winget
  • Install Composer with winget: winget install --id Composer.Composer --source winget
  • Install PHP with Chocolatey: choco install php
  • Install Composer with Chocolatey: choco install composer

If the exact winget package ID changes, search for it with:

  • winget search php
  • winget search composer

After installation, re-run:

  • php --version
  • composer --version

If the current shell still does not see the binaries, open a new terminal and verify again.

Show full SKILL.md (202 more words)Show less

Linux

Prefer the system package manager. Typical commands include:

  • Debian or Ubuntu: sudo apt update && sudo apt install -y php-cli composer
  • Fedora: sudo dnf install -y php-cli composer
  • Arch: sudo pacman -Sy php composer

After installation, re-run:

  • php --version
  • composer --version

macOS

Prefer Homebrew if available:

  • Check for Homebrew: brew --version
  • Install PHP: brew install php
  • Install Composer: brew install composer

After installation, re-run:

  • php --version
  • composer --version

Repository verification

Once PHP and Composer are available, verify the repository setup with the least expensive relevant command first.

Recommended order:

  1. cd agdb_api/php/ && ./ci.sh format
  2. cd agdb_api/php/ && ./ci.sh analyse
  3. cd agdb_api/php/ && ./ci.sh coverage

Choose the command that best matches the user's goal. If the user only asked for installation, stop after binary verification unless they want a repo-level check.

Operating rules

  • Prefer detection before installation.
  • Prefer non-destructive verification before long-running checks.
  • Report exact installation blockers instead of guessing.
  • If package installation is not possible in the current environment, tell the user what command they need to run locally.
  • When verification fails, distinguish between missing system tools and repository-level PHP dependency problems.

Example invocations

  • /php-composer-setup windows
  • /php-composer-setup windows using winget
  • /php-composer-setup verify php tooling for agdb_api/php
  • /php-composer-setup linux
  • /php-composer-setup macos with Homebrew

© agnesoft, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/php-composer-setup of agnesoft/agdb.

Open the folder on GitHubat commit 0d70098

Compare with similar skills

Php Composer Setup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Php Composer Setup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Php Composer Setup this skillagnesoft/agdb143—~1kAutomated safety check: NotesApache-2.0
Configuring Horizoncoollabsio/coolify63k4 repos~898Automated safety check: PassMIT
Tailwindcss Developmentanonaddy/anonaddy4.9k10 repos~865Automated safety check: PassMIT
Fortify Developmentcoollabsio/coolify63k4 repos~1.9kAutomated safety check: PassMIT
MCP Developmentcoollabsio/coolify63k1 repos~949Automated safety check: PassMIT
WooCommerce Code Reviewwoocommerce/woocommerce11k3 repos~1.1kAutomated safety check: PassCustom licence

Similar skills

  • Configuring Horizon

    coollabsio/coolify

    A skill your agent uses whenever the user mentions Horizon by name in a Laravel context.

    63k GitHub starsUsed in 4 repos~898 tokens
    Backend & APIsAuto-check passed
  • Tailwindcss Development

    anonaddy/anonaddy

    Always invoke when the user's message includes 'tailwind' in any form.

    4.9k GitHub starsUsed in 10 repos~865 tokens
    Frontend & DesignAuto-check passed
  • Fortify Development

    coollabsio/coolify

    ACTIVATE when the user works on authentication in Laravel. An agent skill from coollabsio/coolify.

    63k GitHub starsUsed in 4 repos~1.9k tokens
    Backend & APIsAuto-check passed
  • MCP Development

    coollabsio/coolify

    A skill your agent uses for Laravel MCP development. An agent skill from coollabsio/coolify.

    63k GitHub starsUsed in 1 repo~949 tokens
    Frontend & DesignAuto-check passed
  • WooCommerce Code Review

    woocommerce/woocommerce

    Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.

    11k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Sync Translations

    symfony/symfony

    Synchronize translation catalogs across maintained Symfony branches: find messages that newer branches added to the English catalogs but that are still missing from the oldest maintained branch…

    31k GitHub stars~1.9k tokensUpdated today
    Writing & ContentAuto-check passed

More from agnesoft/agdb

  • Agdb Query

    agnesoft/agdb

    Build, review, and explain agdb queries accurately. An agent skill from agnesoft/agdb.

    143 GitHub stars~4.4k tokensUpdated yesterday
    Auto-check passed
  • Agdb API

    agnesoft/agdb

    Navigate agdb API structure, endpoints, authentication, and client libraries.

    143 GitHub stars~6k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Php Composer Setup

What does Php Composer Setup do?

Install PHP and Composer, verify they are available in PATH, and confirm the PHP tooling required by this repository works. Php Composer Setup is an agent skill from agnesoft/agdb. Install PHP and Composer, verify they are available in PATH, and confirm the PHP tooling required by this repository works.

How do I install Php Composer Setup in Claude Code?

Run `npx skills add agnesoft/agdb --skill php-composer-setup -a claude-code`. Or copy the skill folder (.github/skills/php-composer-setup in agnesoft/agdb) into .claude/skills/php-composer-setup in your project. Claude Code loads it when a task matches its description.

How do I install Php Composer Setup in Codex?

Run `npx skills add agnesoft/agdb --skill php-composer-setup -a codex`. Or copy the skill folder (.github/skills/php-composer-setup in agnesoft/agdb) into .agents/skills/php-composer-setup in your project. Codex loads it when a task matches its description.

Can I use Php Composer Setup in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add agnesoft/agdb --skill php-composer-setup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/php-composer-setup, .gemini/skills/php-composer-setup, .github/skills/php-composer-setup and .opencode/skills/php-composer-setup in your project.

What does Php Composer Setup need to run?

Going by SKILL.md and its folder, Php Composer Setup needs the command-line tools its instructions call (winget, php, composer, brew, choco and apt).

Does Php Composer Setup access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Php Composer Setup safe to install?

Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Php Composer Setup use?

Php Composer Setup is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Php Composer Setup use?

About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Php Composer Setup?

Skills that share tags, products or a category with Php Composer Setup: Configuring Horizon (coollabsio/coolify, 63k stars), Tailwindcss Development (anonaddy/anonaddy, 4.9k stars), Fortify Development (coollabsio/coolify, 63k stars) and MCP Development (coollabsio/coolify, 63k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Php Composer Setup?

agnesoft (a GitHub user) maintains it in agnesoft/agdb, which has 143 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 6, 2026.

Source: agnesoft/agdb on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.