Communityライティング&編集github.com

k97/skills

Agent Skills for AI coding agents. codebase-seo: SEO + GEO audit that traces redirect loops, lints JSON-LD, and applies the fixes in your codebase.

skills とは?

skills is a Claude Code agent skill that agent Skills for AI coding agents. codebase-seo: SEO + GEO audit that traces redirect loops, lints JSON-LD, and applies the fixes in your codebase.

対応Claude Code~Codex CLI~Cursor
npx skills add k97/skills

Installed? Explore more ライティング&編集 skills: steipete/notion, affaan-m/seo, affaan-m/brand-voice · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

codebase-seo

Audit, then GEO review, then apply fixes. Next.js / TypeScript defaults; follow whatever the repo already uses. ${CLAUDE_SKILL_DIR} is this skill's directory — the working directory is the user's project, so address bundled files through it.

FlagPhaseWrites code
--audit1 — technical SEOno
--geo2 — AI-citation readinessno
--fix3 — apply findings already in contextyes
--full1 → 2 → 3 (default)yes

--routes /,/pricing narrows scope; default is every route.

Setup

  • Prefer a local path and a live URL. Each catches what the other cannot.
  • Read .agents/product-marketing.md or .claude/product-marketing.md if either exists. Ask only what it does not answer.
  • --fix needs reports in context. If absent, run --full.

Scripts

Needs curl and Node 18+, nothing to install. Run these before reading source: they produce the evidence, source inspection explains it. Each exits non-zero on an error-level finding. Add --json to the Node scripts for structured output.

bash "${CLAUDE_SKILL_DIR}/scripts/redirect-trace.sh" example.com /pricing /blog
node "${CLAUDE_SKILL_DIR}/scripts/extract-jsonld.mjs" https://example.com/pricing
node "${CLAUDE_SKILL_DIR}/scripts/audit-meta.mjs" https://example.com/pricing
node "${CLAUDE_SKILL_DIR}/scripts/audit-meta.mjs" out/pricing.html --base https://example.com

Pass real routes to redirect-trace.sh — loops often hide on deep paths, not on /.

All three read server-rendered HTML only. Client-injected JSON-LD is invisible to them, as it is to web_fetch. Never write "no schema found" on a script's say-so; confirm in a browser.

Phase 1 — technical audit (--audit)

Read ${CLAUDE_SKILL_DIR}/references/technical-audit.md and work its checklist. Run the scripts first, then use source to locate and explain each finding.

Report per finding:

File: app/page.tsx:37-41
Severity: Critical | High | Medium | Low
Root cause: <one sentence>
Impact: <what breaks in search, social, or AI citation>
Fix: <minimal change, file + line>
Effort: <5 min | 30 min | product decision>

Group by severity, then close with a table: # | Finding | Severity | Effort | Blocks release?

Phase 2 — GEO review (--geo)

Read ${CLAUDE_SKILL_DIR}/references/geo.md. JSON-LD to copy: ${CLAUDE_SKILL_DIR}/references/schema-recipes.md.

Check bot access first — if the crawlers are blocked, nothing else in this phase matters.

Two claims to never make: that schema types have a citation-yield ranking "per Princeton research" (that study tested content tactics, not schema), and any projected traffic lift. Neither is observable from a codebase, and inventing them discredits the real findings.

Group output as Schema gaps, Content opportunities, Architecture decisions.

Phase 3 — fix (--fix)

Applies the Phase 1 and Phase 2 findings. Edit the working tree and stop — no git add, no git commit. Review and commit belong to the user.

  • Match the repo's framework, file layout, and spelling. Do not impose a dialect.
  • Name the exact file and line before each edit. Minimal change, no drive-by refactors, no any.
  • Wire schema fields to real data sources; never hardcode a value that drifts.
  • Never invent an aggregateRating. Remove it and list it under "needs real data".
  • Skip i18n architecture, copy outside schema descriptions, and anything the report marks as needing product input.

Host redirects — hard rule. An app-level www↔apex, httphttps, or trailing-slash redirect that duplicates one the hosting platform already performs will ping-pong, produce ERR_TOO_MANY_REDIRECTS, and take the site down. Leave host canonicalisation to the platform. Fix a loop by removing the app-level redirect, never by adding another. When canonical and landed host merely disagree, change the metadata to match the host actually served — not the redirect to match the metadata.

Batch 1: every Critical, High, and Medium finding from Phase 1, in severity order. Batch 2: the Phase 2 schema work.

Verify before reporting done. Never claim success on the strength of the edits alone.

  1. The project builds (npm run build, or whatever the repo uses).
  2. extract-jsonld.mjs lints clean against the built HTML or a dev server.
  3. audit-meta.mjs passes on every changed route.
  4. redirect-trace.sh, if any redirect was touched.

Report any step you could not run, and why.

Output sections: Changed (by batch), Verification, Needs a product decision, Needs real data.

関連スキル

steipete/notion

Notion CLI/API for pages, Markdown content, data sources, files, comments, search, Workers, and raw API calls.

community

affaan-m/seo

Audit, plan, and implement SEO improvements across technical SEO, on-page optimization, structured data, Core Web Vitals, and content strategy. Use when the user wants better search visibility, SEO remediation, schema markup, sitemap/robots work, or keyword mapping.

community

affaan-m/brand-voice

Build a source-derived writing style profile from real posts, essays, launch notes, docs, or site copy, then reuse that profile across content, outreach, and social workflows. Use when the user wants voice consistency without generic AI writing tropes.

community

affaan-m/crosspost

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

community

affaan-m/x-api

X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.

community

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

community