← Back to Pull requests

[skills] Remove the Next.js framework skills in favor of Next.js's bundled docs #282

Closed
unknown closed this pull request without merging on Oct 01, 2026 09:20 UTC
View on GitHub
unknown unknown commented on Oct 01, 2026 08:19 UTC
Author

Supersedes #121, redone on current main.

Next.js retired vercel-labs/next-skills. Its README now says the reference knowledge "is now delivered automatically through Next.js bundled docs (next/dist/docs/) and the AGENTS.md / CLAUDE.md agent rules that next dev generates (Next.js 16.3+), so it no longer ships as a skill", and the remaining workflow skills moved to vercel/next.js/skills. Our copies duplicate that and drift from the installed version (for example, #272's retry change is right on 16.3+ and broken on 16.0–16.2).

Removed

  • Skills: nextjs, next-upgrade, next-cache-components (from next-skills), and turbopack (plugin-owned, but its content is Next.js framework docs that now ship with next).

  • All references: session-start profiler markers and greenfield default, SKILL_TO_CHUNK mappings, chainTo targets in routing-middleware, vercel-storage, and cdn-caching, ⤳ skill: links in vercel.md, and the {{include:skill:nextjs…}} sections in agents/performance-optimizer.md.tmpl.
  • Added: official guidance

    Sources: https://nextjs.org/docs/app/guides/ai-agents and https://nextjs.org/docs/app/getting-started/upgrading

  • knowledge-update (injected at session start for Next.js and Vercel projects) gets a Next.js section:

  • - Read node_modules/next/dist/docs/ before writing Next.js code.
    - 16.3+ next dev writes AGENTS.md/CLAUDE.md. On 16.2 the docs are bundled but there's no AGENTS.md. On ≤16.1, run npx @next/codemod@canary agents-md.
    - Upgrade with next upgrade (16.1+) or npx @next/codemod@canary upgrade latest.
    - Workflow skills install with npx skills add vercel/next.js.
  • vercel.md: the same pointers in the Next.js graph node and the "Next.js and Rendering" session chunk.

  • performance-optimizer: a topic → bundled-doc lookup table replaces the inlined skill content.

  • cdn-caching: points to the bundled docs and the official next-cache-components-optimizer skill.

  • routing-middleware: keeps the middleware.ts → proxy.ts validate rule, now pointing to the bundled docs instead of Skill(nextjs).

  • README and CLAUDE.md skill counts and tables updated (38 → 34 skills, 12 → 9 upstream-synced).
  • Tests

  • Tests that used the removed skills as the example skill for injection, dedup, and telemetry now use skills that still ship (routing-middleware, shadcn, next-forge), so they cover the same behaviour.

  • The notion-clone tests that only checked for the removed skills are dropped. Pattern fixtures and the build-from-skills snapshot are updated.

  • New: inject-claude-md test that a Next.js project gets the bundled-docs guidance at session start.
  • Verification

    bun run build, bun run validate, build:skills:check, build:from-skills:check, and bun run test (1038 pass, 0 fail) all pass. Main has 1056 tests. The difference is the 16 per-include tests for the deleted performance-optimizer includes, plus the deliberate removals and renames above.

    Follow-ups

  • Close #272 (it edits files this PR removes).
  • Diff: 389 lines (+291 / -98) across 4 files Reviewer: aurorascharff Review duration: 61m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 389 lines diff across 4 files
    0.48
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.357
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #282"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 48.1% (MEDIUM) · Higher = larger blast radius
    48.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.0% · Safe to merge
    19.0%