Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "aeoptimize",
"name": "geoptimize",
"owner": {
"name": "Te-Shu Wang"
},
Expand All @@ -9,13 +9,13 @@
},
"plugins": [
{
"name": "aeoptimize",
"name": "geoptimize",
"source": "./",
"description": "CLI and Claude Code skills for reproducible content-readiness checks",
"category": "seo",
"tags": ["aeo", "seo", "ai-search", "llms-txt", "structured-data"],
"homepage": "https://github.com/cucuwang/aeoptimize",
"repository": "https://github.com/cucuwang/aeoptimize"
"tags": ["geo", "seo", "ai-search", "llms-txt", "structured-data"],
"homepage": "https://github.com/cucuwang/geoptimize",
"repository": "https://github.com/cucuwang/geoptimize"
}
]
}
14 changes: 7 additions & 7 deletions .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "aeoptimize",
"name": "geoptimize",
"description": "Content-readiness lint and evidence-bounded discovery experiments",
"version": "0.7.0",
"author": {
"name": "Te-Shu Wang"
},
"homepage": "https://github.com/cucuwang/aeoptimize",
"repository": "https://github.com/cucuwang/aeoptimize",
"homepage": "https://github.com/cucuwang/geoptimize",
"repository": "https://github.com/cucuwang/geoptimize",
"license": "MIT",
"keywords": ["aeo", "seo", "ai-search", "llms-txt", "structured-data", "claude-code-skill"],
"keywords": ["geo", "seo", "ai-search", "llms-txt", "structured-data", "claude-code-skill"],
"commands": [
"./skills/aeo-scan/SKILL.md",
"./skills/aeo-generate/SKILL.md",
"./skills/aeo-transform/SKILL.md"
"./skills/geo-scan/SKILL.md",
"./skills/geo-generate/SKILL.md",
"./skills/geo-transform/SKILL.md"
]
}
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
node-version: 24
- run: npm ci
- run: npm run build
- name: Verify CLI is callable as aeoptimize
- name: Verify CLI is callable as geoptimize
run: node dist/cli/index.js --version
- name: Verify public metadata uses the current repository owner
run: npm test -- --run src/core/__tests__/evidence-boundaries.test.ts
Expand All @@ -84,7 +84,7 @@ jobs:
with:
path: .github/fixtures/action-low
min-score: '100'
package-spec: ./aeoptimize-0.7.0.tgz
package-spec: ./geoptimize-0.7.0.tgz

- name: Validate Action outputs
env:
Expand All @@ -101,7 +101,7 @@ jobs:
uses: ./
with:
path: examples/github-action-sample/site
package-spec: ./aeoptimize-0.7.0.tgz
package-spec: ./geoptimize-0.7.0.tgz

- name: Validate sample outputs
env:
Expand All @@ -120,7 +120,7 @@ jobs:
path: .github/fixtures/action-low
min-score: '0'
fail-on-low-score: 'true'
package-spec: ./aeoptimize-0.7.0.tgz
package-spec: ./geoptimize-0.7.0.tgz

- name: Validate blocking outputs
env:
Expand All @@ -140,7 +140,7 @@ jobs:
path: .github/fixtures/action-low
min-score: '100'
fail-on-low-score: 'true'
package-spec: ./aeoptimize-0.7.0.tgz
package-spec: ./geoptimize-0.7.0.tgz

- name: Invalid choice is rejected
id: invalid-choice
Expand All @@ -149,7 +149,7 @@ jobs:
with:
path: .github/fixtures/action-low
fail-on-low-score: sometimes
package-spec: ./aeoptimize-0.7.0.tgz
package-spec: ./geoptimize-0.7.0.tgz

- name: Out-of-range threshold is rejected
id: invalid-threshold
Expand All @@ -158,7 +158,7 @@ jobs:
with:
path: .github/fixtures/action-low
min-score: '101'
package-spec: ./aeoptimize-0.7.0.tgz
package-spec: ./geoptimize-0.7.0.tgz

- name: Assert expected failures
env:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ All notable user-visible changes will be documented here. The project follows Se

## 0.5.3 — 2026-04-15

- Added the `aeoptimize` executable alias.
- Added the `geoptimize` executable alias.
- Synchronized CLI, Action, and plugin version metadata.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing

