seo-aeo
This skill should be used when auditing, fixing, or validating SEO and AEO (AI Engine Optimization) for Eleventy documentation sites. It provides sub-commands for running audits, applying fixes, and validating build output.
SEO & AEO for Eleventy Docs
Audit, fix, and validate SEO and AEO (AI Engine Optimization) for Eleventy documentation sites. This skill routes to sub-commands for analysis, remediation, and CI validation.
Sub-commands
| Command | Description |
|---|---|
seo-aeo audit | Audit the site for SEO/AEO issues and produce a report |
seo-aeo fix | Analyze gaps and apply fixes to source files |
seo-aeo validate | Run the validation script against built output |
If no sub-command is provided, display the table above and ask which sub-command to run.
Phase 0: Prerequisites
<critical_sequence>
Before executing any sub-command, verify the Eleventy site structure exists.
Required: Eleventy config
if [[ ! -f "eleventy.config.js" ]] && [[ ! -f ".eleventy.js" ]]; then
echo "No Eleventy config found. This skill works with Eleventy documentation sites."
# Stop execution
fi
Required for validate: Built output
The validate sub-command requires a built _site/ directory. If missing:
No
_site/directory found. Runnpx @11ty/eleventyfirst, then re-run validate.
</critical_sequence>
Sub-command: audit
Run a comprehensive SEO/AEO audit using the seo-aeo-analyst agent.
Steps
-
Launch the seo-aeo-analyst agent via the Task tool:
Task seo-aeo-analyst: "Audit this Eleventy documentation site for SEO and AEO issues. Read the site configuration, templates, and data files. Produce a structured report with critical issues, warnings, and passed checks. Do NOT make any changes." -
Present the agent's report to the user
-
Offer next steps: "Run
seo-aeo fixto apply recommended fixes, orseo-aeo validateto check the built output."
Sub-command: fix
Analyze gaps and apply targeted fixes to source files.
Steps
-
Launch the seo-aeo-analyst agent via the Task tool with fix instructions:
Task seo-aeo-analyst: "Audit this Eleventy documentation site for SEO and AEO issues. For each issue found, apply a fix to the source files. Read each file before editing. After all fixes, build the site with `npx @11ty/eleventy` and run `bash plugins/soleur/skills/seo-aeo/scripts/validate-seo.sh _site` and `bash plugins/soleur/skills/seo-aeo/scripts/validate-csp.sh _site` to verify. Report what was changed and whether validation passed." -
Present the agent's report showing changes made
-
If validation failed, show the failing checks and offer to re-run fix
Sub-command: validate
Run the standalone validation script against built output.
Steps
-
Verify
_site/exists. If not, build first:npx @11ty/eleventy -
Run the validation scripts:
bash plugins/soleur/skills/seo-aeo/scripts/validate-seo.sh _site bash plugins/soleur/skills/seo-aeo/scripts/validate-csp.sh _site -
Report results:
- Exit 0 on both: All SEO and CSP checks passed
- Exit 1: Show failing checks and recommend running
seo-aeo fix
Validation scripts:
- validate-seo.sh -- SEO/AEO element checks
- validate-csp.sh -- Content-Security-Policy hash integrity checks
Known limitations:
- validate-seo.sh only checks named AI bot entries -- wildcard
User-agent: *blocks are not detected. A site blocking all bots via wildcard will pass validation. - validate-csp.sh requires Python 3 for reliable multi-line HTML parsing and SHA-256 hash computation.