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…
In this repositoryOne other file it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
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
- Distinctive: line 10
Present recommendations: when asked, not impose them
- Very specific: line 47
Keep each SKILL.md under 500 lines.
- Distinctive: line 48
All SEO rules must cite the reasoning (why it matters, what happens if you skip it)
- Distinctive: line 50
Use generic e-commerce examples where relevant (URL patterns, locale codes, schema patterns)
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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.
Files
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 Router | Pages Router |
generateMetadata() / metadata export | <Head> from next/head + getStaticProps / getServerSideProps |
app/[locale]/page.tsx | pages/[locale]/index.tsx |
| Server Components (default) | getServerSideProps / getStaticProps for server-side data |
generateStaticParams | getStaticPaths |
app/robots.ts / app/sitemap.ts | public/robots.txt + API route or build-time generation |
app/[locale]/not-found.tsx | pages/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 instructionsdocs/- 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.
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
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.

