ワンクリックで
nextjs
This skill should be used every time you work on Next.js projects or Next.js app code changes in this repository.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
This skill should be used every time you work on Next.js projects or Next.js app code changes in this repository.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | nextjs |
| description | This skill should be used every time you work on Next.js projects or Next.js app code changes in this repository. |
| compatibility | opencode |
This file defines the preferred Next.js project organization for this repo.
app/ only.features/ as the primary unit of change and ownership.shared/ or entities/, never by reaching into another feature.styles/).components/, hooks/, or utils/.next/link for internal navigation - Never use <a href="..."> for routing to internal pages. Use Next.js <Link> component for client-side navigation and better performance../logs/ directory../logs/ directory must be gitignored (add logs/ to the root .gitignore).pino as the approved server logging library.agent-browser skill.agent-browser requirement is strict; do not substitute ad-hoc/manual browser testing../logs/.Tailwind CSS v4 is the ONLY permitted CSS framework. No exceptions.
@tailwindcss/vite plugin, NOT @tailwindcss/postcss or older versions.styles.css, or CSS modules. Use Tailwind utility classes only.@apply, @layer, or tailwind.config.js. v4 uses CSS-first configuration via @theme block.@import "tailwindcss";
@theme {
--color-primary: oklch(70% 0.2 250);
--font-sans: "Inter", system-ui, sans-serif;
}
w-[300px], grid-cols-[1fr_2fr].!important with Tailwind classes.style={{}} prop for styling; use Tailwind classes exclusively.src/styles/globals.css under @theme, import where needed.clsx and tailwind-merge for conditional classes; never concatenate strings manually.dark: variant with class strategy (v4 default)..css file with custom class definitionsstyled-components, emotion, or similartailwind.config.ts)@apply directive to extract classesstyle propsapps/
└── web/ # Next.js app (Vercel project root)
└── src/
├── app/ # app shell, providers, routing, bootstrapping
├── features/ # product capabilities (primary organization)
├── entities/ # domain models + cross-feature business concepts
├── shared/ # reusable UI + utilities with no feature ownership
├── config/ # environment + runtime configuration
├── assets/ # static assets
├── styles/ # global styles + tokens
├── testing/ # test utilities + fixtures
└── app/ # Next.js App Router entry
packages/
├── db/ # Drizzle schema + migrations (Neon/Postgres)
│ └── src/
│ ├── schema/
│ ├── migrations/
│ ├── client.ts
│ └── index.ts
└── server/ # server logic used by Next.js API routes
└── src/
├── routes/ # framework-agnostic handlers
├── services/ # business services
└── index.ts
pnpm-workspace.yaml
app/: application glue and composition only.
providers/, routes/, layout/, error-boundary/, app.tsxfeatures/: each feature is a self-contained folder.
features/auth/, features/billing/, features/settings/entities/: domain models shared across features.
entities/user/, entities/organization/shared/: cross-cutting UI primitives and helpers with no feature ownership.
shared/ui/, shared/hooks/, shared/lib/, shared/types/config/: config objects, env parsing, feature flags.assets/: images, icons, fonts.styles/: global CSS, design tokens, theme setup.testing/: test setup, mocks, fixtures, and helpers.packages/db: Drizzle schema, migrations, and Neon/Postgres client.packages/server: framework-agnostic server logic used by Next.js API routes.Each feature owns its UI, logic, and API integration. Add only what the feature needs.
src/features/
└── billing/
├── api/ # feature API calls
├── components/ # feature-scoped UI
├── hooks/ # feature-scoped hooks
├── routes/ # feature routes
├── types/ # feature types
├── utils/ # feature helpers
└── index.ts
Shared code must be feature-agnostic.
src/shared/
├── ui/ # design-system primitives
├── hooks/ # generic hooks
├── lib/ # tiny helpers + wrappers
├── types/ # global types
└── config/ # shared config defaults
kebab-case for folders and files.features/ can import from shared/, entities/, and config/ only.shared/ and entities/ never import from features/.shared/ or entities/.apps/
└── web/
└── src/
├── app/
│ ├── app.tsx
│ ├── providers/
│ ├── routes/
│ └── layout/
├── features/
│ ├── auth/
│ │ ├── api/
│ │ ├── components/
│ │ ├── routes/
│ │ └── index.ts
│ └── billing/
│ ├── api/
│ ├── components/
│ ├── hooks/
│ └── index.ts
├── entities/
│ └── user/
│ ├── types/
│ └── index.ts
├── shared/
│ ├── ui/
│ ├── hooks/
│ ├── lib/
│ └── types/
├── config/
├── assets/
├── styles/
└── testing/
packages/
├── db/
│ └── src/
│ ├── schema/
│ ├── migrations/
│ ├── client.ts
│ └── index.ts
└── server/
└── src/
├── routes/
├── services/
└── index.ts
Comprehensive guide for the ratkit Rust TUI component library built on ratatui 0.29, including feature flags, APIs, and implementation patterns. Use when building, debugging, or extending ratkit applications and examples.
Use this skill for all context planning, creation, updates, review, search, and sync work in this repository.
This skill should be used every time you generate, refresh, or validate codebase-derived SKILL.md documentation for this repository.
Use this skill when working on Nexus context workflows, CDD specifications, or deriving reusable skills from repository code.
This skill should be used every time you create, update, or review end-to-end tests in this repository.
This skill should be used every time you work on justfile projects or just command changes in this repository.