Skip to content

Repository files navigation

Sift

Composer-native skills and agent-friendly tooling for PHP projects.

PHP Version Packagist Downloads CI License

Sift preview


Sift helps PHP teams make coding agents more useful with less repeated context.

It adds two Composer-first workflows:

  • composer skills: install and manage reusable agent skills inside the project.
  • composer sift <tool>: run PHP tools with compact, normalized, agent-friendly output.

Instead of pasting the same project rules, commands, testing conventions, and huge terminal logs into every session, Sift keeps instructions and tool results structured. Agents can start from a small summary and inspect stored history only when they need more detail.

Why Sift

  • Manage skills through Composer for the open agent target set, including a standard shared target, Cursor, Claude Code, GitHub Copilot, Gemini CLI, OpenCode, Antigravity, Windsurf, and project or global installs.
  • Reduce wasted tokens by replacing raw tool output with compact summaries and paginated history.
  • Run 20+ PHP tools through one command layer.
  • Keep automation safer with read-only Composer reports, dry-run refactors, safe formatter modes, blocked arguments, timeouts, and redacted history.
  • Use the same core everywhere through composer sift, composer skills, vendor/bin/sift, or the PHAR.

Quick Start

Install Sift globally:

composer global config allow-plugins.vitorsreis/sift true
composer global require vitorsreis/sift

Or install Sift in a single project:

composer config allow-plugins.vitorsreis/sift true
composer require --dev vitorsreis/sift

After installation, initialize Sift in your project:

composer sift init

Skills

Sift brings a Composer workflow for agent instructions:

composer skills find
composer skills add owner/repo@skill

Supported skill sources:

  • bundled skills, such as sift;
  • local paths;
  • GitHub shorthand, such as owner/repo;
  • GitHub URLs.

Other commands include init, list, find, use, update / upgrade, and remove. In terminal mode, composer skills opens a bannered help screen and composer skills find opens an interactive search with typeahead, arrow-key selection, and Enter-to-select before install.

Without a scope flag, composer skills add installs to project skill directories, including the standard .agents/skills target for Cursor, Gemini CLI, GitHub Copilot, OpenCode, Antigravity, Amp, Replit, and other shared project installs. It accepts multi-value flags such as --agent standard cursor and --skill pr-review commit. Use --global / -g for user-level installs, --subagent reviewer for Eve subagents, or omit --agent in terminal mode to choose agents interactively; existing target folders in the current scope are preselected and Sift prompts for Project or Global scope when applicable.

Tools

Use composer sift tools list to check availability in your project and composer sift <tool> to run with compact output.

For test runners, Sift injects machine-readable reports when needed. If the runner exits before those reports are written, the normalized payload reports the native error message and keeps raw stdout/stderr in extra.

Supported tools:

  • pest
  • phpunit
  • paratest
  • behat
  • codeception / codecept
  • phpbench
  • phpstan
  • psalm
  • phpcs
  • phpcbf
  • pint
  • ecs / easy-coding-standard
  • rector
  • mago
  • grumphp
  • infection
  • deptrac
  • php-cs-fixer
  • phpmd
  • composer-require-checker
  • composer-unused
  • composer-normalize / normalize
  • parallel-lint
  • composer audit|licenses|outdated|show|validate

Documentation

License

Released under the MIT license.

About

Composer-native skills and agent-friendly tooling for PHP projects.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

15 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages