SEO audit report (scaffold instructions)
Use this skill when the user wants an interactive, client-side report that imports Search Console exports and keeps them in a lightweight SQLite database for repeated inspection.
Shared context first
Before asking repeated discovery questions, check whether .agents/seo-context.md exists.
If it does:
- read it first
- reuse the saved site, KPI, and tooling context
- ask only for project-specific scaffold details that are still missing
Required inputs
- Project directory name.
- Data source: GSC MCP export (JSON/CSV) or manual file.
- Persistence target: in-browser IndexedDB via
sql.js.
Tooling & credentials
- Auth mode:
manual-file
- Requires: no live credential
- Input path: GSC MCP export or manual CSV/JSON file
- Fallback: manual file remains the default fallback when live MCP access is unavailable
Follow the shared setup and missing-access rules in docs/credentials-and-tooling.md.
Workflow
Scaffold the project
- Run
npm create vite@latest <project-name> -- --template react-ts (or bun create vite@latest ... if Bun is preferred).
- Enter the new folder and install deps (
npm install/bun install).
- Use
exa (or web search) to confirm the latest Vite React template command if the tooling switches.
Add dependencies
- Install
react, react-dom (if not already) along with zod.
- Install runtime helpers:
sql.js for the SQLite engine and idb-keyval for Persisting exported bytes.
- Keep
typescript + vite dev dependencies aligned with the template.
Implement the app
- Configure
sql.js using the sql-wasm.wasm bundle; wrap initialization in a helper to reuse across hooks.
- Build an import flow that accepts CSV/JSON and normalizes rows into
{ date, query, page, clicks, impressions, ctr, position }.
- Store normalized rows into a
gsc_rows table with indexes on date, query, and page, then export the database and persist via idb-keyval.
- Surface KPIs: total clicks/impressions/CTR/weighted position, top queries, top pages, and CTR gap opportunities filtered by impressions/position buckets.
- Include file + fetch controls (
<input type="file">, fetch from /gsc/latest.json), custom filters, and a reset button.
- Style the layout with CSS variables and card/grid patterns, keeping readability front-and-center (sticky header, callouts, narrow text width).
Run & iterate
- Start the dev server with
npm run dev or bun run dev.
- Load sample exports (provide a
public/gsc/latest.json for convenience) and verify persistence across reloads.
- Document expected import schema and heuristics for CTR opportunities in README or inline comments.
Tool checks
- When unsure which packages to add or how to initialize
sql.js, run an exa search such as exa "vite react sql.js setup" to gather up-to-date commands.
- Refer to the
Skill creation process section of seo-skills/README.md when expanding the skill further.
1---2name: "seo-audit-report"3description: "Document how to scaffold a Vite+React SEO audit report that ingest Search Console data, stores it in sql.js, and visualizes query/page KPIs. Use when working with seo audit report."4source: "community_canonical"5risk: "unknown"6license: "not_declared_upstream"7metadata:8 source: https://skillmd.com/skills/revrebel/seo-audit-report9---1011# SEO audit report (scaffold instructions)1213Use this skill when the user wants an interactive, client-side report that imports Search Console exports and keeps them in a lightweight SQLite database for repeated inspection.1415## Shared context first1617Before asking repeated discovery questions, check whether `.agents/seo-context.md` exists.1819If it does:20- read it first21- reuse the saved site, KPI, and tooling context22- ask only for project-specific scaffold details that are still missing2324## Required inputs25- Project directory name.26- Data source: GSC MCP export (JSON/CSV) or manual file.27- Persistence target: in-browser IndexedDB via `sql.js`.2829## Tooling & credentials3031- Auth mode: `manual-file`32- Requires: no live credential33- Input path: GSC MCP export or manual CSV/JSON file34- Fallback: manual file remains the default fallback when live MCP access is unavailable3536Follow the shared setup and missing-access rules in `docs/credentials-and-tooling.md`.3738## Workflow39401. **Scaffold the project**41 - Run `npm create vite@latest <project-name> -- --template react-ts` (or `bun create vite@latest ...` if Bun is preferred).42 - Enter the new folder and install deps (`npm install`/`bun install`).43 - Use `exa` (or web search) to confirm the latest Vite React template command if the tooling switches.44452. **Add dependencies**46 - Install `react`, `react-dom` (if not already) along with `zod`.47 - Install runtime helpers: `sql.js` for the SQLite engine and `idb-keyval` for Persisting exported bytes.48 - Keep `typescript` + `vite` dev dependencies aligned with the template.49503. **Implement the app**51 - Configure `sql.js` using the `sql-wasm.wasm` bundle; wrap initialization in a helper to reuse across hooks.52 - Build an import flow that accepts CSV/JSON and normalizes rows into `{ date, query, page, clicks, impressions, ctr, position }`.53 - Store normalized rows into a `gsc_rows` table with indexes on `date`, `query`, and `page`, then export the database and persist via `idb-keyval`.54 - Surface KPIs: total clicks/impressions/CTR/weighted position, top queries, top pages, and CTR gap opportunities filtered by impressions/position buckets.55 - Include file + fetch controls (`<input type="file">`, fetch from `/gsc/latest.json`), custom filters, and a reset button.56 - Style the layout with CSS variables and card/grid patterns, keeping readability front-and-center (sticky header, callouts, narrow text width).57584. **Run & iterate**59 - Start the dev server with `npm run dev` or `bun run dev`.60 - Load sample exports (provide a `public/gsc/latest.json` for convenience) and verify persistence across reloads.61 - Document expected import schema and heuristics for CTR opportunities in README or inline comments.6263## Tool checks64- When unsure which packages to add or how to initialize `sql.js`, run an `exa` search such as `exa "vite react sql.js setup"` to gather up-to-date commands.65- Refer to the `Skill creation process` section of `seo-skills/README.md` when expanding the skill further.