本文へ移動
cccskills
無料GitHub で公開

sophon

Master context for Sophon — an agentic programmatic SEO toolkit. Teaches the framework, entity model, adapter system, and operating rules. Invoke this skill before using discover, generate, technical, enrich, optimize, or run so you have the full context. Call with 'teach' to run the onboarding interview and create .sophon.md.

日本語の概要は準備中です。原文の説明を表示しています。

インストール方法を見る

含まれるファイル(1)

  • SKILL.md7.2 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Sophon is an open-source programmatic SEO toolkit that turns a seed keyword or entity list into framework-specific pages, sitemaps, schema markup, internal linking data, and optional AI enrichment outputs.

Context Gathering Protocol

Sophon produces generic, low-quality output without project context. Every skill MUST have confirmed project context before doing any work.

Gathering order — follow exactly:

  1. Check loaded instructions (instant): If your instructions already contain a ## Sophon Project Context section, proceed immediately.
  2. Check .sophon.md (fast): Read .sophon.md from the project root. If it exists and contains the required fields, proceed.
  3. Run sophon teach (REQUIRED): If neither source has context, run this skill with the teach argument NOW. Do NOT skip this. Do NOT attempt to infer context from the codebase — code tells you what exists, not what the user is trying to achieve.

Required context fields:

  • Niche / seed keyword — What topic or market is this SEO surface targeting?
  • Framework — Next.js, Astro, Nuxt, SvelteKit, or Remix
  • Site URL — Base URL for sitemap and schema generation
  • Content goal — What should each page accomplish? (rank for long-tail, capture leads, drive signups, etc.)
  • Entity source — Seed keyword expansion, CSV import, or existing data/entities.json
  • AI enrichment — Is ANTHROPIC_API_KEY available for content generation?

teach

When invoked as sophon teach, run this onboarding interview. Ask these questions one group at a time — do not dump all questions at once.

Group 1: Project basics

I'll ask a few quick questions so Sophon can work properly with your project. Let's start with the basics.

  1. What is the niche or topic you want to build a programmatic SEO surface for? (e.g. "best payroll software for small teams")
  2. What is your site's base URL? (e.g. https://mysite.com)
  3. Which framework does your project use? (Next.js, Astro, Nuxt, SvelteKit, Remix — or I can auto-detect)

Group 2: Content strategy

  1. What is the goal of each generated page? (e.g. rank for long-tail keywords, capture leads, drive free trial signups, build topical authority)
  2. Who is your target audience? (e.g. HR managers at SMBs, freelance designers, e-commerce store owners)
  3. What makes your offering different from what competitors rank for today?

