seo-regression
Skill5 starsChanged 36 days agoMITView on GitHub
Compare baseline and candidate report.json files using one-step-seo diff, enforce CI/CD quality gates with --fail-on, and export SARIF 2.1.0 and hardened CSV reports.
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-fixSkill
- sitemap-robotsSkill
- social-metadataSkill
- technical-seoSkill
The file
Files
seo-regression — CI/CD SEO Regression & Release Gating
1. Description & Activation Criteria
Activate seo-regression when the user wants to:
- Compare two audit runs (
baseline.jsonvscandidate.json) to detect score deltas, NEW findings, RESOLVED findings, and ESCALATED severities (one-step-seo diff). - Gate pull requests or CI/CD deployments using
--fail-on P0|P1|P2so builds fail only when regressions occur. - Export
report.sarif(OASIS SARIF 2.1.0 for GitHub Code Scanning) or formula-injection-hardenedreport.csvfor spreadsheet tracking.
2. Inputs & Prerequisites
- For
diff: Two validone-step-seoJSON reports (old-report.jsonandnew-report.json). - For CI export:
--format html,md,json,sarif,csvand optional--fail-on <P0|P1|P2>.
3. Step-by-Step Workflow
- Generate baseline and candidate reports:
- Baseline (e.g.,
mainbranch or production):npx one-step-seo page https://example.com --out ./seo-baseline - Candidate (e.g., PR preview or local
./distbuild):npx one-step-seo page ./dist/index.html --offline --out ./seo-candidate
- Baseline (e.g.,
- Run regression diff (
one-step-seo diff):- Execute
npx one-step-seo diff ./seo-baseline/report.json ./seo-candidate/report.json --fail-on P1. - Note that
diff --fail-on P1exits with code2only if there areNEWorESCALATEDfindings atP0orP1— pre-existingP1issues do not block the build.
- Execute
- Check
rulesVersioncompatibility:- Inspect
rulesVersionChangedin thediffoutput. IfoldRulesVersion !== newRulesVersion, note that score deltas may reflect updated scoring rules rather than site changes.
- Inspect
- Export SARIF 2.1.0 or CSV when requested:
- Run
npx one-step-seo audit <target> --format html,md,json,sarif,csv --out ./seo-report. - Upload
report.sarifto GitHub Code Scanning (github/codeql-action/upload-sarif).
- Run
4. Tools & CLI Commands
# Compare two report.json files and exit 2 if any new/escalated P0 or P1 findings appear
npx one-step-seo diff ./baseline/report.json ./candidate/report.json --fail-on P1
# Machine-readable JSON diff for PR comment bots
npx one-step-seo diff ./baseline/report.json ./candidate/report.json --json
# Export all formats including SARIF 2.1.0 and RFC 4180 CSV
npx one-step-seo page https://example.com --format html,md,json,sarif,csv --out ./seo-report5. Evidence Requirements
- Report the exact Search SEO delta (
old -> new (+/-delta)) and AI Visibility delta (old -> new (+/-delta)). - List every
NEW,RESOLVED, andESCALATEDfinding with itsid,severity(oroldSeverity -> newSeverity), andtitle. - Report whether
rulesVersionChangedistrueorfalse.
6. Expected Outputs
- Regression Summary Table: Score deltas, count of new/resolved/escalated findings, and CI gate pass/fail status (
exitCode 0vsexitCode 2). - CI Workflow Snippet: GitHub Actions step running
one-step-seo diffor uploadingreport.sarif.
7. Limitations & External Data
- Single-page
report.jsoninputs:one-step-seo diffcompares two individualreport.jsonfiles validated byisReport(). - CSV sanitization:
report.csvprefixes cells starting with=,+,-,@,\t, or\r(and DDE patterns) with a leading apostrophe (') to prevent spreadsheet formula injection (CWE-1236), whilereport.jsonpreserves raw values unchanged.
8. Safety & Approval Rules
- In GitHub Actions workflows, follow least-privilege permissions (
permissions: contents: read, orsecurity-events: writeonly on the job uploading SARIF) and pin third-party actions by commit SHA.
9. Examples
# Gate a local build against a saved baseline report
npx one-step-seo page ./dist/index.html --offline --out ./candidate
npx one-step-seo diff ./baseline/report.json ./candidate/report.json --fail-on P1Does 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.

