🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

nextjs-claude-code

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nextjs-claude-code

Spec-Driven AI Development workflow for Next.js & React with Claude Code

Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
42
281.82%
Maintainers
1
Weekly downloads
 
Created
Source

NCC — nextjs-claude-code

Spec-Driven AI Development workflow for Next.js & React — from spec to shipped with Claude Code.

Define your feature. Claude builds exactly what the spec says — with every change traced back to a requirement.

한국어 →

Features

  • Spec-Driven: Feature specs with REQ-NNN traceability, compliance reporting
  • Curated skills from skills.sh — includes React, Next.js, UI/UX, testing, and library-specific best practices
  • Architecture guides — Flat, Feature-Based, FSD, Monorepo (chosen by team size)
  • Library-aware agents — agents read your selected stack and follow its patterns
  • Next.js native — App Router, Server Components, Server Actions, Pages Router
  • React support — Vite and other React setups
  • Monorepo ready — Turborepo workspace-aware installation
  • Claude Code native — slash commands, agent orchestration, PostToolUse hooks

Installation

For HumansInstallation Guide

For Claude Code — fetch the guide and follow it:

curl -s https://raw.githubusercontent.com/ByeongminLee/nextjs-claude-code/main/docs/installation.md

Why SDD?

Features are never completed in a single iteration. You ship a basic checkout, add coupons a month later, then subscriptions, then promotions. At every step you need to know what was built before, what the current spec looks like, and what changed.

Existing spec-driven tools like Spec-kit and OpenSpec work well for independent changes, but their change-based folder structure makes it hard to see how a single feature evolves over time.

/spec payment-coupon "add coupon support to payment, Figma: https://..."   # define the spec
/dev payment-coupon                                                         # implement
  • Feature-unit, not change-unit. Each feature has a fixed location (spec/feature/[name]/) that persists throughout the project lifetime. Changes accumulate as history entries.
  • Built for progressive development. Spec, design, and implementation history live together so each iteration builds on the last — not from scratch.
  • Spec accuracy over speed. spec-writer clarifies before writing, executor follows a confirmed plan, verifier checks "it works" not just "files exist."

Who is this for?

NCC is optimized for teams that iteratively implement confirmed specs on a feature-by-feature basis. It is for teams whose features keep evolving after launch — where a single payment feature grows from basic checkout to coupons to subscriptions to promotions over months.

Workflow

/spec [name] "describe the feature"   →  spec-writer clarifies → writes spec.md + design.md
/dev  [name]                           →  planner → executor → verifier → done
/loop [name]                           →  reviewer → targeted fix → re-review → repeat until 100%

How It Works

User                    Claude Agents              Files
────                    ─────────────              ─────
/spec [name] "..."  ──→  spec-writer       ──→    spec/feature/[name]/spec.md
                                                   spec/feature/[name]/design.md

/dev [name]         ──→  planner           ──→    spec/feature/[name]/CONTEXT.md (WHY)
                            │                      spec/feature/[name]/PLAN.md (WHAT)
                            ↓ (after user confirms)
                         executor           ──→    source code
                            │
                            ↓
                         verifier           ──→    (read-only verification)
                            │
                            ↓ (after verification)
                         executor           ──→    spec/feature/[name]/history/
                                                   spec/STATE.md

/review [name]      ──→  reviewer           ──→    (spec compliance report)
                         code-quality-       ──→    (code quality report)
                         reviewer

/loop [name]        ──→  loop              ──→    reviewer (REQ check)
                            │                      ↓ (failing REQs)
                            ↓                     executor (targeted fix)
                         (repeat, max 5)           ↓ (re-review)
                            ↓                     verifier (Level 1-4)
                         done or escalation        spec/feature/[name]/history/

/status             ──→  status             ──→    (read-only report)

/debug "..."        ──→  debugger           ──→    spec/DEBUG.md
                                                   spec/STATE.md

/rule "..."         ──→  rule-writer        ──→    spec/rules/[topic].md

Agent Roles

AgentRoleModifies codeModifies spec docs
initCodebase analysis, draft spec docsNoYes
spec-writerWrite spec.md + design.mdNoYes
plannerCreate CONTEXT.md + PLAN.mdNoYes
executorImplement featuresYesPartial (STATE, history)
verifier4-level verificationNoNo (read-only)
reviewerSpec compliance reportNoNo (read-only)
code-quality-reviewerCode quality reviewNoNo (read-only)
statusProject status summaryNoNo (read-only)
debuggerBug fixingYesYes (DEBUG.md)
rule-writerManage coding rulesNoYes (spec/rules/)
loopForce-complete REQ complianceYes (via executor)Partial (STATE, history)

Safety Features

  • Auto-fix budget: Maximum 3 retries per mode. /dev: shared across the session. /loop: resets per iteration. /debug: per bug.
  • Checkpoint protocol: pauses at decision points, UI verification, auth gates
  • Multi-feature state: spec/STATE.md tracks multiple features independently — switch between features without losing progress
  • Resume protocol: interrupted /dev and /loop sessions resume from where they left off — each feature's phase (planning, executing, verifying, looping) is tracked independently in STATE.md
  • 4-level verification: file existence → no stubs → tests (conditional) → wired correctly → human check
  • Spec validation: PostToolUse hooks block malformed spec.md and design.md writes
  • Spec reflection: advisory hook reminds you to update the spec when code changes add new exports or routes
  • Plan staleness check: /dev warns if spec.md has been modified since the feature's PLAN.md was created
  • Model routing: agents use sonnet by default, haiku for small/mechanical tasks (verifier, cleanup, simple fixes). Opus is never used. See .claude/RULE.md Model Routing for criteria.

Contributing

Issues and PRs welcome.

License

MIT

Keywords

claude-code

FAQs

Package last updated on 16 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts