agentleFS
HouseofmvpsHouseofmvps/ultraship/skills/index-fix/SKILL.md

index-fix

Skill123 starsChanged 8 months agoMITView on GitHub

Diagnose and fix non-indexed pages using GSC and Bing Webmaster data. Finds exactly why each page isn't indexed and applies the fix.

  • Reads credentials

The file

Show its rules and text

We split this skill into the rules it gives an agent

32 rules. About 0 are common, 31 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈31

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If GSC is not configured, show setup guide and stop — GSC is required for URL inspection.

    line 20
  2. Distinctive:

    If Bing key is available:

    line 37
  3. Distinctive:

    Run the full diagnosis:

    line 49
  4. Distinctive:

    If the block is intentional, do NOT remove it — remove the page from the sitemap instead

    line 67
  5. Distinctive:

    If the block is unintentional, find the Disallow rule and modify it using the Edit tool

    line 68
  6. Distinctive:

    Verify the fix: the page should be crawlable

    line 69
  7. Very specific:

    If removal is confirmed appropriate, find <meta name="robots" content="noindex"> in the page HTML

    line 78
  8. Distinctive:

    Remove the noindex directive using the Edit tool

    line 79
  9. Distinctive:

    Check for X-Robots-Tag header in server config

    line 80
  10. Distinctive:

    Add substantial unique content (minimum 300 words)

    line 84
  11. Distinctive:

    Ensure the page returns HTTP 200 with real content

    line 85
  12. Distinctive:

    Remove any empty state or placeholder content

    line 86
  13. Distinctive:

    Add more unique, valuable content

    line 91
  14. Distinctive:

    Update sitemap and internal links to use the final destination URL

    line 103
  15. Distinctive:

    Remove the redirecting URL from sitemap

    line 104
  16. Distinctive:

    Remove from sitemap if it's truly a duplicate

    line 109
  17. Distinctive:

    Ensure the page loads correctly under load

    line 114
  18. Distinctive:

    Read the current robots.txt

    line 128
  19. Distinctive:

    Only edit rules that are clearly unintentional blocks on public content

    line 130
  20. Distinctive:

    Ensure important public paths are not blocked

    line 131
  21. Distinctive:

    Verify with the user that the page should be public: before removing noindex

    line 134
  22. Distinctive:

    Search HTML files for noindex tags

    line 135
  23. Distinctive:

    Remove them using Edit tool only after confirming they're not protecting sensitive content

    line 136
  24. Distinctive:

    Remove 404 and redirect URLs from sitemap

    line 144
  25. Distinctive:

    Add contextual links from high-traffic pages to non-indexed pages

    line 152
  26. Distinctive:

    Use descriptive anchor text with target keywords

    line 153
  27. Distinctive:

    After fixes, submit to both search engines:

    line 159
  28. Distinctive:

    Run the auto-fix command which diagnoses AND submits non-indexed URLs:

    line 178
  29. Distinctive:

    Always test new pages for noindex tags before deploying

    line 203
  30. Distinctive:

    Keep sitemap updated (auto-generate on deploy)

    line 204
  31. Distinctive:

    Ensure all pages have unique, substantial content

    line 206
  32. Distinctive:

    If fixes cause unexpected issues (pages appearing in search that shouldn't, traffic drops):

    line 221

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Index Fix — Get Every Page Indexed

Diagnose why pages aren't indexed in Google and Bing, fix the root causes, and resubmit for indexing. This skill uses real data from GSC URL Inspection API and Bing Webmaster Tools — no guessing.

Goal: 100% index coverage for pages that SHOULD be indexed. Not every URL belongs in the index — staging pages, admin panels, thin pagination, and intentionally private content should stay excluded.

Phase 1: Credential Check

Verify data sources:

  1. GSC (required): ULTRASHIP_GSC_CREDENTIALS or ULTRASHIP_GSC_ACCESS_TOKEN
  2. Bing (recommended): ULTRASHIP_BING_KEY

If GSC is not configured, show setup guide and stop — GSC is required for URL inspection.

Phase 2: Index Coverage Overview

Get the current index state:

node ${CLAUDE_PLUGIN_ROOT}/tools/index-doctor.mjs coverage <site-url>

This shows:

  • Total pages submitted via sitemaps
  • Total pages indexed
  • Index rate percentage
  • Health status (HEALTHY/WARNING/CRITICAL)

Phase 3: Cross-Engine Comparison

If Bing key is available:

node ${CLAUDE_PLUGIN_ROOT}/tools/index-doctor.mjs compare <site-url> <sitemap-url>

Compare Google vs Bing indexing to find:

  • Pages indexed by Google but not Bing (submit to Bing)
  • Pages indexed by Bing but not Google (investigate Google issues)
  • Overall gap analysis

Phase 4: Diagnose Non-Indexed Pages

Run the full diagnosis:

node ${CLAUDE_PLUGIN_ROOT}/tools/index-doctor.mjs diagnose <site-url> <sitemap-url>

This inspects up to 50 URLs via GSC URL Inspection API and reports:

  • Which pages are indexed vs not
  • The specific reason each page isn't indexed
  • Severity rating (critical/high/medium/low)
  • Exact fix for each issue

Common Non-Indexing Reasons and Fixes:

Blocked by robots.txt (critical):

  • FIRST: Determine if the block is intentional. Common legitimate reasons to block:
    • Admin/dashboard pages, staging environments, internal tools
    • User-generated content pages, search result pages, faceted navigation
    • API endpoints, health check routes
  • If the block is intentional, do NOT remove it — remove the page from the sitemap instead
  • If the block is unintentional, find the Disallow rule and modify it using the Edit tool
  • Verify the fix: the page should be crawlable

Noindex tag (critical):

  • FIRST: Determine WHY noindex was added. Common legitimate reasons:
    • Staging/preview pages, paginated archives, tag/category pages
    • Thank-you/confirmation pages with sensitive info
    • Legal/compliance requirements, duplicate content by design
    • Pages that should only be accessible via direct link
  • Ask the user before removing noindex — removing it from staging or admin pages can expose sensitive content to search engines
  • If removal is confirmed appropriate, find <meta name="robots" content="noindex"> in the page HTML
  • Remove the noindex directive using the Edit tool
  • Check for X-Robots-Tag header in server config

Soft 404 (high):

  • Google thinks the page looks empty or error-like
  • Add substantial unique content (minimum 300 words)
  • Ensure the page returns HTTP 200 with real content
  • Remove any empty state or placeholder content

Crawled but not indexed (high):

  • Google found the page but decided not to index it
  • Usually means content is too thin, duplicate, or low quality
  • Add more unique, valuable content
  • Build 3+ internal links pointing to this page
  • Differentiate from similar pages on the site

Discovered but not crawled (medium):

  • Google knows the URL exists but hasn't visited it yet
  • Build internal links from high-traffic pages
  • Submit directly for indexing
  • Usually resolves within 1-2 weeks

Redirect (medium):

  • Page redirects to another URL
  • Update sitemap and internal links to use the final destination URL
  • Remove the redirecting URL from sitemap

Canonical mismatch (medium):

  • Google chose a different canonical URL
  • Either fix the canonical tag to point to this URL, or accept Google's choice
  • Remove from sitemap if it's truly a duplicate

Server error (critical):

  • Page returns 5xx error when Google crawls it
  • Fix the server error (check logs)
  • Ensure the page loads correctly under load

404 Not Found (high):

  • Page doesn't exist anymore
  • Remove from sitemap
  • Set up 301 redirect to relevant page

Phase 5: Apply Fixes

⚠️ SAFETY FIRST: Before applying ANY fix, verify the block/exclusion wasn't intentional. Ask the user if unsure. Removing noindex from staging pages or robots.txt Disallow from admin paths can expose sensitive content.

For each diagnosed issue, apply the fix:

robots.txt fixes:

  • Read the current robots.txt
  • Check if the Disallow rule protects staging, admin, or private pages — if so, remove the page from the sitemap instead of unblocking it
  • Only edit rules that are clearly unintentional blocks on public content
  • Ensure important public paths are not blocked

noindex fixes:

  • Verify with the user that the page should be public before removing noindex
  • Search HTML files for noindex tags
  • Remove them using Edit tool only after confirming they're not protecting sensitive content

Content quality fixes:

  • Identify thin pages (<300 words)
  • Flag for content expansion
  • Cannot auto-generate content, but can restructure and add schema

Sitemap cleanup:

  • Remove 404 and redirect URLs from sitemap
  • Regenerate if needed:
node ${CLAUDE_PLUGIN_ROOT}/tools/sitemap-generator.mjs <dir> <base-url>

Internal linking:

  • Find high-traffic pages (from GSC query data)
  • Add contextual links from high-traffic pages to non-indexed pages
  • Use descriptive anchor text with target keywords

Phase 6: Resubmit for Indexing

Only resubmit pages where you've made SUBSTANTIAL fixes (added content, removed blocking directives, fixed server errors). Do NOT resubmit unchanged pages — this wastes API quota and can flag your account for spam.

After fixes, submit to both search engines:

Google:

# Resubmit sitemap (only after sitemap changes)
node ${CLAUDE_PLUGIN_ROOT}/tools/gsc-client.mjs submit-sitemap <site-url> <sitemap-url>

Bing:

# Submit sitemap (only after sitemap changes)
node ${CLAUDE_PLUGIN_ROOT}/tools/bing-webmaster.mjs submit-sitemap <site-url> <sitemap-url>

# Batch submit specific fixed URLs for fast indexing (max 500/day — only URLs you actually fixed)
node ${CLAUDE_PLUGIN_ROOT}/tools/bing-webmaster.mjs submit-url-batch <site-url> <url1> <url2> ...

Phase 7: Auto-Fix and Resubmit

Run the auto-fix command which diagnoses AND submits non-indexed URLs:

node ${CLAUDE_PLUGIN_ROOT}/tools/index-doctor.mjs fix <site-url> <sitemap-url>

This automatically:

  1. Inspects all sitemap URLs
  2. Identifies non-indexed pages
  3. Submits fixable URLs to Bing for re-indexing
  4. Returns a prioritized fix plan

Phase 8: Verification Plan

After applying fixes:

  1. Re-run coverage check to compare before/after
  2. Set a reminder to re-check in 1-2 weeks (Google re-crawl takes time)
  3. Monitor GSC for new indexing issues
node ${CLAUDE_PLUGIN_ROOT}/tools/index-doctor.mjs coverage <site-url>

Phase 9: Prevention

Advise on preventing future indexing issues:

  • Always test new pages for noindex tags before deploying
  • Keep sitemap updated (auto-generate on deploy)
  • Monitor robots.txt changes
  • Ensure all pages have unique, substantial content
  • Build internal links to every new page
  • Submit sitemap to both GSC and Bing after every deploy

Key Principles

  1. Diagnose before fixing — understand WHY each page isn't indexed
  2. Verify intent before removing blocks — noindex and robots.txt Disallow rules are often intentional (staging, admin, privacy, legal). Ask before removing.
  3. Fix the root cause — don't just resubmit, fix the underlying issue
  4. Both engines matter — Bing powers ChatGPT Search, DuckDuckGo, Yahoo
  5. Only submit pages you've actually fixed — resubmitting unchanged pages wastes quota and can trigger spam flags
  6. Prevention > cure — set up processes to catch issues before they happen

Rollback Plan

If fixes cause unexpected issues (pages appearing in search that shouldn't, traffic drops):

  1. Re-add noindex to any pages that were incorrectly unblocked
  2. Restore robots.txt Disallow rules that were removed in error
  3. Remove pages from sitemap that shouldn't be indexed
  4. Re-run coverage to verify the rollback took effect
  5. Google re-crawl may take 1-2 weeks — request re-crawl via GSC for urgent fixes

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.