agentleFS
mvstepanekmvstepanek/nextjs-ecommerce-seo-skills/CLAUDE.md

nextjs-ecommerce-seo-skills

CLAUDE.md1 starsChanged 8 months agoMITView on GitHub

This repository provides SEO-focused skills for AI coding assistants (Claude Code and GitHub Copilot), targeting Next.js e-commerce sites. These skills are suggestions and guidelines only. The AI assistant should: - Not auto-fix code based on these rules — only flag potential issues - Not make unsolicited changes — wait for the developer to explicitly request SEO improvements - Present recommendations when asked, not impose them Skills inform the assistant about SEO best practices so it can give good advice when…

The file

We split this CLAUDE.md into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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. Distinctive:

    Present recommendations: when asked, not impose them

    line 10
  2. Very specific:

    Keep each SKILL.md under 500 lines.

    line 47
  3. Distinctive:

    All SEO rules must cite the reasoning (why it matters, what happens if you skip it)

    line 48
  4. Distinctive:

    Use generic e-commerce examples where relevant (URL patterns, locale codes, schema patterns)

    line 50

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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
CLAUDE.md

Next.js E-commerce SEO Skills Repository

This repository provides SEO-focused skills for AI coding assistants (Claude Code and GitHub Copilot), targeting Next.js e-commerce sites.

Advisory Only

These skills are suggestions and guidelines only. The AI assistant should:

  • Not auto-fix code based on these rules — only flag potential issues
  • Not make unsolicited changes — wait for the developer to explicitly request SEO improvements
  • Present recommendations when asked, not impose them

Skills inform the assistant about SEO best practices so it can give good advice when asked. They are not a license to modify code unprompted.

Compatibility

  • Next.js: 15.x and 16.x
  • Routers: App Router and Pages Router

Code examples primarily use App Router conventions. For Pages Router projects, adapt accordingly:

App RouterPages Router
generateMetadata() / metadata export<Head> from next/head + getStaticProps / getServerSideProps
app/[locale]/page.tsxpages/[locale]/index.tsx
Server Components (default)getServerSideProps / getStaticProps for server-side data
generateStaticParamsgetStaticPaths
app/robots.ts / app/sitemap.tspublic/robots.txt + API route or build-time generation
app/[locale]/not-found.tsxpages/404.tsx
loading.tsx (Suspense boundary)Manual <Suspense> or loading states

API details (e.g. async params in Next.js 15+) may vary between versions — consult the Next.js documentation for your version.

Project Structure

  • .claude-plugin/ - Plugin and marketplace metadata (plugin.json, marketplace.json)
  • skills/ - Auto-triggered SEO skills (10 skills)
  • commands/ - Slash commands for SEO audits (/seo-audit-page, /seo-audit-component)
  • agents/ - Agent personas (SEO auditor)
  • global-skills/ - Global skills (copy to ~/.claude/skills/)
  • .github/ - GitHub Copilot instructions
  • docs/ - Documentation and installation guide

Conventions

  • Skills use YAML frontmatter with the fields: name, description, paths, disable-model-invocation, allowed-tools
  • Skill content is advisory only: checklists, guidelines, warnings — no auto-fix code
  • Keep each SKILL.md under 500 lines; use supporting files for detailed reference
  • All SEO rules must cite the reasoning (why it matters, what happens if you skip it)
  • Global skills are framework-specific but site-agnostic
  • Use generic e-commerce examples where relevant (URL patterns, locale codes, schema patterns)

Code Examples

Code examples throughout the skills use illustrative names and patterns — they are not prescriptive. Adapt them to your project's actual structure:

  • URL patterns (/products/{id}/{slug}, /categories/{slug}) — examples only. Your project may use different paths.
  • Config imports (@/config/site, SITE_URL, BRAND_NAME) — represent the concept of centralizing site config. Use whatever config pattern your project already has.
  • Function names (getProduct(), getCurrencyForLocale()) — placeholders for your actual data-fetching and utility functions.
  • Component names (JsonLd.tsx, Breadcrumbs.tsx) — example implementations. Name and structure components however fits your project.

The SEO principles matter, not the specific names or paths used in examples.

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.