No slash command · from hypervibe
Internal helper that detects project structure (name, monorepo vs single app, web directory, Next.js) and returns 4 variables for other skills to reuse.
Ships in hypervibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
/bootstrap carries no language signal by itself). If nothing in the conversation gives a signal, fall back to the OS locale (node -e "console.log(Intl.DateTimeFormat().resolvedOptions().locale)") before defaulting to English. ALWAYS reply in that language for every user-facing message: questions, progress, confirmations, summaries, errors - including any example text quoted in this skill, which is illustrative and must be translated, never sent verbatim.You detect the basic structure of the current project and return a minimal set of variables that the caller can reuse. You work silently, without bothering the user unless the project cannot be detected.
A 4-variable snapshot:
| Variable | Possible values | Used by |
|---|---|---|
PROJECT_NAME | my-app, hypervibe, etc. | Everything: R2 bucket names, workers, monorepo packages, render.yaml, etc. |
WEB_DIR | . (single app) or apps/web (monorepo) | add-db, add-cron, add-auth, _create-*-worker |
IS_MONOREPO | yes / no | add-automation, add-db, _create-cloudflare-worker, _create-render-worker |
IS_NEXTJS | yes / no | All add-* skills (to refuse if the project is not Next.js) |
This is intentionally minimal. Specific checks like HAS_DB, HAS_AUTH, HAS_RESEND remain inline in the skills that need them - they are contextual and shouldn't pollute every skill's context.
test -d apps/web && echo "monorepo" || echo "single"
Set IS_MONOREPO accordingly:
monorepo → IS_MONOREPO=yes, WEB_DIR=apps/websingle → IS_MONOREPO=no, WEB_DIR=.For single app (WEB_DIR=.):
node -e "process.stdout.write(require('./package.json').name)"
For monorepo (WEB_DIR=apps/web):
package.json first (Bootstrap's convention is that the root package has the "real" project name):
node -e "process.stdout.write(require('./package.json').name)"
-monorepo suffix (e.g. hypervibe-monorepo), strip it to get the logical project name.apps/web/package.json if root is missing.Set PROJECT_NAME.
node -e "const p=require('./WEB_DIR/package.json'); process.stdout.write(p.dependencies?.next || p.devDependencies?.next || 'none')"
Replace WEB_DIR with the detected value. If the output is none, set IS_NEXTJS=no. Otherwise IS_NEXTJS=yes.
If PROJECT_NAME is empty or IS_NEXTJS=no:
Tell the user:
I cannot detect a Next.js project in the current folder. Check that:
- You are at the root of the project (or in
apps/web/ another T3 folder)- A
package.jsonexists and listsnextas a dependencyIf this is a new project, run
/bootstrapfirst.
Then return an error state to the caller (so it can abort).
Report to the caller in this exact format so it can parse the values:
PROJECT_NAME=<value>
WEB_DIR=<value>
IS_MONOREPO=<yes|no>
IS_NEXTJS=<yes|no>
Example success output:
PROJECT_NAME=hypervibe
WEB_DIR=apps/web
IS_MONOREPO=yes
IS_NEXTJS=yes
The caller reads these 4 lines and uses them throughout its own execution without having to redetect anything.
Every add-* skill should call this in Step 1 (or wherever it currently does test -f package.json), replacing the ad-hoc detection code. The invocation is a single line:
Invoke
_detect-project-rootto get PROJECT_NAME, WEB_DIR, IS_MONOREPO, IS_NEXTJS.
The helper is idempotent - calling it multiple times in the same session is fine (it just re-reads the filesystem).
These checks remain inline in the skills that need them, because they are contextual and used by only 1-2 skills each:
HAS_REAL_DB - mandatory robust check (used by add-auth, add-backup-db, and any skill that needs a real cloud DB): (1) DATABASE_URL present in .env, AND (2) its value does not point to local and is not a placeholder - reject if the value matches @localhost: / @127\.0\.0\.1: / placeholder / //postgres:postgres@ / YOUR_DB (bootstrapped T3 projects ship a default like postgresql://postgres:password@localhost:5432/test that passes Zod validation but is not wired up), AND (3) a drizzle.config.ts/.js exists (root, apps/web/, or packages/db/). NEVER rely on grep DATABASE_URL .env alone - guaranteed false positives.HAS_AUTH - check src/server/auth.ts → only used by add-google-auth, add-github-authHAS_RESEND / HAS_BREVO - check API key presence → only used by add-domainVERCEL_LINKED - check .vercel/project.json → only used by _setup-github-deploy, add-domain, _push-env-varsDo not try to add these to _detect-project-root. The helper stays minimal.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub flavien-ia/hypervibe-craft --plugin hypervibe90 skills in this plugin
/accessibilityAccessibility audit of a Next.js app: reads the code (images, buttons, links, form fields, keyboard, focus, zoom, motion), measures the live pages with PageSpeed Insights, explains each problem plainly, then applies the fixes the user approves./add-2faAdd two-factor authentication (2FA TOTP) to an existing T3 project's login. Orchestrator - asks which authenticator app the user wants, detects whether the project uses admin auth (single fixed login) or user accounts, and delegates to the right setup. Admin mode - 2FA is mandatory for the single admin, secret + backup codes stored in the Bitwarden vault. User mode - 2FA is optional per user, each user enables it from their account page, secrets + backup codes stored per-user in the database. Requires the project to already have hypervibe auth (`/add-auth`)./add-agent-dashboardAdd a monitoring screen for AI agents in the project admin: cost, run history, turn-by-turn traces, and a button to launch a run by hand. Installed when an agent is created, safe to re-run./add-aiAdd AI to an existing Next.js project: chat assistant, content processing, or generation. Estimates the cost from live prices and provisions a spending-capped key before writing any code. Model-independent through OpenRouter./add-analyticsAdd Google Analytics (GA4) to an existing Next.js project. Includes RGPD cookie consent banner./add-authAdd NextAuth (Auth.js) authentication to an existing T3 project. One structured question decides the mode - admin (fixed login in env vars) or users (DB-backed email+password with signup, signin, account page, delete account, and optional forgot-password if email is configured). OAuth providers (Google, GitHub) are offered as optional add-ons AFTER the user-credentials baseline, never as a replacement. This skill is an orchestrator - it delegates the actual implementation to `_setup-auth-admin` or `_setup-auth-users` depending on the chosen mode.Other plugins' skills for the same job