AgentHubAgentHub

nextjs-ppr-patterns

SkillSkillsMP

io.github.pproenca/dot-skills/nextjs-ppr-patterns · vmaster

Next.js 16 App Router pages mixing static and dynamic content — Partial Prerendering (PPR) under the Cache Components model. Covers enabling it with cacheComponents (the removed experimental.ppr / experimental_ppr flags), the dynamic-by-default rendering inversion, the Suspense static-shell/dynamic-hole boundary, the 'use cache' directive (automatic keys, cacheLife/cacheTag, children/action pass-through, runtime values as props, serverless durability), async runtime APIs and connection() for non-determinism, page composition from a single hole to parallel dashboards to streaming a Promise into a Client Component with use(), and forms/wizards with updateTag read-your-writes and Activity state preservation. Triggers on PPR, cacheComponents, 'use cache', Suspense streaming, partial prerendering, or static-shell work even when not named explicitly.

概览

nextjs-ppr-patterns 是一个Agent Skill,收录自 SkillsMP。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

Agent Skill 是带 SKILL.md 的指令包。安装后,AI 会根据 description 在匹配任务时自动加载,无需每次手动粘贴提示词。

安装

选择你的平台查看安装方式

# 通用 CLI(Cursor / Claude Code / Codex 等均支持)
npx skills add pproenca/dot-skills@nextjs-ppr-patterns

使用方式

安装完成后,在对话中直接描述你的任务(或提及技能名称)。Agent 会先读取 SKILL.md 的 description 判断是否启用,再按其中的步骤执行。可用 /skills(Claude Code)或在设置中查看已加载的 Skills。

相关资源

统一 Manifest

{
  "id": "io.github.pproenca/dot-skills/nextjs-ppr-patterns",
  "type": "skill",
  "version": "master",
  "displayName": "nextjs-ppr-patterns",
  "description": "Next.js 16 App Router pages mixing static and dynamic content — Partial Prerendering (PPR) under the Cache Components model. Covers enabling it with cacheComponents (the removed experimental.ppr / experimental_ppr flags), the dynamic-by-default rendering inversion, the Suspense static-shell/dynamic-hole boundary, the 'use cache' directive (automatic keys, cacheLife/cacheTag, children/action pass-through, runtime values as props, serverless durability), async runtime APIs and connection() for non-determinism, page composition from a single hole to parallel dashboards to streaming a Promise into a Client Component with use(), and forms/wizards with updateTag read-your-writes and Activity state preservation. Triggers on PPR, cacheComponents, 'use cache', Suspense streaming, partial prerendering, or static-shell work even when not named explicitly.",
  "author": {
    "name": "pproenca",
    "url": "https://github.com/pproenca"
  },
  "repository": {
    "url": "https://github.com/pproenca/dot-skills",
    "source": "github",
    "subfolder": "skills/.experimental/nextjs-ppr-patterns"
  },
  "homepage": "https://skillsmp.com/skills/pproenca-dot-skills-skills-experimental-nextjs-ppr-patterns-skill-md",
  "distribution": {
    "packages": [
      {
        "registryType": "source",
        "identifier": "pproenca/dot-skills@nextjs-ppr-patterns",
        "version": "master",
        "runtimeHint": "npx skills add"
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "codex",
    "vscode"
  ],
  "keywords": [
    "stars:158"
  ],
  "provenance": {
    "origin": "skillsmp",
    "originalId": "pproenca-dot-skills-skills-experimental-nextjs-ppr-patterns-skill-md",
    "originalUrl": "https://skillsmp.com/skills/pproenca-dot-skills-skills-experimental-nextjs-ppr-patterns-skill-md",
    "isOfficial": false,
    "status": "active"
  }
}
nextjs-ppr-patterns — Agent Skill 安装与配置 · AgentHub