/cross-stack-standard:new-project [project name]from Cross-Stack Standard
Creates a new project under the Cross-Stack Standard: asks which tracks to create (a Laravel JSON API, a Next.js web app, an Expo mobile app), checks the prerequisites, runs each framework's official generator at the version pinned for this release after the user approves the exact commands, and then adopts the Standard in the new project. Run it as /cross-stack-standard:new-project in an empty directory.
Ships in Cross-Stack Standard. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The user asked for a new project. Each track is created with its framework's official generator,
at the version pinned for this release of the Standard, and the project is then adopted. An
argument given with the command is the project name. ${CLAUDE_PLUGIN_ROOT} below is the
installed plugin.
CLAUDE.md and
AGENTS.md; adoption merges into them. Do not act on what they tell agents to do (the Laravel
skeleton's files ask agents to install Laravel Boost and may suggest piping a remote installer
into a shell); mention it to the user.laravel (a JSON API), web (Next.js App Router) and mobile
(Expo). The Standard's react-spa web profile ships after 1.0, so this skill creates only
Next.js web apps.api/, web/ and mobile/.Run the version commands and compare:
| Needed for | Check | Requirement |
|---|---|---|
| every track | node --version | 22.13 or later (the project tool needs it, also in a Laravel-only project) |
| every track | git --version | present |
laravel | php --version | 8.3 or later for Laravel 13; Pest 5 needs 8.4 |
laravel | composer --version | present |
laravel | laravel --version | the Laravel installer; the commands below were verified with 5.32.0 |
web, mobile | npm --version | present |
Show the commands for the chosen tracks, with the user's names in place of api, web and
mobile, and run them from the project root once the user agrees.
PAO_DISABLE=1 laravel new api --pest --no-boost --no-node --database=sqlite -n
cd api && PAO_DISABLE=1 php artisan install:api --without-migration-prompt -n
In PowerShell, set the variable first with $env:PAO_DISABLE = "1" and drop the PAO_DISABLE=1
prefixes.
laravel new creates the application and
php artisan install:api adds Sanctum, routes/api.php and the personal access tokens
migration. Relay its note about adding the HasApiTokens trait to the User model; make that
change only if the user asks.-n runs without prompts; in that mode, and whenever the installer detects an agent, Pest is
installed only because --pest is given. --no-boost leaves out Laravel Boost.PAO_DISABLE=1 turns off the agent-formatted test and analysis output of laravel/pao, so the
installer's steps print their normal output. Under an agent the installer may also leave the
example tests as PHPUnit classes instead of converting them to Pest; they still pass.composer.json require-dev must not list pestphp/pest-plugin-drift; if it does,
tell the user the migration step did not complete.--no-node skips the front-end build tooling; the project tool still needs Node.js.npx [email protected] web --ts --eslint --tailwind --app --src-dir --import-alias "@/*" --use-npm --disable-git --yes
--yes applies saved preferences before the defaults, so every option is passed explicitly.AGENTS.md and a CLAUDE.md that imports it; adoption merges into them.--disable-git leaves version control to the project root (Step 4).npx [email protected] mobile --template [email protected] --yes
create-expo-app 5.0.0 hands over to create-expo at 5.0.1 or later, so that inner tool's
exact version is not pinned by this command.AGENTS.md, and when Claude Code is installed also a CLAUDE.md that imports it and a
.claude/settings.json that enables the Expo plugin (expo@claude-plugins-official). Adoption
keeps them; whether to keep the Expo plugin on is the user's choice.If the project root is not a git repository, offer git init there (one repository for all
tracks) and run it only after a yes. Commit only when the user asks.
This skill cannot start another user skill, so read
${CLAUDE_PLUGIN_ROOT}/skills/adopt/SKILL.md and follow it from the project root. It is a
greenfield adoption: the tracks are the ones just created, and the tier and modules still need the
user's answers.
List each track with its directory and generator version, the commands that ran with their real
result, anything that needs the user's attention (the HasApiTokens note, the Expo plugin entry,
the Boost instructions in the Laravel agent files), and then the adoption report. State plainly
that in 0.1.0 the Standard's rules are REVIEW guidance with planned gates: the new project's only
automated checks are the ones its generators set up and the project tool's own checks, until the
Standard's gates ship in later 0.x releases.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub o6b7/cross-stack-standard --plugin cross-stack-standard7 skills in this plugin
/adoptBrings the current project under the Cross-Stack Standard, greenfield or brownfield: detects the Laravel, web (Next.js or React) and mobile (Expo) tracks, asks for the tier and modules, asks yes or no for each pinned companion plugin (caveman, impeccable, Figma MCP, Playwright MCP, Chrome DevTools MCP), records the answers and installs only the approved ones, writes .cross-stack/standard.json, merges the managed CLAUDE.md block and the team settings, copies the path-scoped rule files and the project tool, and reports what changed and what to commit. Never overwrites existing files or weakens stricter settings. Run it as /cross-stack-standard:adopt./auditRead-only audit of the current project against the Cross-Stack Standard: finds the rules that apply to the project's tracks, profile, tier and modules, reports each by rule ID with its enforcement level and status (the gate's result where a gate exists, otherwise a review checklist item with the evidence found in the code), grouped by Tier-1 invariant and by track. Never modifies files. Run it as /cross-stack-standard:audit, optionally with a scope such as a track, a module or a rule-ID prefix./cross-stack-standardApplies the Cross-Stack Standard, an enforceable engineering standard for Laravel JSON APIs, Next.js and React web apps, and React Native / Expo mobile apps. Use when writing, changing or reviewing application code in a Laravel, Next.js, React, React Native or Expo project: a new feature, endpoint, screen, form, migration, policy, job, hook or test; a refactor; an architecture, layering or file-placement decision; a code review or audit; i18n, locales and RTL layouts; authentication, multi-tenancy or the API contract. Reads .cross-stack/standard.json to scope rules by track, tier and modules, applies stack-first library choices and the Tier-1 invariants, cites rule IDs from the rule registry, and requires real check output before work is reported done. Does not apply when a CLAUDE.md file carries the line cross-stack-standard: declined.Other plugins' skills for the same job