agentleFS
refpathrefpath/chatgpt-team/.agents/skills/stack-nextjs/SKILL.md

stack-nextjs

Skill0 starsChanged 2 months agoMITView on GitHub

Optional guidance for Next.js repositories, using their existing router/rendering/data-fetching conventions and project-native validation without making Next.js a dependency of this project.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill only in repositories that already use Next.js.

    line 8
  2. Distinctive:

    Follow the repository's existing App Router / Pages Router conventions rather than migrating routers opportunistically.

    line 14
  3. Distinctive:

    Treat caching, revalidation, redirects, error/loading states, hydration, and route behavior as part of correctness when affected.

    line 16
  4. Distinctive:

    Avoid assuming a specific hosting provider or deployment architecture.

    line 17
  5. Distinctive:

    Use semantic, accessible markup and established styling/component conventions.

    line 18
  6. Distinctive:

    Use repository-declared scripts and its selected package manager.

    line 22

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Next.js (optional)

Use this skill only in repositories that already use Next.js.

Inspect package.json, lockfile, Next.js configuration, TypeScript/lint/test configuration, router structure, and applicable AGENTS.md first.

Working rules

  • Follow the repository's existing App Router / Pages Router conventions rather than migrating routers opportunistically.
  • Preserve server/client component boundaries and keep secrets/server-only data out of client bundles.
  • Treat caching, revalidation, redirects, error/loading states, hydration, and route behavior as part of correctness when affected.
  • Avoid assuming a specific hosting provider or deployment architecture.
  • Use semantic, accessible markup and established styling/component conventions.

Validation

Use repository-declared scripts and its selected package manager. Validate type/static checks, tests, build, and existing browser/E2E coverage as required.

For user-visible changes, run ui-validation against the real application.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.