Group 3: Technical setup

  1. How will you source entities? Choose one:
    • Seed keyword expansion (Sophon scaffolds entities from your niche)
    • CSV file (you provide a file with entity names and attributes)
    • Existing data/entities.json
  2. Do you have an ANTHROPIC_API_KEY for AI content enrichment? (yes / no / I'll add it later)

After the interview

Write all answers into .sophon.md at the project root using this exact format:

## Sophon Project Context

- **Niche**: [answer]
- **Site URL**: [answer]
- **Framework**: [answer]
- **Content goal**: [answer]
- **Target audience**: [answer]
- **Differentiator**: [answer]
- **Entity source**: [seed | csv | existing]
- **AI enrichment**: [yes | no | pending]

Then confirm:

Context saved to .sophon.md. You're ready to run Sophon skills. Next step: use the discover skill to find entities, or run to execute the full pipeline.


Core Concepts

Entity Model

Every Sophon workflow starts with entities — normalized records that represent the subjects of generated pages.

type EntityRecord = {
  id: string;              // deterministic, source-agnostic slug hash
  name: string;            // display name
  slug: string;            // URL-safe identifier
  source: "csv" | "seed";
  seedKeyword?: string;    // originating niche when discovered from seed
  metadata: {
    title?: string;
    description?: string;
    tags?: string[];       // used for internal linking scores
    attributes: Record<string, string>; // CSV columns or enrichment data
    ogImage?: string;      // OG image URL for social cards and hero images
    generatedAt?: string;  // ISO timestamp set during discovery for freshness tracking
    enrichedAt?: string;   // ISO timestamp set during enrichment, used for sitemap lastmod
  };
};

Entity IDs are deterministic — the same normalized entity produces the same ID whether it comes from a CSV or seed discovery. This makes discovery outputs composable and re-runnable without duplication.

Adapters

Sophon generates framework-specific static pages via adapters:

FrameworkOutput path
Next.jsapp/[slug]/page.tsx
Astrosrc/pages/[slug].astro
Nuxt 3pages/[slug].vue
SvelteKitsrc/routes/[slug]/+page.svelte + +page.ts
Remixapp/routes/[slug].tsx

For SvelteKit, always generate both files: +page.svelte contains the component; +page.ts contains the prerenderable entity payload.

Workflow Skills

Sophon breaks its workflow into composable skills. Each step corresponds to a CLI command and a programmatic API:

SkillCLIPurpose
discoversophon discoverFind entities from seed or CSV
generatesophon generateGenerate framework pages with JSON-LD schema and fallback content
technicalsophon technicalSitemap (with index), robots, schema (BreadcrumbList, AggregateRating), FAQ schema, configurable internal links
enrichsophon enrichAI-powered content enrichment (concurrent, cached, retry, dry-run)
optimizesophon optimizeGSC-powered performance analysis and recommendations
blogsophon blogGenerate supporting blog outlines per entity
keywordssophon keywordsKeyword difficulty and opportunity analysis with CSV data import
qualitysophon qualityContent quality scoring (readability, structure)
humanizesophon humanizeRemove AI-isms and mechanical patterns from text
runsophon runFull pipeline

Operating Rules

  1. Inspect before editing. Read the host project's structure before generating anything.
  2. Prefer additive changes. Do not overwrite existing routes or application code.
  3. Keep outputs isolated. Generated files go into predictable folders (data/, framework output root, public/sophon/).
  4. Preserve host conventions. Align with the project's naming and folder patterns.
  5. Scaffold, never fabricate. If AI content generation is not wired, insert // TODO blocks — do not invent placeholder text.
  6. Surface warnings. Hallucination-prevention comments, YMYL warnings, and duplicate slug checks are built into generated output. Preserve them.

Context Gathering

See the Context Gathering Protocol at the top of this skill. If .sophon.md does not exist, run sophon teach before proceeding with any other skill.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

discover

無料

Discover and normalize entities for programmatic SEO from a seed keyword or CSV file. Writes normalized entities to data/entities.json. Use when the user wants to find, import, or expand a list of SEO targets.

日本語の概要は準備中です。原文の説明を表示しています。

Sophiasuu/Sophon82026年4月14日 更新

enrich

無料

Enrich discovered entities with AI-generated content using Claude via the Anthropic SDK. Outputs structured JSON per entity for downstream use in page templates. Requires ANTHROPIC_API_KEY (or use --dry-run to preview prompts).

日本語の概要は準備中です。原文の説明を表示しています。

Sophiasuu/Sophon82026年4月14日 更新

generate

無料

Generate one static framework page per entity using the appropriate Sophon adapter. Supports Next.js, Astro, Nuxt, SvelteKit, and Remix. Use when the user wants to scaffold programmatic SEO pages.

日本語の概要は準備中です。原文の説明を表示しています。

Sophiasuu/Sophon82026年4月14日 更新

optimize

無料

Pull real performance data from Google Search Console, analyze weak-performing pages, and generate actionable optimization recommendations. Optionally applies safe auto-fixes to Sophon-generated content.

日本語の概要は準備中です。原文の説明を表示しています。

Sophiasuu/Sophon82026年4月14日 更新

run

無料

Execute the full Sophon pipeline: discover → generate → technical → enrich. Use when the user wants to run all steps in one command or build a complete pSEO surface from scratch.

日本語の概要は準備中です。原文の説明を表示しています。

Sophiasuu/Sophon82026年4月14日 更新

technical

無料

Generate technical SEO assets: sitemap.xml (with sitemap index for large sites), robots.txt, per-entity schema markup (BreadcrumbList, AggregateRating), configurable internal link graph, and hreflang scaffold. Use when the user wants to add or update sitemap, robots, structured data, internal linking, or multilingual hreflang tags.

日本語の概要は準備中です。原文の説明を表示しています。

Sophiasuu/Sophon82026年4月14日 更新

Sophiasuu のスキルをすべて見る

このスキルの問題を報告する