Development rules for pnpm monorepo with NestJS backend, Nuxt dashboard (Shadcn), and Nuxt frontend (Nuxt UI). Includes modular architecture patterns, component structure, and Prisma workflow.
This skill has safety concerns that you should review before use. Some patterns were detected that may pose a risk.Safety score: 60/100.
KillerSkills scans all public content for safety. Use caution before installing or executing flagged content.
Development rules for a pnpm-based monorepo containing NestJS backend, Nuxt dashboard with Shadcn-vue, and Nuxt frontend with Nuxt UI.
1. **Always use `pnpm`** for all package operations
2. Never use npm or yarn commands
3. Use workspace protocol for internal dependencies
The monorepo contains three main applications:
#### Backend (`apps/backend/`)
#### Dashboard (`apps/dashboard/`)
#### Frontend (`apps/frontend/`)
When creating new NestJS modules, follow this structure:
```
src/modules/{feature}/
├── dto/
│ ├── create-{feature}.dto.ts
│ └── update-{feature}.dto.ts
├── {feature}.controller.ts
├── {feature}.service.ts
├── {feature}.module.ts
└── index.ts
```
**Key practices:**
**Always use Composition API with `<script setup lang="ts">`:**
```vue
<script setup lang="ts">
// Component logic here
</script>
<template>
<!-- Template here -->
</template>
<style scoped>
/* Styles here */
</style>
```
**For dashboard:** Place UI components in `app/components/ui/`
**For frontend:** Follow Nuxt 3 auto-import conventions
1. Schema location: `apps/backend/prisma/schema.prisma`
2. After any schema changes, run: `pnpm prisma:generate`
3. Apply migrations: `pnpm prisma:migrate`
4. Use Prisma Client from `@prisma/client`
Each app maintains its own `AGENTS.md` file:
```bash
pnpm install
pnpm --filter backend dev
pnpm --filter dashboard dev
pnpm --filter frontend dev
pnpm --filter backend prisma:generate
pnpm --filter backend prisma:migrate
```
1. **Type Safety:** Always use TypeScript with strict mode
2. **Imports:** Prefer absolute imports using path aliases
3. **Components:** Keep components small and focused
4. **API Design:** Follow RESTful conventions in NestJS controllers
5. **Styling:** Use TailwindCSS utility classes; avoid custom CSS when possible
6. **Content:** Use Nuxt Content for static content and documentation pages
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/monorepo-nestjs-nuxt-development/raw