seo-fix
Skill5 starsChanged 36 days agoMITView on GitHub
Preview and safely apply additive HTML metadata remediations (charset, viewport, lang, title, description, canonical, Open Graph, Twitter card, favicon) on local files using one-step-seo fix.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- greglas75/zuvotheir own version, first seen Oct 16, 2026
- chajahmed/claude-seo-agenttheir own version, first seen Jul 19, 2026
- matthewcsimpson/agentic-playbookstheir own version, first seen Jun 24, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- greglas75/zuvo★ 7same name
- chajahmed/claude-seo-agent★ 0same name
- matthewcsimpson/agentic-playbooks★ 0same 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 repository24 other files it gives its agents.
- one-step-seoSkill
- accessibility-seoSkill
- answer-engine-optimizationSkill
- content-qualitySkill
- core-web-vitalsSkill
- duplicate-contentSkill
- ecommerce-seoSkill
- entity-optimizationSkill
- geo-optimizationSkill
- http-statusSkill
- image-seoSkill
- internal-linkingSkill
- international-seoSkill
- javascript-seoSkill
- llms-txtSkill
- local-seoSkill
- onpage-optimizationSkill
- schema-validationSkill
- security-hygieneSkill
- seo-auditSkill
- seo-regressionSkill
- sitemap-robotsSkill
- social-metadataSkill
- technical-seoSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 1 is distinctive, and 6 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
1
Distinctive
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
- Very specific: line 15
Always run in preview (dry-run) mode first and obtain explicit user confirmation before passing --apply.
- Distinctive: line 31
Check git status --short on the target files so uncommitted work is noted before any edits.
- Very specific: line 42
Run npx one-step-seo page <path> --offline and compare against the pre-fix report.json using npx one-step-seo diff old-report.json …
- Very specific: line 73
Refused by design: Never removes noindex, never fabricates image alt text (O08-alt requires inspecting the image), never rewrites existing …
- Very specific: line 74
Framework templates: If ./dist is generated by Next.js, Astro, Remix, or WordPress, inform the user that patching ./dist proves the fix, …
- Very specific: line 79
Keep backups enabled: Do not pass --no-backup unless the user explicitly asks to omit .bak files in a clean git working tree.
- Very specific: line 80
Never invent facts: Never pass made-up company names, phone numbers, pricing, or ratings into --title, --description, or schema snippets.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
seo-fix — Conservative Preview-First Remediation
1. Description & Activation Criteria
Use seo-fix when:
- An audit (
report.json) has identified fixable HTML<head>defects on local.html/.htmfiles or a static build directory. - The user asks to remediate, patch, or auto-fix SEO findings in their project.
Always run in preview (dry-run) mode first and obtain explicit user confirmation before passing --apply.
2. Inputs & Prerequisites
- Target path (required): Local
.html/.htmfile, directory, orfile://URL. - Explicit metadata flags (recommended so values are never guessed):
--url <https://...>: Canonical andog:urltarget.--lang <bcp47>: Document language for<html lang="...">(required forlangfixer; never guessed).--title <text>: Explicit<title>(otherwise derived conservatively from the first<h1>).--description <text>: Explicit meta description (otherwise derived from opening body prose>=40chars).--og-image <https://...>: Absolute image URL forog:image.--only <fixers>: Comma-separated subset of fixers (charset,viewport,lang,title,description,canonical,og,og-url,twitter-card,favicon).
3. Step-by-Step Workflow
- Inspect current git status:
- Check
git status --shorton the target files so uncommitted work is noted before any edits.
- Check
- Run a dry-run preview (no
--apply):- Execute
npx one-step-seo fix <path> --url <canonical-url> --lang <lang>(without--apply). - Inspect the planned fixes, skipped fixers (with reasons), and unified diff output.
- Execute
- Present the diff and request approval:
- Show the user the exact unified diff and list which finding IDs (
T10-charset,T11-viewport,T09-lang,O01-title-missing,O02-meta-missing,T08-canonical,O06-og,W02-og-url,W01-social,O07-favicon) will be cleared. - For findings that
fixintentionally refuses to auto-edit (e.g.,O08-alt,T07-noindex,C01-thin,S01-none), present copy-paste snippets fromreport.md/lib/finding-meta.mjs.
- Show the user the exact unified diff and list which finding IDs (
- Apply approved fixes with backups:
- Once approved, run
npx one-step-seo fix <path> ... --apply. - Confirm in-memory verification marks (
verified: ... check) and.bakbackup creation.
- Once approved, run
- Re-audit to verify score improvement:
- Run
npx one-step-seo page <path> --offlineand compare against the pre-fixreport.jsonusingnpx one-step-seo diff old-report.json new-report.json.
- Run
4. Tools & CLI Commands
# Step 1: Dry-run preview (default, writes nothing)
npx one-step-seo fix ./dist/index.html --url https://example.com/ --lang en
# Step 2: Machine-readable fix plan for agent inspection
npx one-step-seo fix ./dist --url https://example.com/ --lang en --json
# Step 3: Apply after user approval (writes *.bak backups by default)
npx one-step-seo fix ./dist/index.html --url https://example.com/ --lang en --apply5. Evidence Requirements
- Cite every planned fixer by its
name,findingId, andsummaryfrom theone-step-seo fixoutput. - Report every skipped fixer and its exact
reason(e.g.,--lang not provided (language is never guessed)orexisting non-UTF-8 charset is never overwritten). - Show the before/after
Search SEOandAI Visibilityscores from re-auditing the patched file.
6. Expected Outputs
- Planned Fix Table: Fixer name, target finding ID, action summary, and verification status (
cleared: true | partial). - Unified Diff Preview: Exact
<head>insertions to be made. - Manual Remediation Snippets: Structured JSON-LD or content recommendations for issues outside the 10 additive fixers.
- Post-Apply Verification: Output of
one-step-seo diffconfirming resolved findings and zero regressions.
7. Limitations & External Data
- Additive
<head>fixes only:one-step-seo fixonly inserts missing metadata into local HTML files containing a<head>tag. - Refused by design: Never removes
noindex, never fabricates imagealttext (O08-altrequires inspecting the image), never rewrites existing short/long titles or descriptions, and never overwrites non-UTF-8 encodings. - Framework templates: If
./distis generated by Next.js, Astro, Remix, or WordPress, inform the user that patching./distproves the fix, and help port the metadata tags to their source layout component.
8. Safety & Approval Rules
- Never run
--applywithout prior user approval of the dry-run diff. - Keep backups enabled: Do not pass
--no-backupunless the user explicitly asks to omit.bakfiles in a clean git working tree. - Never invent facts: Never pass made-up company names, phone numbers, pricing, or ratings into
--title,--description, or schema snippets.
9. Examples
# Preview only canonical and Open Graph fixes on a local file
npx one-step-seo fix ./public/pricing.html \
--only canonical,og,og-url,twitter-card \
--url https://example.com/pricing \
--og-image https://example.com/images/pricing-og.png
# Apply approved fixes and verify with diff
npx one-step-seo fix ./public/pricing.html \
--only canonical,og,og-url,twitter-card \
--url https://example.com/pricing \
--og-image https://example.com/images/pricing-og.png \
--applyDoes 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
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.

