pluginagentmarketplace/custom-plugin-nextjs · Archived

data-fetching

Next.js data fetching - Server actions, caching, revalidation

First seen Jan 26, 2026

Installation

$ npx skills add pluginagentmarketplace/custom-plugin-nextjs --skill data-fetching

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from pluginagentmarketplace/custom-plugin-nextjs.

npx skills add pluginagentmarketplace/custom-plugin-nextjs

Browse all from pluginagentmarketplace/custom-plugin-nextjs

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 2
License LICENSE
Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,121 B
  • docs SUMMARY.md 82 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 8 installs

SKILL.md

Data Fetching Skill

Overview

Modern data fetching in Next.js with server actions, caching strategies, and revalidation.

Capabilities

  • Server Actions: 'use server' for mutations
  • Caching: Automatic request memoization
  • Revalidation: Time-based and on-demand
  • Streaming: Progressive rendering
  • Parallel Fetching: Promise.all patterns

Examples

// Server Action
'use server'

export async function createPost(formData: FormData) {
  const title = formData.get('title')
  await db.posts.create({ title })
  revalidatePath('/posts')
}

// Data fetching with caching
async function getData() {
  const res = await fetch('https://api.example.com/data', {
    next: { revalidate: 3600 } // Revalidate every hour
  })
  return res.json()
}

Caching Options

  • cache: 'force-cache' - Default, cached
  • cache: 'no-store' - No caching
  • next: { revalidate: N } - Revalidate after N seconds