open-seo CLAUDE.md

open-seo CLAUDE.md is an instructions file for coding agents from every-app/open-seo. It costs 807 tokens per session, scanned A, a copy of open-seo AGENTS.md, MIT.

Repository instructions for open-seo, a web application. They describe coding principles, data design, testing, and the project's preferred TypeScript and TanStack patterns.

In plain words
What is it for?
Building, testing, and reviewing open-seo features, including server functions, database access, validation, routing, forms, and query handling.
Why use it?
They reduce inconsistent implementation choices and help changes remain compatible with both SQLite and PostgreSQL.

Instructions file

About the project

OpenSEO is an open-source SEO platform for keyword research, rank tracking, competitor analysis, backlink analysis, site audits, and AI visibility work. It connects SEO data to AI agents through an MCP server and reusable agent skills, while allowing users to supply their own DataForSEO API key and self-host the tool. Catalogue add-ons guide agents through OpenSEO's SEO workflows.

every-app/open-seo · 17,031 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/every-app/open-seo/claude-md
Clone the repo
git clone --depth 1 https://github.com/every-app/open-seo

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for open-seo CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/every-app/open-seo/claude-md.svg)](https://agentmods.dev/instructions/every-app/open-seo/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/every-app/open-seo/claude-md"><img src="https://agentmods.dev/badge/instructions/every-app/open-seo/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 807 This file is loaded in full into every session.
When invoked 807 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00807 $0.00807
Opus 5 $0.00404 $0.00404
Sonnet 5 $0.00161 $0.00161
Haiku 4.5 $0.00081 $0.00081

Measured 5d ago against content hash 5d33ad081d7c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

open-seo CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

86% identical to open-seo AGENTS.md — 12 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 38 lines

How it starts

The opening of the file, as written. The whole thing — 38 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent guidance

Engineering principles

  • Prefer simple, readable, flat code with minimal indirection.
  • Search for existing implementations and installed libraries before creating new helpers or abstractions.
  • Abstract when it prevents meaningful drift and makes the result simpler to maintain. Avoid speculative or one-use abstraction layers.
  • Keep product data normalized and relationships explicit. Do not encode relational data in JSON or text merely to avoid joins.
  • For new application-backed backend functionality, default to: TanStack server function → service → repository.
  • Keep schema changes, queries, and mutations compatible with both SQLite and Postgres.
  • Use idiomatic TypeScript. Use Zod to validate untrusted data and narrow runtime values at trust boundaries.
  • Prefer established project helpers and libraries over hand-rolled implementations.
  • Prefer idiomatic TanStack Query, Router, and Form patterns for server state, routing, and submitted forms.

Testing

  • Don't add tests just for the sake of it. A test exists to enforce core behavior or a hard-to-spot edge case that could actually occur.
  • Keep tests as simple as possible, and always review them looking for simplifications.
  • Test behavior at the public entry point. Assert argument forwarding to a mocked collaborator only when that mapping is the contract (billing params, telemetry events).
  • Statically import the module under test. vi.mock is hoisted, so per-test await import() and vi.resetModules() are banned unless module-level state must reset — comment why.
  • Never re-declare a production class in a test. Import the real one; if the module is too heavy to import, move the class to a leaf module first (see ga4Errors.ts, gscErrors.ts).
  • beforeEach sets default mock return values only. Vitest's clearMocks already resets call state — no mockReset/mockClear ceremonies.
  • Fixtures contain only the fields the test asserts on or the types require. Shared shapes get a factory with overrides (see ga4-test-fixtures.ts, tool-test-support.ts); a fixture longer than its test's assertions is a smell.
  • One test per invariant. Don't re-test Zod or a library, and don't repeat an output-schema round-trip in every happy path.
  • Don't mock ORM builder chains. Test repositories through services or real SQL evaluation; chain mocks break on refactors that change no behavior.

Read the full file on GitHub · 38 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 38 lines · 807 tokens per session scan A 5d33ad081d7c

Subscribe to this mod's changes

open-seo CLAUDE.md is an instructions file published in the GitHub repository every-app/open-seo (17,031 stars, last pushed yesterday), licensed MIT. It adds 807 tokens to every session, about $0.0040 per session on Opus 5. A static security scan graded it A with 0 findings. It is 86% identical to open-seo AGENTS.md, differing in 12 lines, and is treated as a copy.