sandermuller/package-boost
Deprecated: sandermuller/package-boost is split into successors. Use package-boost-php for framework-agnostic Composer packages, package-boost-laravel for Laravel packages, or project-boost for PHP apps. Legacy 0.15.x remains for existing installs.
Installation:
composer require --dev sandermuller/package-boost-php sandermuller/package-boost-laravel
(Note: Use the successor packages as per the deprecation notice.)
Configure Testbench (if not already set up):
testbench.yaml:
providers:
- SanderMuller\PackageBoost\PackageBoostServiceProvider
Sync AI Tooling:
vendor/bin/testbench package-boost:sync
This generates .ai/ structure and syncs skills/guidelines to agent-specific directories (e.g., .claude/skills/, CLAUDE.md).
First Use Case:
vendor/bin/testbench package-boost:new skill my-skill --description="Custom skill for my package."
.ai/skills/my-skill/SKILL.md with your instructions.Skill Development:
vendor/bin/testbench package-boost:new skill my-skill
.ai/skills/my-skill/SKILL.md with:
---
name: my-skill
description: "One-line auto-activation hook."
---
# Instructions for AI agents
vendor/bin/testbench package-boost:sync
Guideline Management:
vendor/bin/testbench package-boost:new guideline my-guidelines
.ai/guidelines/my-guidelines.md.CLAUDE.md):
vendor/bin/testbench package-boost:sync --guidelines
CI Integration:
- name: Check sync drift
run: vendor/bin/testbench package-boost:sync --check
Laravel-Specific Features:
cross-version-laravel-support skill for multi-version compatibility:
# In .ai/skills/cross-version-laravel-support/SKILL.md
---
name: cross-version-laravel-support
description: "Teach AI about Laravel version constraints."
---
config/package-boost.php:
'agents' => ['claude_code', 'cursor', 'github_copilot'],
.mcp.json is auto-generated for Boost-MCP compatibility.stolt/lean-package-validator for .gitattributes hygiene:
vendor/bin/testbench package-boost:sync --skills=lean-dist
Deprecation Warning:
package-boost is deprecated. Migrate to:
package-boost-php (framework-agnostic).package-boost-laravel (Laravel-specific).composer remove sandermuller/package-boost
composer require --dev sandermuller/package-boost-php sandermuller/package-boost-laravel
Skill Naming Collisions:
package-development). Use unique names like my-package-skill.vendor/bin/testbench package-boost:doctor
Frontmatter Requirements:
name and description in frontmatter. Missing fields cause sync failures:
---
name: my-skill # Required
description: "Description." # Required
---
Agent-Specific Paths:
.claude/skills/). Ensure these paths are .gitignored if not needed in production:
.claude/
.cursor/
.github/
.junie/
.kiro/
MCP Generation:
.mcp.json is only generated if laravel/boost is installed. Check for:
{ "action": "skipped", "reason": "laravel-boost-not-installed" }
Drift Checks:
--check to detect unsynced changes:
vendor/bin/testbench package-boost:sync --check
vendor/bin/testbench package-boost:sync --check --format=json | jq '.skills.updated'
Skill Validation:
package-boost:doctor to validate skills/guidelines:
vendor/bin/testbench package-boost:doctor
Custom Skills:
.ai/skills/. Example:
# .ai/skills/my-custom-skill/SKILL.md
---
name: my-custom-skill
description: "Teach AI about my package's quirks."
---
# Add instructions here...
Agent-Specific Overrides:
CLAUDE.md) by manually editing them after sync. Changes will be overwritten on the next sync unless excluded via --exclude-guidelines.CI Matrix Troubleshooting:
ci-matrix-troubleshooting skill to diagnose failing CI cells:
vendor/bin/testbench package-boost:sync --skills=ci-matrix-troubleshooting
Release Notes Automation:
release-notes skill to draft GitHub release bodies:
vendor/bin/testbench package-boost:sync --skills=release-notes
.ai/skills/release-notes/SKILL.md to customize templates.Agent Selection:
// config/package-boost.php
'agents' => ['claude_code', 'cursor'],
vendor/bin/testbench package-boost:sync
Excluding Files:
vendor/bin/testbench package-boost:sync --exclude-guidelines=old-guidelines.md
Testbench Compatibility:
orchestra/testbench) for command-line access to package-boost commands.How can I help you explore Laravel packages today?