on-page-sgeo

on-page-sgeo is a skill for Claude Code, Codex from The-AI-Directory-Company/agents-and-skills. It costs 48 tokens per session (5,671 once invoked), scanned A, original, MIT.

A page-level optimization method for appearing in traditional search results and being cited by AI answer systems. It covers page titles, descriptions, headings, links, images, structured data, and answer-focused content.

In plain words
What is it for?
Use it to improve individual pages through better metadata, page structure, URLs, internal links, images, structured data, and direct answers.
Why use it?
It helps make a page easier for search engines and AI systems to understand, find, and use when answering related questions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to improve individual pages through better metadata, page structure, URLs, internal links, images, structured data, and direct answers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/the-ai-directory-company/agents-and-skills/on-page-sgeo
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add The-AI-Directory-Company/agents-and-skills --skill on-page-sgeo
Clone the repo
git clone --depth 1 https://github.com/The-AI-Directory-Company/agents-and-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for on-page-sgeo

README.md
[![agentmods](https://agentmods.dev/badge/skills/the-ai-directory-company/agents-and-skills/on-page-sgeo/github.svg)](https://agentmods.dev/skills/the-ai-directory-company/agents-and-skills/on-page-sgeo)
Your own site
<a href="https://agentmods.dev/skills/the-ai-directory-company/agents-and-skills/on-page-sgeo"><img src="https://agentmods.dev/badge/skills/the-ai-directory-company/agents-and-skills/on-page-sgeo/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for on-page-sgeo

Your own site · 80×15
<a href="https://agentmods.dev/skills/the-ai-directory-company/agents-and-skills/on-page-sgeo"><img src="https://agentmods.dev/badge/skills/the-ai-directory-company/agents-and-skills/on-page-sgeo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,671 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.05671
Opus 5 $0.00024 $0.02835
Sonnet 5 $0.00010 $0.01134
Haiku 4.5 $0.00005 $0.00567

Measured 8d ago against content hash 2979b33fe697, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

on-page-sgeo scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 8 executable files (scripts/analyze-headings.py, scripts/audit-page.py, scripts/check-direct-answer.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/on-page-sgeo/SKILL.md · 442 lines

How it starts

The opening of the file, as written. The whole thing — 442 lines — stays where its author put it; the contents beside it link to each section on GitHub.

On-Page SGEO Optimization

On-page SGEO (Search Generative Engine Optimization) is the practice of optimizing individual page elements so the page both ranks in traditional search results and gets cited by AI platforms (ChatGPT, Perplexity, Gemini, Copilot). Every section below addresses both dimensions together — SEO impact and GEO impact are not separate concerns.

This is skill 2 of 4 in the SGEO series: technical-sgeo > on-page-sgeo > content-sgeo > off-page-sgeo.

Before you start

Gather the following from the user. If anything is missing, ask before proceeding:

  1. Target page URL — The live URL being optimized, or a description of the page being created.
  2. Primary keyword / topic — The main query or subject the page should rank for and be cited on.
  3. Search intent — Informational, navigational, commercial, or transactional. This determines the optimal page structure.
  4. Target audience — Who this page is for (developers, marketers, executives, general consumers, etc.).
  5. Existing performance data — Google Search Console impressions, average position, CTR, and top queries if the page already exists. Omit for new pages.
  6. AI citation priority — Whether this page should be optimized for AI citation (high, medium, low). High priority pages get extra GEO formatting.
  7. Related pages on the site — Pages that should link to/from this one. Needed for internal linking recommendations.
  8. Competitor pages ranking for the same keyword — Top 3-5 URLs currently ranking, for gap analysis.

Tool discovery

Before gathering project details, confirm which tools are available. Ask the user directly — do not assume access to any external service.

Free tools (no API key required):

  • WebFetch (fetch any public URL — robots.txt, sitemaps, pages)
  • WebSearch (search engine queries for competitive analysis)
  • Google PageSpeed Insights API (CWV data, no key needed for basic usage)
  • Google Rich Results Test (structured data validation)
  • Playwright MCP or Chrome DevTools MCP (browser automation)

Read the full file on GitHub · 442 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 442 lines · 48 tokens per session scan A 2979b33fe697

Subscribe to this mod's changes

on-page-sgeo is a skill published in the GitHub repository The-AI-Directory-Company/agents-and-skills (2 stars, last pushed 5mo ago), licensed MIT. It adds 48 tokens to every session and 5,671 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

writing-workflow-skills

Use when adding a new workflow skill to pi-thinkrail-workflow, changing an existing workflow skill's role, trigger, handoff, or structure, or checking a workflow skill against the workflow system's rules. Not for authoring general-purpose skills outside this package.

JetBrains/thinkrail · 60 tokens

case-interview-practice

Interactive consulting case interview practice with structured frameworks, feedback mechanisms, and progressive difficulty. Use when preparing for management consulting interviews, case competitions, or business problem-solving exercises.

travisjneuman/.claude · 39 tokens

i18n-localization

Internationalization and localization for global applications. Use when adding multi-language support, handling regional formats, or preparing apps for global markets.

travisjneuman/.claude · 32 tokens

electron-desktop

Desktop application development with Electron for Windows, macOS, and Linux. Use when building cross-platform desktop apps, implementing native OS features, or packaging web apps for desktop.

travisjneuman/.claude · 38 tokens

finance

Financial analysis expertise for financial modeling (DCF, LBO, M&A), valuation, financial statement analysis, capital allocation, treasury management, and corporate finance decisions. Use when building financial models, analyzing statements, or making investment decisions.

travisjneuman/.claude · 48 tokens

investment-memo-generator

Investment memo creation combining financial analysis, document generation, and structured templates. Use when creating investment memos, pitch decks, deal summaries, or investment committee materials.

travisjneuman/.claude · 37 tokens