From addg
Next.js application guidelines, architecture, conventions, and engineering patterns. Use when writing or refactoring code, adding modules or components, answering questions about architecture, deciding when to use feature flags, applying naming and placement conventions, or answering which technologies and libraries the project uses.
How this skill is triggered — by the user, by Claude, or both
Slash command
/addg:nextjs-guidelinesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Engineering guidelines for Next.js applications: architecture, conventions, and technical patterns. This skill covers where code lives, how to name and structure it, when to use feature flags, and how routes and modules map.
references/architecture.mdreferences/conventions.mdreferences/data-and-graphql.mdreferences/feature-flags-and-env.mdreferences/rules/_sections.mdreferences/rules/_template.mdreferences/rules/arch-module-placement.mdreferences/rules/arch-promotion-rules.mdreferences/rules/arch-server-actions.mdreferences/rules/arch-shared-vs-domain.mdreferences/rules/conv-component-declaration.mdreferences/rules/conv-constants-placement.mdreferences/rules/conv-helpers-outside-components.mdreferences/rules/conv-kebab-case.mdreferences/rules/conv-one-component-per-file.mdreferences/rules/conv-types-in-types-file.mdreferences/rules/data-graphql-location.mdreferences/rules/ff-when-to-use.mdreferences/tech-stack.mdEngineering guidelines for Next.js applications: architecture, conventions, and technical patterns. This skill covers where code lives, how to name and structure it, when to use feature flags, and how routes and modules map.
WIP: These guidelines are a draft. When a task is not covered here or in linked references, prefer consistency with existing code and patterns.
Reference these guidelines when:
| Topic | Rule | Details |
|---|---|---|
| Module placement | Shared vs domain, promotion rules | Used in 2+ modules or app root → check Promotion rules; single domain → modules/{domain}/. See architecture.md. |
| Naming | kebab-case | Files and directories: component-name.tsx, use-hook-name.ts. See conventions.md. |
| Components | Directory + index | One dir per component; one component per file (subcomponents in separate files). Helpers in lib/utils, not in component files. Named function, named export. See conventions.md. |
| Feature flags | Shared, env-specific | modules/shared/lib/feature-flags/. Use for gating domains/sections per environment. See feature-flags-and-env.md. |
| Data / GraphQL | Domain graphql, generated | Queries in modules/<domain>/graphql/*.graphql; generated in modules/__generated__/graphql/. See data-and-graphql.md. |
| Types | Props in file; reusable at module root | conventions.md |
| Constants | One constants.ts per module in lib/; UPPER_SNAKE_CASE | conventions.md |
| Tech stack | Next 16, React 19, TS, Tailwind 4, shadcn, GraphQL + TanStack Query | Framework, UI, data, forms, and tooling. See tech-stack.md. |
| Skeleton loading | See dedicated skeleton-loading skill | Skeleton creation has its own skill with full rules, workflow, and examples. |
| Storybook stories | See dedicated storybook-stories skill | Story authoring (variants, decorators, MSW, mocks) has its own skill. |
| Server actions | actions/, one per file, suffix action | In modules/<module>/actions/; file and function names end with action. See architecture.md. |
Skeleton loading has been extracted into a dedicated skeleton-loading skill with comprehensive rules, workflow, sizing guidelines, and examples. Use that skill when creating skeleton loaders, loading placeholders, Suspense fallbacks, or Next.js loading.tsx files.
Storybook story authoring has been extracted into a dedicated storybook-stories skill covering when to create stories, variant policy, file placement, title convention, decorators, MSW mocking, mock data, and full examples. Use that skill when writing or reviewing stories.
Full documentation:
Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub yasielcabrera/addg-guidelines-skills --plugin addg