agentleFS
sofyanjamilsofyanjamil/growth-engine/skills/seo-engine/SKILL.md

seo-engine

Skill0 starsChanged 6 months agoMITView on GitHub

Use when generating SEO + AI-SEO content (programmatic pages, schema.org markup, llms.txt manifests, sitemap) for the current product. Builds the full 5-pillar architecture (/blog, /vs, /alternatives, /integrations, /glossary), performs free keyword research (Google autosuggest + PAA + Reddit/Quora + competitor teardown), and produces a codebase-specific WIRE-UP.md with framework-correct edits. Optimized for both classic Google search and AI-powered search (ChatGPT, Perplexity, Claude, Gemini).

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. kevinbadi/seo-agent-kit★ 9same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If any are missing, ABORT and prompt user to run /growth-market first.

    line 23
  2. Very specific:

    Write to keywords.md as a structured markdown table per pillar.

    line 55
  3. Very specific:

    Read every generated .md frontmatter to verify schema completeness.

    line 89
  4. Very specific:

    Verify internal-link graph: every internal_links[] entry actually points to a page that was generated.

    line 90
  5. Distinctive:

    Verify pillar-specific structural rules held (e.g.

    line 91
  6. Distinctive:

    If any page is structurally broken, dispatch a single follow-up Sonnet agent call to regenerate just that page.

    line 92
  7. Very specific:

    After generation, the skill returns control.

    line 141
  8. Very specific:

    If yes/preview → invoke /growth-wire slash command which reads WIRE-UP.md and applies edits interactively with per-edit confirmation.

    line 145

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
SKILL.md

seo-engine

5-pillar SEO + AI-SEO content generator. Produces ./growth/03-seo/.

When to invoke

  • User asks: "generate SEO content", "build programmatic SEO", "add a blog/glossary/comparison pages".
  • Invoked by /growth orchestrator as phase 3 of 3.
  • Standalone via /growth-seo.

Prerequisites

Requires:

  • ./growth/references/icp.md — for audience-aligned keyword targeting.
  • ./growth/references/positioning.md — for product-led content angles.
  • ./growth/references/competitors.md — for /vs and /alternatives pages.

If any are missing, ABORT and prompt user to run /growth-market first.

Three sub-phases

Phase A: Keyword research (free signals only)

Output: ./growth/references/keywords.md

Multi-source pipeline. NO paid APIs.

  1. Seed generation: From ICP + positioning, LLM produces ~20 seed keywords across 5 intents (informational, commercial, transactional, navigational, comparative).
  2. Google autosuggest expansion:
    • WebFetch https://suggestqueries.google.com/complete/search?client=firefox&q=<seed> for each seed.
    • Parse JSON response, extract suggestions.
    • Also WebFetch https://www.google.com/search?q=<seed> for the PAA box and "Related searches" section at bottom.
  3. Reddit / Quora question mining:
    • WebSearch site:reddit.com "<problem space>" — surface top threads.
    • WebSearch site:quora.com "<problem space>".
    • WebFetch 2-3 top threads → extract titles + top comment questions.
  4. Competitor teardown:
    • For each competitor URL in competitors.md:
      • WebFetch <competitor>/sitemap.xml if exposed.
      • WebFetch <competitor>/blog to extract their indexed blog titles.
      • WebSearch site:<competitor-domain> to discover their indexed pages.
    • Map each competitor URL to inferred target keyword (from title + H1).
  5. LLM consolidation:
    • Cluster all discovered keywords into 5 buckets (one per pillar).
    • Tag each with: intent, estimated_volume (low/medium/high based on autosuggest depth + PAA presence), competition (qualitative), target_persona.
    • Write to keywords.md as a structured markdown table per pillar.

Phase B: Page generation (strategy here on Opus, writing dispatched to Sonnet agents)

Output: ./growth/03-seo/pages/<pillar>/<slug>.md and .html

Page volume per --depth flag:

Flag/blog/vs/alternatives/integrations/glossaryTOTAL
--depth lean (default for dry runs)3222514
--depth standard (DEFAULT)55551030
--depth deep1510101060105

Two-tier model split — strategy stays in this skill (parent model, typically Opus); body writing dispatches to the seo-page-writer agent (Sonnet, cost-efficient for prose).

B.1 Strategy (this skill, Opus by inheritance) — for each page across all pillars:

  1. Pick top-scoring keyword from the pillar bucket in keywords.md.
  2. Identify target persona, search intent, target word count (per pillar).
  3. For /vs and /alternatives: bind to a specific competitor from competitors.md.
  4. For /glossary: extract the canonical term.
  5. Author an og_image_description (model-agnostic — the agent doesn't write images, it only references this in frontmatter).
  6. Resolve internal-link slugs (which other pages in this run does this page link to? — anchor the linking graph globally).
  7. Assemble a complete page brief per ${CLAUDE_PLUGIN_ROOT}/agents/seo-page-writer.md "Your inputs" spec.

Group page briefs by pillar.

B.2 Writing (5 parallel seo-page-writer agents, Sonnet) — spawn one agent per pillar (5 total, in parallel via a single message with 5 Agent calls):

  • Each agent receives all briefs for its pillar.
  • Each agent reads the shared references/ lib (same as this skill) and the plugin's seo-patterns.md + ai-seo-tactics.md + output-schemas.md.
  • Each agent writes <slug>.md + <slug>.html for every page in its pillar — applying the pillar template, embedding schema.org, injecting citation magnets, writing semantic HTML preview.
  • Each agent returns a SHORT summary (pillar, pages completed, avg word count, flags).

B.3 Post-fanout review (this skill, Opus):

  1. Read every generated .md frontmatter to verify schema completeness.
  2. Verify internal-link graph: every internal_links[] entry actually points to a page that was generated. If a link is dangling (e.g. promised a glossary slug that didn't make it into Phase B), either regenerate that glossary entry or rewrite the source page's link.
  3. Verify pillar-specific structural rules held (e.g. /vs pages have a comparison table, /glossary pages have a definition-first sentence).
  4. If any page is structurally broken, dispatch a single follow-up Sonnet agent call to regenerate just that page.

Phase C: Site-wide artifacts + wire-up

Output: ./growth/03-seo/llms.txt, llms-full.txt, sitemap.xml, robots.txt (suggested), WIRE-UP.md.

  1. llms.txt — index of top ~30 most important pages per ai-seo-tactics.md §1 format.
  2. llms-full.txt — every generated page.
  3. sitemap.xml — every generated page with priority hints per ai-seo-tactics.md §6.
  4. robots.txt — suggested content, explicitly allows GPTBot, ClaudeBot, Perplexity-User, OAI-SearchBot, Google-Extended.
  5. WIRE-UP.md — codebase-specific implementation plan. Steps:
    • Detect framework by reading package.json:
      • next → Next.js (note App Router vs Pages Router by checking dir).
      • astro → Astro.
      • @sveltejs/kit → SvelteKit.
      • vue + @vitejs/plugin-vue → Vue.
      • Otherwise → plain HTML / static.
    • Detect styling: tailwind config? CSS modules? styled-components?
    • Emit framework-correct snippets for each pillar:
      • Next.js App Router: src/app/<pillar>/[slug]/page.tsx + content dir + generateStaticParams.
      • Astro: src/content/<pillar>/<slug>.md with content collection schema.
      • SvelteKit: src/routes/<pillar>/[slug]/+page.svelte + +page.server.ts.
    • Idempotency markers: each generated edit includes a comment marker like // @growth-engine:wire-up:<edit-id> so re-running detects already-applied edits.

Outputs

./growth/03-seo/
├── pages/
│   ├── blog/
│   │   ├── <slug>.md   (frontmatter + body)
│   │   └── <slug>.html (rendered preview, semantic HTML)
│   ├── vs/
│   ├── alternatives/
│   ├── integrations/
│   └── glossary/
├── llms.txt
├── llms-full.txt
├── sitemap.xml
├── robots.txt
└── WIRE-UP.md

Plus update to:

  • ./growth/references/keywords.md

Codebase auto-wire prompt

After generation, the skill returns control. The /growth orchestrator (or standalone /growth-seo) then asks:

"SEO generation complete. 30 pages at ./growth/03-seo/. Would you like to wire these into your codebase now? (yes / preview / skip)"

If yes/preview → invoke /growth-wire slash command which reads WIRE-UP.md and applies edits interactively with per-edit confirmation.

The seo-engine skill itself NEVER writes to source code. All codebase writes go through growth-wire.

Flags

  • --depth lean|standard|deep (default standard)
  • --pillars blog,vs,alternatives,integrations,glossary — comma list to restrict.
  • --no-llms-txt — skip llms.txt generation (rarely useful).
  • --lang en — content language. SEO content is currently single-language per run; for multi-lang, run the skill once per language with different output dirs (consider hreflang as future extension).

Verification

After running:

  • All requested pages exist as .md + .html pairs.
  • Every .md frontmatter validates against output-schemas.md §4.
  • Every page has at least 1 schema.org block + 1 citation magnet + 3 internal links.
  • llms.txt and sitemap.xml reference every generated page.
  • WIRE-UP.md correctly identifies the detected framework.
  • Spot-check 1 page per pillar: H1 is entity-first, FAQ block has 4+ entity-rich Q&As, internal links resolve to other generated pages.

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.