Files
leo-claude-mktplace/plugins/saas-react-platform/commands/react-setup.md
lmiranda 2d51df7a42 feat(marketplace): command consolidation + 8 new plugins (v8.1.0 → v9.0.0) [BREAKING]
Phase 1b: Rename all ~94 commands across 12 plugins to /<noun> <action>
sub-command pattern. Git-flow consolidated from 8→5 commands (commit
variants absorbed into --push/--merge/--sync flags). Dispatch files,
name: frontmatter, and cross-reference updates for all plugins.

Phase 2: Design documents for 8 new plugins in docs/designs/.

Phase 3: Scaffold 8 new plugins — saas-api-platform, saas-db-migrate,
saas-react-platform, saas-test-pilot, data-seed, ops-release-manager,
ops-deploy-pipeline, debug-mcp. Each with plugin.json, commands, agents,
skills, README, and claude-md-integration. Marketplace grows from 12→20.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 14:52:11 -05:00

66 lines
2.0 KiB
Markdown

---
name: react setup
---
# /react setup - React Project Setup Wizard
## Skills to Load
- skills/framework-detection.md
- skills/visual-header.md
## Visual Output
Display header: `REACT-PLATFORM - Setup Wizard`
## Usage
```
/react setup
```
## Workflow
### Phase 1: Framework Detection
- Scan for `package.json` to confirm Node.js project
- Detect framework using `skills/framework-detection.md`:
- Next.js (check for `next` in dependencies, `next.config.*`)
- Vite + React (check for `vite` and `@vitejs/plugin-react`)
- Create React App (check for `react-scripts`)
- Remix (check for `@remix-run/react`)
- Detect App Router vs Pages Router for Next.js projects
- Identify TypeScript usage (`tsconfig.json`, `.tsx` files)
### Phase 2: Project Structure Analysis
- Scan directory structure for existing patterns:
- Component directory: `src/components/`, `components/`, `app/components/`
- Page directory: `src/pages/`, `app/`, `src/app/`
- Hook directory: `src/hooks/`, `hooks/`
- Test patterns: `__tests__/`, `*.test.tsx`, `*.spec.tsx`
- Detect existing barrel files (`index.ts` re-exports)
- Check for existing state management (Redux store, Zustand stores, Context providers)
### Phase 3: Convention Configuration
- Confirm or override detected patterns:
- Component naming: PascalCase (default)
- File naming: PascalCase (`Button.tsx`) or kebab-case (`button.tsx`)
- Test co-location: same directory (`Button.test.tsx`) or `__tests__/` subdirectory
- CSS approach: CSS Modules, Tailwind, styled-components, vanilla extract
- Export style: named exports, default exports, or barrel files
### Phase 4: Summary
- Display detected configuration:
- Framework and version
- TypeScript: yes/no
- Component directory
- Routing pattern
- State management (if detected)
- CSS approach
- Test runner (Jest, Vitest)
- Store configuration for future commands
## Important Notes
- Uses Bash, Read, Write, AskUserQuestion tools
- Does not install packages — only detects and configures
- Configuration stored in project for consistent scaffolding