agentleFS
HouseofmvpsHouseofmvps/claude-rank/CLAUDE.md

claude-rank

CLAUDE.md147 starsChanged 8 months agoMITView on GitHub

The file

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

6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All files use .mjs extension (ESM modules)

    line 36
  2. Very specific:

    Use execFileSync only (never execSync with shell strings) to prevent injection

    line 39
  3. Very specific:

    Always call checkFileSize(path) from tools/lib/security.mjs before readFileSync

    line 41
  4. Distinctive:

    All scores: 0-100 (higher is better)

    line 45
  5. Very specific:

    Commit style: conventional commits (feat:, fix:, docs:, chore:)

    line 60
  6. Very specific:

    Do not npm publish without setting token in .npmrc first

    line 65

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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-rank

Project Overview

  • Name: claude-rank
  • npm: claude-rank (published under Houseofmvps)
  • GitHub: https://github.com/Houseofmvps/claude-rank
  • Description: Claude Code plugin that tells you why your site won't get cited by AI — and fixes the discoverability files automatically.
  • License: MIT

Architecture

claude-rank/
├── bin/              # CLI entry point (claude-rank.mjs)
├── tools/            # Core scanning tools (seo-scanner, geo-scanner, aeo-scanner)
│   └── lib/          # Shared utilities (security.mjs, html-parser.mjs, etc.)
├── skills/           # Claude Code skill definitions (.md files, max 500 lines each)
├── agents/           # Autonomous agent definitions
├── commands/         # Slash command implementations
├── hooks/            # Claude Code lifecycle hooks
├── research/         # Research prompts and templates
├── tests/            # Node --test based tests
│   └── fixtures/     # Test HTML/JSON fixtures
└── .claude-plugin/   # Plugin manifest (plugin.json)

Tech Stack

  • Runtime: Node.js >= 18, ESM only ("type": "module")
  • Dependencies: htmlparser2 for HTML parsing (no build step required)
  • No TypeScript: Plain ESM .mjs files throughout
  • No bundler: Direct node execution

Conventions

Code

  • All files use .mjs extension (ESM modules)
  • File naming: kebab-case always (e.g., seo-scanner.mjs, geo-checker.mjs)
  • Tools output JSON to stdout, exit code 0 on success
  • Use execFileSync only (never execSync with shell strings) to prevent injection
  • SSRF protection: always validate URLs via tools/lib/security.mjs before fetching
  • Always call checkFileSize(path) from tools/lib/security.mjs before readFileSync
  • Skill files: max 500 lines per SKILL.md

Scoring System

  • All scores: 0-100 (higher is better)
  • Deductions:
    • critical: -20 points
    • high: -10 points
    • medium: -5 points
    • low: -2 points
  • Separate scores for SEO, GEO, and AEO — plus an overall composite

Terminology (CRITICAL — do not mix up)

  • GEO = Generative Engine Optimization (optimization for AI search engines like Perplexity, ChatGPT, Gemini) — NOT geographic
  • AEO = Answer Engine Optimization (optimization for featured snippets, People Also Ask, voice search)
  • SEO = Traditional Search Engine Optimization (Google, Bing crawlability, indexability, on-page)

Git

  • Commits: user.email = houseofmvps2024@gmail.com, user.name = Houseofmvps
  • Commit style: conventional commits (feat:, fix:, docs:, chore:)

Publishing

  • npm publish with granular token via .npmrc
  • houseofmvps account has 2FA enabled — use granular access token, not legacy token
  • Do not npm publish without setting token in .npmrc first

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.