symkit/bundle-ai-kit
Symkit Bundle AI Kit is a Laravel/PHP package for adding AI features to applications. It offers ready-to-use services, configuration, and utilities that simplify model calls, prompt handling, and AI-powered workflows, helping developers reduce boilerplate in Laravel projects.
.cursor/rules, .cursor/skills/*, .cursor/agents, and AGENTS.md. That replaces the current de facto practice of copying prompts and lint configs between repos.make quality (cs-check + phpstan + deptrac + test + infection), a PHP 8.2–8.4 × Composer 2–3 matrix, mutation-testing thresholds, and composer audit --abandoned=report.phpstan-baseline.neon, no @phpstan-ignore without justification, no mixed without a comment, no setter injection). It turns a vague governance aspiration into checkable configuration.Contract → Context → Installer → Root layering, so erosion is caught in CI rather than in code review.make cs-fix, make phpstan, make test, make infection) and the same anti-pattern list — reduces variance in first PRs.Consider it when:
AiRulesInstaller), with .mdc bodies designed to render as plain Markdown for the non-Cursor tools.SyncContextResolverInterface only, with DefaultSyncContextResolver / SkillNamesDiscoverer / SyncContext) so context resolution can be swapped or stubbed in tests.Look elsewhere when:
For executives: This is a low-cost, opinionated starter kit that makes AI-generated PHP code conform to our engineering standards on the first attempt. It front-loads quality — maximum-strictness static analysis, mutation testing, architecture rules — so code review time and rework go down, and "the AI wrote it" stops being a quality caveat. The risk is maintenance and bus factor, so we would pin a version, treat it as a template rather than a critical dependency, and validate it on one new bundle before broadening.
For engineering: One Composer plugin syncs rules, skills, and AGENTS.md into the repo on install; nothing is deleted (merge-only). Quality is Makefile-first — make cs-fix, make phpstan (level 9, no baselines), make deptrac, make test, make infection (MSI ≥ 70), make security-check, make quality, make ci — and pre-commit hooks mirror CI. Architecture is enforced as Contract → Context → Installer → Root, with a single SyncContextResolverInterface seam so we can inject a stub resolver or installer in tests. CI runs security/cs/phpstan/deptrac in parallel, then a PHP 8.2–8.4 × Composer 2–3 matrix, then infection.
Proposed next step: pilot on one new bundle for a sprint. Success metrics: share of AI-assisted PRs passing make quality on first run, review turnaround on those PRs, and hours saved versus hand-rolling conventions. Decision gate: expand, fork-and-own, or drop.
How can I help you explore Laravel packages today?