Contributions that make `aeoptimize` more reproducible, explainable, or easier to adopt are welcome.
Contributions that make `geoptimize` more reproducible, explainable, or easier to adopt are welcome.

## Development setup

Expand Down
82 changes: 41 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# aeoptimize
# geoptimize

[![npm version](https://img.shields.io/npm/v/aeoptimize.svg)](https://www.npmjs.com/package/aeoptimize)
[![CI](https://github.com/cucuwang/aeoptimize/actions/workflows/ci.yml/badge.svg)](https://github.com/cucuwang/aeoptimize/actions/workflows/ci.yml)
[![license](https://img.shields.io/npm/l/aeoptimize.svg)](https://github.com/cucuwang/aeoptimize/blob/main/LICENSE)
[![npm version](https://img.shields.io/npm/v/geoptimize.svg)](https://www.npmjs.com/package/geoptimize)
[![CI](https://github.com/cucuwang/geoptimize/actions/workflows/ci.yml/badge.svg)](https://github.com/cucuwang/geoptimize/actions/workflows/ci.yml)
[![license](https://img.shields.io/npm/l/geoptimize.svg)](https://github.com/cucuwang/geoptimize/blob/main/LICENSE)

**AI crawlers read your pages before humans do. Lint them like code.**

`aeoptimize` is a deterministic content-readiness lint for static websites and documentation. It checks reproducible properties such as document structure, sourced quantitative claims, structured-data hygiene, indexing controls, metadata quality, and repetitive wording — locally, in CI, or pre-commit.
`geoptimize` is a deterministic content-readiness lint for static websites and documentation. It checks reproducible properties such as document structure, sourced quantitative claims, structured-data hygiene, indexing controls, metadata quality, and repetitive wording — locally, in CI, or pre-commit.

![aeoptimize terminal demo](docs/assets/demo.gif)
![geoptimize terminal demo](docs/assets/demo.gif)

It does **not** predict ranking, indexing, rich results, Google AI Overviews, or citation by ChatGPT, Perplexity, or another AI system. Google states that its AI search features need no special AI text file or schema, and valid structured data does not guarantee a search feature. See [methodology and limitations](docs/methodology.md).

Expand All @@ -17,15 +17,15 @@ It does **not** predict ranking, indexing, rich results, Google AI Overviews, or
Requires Node.js 22.12 or newer.

```bash
npm install --save-dev aeoptimize
npm install --save-dev geoptimize
```

```bash
npx aeoptimize scan https://example.com
npx aeoptimize scan ./dist --dir
npx aeoptimize scan ./dist --dir --json
npx aeoptimize audit https://example.com --json
npx aeoptimize audit-site https://example.com --max-pages 20 --json
npx geoptimize scan https://example.com
npx geoptimize scan ./dist --dir
npx geoptimize scan ./dist --dir --json
npx geoptimize audit https://example.com --json
npx geoptimize audit-site https://example.com --max-pages 20 --json
```

Example output:
Expand Down Expand Up @@ -53,7 +53,7 @@ The score is a versioned heuristic for catching regressions within the same proj
| AI Metadata | 15 | Page-level indexing control and description quality |
| Content Density | 15 | Content/boilerplate and repetition heuristics |

Two often-promoted AEO signals are deliberately excluded from the score:
Two often-promoted GEO signals are deliberately excluded from the score:

- FAQ content and `FAQPage` schema are optional. The generator does not infer FAQ schema from question headings.
- `llms.txt` is an experimental proposal. Generating or publishing it does not add points.
Expand All @@ -65,8 +65,8 @@ Every rule, its evidence class, and known false-positive boundary is documented
`audit` inspects one public URL or one local HTML/Markdown file. It is a separate, versioned contract and does not change the v0.6 readiness score or `scan --json` output.

```bash
npx aeoptimize audit https://example.com
npx aeoptimize audit ./dist/index.html --json
npx geoptimize audit https://example.com
npx geoptimize audit ./dist/index.html --json
```

The first audit contract checks:
Expand All @@ -84,8 +84,8 @@ The command intentionally reports unavailable site-wide and external measurement
`audit-site` follows same-origin links in deterministic order and stops at an explicit page limit. It reads robots.txt before subsequent page requests, discovers same-origin sitemap files, and uses response HTML without browser rendering.

```bash
npx aeoptimize audit-site https://example.com
npx aeoptimize audit-site https://example.com --max-pages 50 --json
npx geoptimize audit-site https://example.com
npx geoptimize audit-site https://example.com --max-pages 50 --json
```

The site contract reports bounded crawl coverage, robots policy, page status, redirect chains, internal link targets, canonical consistency, sitemap discrepancies, sitemap-only orphan candidates, and duplicate titles. Sitemap-only pages remain candidates until a sufficiently complete crawl or server-log evidence confirms their discovery state.
Expand All @@ -94,37 +94,37 @@ The default limit is 20 page requests and the accepted range is 1–200. Cross-o

## How it compares

| | aeoptimize | Lighthouse-style SEO audits | Hosted AEO/GEO platforms |
| | geoptimize | Lighthouse-style SEO audits | Hosted GEO platforms |
| --- | --- | --- | --- |
| Question it answers | Is this content machine-readable and citable? | Does the page pass classic SEO checks? | Did my AI visibility change this week? |
| Deterministic | Yes — versioned rules, fixture-tested | Partially | No — model output varies run to run |
| Runs where | Local CLI, CI, pre-commit hook, Vite/Next plugins | Browser / DevTools | Vendor cloud |
| Blocks regressions in CI | Yes, via a stable `--json` contract | Possible with extra wiring | Rarely |
| Cost | Free, MIT | Free | Typically $95+/mo |

Visibility trackers answer "did rankings change?". aeoptimize answers the question you can act on in a pull request: "is this page ready?". The two compose rather than compete.
Visibility trackers answer "did rankings change?". geoptimize answers the question you can act on in a pull request: "is this page ready?". The two compose rather than compete.

## CI contract

`--json` is the stable automation surface. A non-zero threshold is useful only after your team reviews the baseline and accepts the current methodology version.

```bash
npx aeoptimize scan ./dist --dir --json > aeoptimize-report.json
node -e "const r=require('./aeoptimize-report.json'); process.exit(r.overall.total < 60 ? 1 : 0)"
npx geoptimize scan ./dist --dir --json > geoptimize-report.json
node -e "const r=require('./geoptimize-report.json'); process.exit(r.overall.total < 60 ? 1 : 0)"
```

The GitHub Action is advisory by default. Consume it from the repository pin until it appears on GitHub Marketplace (Marketplace listing is a checkbox on a GitHub Release, not an extra package). It reports findings without blocking the workflow:

```yaml
- uses: cucuwang/aeoptimize@v0.7.0
- uses: cucuwang/geoptimize@v0.7.0
with:
path: dist
```

Projects can explicitly choose blocking mode after accepting a baseline:

```yaml
- uses: cucuwang/aeoptimize@v0.7.0
- uses: cucuwang/geoptimize@v0.7.0
with:
path: dist
fail-on-low-score: 'true'
Expand All @@ -142,8 +142,8 @@ remediation and validation for each finding. It leaves the existing `scan` score
JSON contract unchanged.

```bash
npx aeoptimize audit-build ./dist --json
npx aeoptimize audit-build ./dist --base-url https://example.com/ --expect-indexable --fail-on-error --json > audit.json
npx geoptimize audit-build ./dist --json
npx geoptimize audit-build ./dist --base-url https://example.com/ --expect-indexable --fail-on-error --json > audit.json
```

Malformed JSON-LD and invalid or multiple canonical declarations produce `FAIL`.
Expand Down Expand Up @@ -175,8 +175,8 @@ A syntax pass does not establish eligibility under the
## Optional generators

```bash
npx aeoptimize generate ./dist --dry-run
npx aeoptimize generate ./dist
npx geoptimize generate ./dist --dry-run
npx geoptimize generate ./dist
```

The generator can create:
Expand All @@ -193,56 +193,56 @@ Generated structured data must be reviewed against visible content and the appli

```ts
import { defineConfig } from 'vite';
import { aeoPlugin } from 'aeoptimize/vite';
import { geoPlugin } from 'geoptimize/vite';

export default defineConfig({
plugins: [aeoPlugin()],
plugins: [geoPlugin()],
});
```

### Next.js

```js
import { withAeo } from 'aeoptimize/next';
import { withGeo } from 'geoptimize/next';

export default withAeo({});
export default withGeo({});
```

Both integrations scan the build output and generate the same optional artifacts as the CLI. Options: `{ silent?: boolean; outDir?: string }`.

## Experimental AI review

```bash
npx aeoptimize scan https://example.com --multi-ai
npx geoptimize scan https://example.com --multi-ai
```

When supported local AI CLIs are available, this adds a subjective review and reports an experimental blend. Model output can vary and is not ground truth. The deterministic rule score remains visible separately.

## Pre-commit hook

```bash
npx aeoptimize hook install
npx aeoptimize hook install --min-score 60
npx aeoptimize hook uninstall
npx geoptimize hook install
npx geoptimize hook install --min-score 60
npx geoptimize hook uninstall
```

The hook checks staged `.html`, `.htm`, `.md`, and `.mdx` content. Review the baseline before using a threshold to block commits; `git commit --no-verify` remains an explicit escape hatch.

## Claude Code skills

```bash
claude plugin marketplace add cucuwang/aeoptimize
claude plugin marketplace add cucuwang/geoptimize
```

Or install the same reusable skills through the cross-agent Agent Skills CLI (skills.sh indexes installs from this command; there is no separate submit form):

```bash
npx skills add cucuwang/aeoptimize
npx skills add cucuwang/geoptimize
```

- `/aeo-scan` — deterministic readiness audit with optional experimental review
- `/aeo-generate` — preview optional discovery artifacts
- `/aeo-transform` — propose content edits without inventing claims
- `/geo-scan` — deterministic readiness audit with optional experimental review
- `/geo-generate` — preview optional discovery artifacts
- `/geo-transform` — propose content edits without inventing claims

## Project status

Expand All @@ -254,4 +254,4 @@ Contributions are welcome. Rule changes require an evidence note and positive/ne

MIT

If aeoptimize catches something real in your build, a star helps other teams find it.
If geoptimize catches something real in your build, a star helps other teams find it.
2 changes: 1 addition & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## v0.6 — Evidence Release

The release goal is a trustworthy CI lint contract, not additional AEO claims.
The release goal is a trustworthy CI lint contract, not additional GEO claims.

Release gates:

Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Security fixes are applied to the latest published minor release. Older releases

## Reporting a vulnerability

Use GitHub's private vulnerability reporting for `cucuwang/aeoptimize` when available. If the repository does not show a private reporting option, open a minimal issue asking for a private contact channel; do not include exploit details, credentials, private URLs, or user data in a public issue.
Use GitHub's private vulnerability reporting for `cucuwang/geoptimize` when available. If the repository does not show a private reporting option, open a minimal issue asking for a private contact channel; do not include exploit details, credentials, private URLs, or user data in a public issue.

Include the affected version, environment, reproduction preconditions, impact, and the smallest safe proof of concept. You should receive an acknowledgement within seven days. A remediation timeline depends on severity and reproducibility.

## Scope notes

`aeoptimize` can fetch remote pages, invoke a local browser, read build output, and install a Git hook. Reports may contain URLs and excerpts from scanned content. Review artifacts before publishing them and never scan private systems without authorization.
`geoptimize` can fetch remote pages, invoke a local browser, read build output, and install a Git hook. Reports may contain URLs and excerpts from scanned content. Review artifacts before publishing them and never scan private systems without authorization.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: aeoptimize Content Readiness Check
description: Run the deterministic aeoptimize readiness lint against a build directory
name: geoptimize Content Readiness Check
description: Run the deterministic geoptimize readiness lint against a build directory
author: Te-Shu Wang
branding:
icon: search
Expand All @@ -21,7 +21,7 @@ inputs:
package-spec:
description: npm package spec to install; keep the default outside prerelease testing
required: false
default: 'aeoptimize@0.7.0'
default: 'geoptimize@0.7.0'

outputs:
score:
Expand All @@ -39,7 +39,7 @@ runs:
with:
node-version: '24'

- name: Install aeoptimize
- name: Install geoptimize
shell: bash
env:
PACKAGE_SPEC: ${{ inputs.package-spec }}
Expand Down
Loading
Loading