Skip to main content
Glama
README.md
# Website Intelligence Sentinel (WIS)

Open-source protocols, CLI, and MCP server for auditing technical SEO, setting up AEO/GEO crawler and `llms.txt` files, prioritizing content topics, blocking AI copy and visual tells, and verifying live deploys.

WIS runs locally with zero paid API keys. Plug in external analytics or search APIs through environment variables when you want live data, or start immediately with local files and CSV exports.

## 5-Minute Quickstart

Requires Node.js 20 or newer.

### 1. Install and build

```bash
git clone https://github.com/kaykas/website-intelligence-sentinel.git wis-oss
cd wis-oss
npm install
npm run build
```

### 2. Try it on the included sample studio site

```bash
node bin/wis.mjs audit --dir examples/studio-site
node bin/wis.mjs topics --dir examples/studio-site --gsc examples/studio-site/sample-gsc.csv
node bin/wis.mjs gate examples/studio-site
node bin/wis.mjs dashboard --dir examples/studio-site --gsc examples/studio-site/sample-gsc.csv
```

Open `examples/studio-site/wis-dashboard.html` in a browser to inspect the static report.

### 3. Add WIS to your own website with Claude Code

From your website repository root, install `wis-oss` directly from GitHub (avoiding the unrelated legacy `wis` npm package) and initialize the Claude Code kit:

```bash
npm install -D github:kaykas/website-intelligence-sentinel
npx --no-install wis init --name "Acme Studio" --url "https://example.com" --claude
```

While testing from a local checkout, install the local directory directly: `npm install -D /path/to/wis-oss`.

This creates (or appends to):

- `wis.config.json`: site paths, routes, crawler split, connector settings, and gate rules
- `.gitignore`: ensures `.wis/` and `wis-dashboard.html` stay untracked
- `CLAUDE.md`: project operating rules for Claude Code (appends a WIS section if `CLAUDE.md` already exists)
- `.claude/commands/wis-*.md`: slash commands (`/wis-audit`, `/wis-topics`, `/wis-gate`, `/wis-aeo`, `/wis-verify`, `/wis-dashboard`)
- `.mcp.json`: stdio MCP configuration so Claude Code can invoke WIS tools directly

Read the full walkthrough in [docs/CLAUDE-WORKFLOW.md](docs/CLAUDE-WORKFLOW.md).

## Core Protocols

| Protocol | CLI command | MCP tool | What it checks or produces |
| --- | --- | --- | --- |
| Technical SEO Audit | `wis audit` | `wis_audit` | Page titles, meta descriptions, canonicals, H1 hierarchy, broken local links, sitemap, and `robots.txt` across Next.js App/Pages Router, Astro, and static HTML. |
| AEO and GEO Substrate | `wis aeo-init` | `wis_aeo_check` | Audits and generates `llms.txt`, `llms-full.txt`, train-vs-cite `robots.txt`, and JSON-LD detection. |
| Topic Discovery | `wis topics` | `wis_topics` | Inventories existing pages and scores striking-distance queries, low-CTR snippets, and missing clusters with a deduplicated ledger. |
| Anti-AI Quality Gates | `wis gate` | `wis_gate` | Fail-closed scanner for 34+ AI writing tells (with optional prose-only `--fix` for `.md`, `.mdx`, `.txt`) and 20 deterministic UI/CSS/accessibility design tells. |
| Post-Deploy Verification | `wis verify <url>` | `wis_verify` | Checks HTTP 200, metadata, `robots.txt`, `llms.txt`, and error-page markers, writing honest `LaneResultV1` receipts. |
| Static Health Dashboard | `wis dashboard` | `wis_dashboard` | Renders a self-contained `wis-dashboard.html` report that itself passes `wis gate` with zero findings. |

## Honest Receipts (`LaneResultV1`)

Every recorded protocol run appends an immutable JSON line to `.wis/receipts.jsonl` using the 8-state contract:

`PROPOSED` -> `SCOPED` -> `APPLIED` -> `DEPLOYED` -> `FIXED_UNVERIFIED` -> `CLOSED_VERIFIED` (or `REVERTED` / `BLOCKED`).

A change is only marked `CLOSED_VERIFIED` when verification checks pass against real evidence. Local edits without external checks never claim live completion.

## Documentation

- [v0.1 Architecture Spec](docs/V0.1-SPEC.md)
- [Claude Code and MCP Workflow](docs/CLAUDE-WORKFLOW.md)
- [Connector SPI and Environment Variables](docs/CONNECTORS.md)
- [Contributing Guidelines](CONTRIBUTING.md)
- [Security Policy](SECURITY.md)

## License

MIT. See [LICENSE](LICENSE).