/cross-stack-standard:doctorfrom Cross-Stack Standard
Checks the environment and the project's Cross-Stack Standard setup: runs the project tool's doctor command (Node.js, git, the Claude Code CLI, the manifest, the opt-out status, the managed CLAUDE.md block size, the path-scoped rule files, the plugin enablement, lefthook, PHP and Composer for Laravel) and explains every result; checks the five pinned companion plugins (caveman, impeccable, Figma MCP, Playwright MCP, Chrome DevTools MCP) for missing, duplicate or hand-copied installs and offers the fixes. Installs nothing without asking. Run it as /cross-stack-standard:doctor (the built-in /doctor is a different command).
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 health check. Report, explain and propose fixes; do not install or change
anything without the user's yes. ${CLAUDE_PLUGIN_ROOT} below is the installed plugin.
In an adopted project, from its root:
node .cross-stack/bin/cross-stack.mjs doctor
Without .cross-stack/bin/ (not adopted yet), or when the project's copy answers
unknown command "doctor" (an older kit), use the plugin's copy:
node "${CLAUDE_PLUGIN_ROOT}/templates/shared/cross-stack/bin/cross-stack.mjs" doctor --root .
Paste the output verbatim. Each line is <status> <check> <message>, with a related rule ID in
brackets; the command exits 1 when any check failed. It works offline: it reads project files and
starts git, claude, php and composer only to read their versions. --json gives the same
report as JSON. If node .cross-stack/bin/cross-stack.mjs --version is older than version in
${CLAUDE_PLUGIN_ROOT}/data/version.json, suggest /cross-stack-standard:upgrade.
Explain every fail and warn line, and any skip that matters here:
node: Node.js 22.13 or later is needed by the project tool and the hooks. Fix: upgrade
Node.js.git: git is needed for commit hooks; the Stop hook uses it to see what changed, and without it
falls back to a slower walk over the project's files. Fix: install git.claude: the Claude Code CLI version. A minimum supported version is not documented yet; the
plugin's hooks use exec-form args, which need 2.1.139 or later. skip means the CLI is not on
PATH, which is normal in CI.manifest: the check-standard-config findings for .cross-stack/standard.json. Missing: run
/cross-stack-standard:adopt. Invalid: fix the lines it names.opt-out: a warn names what turns the hooks off: CROSS_STACK_STANDARD_DISABLE,
"disabled": true in the manifest, the opt-out line in a CLAUDE.md file, or the plugin set to
false under enabledPlugins. Opting out is the user's choice; never undo it for them.context-budget: the managed block plus any AGENTS.md that CLAUDE.md imports, in lines;
the limit is under 200. Missing block: run adopt. Too long: move detail into .claude/rules/
files; never trim the user's own text without asking.rules-files: .claude/rules/<track>.md for each declared (or detected) track. Missing: run
adopt.plugin-enabled: the committed .claude/settings.json registers the marketplace and enables
the plugin for everyone. A warning only: people can still install the plugin themselves.pre-commit: checked only when the project has a lefthook configuration. Each git hook it
defines must be installed by lefthook, and core.hooksPath should be unset. Fix: run
lefthook install in the project (ask first).php and composer: checked only for the laravel track. Laravel 13 needs PHP 8.3 or later,
and Pest 5 needs 8.4.The rule IDs in brackets are the rules each check relates to. Look up their enforcement in
${CLAUDE_PLUGIN_ROOT}/data/rules.json before describing them: in 0.1.0 they are all REVIEW, and
doctor is a diagnostic that no check script runs yet, so a failing line is advice, not a failed
gate. Never describe it as enforcement.
The Standard's marketplace pins five companion plugins that adopt offers: caveman, impeccable,
figma, playwright-mcp and chrome-devtools-mcp (ADR 0106, 0108). Run, and paste the output:
node "${CLAUDE_PLUGIN_ROOT}/scripts/companions.mjs" status --root . --data-dir "${CLAUDE_PLUGIN_DATA}"
node "${CLAUDE_PLUGIN_ROOT}/scripts/companions.mjs" log --tail 20 --data-dir "${CLAUDE_PLUGIN_DATA}"
status exits 1 when an approved companion is unusable, not at its pin or duplicated. Explain
each line by its state:
/mcp). Give the fix and the fallback the line shows.true for it under companions in the manifest (never answered,
or an invalid value). Its tools, skills and installs are denied until the user answers in
/cross-stack-standard:adopt; never write the consent record for them./cross-stack-standard:adopt again.node "${CLAUDE_PLUGIN_ROOT}/scripts/companions.mjs" record --root . --data-dir "${CLAUDE_PLUGIN_DATA}" --approve <name> --decline <the others as recorded>
prints the command; run it as printed.claude plugin enable <name>@cross-stack-standard.claude plugin update <name>@cross-stack-standard.figma@claude-plugins-official, chrome-devtools-mcp@chrome-devtools-plugins
and the like) tracks another commit and starts a second MCP server: offer
claude plugin disable <id> at the scope it was installed; never uninstall it without asking.~/.claude/skills/caveman* or ~/.claude/skills/impeccable
directory or link, or ~/.claude/agents/impeccable-*.md files, left by an older install script:
warn. They load next to the plugin's copies. Offer to remove them, after the companion is
installed from this marketplace, and only with the user's yes.The log lines are structured JSON (ts, event: consent, status, gate, install-gate, health;
companion, decision or status, reason or detail): summarise the recent gates and
failures in plain words.
Then the module switches in .cross-stack/standard.json (a module is on when it is true or an
object whose enabled is not false):
design on without impeccable installed:browser-check on without either playwright-mcp or chrome-devtools-mcp:
warn, fixed by installing the companion or switching the module off. The rules of the module
(UI-013, UI-021) only apply when the tool is there..mcp.json server named playwright or chrome-devtools: warn, since it starts a
second server next to the companion's. The committed .claude/settings.json must set neither
enabledMcpjsonServers nor enableAllProjectMcpServers (SEC-073).What each companion does on the network, stated plainly:
@playwright/[email protected] package from
npm and may download Chromium from Microsoft's browser CDN. The profile is isolated in memory;
browser sessions contact the page hosts they open. The server does not provide a security
boundary, so use only local or development hosts with test accounts and treat page content as
untrusted. Its package currently pins a Playwright alpha build; see the FAQ and verified versions.[email protected] from npm. The
server runs with --isolated, --no-usage-statistics, --no-performance-crux and
--redact-network-headers, with update checks and usage statistics off. Local and development
environments with test accounts only, and nothing the browser shows is copied into chat, commits
or logs (SEC-048)..impeccable/config.json sets
"updateCheck": false or IMPECCABLE_NO_UPDATE_CHECK=1 is set; IMPECCABLE_NO_TELEMETRY=1 or
DO_NOT_TRACK=1 stop its choice reporting. Of its commands, the Standard requires only audit,
critique and polish, each run with the project's existing design tokens (UI-021).mcp.figma.com; each user signs in once in /mcp./caveman, and the Standard's UserPromptSubmit hook pauses it in plan mode.Give the counts (failed, warnings, passed, skipped), the fixes in order of importance, and for
each fix the exact command. Ask before running any command that installs something or changes a
file (lefthook install, a plugin install or disable, an edit to settings, removing an old copy). End with the honest status: the
Standard's rules are REVIEW guidance in 0.1.0 with gates planned for later 0.x releases, while the
plugin's hooks run whenever the project has not opted out.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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./new-projectCreates 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./playwrightRun routine UI checks against an approved local development app with the pinned Playwright MCP companion. Use focused accessibility searches and snapshots; leave traces, network bodies, performance and heap diagnosis to Chrome DevTools MCP./upgradeMoves an adopted project to the Cross-Stack Standard version of the installed plugin: compares the manifest's version with the plugin's, replaces kit files the project never edited, shows a diff for each edited file so the user decides, re-merges the managed CLAUDE.md block and the team settings without weakening them, validates allowlists without changing them, updates the manifest version last and drafts the pull request. Run it as /cross-stack-standard:upgrade (the built-in /upgrade is a different command).