onpage-optimization

onpage-optimization is a skill for Claude Code, Codex from thisisAhsanIqbal/nextjs-seo-audit. It costs 34 tokens per session (951 once invoked), scanned A, original, MIT.

An on-page SEO checker for the words, headings, and links visible within an HTML page.

In plain words
What is it for?
Use it to audit heading structure, keyword density and placement, internal links, and external link structure where applicable.
Why use it?
It finds issues such as missing or duplicated main headings, skipped heading levels, weak keyword use, and unhealthy internal links.

Skill for Claude CodeCodex

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **Note**: This skill owns **internal link analysis**. For external/outbound link strategy (dofollow/nofollow, anchor text quality, domain diversity), see the [b.

Good fit Use it to audit heading structure, keyword density and placement, internal links, and external link structure where applicable.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/thisisAhsanIqbal/nextjs-seo-audit
agentmods
npx agentmods add skills/thisisahsaniqbal/nextjs-seo-audit/onpage-optimization

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 onpage-optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/thisisahsaniqbal/nextjs-seo-audit/onpage-optimization/github.svg)](https://agentmods.dev/skills/thisisahsaniqbal/nextjs-seo-audit/onpage-optimization)
Your own site
<a href="https://agentmods.dev/skills/thisisahsaniqbal/nextjs-seo-audit/onpage-optimization"><img src="https://agentmods.dev/badge/skills/thisisahsaniqbal/nextjs-seo-audit/onpage-optimization/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 onpage-optimization

Your own site · 80×15
<a href="https://agentmods.dev/skills/thisisahsaniqbal/nextjs-seo-audit/onpage-optimization"><img src="https://agentmods.dev/badge/skills/thisisahsaniqbal/nextjs-seo-audit/onpage-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 951 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.00034 $0.00951
Opus 5.5 $0.00014 $0.00380
Sonnet 5.5 $0.00007 $0.00190
Haiku 4.5 $0.00003 $0.00095

Measured 2mo ago against content hash 22ef5451c0b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

onpage-optimization 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 2mo ago.

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/onpage-optimization/SKILL.md · 87 lines

How it starts

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

On-Page Optimization

Analyse the HTML page for heading structure, keyword usage, and link health.

Note: This skill owns internal link analysis. For external/outbound link strategy (dofollow/nofollow, anchor text quality, domain diversity), see the backlink-monitoring skill.

1. Heading validation

Check all <h1> through <h6> elements:

Check Status Rule
No headings at all ❌ FAIL Every page must have at least one heading
No <h1> tag ❌ FAIL Every page must have exactly one <h1>
Multiple <h1> tags ⚠️ WARN Recommend a single <h1> per page
Hierarchy skipped (e.g. H2 → H4) ⚠️ WARN Headings should follow sequential order: H1 → H2 → H3
Empty heading (no text content) ❌ FAIL All headings must have descriptive text
Single H1, proper hierarchy ✅ PASS Heading structure is correct

2. Keyword analysis

If a target keyword is provided, check its usage across the page:

Keyword density

  • Calculate: (keyword_count / total_words) × 100
  • Ideal range: 1.0–3.0%
  • Below 1.0% → ⚠️ WARN "Keyword density is low"
  • Above 3.0% → ❌ FAIL "Keyword stuffing detected"
  • Within range → ✅ PASS

Keyword placement — check all of these:

Location How to check Missing =
<title> tag Does the title contain the keyword? ⚠️ WARN
<h1> tag Does the H1 text contain the keyword? ⚠️ WARN
Meta description Does <meta name="description"> contain the keyword? ⚠️ WARN
First <p> tag Does the first paragraph contain the keyword? ⚠️ WARN
Image alt text Does any <img alt="..."> contain the keyword? ⚠️ WARN

Title keyword position

  • Keyword at position 0 (start of title) → ✅ PASS "Best placement"
  • Keyword at position ≤ 20 → ✅ PASS "Near the start"
  • Keyword at position > 20 → ⚠️ WARN "Place it earlier for better ranking"

Examine all <a href="..."> elements:

Classify links

Read the full file on GitHub · 87 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. 2mo ago First seen · 87 lines · 34 tokens per session scan A 22ef5451c0b9

Subscribe to this mod's changes

onpage-optimization is a skill published in the GitHub repository thisisAhsanIqbal/nextjs-seo-audit (7 stars, last pushed 8mo ago), licensed MIT. It adds 34 tokens to every session and 951 once invoked, about $0.0001 per session on Opus 5.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-08-31.

Related

onpage-optimization compared with skills from other repositories

onpage-optimization next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
onpage-optimizationthisisAhsanIqbal/nextjs-seo-auditSkill78mo agoMITA34Claude Code, Codex
podlite-markuppodlite/podlite-skillsSkill313d agoMITA47Claude Code
podlite-verifypodlite/podlite-skillsSkill313d agoMITA64Claude Code
wgmagent-frontier/wgmSkill33d agoMITA155Claude Code, Codex
ruggedagent-frontier/wgmSkill33d agoMITA182Claude Code, Codex
teach-meagent-frontier/wgmSkill33d agoMITA149Claude Code, Codex
quiz-meagent-frontier/wgmSkill33d agoMITB151Claude Code, Codex