agentleFS
GhanyteGhanyte/geo-seo-audit/CLAUDE.md

geo-seo-audit

CLAUDE.md9 starsChanged 7 months agoMITView on GitHub

These rules govern how Claude (or any AI agent) works in this repository. They are loaded at the start of every session and override defaults. The repo is a GEO audit toolkit, audit-only, no sales/CRM (see docs/LLM_RETRIEVAL_ARCHITECTURE.md for methodology). The rules below come from Anthropic's internal dev practices — adopt them strictly. The TodoWrite tool stays the in-session runtime tracker. tasks/todo.md is the durable, repo-visible plan that survives sessions and is part of the project's collaboration contract.

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

13 rules. About 0 are common, 10 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If something goes sideways, STOP and re-plan immediately — don't keep pushing.

    line 13
  2. Distinctive:

    Use plan mode for verification steps, not just building.

    line 14
  3. Distinctive:

    Write detailed specs upfront to reduce ambiguity.

    line 15
  4. Distinctive:

    Use subagents liberally to keep the main context window clean.

    line 18
  5. Very specific:

    After ANY correction from the user: update tasks/lessons.md with the pattern.

    line 24
  6. Distinctive:

    Write rules for yourself that prevent the same mistake.

    line 25
  7. Distinctive:

    Never mark a task complete without proving it works.

    line 30
  8. Distinctive:

    Ask yourself: "Would a staff engineer approve this?"

    line 32
  9. Distinctive:

    Run tests, check logs, demonstrate correctness.

    line 33
  10. Distinctive:

    If a fix feels hacky: "Knowing everything I know now, implement the elegant solution."

    line 37
  11. Distinctive:

    When given a bug report: just fix it.

    line 42
  12. Very specific:

    Audit-only philosophy: never recommend pricing tiers, MRR projections, traffic uplift estimates, or "client-ready" sales framing.

    line 71
  13. Very specific:

    site-client/ is gitignored: never commit audit artefacts.

    line 75

≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md — operating rules for this repo

These rules govern how Claude (or any AI agent) works in this repository. They are loaded at the start of every session and override defaults.

The repo is a GEO audit toolkit, audit-only, no sales/CRM (see docs/LLM_RETRIEVAL_ARCHITECTURE.md for methodology). The rules below come from Anthropic's internal dev practices — adopt them strictly.


Working Rules

1. Plan Mode Default

  • Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions).
  • If something goes sideways, STOP and re-plan immediately — don't keep pushing.
  • Use plan mode for verification steps, not just building.
  • Write detailed specs upfront to reduce ambiguity.

2. Subagent Strategy

  • Use subagents liberally to keep the main context window clean.
  • Offload research, exploration, and parallel analysis to subagents.
  • For complex problems, throw more compute at it via subagents.
  • One task per subagent for focused execution.

3. Self-Improvement Loop

  • After ANY correction from the user: update tasks/lessons.md with the pattern.
  • Write rules for yourself that prevent the same mistake.
  • Ruthlessly iterate on these lessons until mistake rate drops.
  • Review lessons at session start when relevant to the current task.

4. Verification Before Done

  • Never mark a task complete without proving it works.
  • Diff behaviour between main and your changes when relevant.
  • Ask yourself: "Would a staff engineer approve this?"
  • Run tests, check logs, demonstrate correctness.

5. Demand Elegance (Balanced)

  • For non-trivial changes: pause and ask "is there a more elegant way?"
  • If a fix feels hacky: "Knowing everything I know now, implement the elegant solution."
  • Skip this for simple, obvious fixes — don't over-engineer.
  • Challenge your own work before presenting it.

6. Autonomous Bug Fixing

  • When given a bug report: just fix it. Don't ask for hand-holding.
  • Point at logs, errors, failing tests — then resolve them.
  • Zero context switching required from the user.
  • Go fix failing CI tests without being told how.

Task Management

  1. Plan First — Write the plan to tasks/todo.md with checkable items.
  2. Verify Plan — Check in with the user before starting implementation on non-trivial work.
  3. Track Progress — Mark items complete as you go.
  4. Explain Changes — High-level summary at each step.
  5. Document Results — Add a review section to tasks/todo.md.
  6. Capture Lessons — Update tasks/lessons.md after corrections.

The TodoWrite tool stays the in-session runtime tracker. tasks/todo.md is the durable, repo-visible plan that survives sessions and is part of the project's collaboration contract.


Core Principles

  • Simplicity First — Make every change as simple as possible. Impact minimal code.
  • No Laziness — Find root causes. No temporary fixes. Senior developer standards.

Project-Specific Reminders

  • Audit-only philosophy: never recommend pricing tiers, MRR projections, traffic uplift estimates, or "client-ready" sales framing. Findings are framed in effort × score-gain × confidence. See feedback_audit_only in user memory.
  • Per-LLM analysis: report citation likelihood per LLM (ChatGPT/Google, Gemini/Google, Perplexity/multi, Claude/Brave, Le Chat/Brave). No single composite "AI readiness" score — see docs/LLM_RETRIEVAL_ARCHITECTURE.md.
  • Evidence over claim: distinguish proven signals (Schema validity, crawler access, Wikipedia/Wikidata presence, SERP rank) from emerging / weakly-evidenced ones (llms.txt, citability passage scoring). Tag confidence on every finding.
  • No paid APIs: the toolkit must run without paid LLM/search APIs. Free public APIs (MediaWiki, Wikidata SPARQL, Brave Search free tier, Wayback) and respectful scraping only.
  • site-client/ is gitignored: never commit audit artefacts. Local-only by design.
  • Branch hygiene: single branch main. No upstream remote is configured. Don't reintroduce one — the repo's history is intentionally self-contained.
  • Output language: audit reports default to the audited site's language (detected via scripts/site_locale.py — HTML lang → Content-Language → TLD → fallback en). The user can override with --output-lang <iso2>. Fallback: English. This applies to all skills and scripts that produce user-facing Markdown / prose. See tasks/lessons.md 2026-04-25 entry for rationale.

Download now (ZIP)

Does 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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.