跳到正文
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(原文)

安装前可以查看交给 AI 代理的指令内容。

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 的全部技能

报告此技能的问题