claude-rank
CLAUDE.md147 starsChanged 8 months agoMITView on GitHub
In this repository7 other files it gives its agents.
- llms.txtllms.txt
- rank-aeoSkill
- rank-auditSkill
- rank-fixSkill
- rank-geoSkill
- rank-schemaSkill
- rankSkill
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
- Very specific: line 36
All files use .mjs extension (ESM modules)
- Very specific: line 39
Use execFileSync only (never execSync with shell strings) to prevent injection
- Very specific: line 41
Always call checkFileSize(path) from tools/lib/security.mjs before readFileSync
- Distinctive: line 45
All scores: 0-100 (higher is better)
- Very specific: line 60
Commit style: conventional commits (feat:, fix:, docs:, chore:)
- Very specific: line 65
Do not npm publish without setting token in .npmrc first
≈ “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.
Files
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:
htmlparser2for HTML parsing (no build step required) - No TypeScript: Plain ESM
.mjsfiles throughout - No bundler: Direct node execution
Conventions
Code
- All files use
.mjsextension (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
execFileSynconly (neverexecSyncwith shell strings) to prevent injection - SSRF protection: always validate URLs via
tools/lib/security.mjsbefore fetching - Always call
checkFileSize(path)fromtools/lib/security.mjsbeforereadFileSync - Skill files: max 500 lines per SKILL.md
Scoring System
- All scores: 0-100 (higher is better)
- Deductions:
critical: -20 pointshigh: -10 pointsmedium: -5 pointslow: -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 houseofmvpsaccount has 2FA enabled — use granular access token, not legacy token- Do not
npm publishwithout setting token in.npmrcfirst
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
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.

