security-hygiene
Skill5 starsChanged 36 days agoMITView on GitHub
Audit HTTPS transport enforcement, active and passive mixed content, insecure canonical downgrades, HTTP security headers (CSP, HSTS, X-Content-Type-Options), and SSRF-safe crawling.
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
- 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
4 rules. About 0 are common, 0 are distinctive, and 4 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Verify HTTPS enforcement (T01-https P0) and eliminate HTTP-to-HTTPS canonical downgrades (T17-canonical-http P1).
- Very specific: line 15
Run audits in untrusted or multi-tenant CI environments with socket-level SSRF protection (--block-private-ips).
- Very specific: line 64
Offline header limitation: When auditing local disk files (--offline), no HTTP response headers exist, so T15-security-headers is skipped …
- Very specific: line 70
Always pass --block-private-ips when auditing user-supplied URLs in automated pipelines.
≈ “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
security-hygiene — Transport Security & SEO Hygiene
1. Description & Activation Criteria
Activate security-hygiene when the user wants to:
- Verify HTTPS enforcement (
T01-httpsP0) and eliminate HTTP-to-HTTPS canonical downgrades (T17-canonical-httpP1). - Detect and fix active mixed content (
http://scripts blocked by browsers,T13-mixedP1) or passive mixed content (http://images,T13-mixedP2). - Audit baseline HTTP response security headers (
Content-Security-Policy,Strict-Transport-Security,X-Content-Type-Options,T15-security-headersP3). - Run audits in untrusted or multi-tenant CI environments with socket-level SSRF protection (
--block-private-ips).
2. Inputs & Prerequisites
- Target: Live
http(s)URL (required to inspect live TLS protocol and HTTP response headers) or local HTML files (for offline mixed-content and canonical protocol checks). - Key flags:
--skills security-hygiene: Restricts output toT01-https,T13-mixed,T15-security-headers, andT17-canonical-http.--block-private-ips: Blocks DNS resolution and socket connections to loopback, RFC 1918 private networks, IPv6 ULA/link-local, and cloud metadata endpoints (169.254.169.254,100.100.100.200,192.0.0.192).
3. Step-by-Step Workflow
- Run a security-scoped audit:
- Execute
npx one-step-seo page <url> --skills security-hygiene --block-private-ips --out ./seo-report.
- Execute
- Verify HTTPS transport (
T01-https) & canonical scheme (T17-canonical-http):- Confirm
report.finalUrlresolves overhttps://(T01-httpsP0 if served overhttp://). - Confirm
report.page.canonicaldoes not point to anhttp://URL when the page is served overhttps://(T17-canonical-httpP1), which causes indexation splits and insecure canonical signals.
- Confirm
- Remediate mixed-content subresources (
T13-mixed):- Active mixed content (
P1): Any<script src="http://...">on anhttps://page is blocked outright by modern browsers, breaking interactive rendering and client hydration. Upgrade tohttps://immediately. - Passive mixed content (
P2): Anyhttp://image or media subresource triggers browser "Not Secure" indicator downgrades. Upgrade tohttps://.
- Active mixed content (
- Harden response headers (
T15-security-headers):- Inspect
T15-security-headers(P3) evidence for missingstrict-transport-security(HSTS),content-security-policy(CSP), andx-content-type-options(nosniff). - Recommend phased rollout at the CDN/edge layer (e.g.,
Content-Security-Policy-Report-Onlyfirst before enforcing strict CSP).
- Inspect
4. Tools & CLI Commands
# Single-page transport & mixed-content audit with SSRF protection
npx one-step-seo page https://example.com --skills security-hygiene --block-private-ips --out ./seo-report
# Multi-page crawl checking HTTPS, mixed content, and security headers
npx one-step-seo audit https://example.com --pages 20 --skills security-hygiene --block-private-ips --out ./seo-report
# Inspect the security-hygiene skill definition
npx one-step-seo skills security-hygiene5. Evidence Requirements
- Quote
report.url,report.finalUrl,report.page.canonical, and exact offendinghttp://subresource URLs or missing header names fromT01-https,T13-mixed,T15-security-headers, andT17-canonical-httpinreport.findings. - Clearly separate browser-blocking active mixed content (
P1) from passive mixed content (P2) and defense-in-depth headers (P3).
6. Expected Outputs
- Transport & Canonical Security Verdict: Protocol status (
https:vshttp:), redirect hop check, and canonical protocol alignment. - Mixed-Content Inventory: Exact
http://script/image URLs to upgrade tohttps://. - Edge/Server Header Snippet: Safe Nginx, Cloudflare, Vercel, or Netlify configuration for
Strict-Transport-Security,X-Content-Type-Options: nosniff, and baselineContent-Security-Policy.
7. Limitations & External Data
- Offline header limitation: When auditing local disk files (
--offline), no HTTP response headers exist, soT15-security-headersis skipped automatically without false positives. - Scope:
security-hygienechecks transport, mixed-content, and baseline HTTP header signals affecting browser trust and search ranking — it is not a replacement for dynamic application penetration testing (DAST) or TLS cipher suite scanning.
8. Safety & Approval Rules
- Never deploy HSTS
preloador restrictiveContent-Security-Policyheaders blindly: A misconfigured CSP can block legitimate analytics, fonts, or checkout scripts, and HSTSincludeSubDomains; preloadcan lock out legacy HTTP subdomains. Always recommend testing with shortmax-age(e.g.,max-age=300) andContent-Security-Policy-Report-Onlyfirst. - Always pass
--block-private-ipswhen auditing user-supplied URLs in automated pipelines.
9. Examples
# Gate CI deployments on P0/P1 transport or active mixed-content errors
npx one-step-seo audit https://staging.example.com --pages 10 --skills security-hygiene --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.

