http-status
Skill5 starsChanged 35 days agoMITView on GitHub
Audit HTTP response status codes, multi-hop redirect chains, MIME content-types, broken same-host internal links (--check-links), and HTTPS canonical redirects.
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
- image-seoSkill
- internal-linkingSkill
- international-seoSkill
- javascript-seoSkill
- llms-txtSkill
- local-seoSkill
- onpage-optimizationSkill
- schema-validationSkill
- security-hygieneSkill
- seo-auditSkill
- seo-fixSkill
- seo-regressionSkill
- sitemap-robotsSkill
- social-metadataSkill
- technical-seoSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 52
Always report report.url (requested URL), report.finalUrl (landed URL), and the full hop chain from T02-status / T03-redirects evidence in …
- Very specific: line 68
Prefer permanent 301 (or 308) redirects only when a URL move is permanent.
- Very specific: line 69
Never create redirect loops or bulk-redirect unrelated 404 URLs to the homepage (which Google treats as a Soft 404).
≈ “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.
Files
http-status — HTTP Status Codes, Redirect Chains & Link Health
1. Description & Activation Criteria
Activate http-status when the user wants to:
- Diagnose
404 Not Found,410 Gone,5xxserver errors, soft-redirect failures (T02-statusP0), or wrong MIME headers (T04-content-typeP2). - Collapse multi-hop redirect chains (
301 -> 302 -> 200,T03-redirectsP1) after site migrations, domain changes, or trailing-slash/HTTPS rewrites. - Probe same-host internal links across a site to catch broken
4xx/5xxdestinations (--check-links,T16-broken-linksP1).
2. Inputs & Prerequisites
- Target: Live
http(s)URL (required for real HTTP status codes, redirect hop chains, and--check-linksnetwork probes). - Key flags:
--skills http-status(aliases:redirects,status-codes).--check-links: Probes up to100unique same-host internal links per run (MAX_LINK_CHECKS = 100) and emitsT16-broken-links(P1) on4xx/5xxor connection failures.
3. Step-by-Step Workflow
- Run a live status & link-health audit:
- Execute
npx one-step-seo audit <url> --pages 20 --skills http-status --check-links --out ./seo-report(orpage <url> --skills http-status --check-links).
- Execute
- Resolve non-200 landing pages (
T02-status):- Inspect
report.urlvsreport.finalUrlandT02-status(P0). Any indexable URL returning4xx,5xx, or exceeding the 8-hop redirect cap blocks search indexing and AI retrieval completely.
- Inspect
- Flatten redirect chains (
T03-redirects,T01-https,T17-canonical-http):T03-redirects(P1) fires whenever a URL requires more than1redirect hop (e.g.,http://example.com/page->https://example.com/page->https://www.example.com/page/).- Rewrite server/CDN redirect rules so every legacy URL jumps in 1 direct
301hop to the finalhttps://canonical URL, and update internal<a href>links to point directly toreport.finalUrl(0hops).
- Verify MIME
content-type(T04-content-type):- Confirm HTML pages send
Content-Type: text/html; charset=utf-8(T04-content-typeP2).
- Confirm HTML pages send
- Eliminate broken internal links (
T16-broken-links):- Review
T16-broken-links(P1) evidence from--check-linksand either restore the missing target, add a301redirect to its replacement, or update the source<a href>link.
- Review
4. Tools & CLI Commands
# Single-page redirect chain and broken-link check
npx one-step-seo page https://example.com --skills http-status --check-links --out ./seo-report
# Post-migration multi-page status & link audit seeded from XML sitemap
npx one-step-seo audit https://example.com --crawl sitemap --pages 50 --skills http-status --check-links --out ./seo-report
# Inspect the http-status skill rules
npx one-step-seo skills http-status5. Evidence Requirements
- Always report
report.url(requested URL),report.finalUrl(landed URL), and the full hop chain fromT02-status/T03-redirectsevidenceinreport.findings. - List every broken internal target URL and status code surfaced by
T16-broken-links.
6. Expected Outputs
- Status & Redirect Hop Table: Requested URL -> Intermediate Hops -> Final URL, HTTP Status, and
Content-Type. - Broken Internal Link Inventory: Source page, broken target URL, HTTP status, and exact
<a href>replacement. - Edge/Server Redirect Rules: Consolidated single-hop
301redirect rules (Vercelvercel.json, Netlify_redirects, Nginx, or Cloudflare Bulk Redirects).
7. Limitations & External Data
- Live HTTP required: Offline file audits (
--offline) synthesize a local200 OK(text/html) response and cannot test server redirect rules or live404status codes. - Polite link-check cap:
--check-linksis bounded to100unique same-host link probes per run (MAX_LINK_CHECKS) and skips paths disallowed byrobots.txt.
8. Safety & Approval Rules
- Prefer permanent
301(or308) redirects only when a URL move is permanent; use302/307for temporary maintenance or seasonal routing so search engines retain the original URL. - Never create redirect loops or bulk-redirect unrelated
404URLs to the homepage (which Google treats as a Soft 404); redirect to the closest topical equivalent or return a genuine404/410.
9. Examples
# Fail CI if a staging deployment introduces P0 status errors or P1 redirect chains / broken links
npx one-step-seo audit https://staging.example.com --pages 25 --skills http-status --check-links --fail-on P1 --out ./seo-reportDoes 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.

