project-bootstrap
Installation
SKILL.md
Project Bootstrap — Company Tooling Standards
Apply the Socially-Free standard toolchain to a Laravel + Inertia + React project.
Quick Start
- Bun — Delete
package-lock.json, runbun install. Update CI workflows to useoven-sh/setup-bun@v2andbun install/bun run <script>. - Biome — Replace ESLint deps with
@biomejs/biome: "2.4.13". Copyreferences/biome.jsoninto the project. Updatepackage.jsonscripts (lint,lint:check,format:check). Deleteeslint.config.js. Keep Prettier with its plugins — the existing.prettierrc(Tailwind class ordering + import organization) stays; Biome does not offer Tailwind class sorting. Runbun install. - Composer scripts — Replace the starter kit's scripts section with
references/composer-scripts.json. Keep the starter kit'spost-autoload-dump,post-update-cmd,post-root-package-installscripts intact — only replace the user-facing ones. Ensuretest:lint(pint --parallel --test) andlint(pint --parallel) exist. - Laravel Wayfinder — The
generate:routingcomposer script relies onphp artisan wayfinder:generate. Install the Laravel Wayfinder package so this command is available. Follow the Laravel Wayfinder installation instructions for your project. - CI workflows — Copy
references/lint.ymlandreferences/tests.ymlinto.github/workflows/. The lint workflow uses check-only commands (pint --test,biome ci) so it FAILS on formatting drift instead of silently fixing and discarding it. - Formatting enforcement (hooks) — Add
husky+lint-staged(mergereferences/package-json.snippets.jsoninto package.json, copyreferences/pre-commitinto.husky/pre-commit), runbun installto wire the hooks. Pre-commit runs pint / biome --write / prettier --write on staged files only — Biome first, Prettier last, so Prettier owns the final on-disk state (CSS quote style, import order, Tailwind class order). - .gitignore — Ensure
bun.lockis tracked (not gitignored).
Run bun run build, composer fix, and git commit (to confirm the pre-commit hook fires) to verify.