Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
package-compatibility
jtmcc/ai-query-builder
claude-code
laravel
ai-query-builder
jtmcc

Use this skill when reviewing Laravel package compatibility across composer constraints, PHP versions, Laravel versions, Testbench versions, dependency stability lanes, or matrix-sensitive code and workflow changes.

Install
php artisan boost:add-skill jtmcc/ai-query-builder

Save this content to: .claude/skills/package-compatibility/SKILL.md

# Package Compatibility

## Primary Goal

Keep package code, dependencies, and workflows compatible with the supported Laravel 12/13 and PHP 8.3+ matrix.

## Workflow

1. Read `composer.json` first to determine PHP, Laravel, and Testbench constraints.
2. Check changed code against Laravel 12/13 APIs and PHP 8.3+ syntax before adopting newer framework or language features.
3. Review `.github/workflows/tests.yml` for dependency stability lanes, prefer-lowest coverage, and prefer-stable coverage. CI runs on ubuntu-latest only; Windows is intentionally unsupported in the matrix.
4. When changing dependencies, confirm constraints still allow the intended Laravel and Testbench versions.
5. Validate with the smallest local command available, then rely on CI for full OS and dependency matrix coverage.

## References

- `composer.json`
- `.github/workflows/tests.yml`
- `phpstan.neon.dist`
- `tests/`
- `workbench/`

## Examples

- Review a new Laravel API call by checking whether it exists in Laravel 12 and Laravel 13 before merging it into shared package code.
- Review a dependency bump by checking Composer constraints, Testbench constraints, and prefer-lowest behavior.

## Anti-Patterns

- Assuming the latest local dependency version represents the whole support matrix.
- Adding PHP syntax or Laravel APIs that exceed `composer.json` constraints.
- Removing dependency stability lanes because they are slower than a single happy path.

Package Compatibility

Primary Goal

Keep package code, dependencies, and workflows compatible with the supported Laravel 12/13 and PHP 8.3+ matrix.

Workflow

  1. Read composer.json first to determine PHP, Laravel, and Testbench constraints.
  2. Check changed code against Laravel 12/13 APIs and PHP 8.3+ syntax before adopting newer framework or language features.
  3. Review .github/workflows/tests.yml for dependency stability lanes, prefer-lowest coverage, and prefer-stable coverage. CI runs on ubuntu-latest only; Windows is intentionally unsupported in the matrix.
  4. When changing dependencies, confirm constraints still allow the intended Laravel and Testbench versions.
  5. Validate with the smallest local command available, then rely on CI for full OS and dependency matrix coverage.

References

  • composer.json
  • .github/workflows/tests.yml
  • phpstan.neon.dist
  • tests/
  • workbench/

Examples

  • Review a new Laravel API call by checking whether it exists in Laravel 12 and Laravel 13 before merging it into shared package code.
  • Review a dependency bump by checking Composer constraints, Testbench constraints, and prefer-lowest behavior.

Anti-Patterns

  • Assuming the latest local dependency version represents the whole support matrix.
  • Adding PHP syntax or Laravel APIs that exceed composer.json constraints.
  • Removing dependency stability lanes because they are slower than a single happy path.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console