بنقرة واحدة
mern-add-feature
Scaffold a new feature with API route, Zod schema, Mongoose model, and UI components.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Scaffold a new feature with API route, Zod schema, Mongoose model, and UI components.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Scaffold a pnpm + Turborepo MERN monorepo with Next.js, tooling, tests, CI, and optional GitHub repo creation.
Configure GitHub repository security with branch protection, Dependabot, security scanning, and CI workflows. Integrates with mern-scaffold, nean-scaffold, and iOS projects.
Harden a Vercel deployment with security headers, CSP, bot protection, and deployment configuration
Add authentication to an iOS app with Sign in with Apple, biometrics, and Keychain storage.
Scaffold a new feature with View, ViewModel, and tests following ios-std conventions.
Review iOS code for compliance with standards, NFRs, and security policy.
| name | mern-add-feature |
| description | Scaffold a new feature with API route, Zod schema, Mongoose model, and UI components. |
| argument-hint | <feature-name> [--no-ui] [--no-api] [--no-model] |
| allowed-tools | Bash, Write, Read, Glob, Grep |
Add a complete feature slice to an existing MERN project with all layers wired up and tests included.
feature-name — Feature name in kebab-case (e.g., user-profile, invoice)--no-ui — Skip UI components (API-only feature)--no-api — Skip API route (frontend-only feature)--no-model — Skip Mongoose model (use existing model)packages/shared/schemas/<feature>.ts # Zod schemas + inferred types
apps/web/src/app/api/<feature>/route.ts # API route handler
apps/web/src/server/db/models/<feature>.ts # Mongoose model
apps/web/src/components/<feature>/ # UI components
<Feature>List.tsx
<Feature>Form.tsx
<Feature>Card.tsx
apps/web/src/components/<feature>/__tests__/
<Feature>Form.test.tsx
--no-ui: Only schema + API + model--no-api: Only schema + UI (for client-side-only features)--no-model: Only schema + API route + UI (uses existing model)kebab-case (input)PascalCase (e.g., UserProfile, CreateUserProfileInput)kebab-case.ts for utilities, PascalCase.tsx for React/api/<feature> for collection, /api/<feature>/[id] for itemAll Zod schemas go in packages/shared/schemas/<feature>.ts:
Create<Feature>Schema — creation inputUpdate<Feature>Schema — partial update input<Feature>Schema — full entity shapeGET /api/<feature> — list (paginated)POST /api/<feature> — createGET /api/<feature>/[id] — get onePATCH /api/<feature>/[id] — updateDELETE /api/<feature>/[id] — deletetoJSON transform to hide internal fieldspnpm lint and pnpm test to verifySummarize: files created, API endpoints available, components ready to use.
For templates and patterns, see reference/mern-add-feature-reference.md