claude-code-misc / meta-prompter
CLAUDE.md2 starsChanged 8 months agoMITView on GitHub
This is a Meta-Prompter MCP Server that evaluates prompts using AI models and returns structured JSON analysis. It functions as an MCP (Model Context Protocol) server that provides prompt evaluation services through two main tools: ping for connection testing and evaluate for prompt analysis. FastMCP Server (index.ts): Entry point that registers two tools: - ping: Connection verification - evaluate: Main prompt evaluation with 8-dimension scoring Model Resolution (resolveModel.ts): - Uses createProviderRegistry from AI SDK to resolve model strings - Model…
- Reads credentials
- Installs packages
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- a2a-js-devSkill
- adr-authorSkill
- animejsSkill
- inktuiSkill
- ladybugdbSkill
- oxfmtSkill
- oxlintSkill
- tauri-v2Skill
- telegram-botSkill
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 87
No unused variables, prefer const over let/var
≈ “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.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
This is a Meta-Prompter MCP Server that evaluates prompts using AI models and returns structured JSON analysis. It functions as an MCP (Model Context Protocol) server that provides prompt evaluation services through two main tools: ping for connection testing and evaluate for prompt analysis.
Development Commands
Setup and Build
./setup.sh- Complete setup: installs dependencies and builds the projectnpm install --legacy-peer-deps- Install dependencies (note the legacy peer deps flag)npm run build- Compile TypeScript to JavaScript in/distnpm start- Run the compiled server from/dist/index.js
Development Tools
npm run lint- Run ESLint on TypeScript filesnpm run lint:fix- Auto-fix ESLint issuesnpx @modelcontextprotocol/inspector node dist/index.js- Test with MCP Inspector
Testing
Currently no test suite is configured (package.json shows placeholder test script).
Results Viewing
eval-viewer.html- SPA for viewing evaluation results (served as MCP resource)- Evaluation results are logged to
evaluation_result.jsonlin JSONL format
Architecture Overview
Core Structure
The project follows SOLID principles with dependency injection and clear separation of concerns:
src/
├── index.ts # FastMCP server setup and tool registration
├── prompt.ts # Evaluation prompt template and builder
├── resolveModel.ts # Model resolution via AI SDK provider registry
├── interfaces/ # TypeScript interfaces for contracts
│ ├── IEvaluationService.ts
│ └── ILogger.ts
└── services/ # Business logic services
├── EvaluationService.ts
└── FileLogger.tsKey Components
FastMCP Server (index.ts): Entry point that registers two tools:
ping: Connection verificationevaluate: Main prompt evaluation with 8-dimension scoring
Model Resolution (resolveModel.ts):
- Uses
createProviderRegistryfrom AI SDK to resolve model strings - Model key format:
provider:model-id(e.g.,anthropic:claude-sonnet-4-20250514) - Supports Anthropic and OpenAI providers
Evaluation System:
- Uses structured prompt template in
prompt.tswith weighted scoring across 8 dimensions - Temperature set to 0 for consistent scoring
- Returns JSON-only structured results via
generateTextwithOutput.object()from AI SDK
Logging:
FileLoggerappends evaluation results toevaluation_result.jsonl- Results viewable via
eval-viewer.htmlSPA - Non-blocking logging (evaluation continues even if logging fails)
Environment Configuration
Required environment variables:
PROMPT_EVAL_MODEL- Model key inprovider:model-idformat (defaults toanthropic:claude-sonnet-4-20250514)PROMPT_EVAL_API_KEY- API key for the chosen model provider
MCP Integration
Configure with Claude Code using:
claude mcp add meta-prompter --env PROMPT_EVAL_MODEL=anthropic:claude-sonnet-4-20250514 --env PROMPT_EVAL_API_KEY=<api_key> -- node <absolute_path>/start.jsCode Standards
ESLint configuration enforces:
- TypeScript strict mode with explicit typing
- Single quotes, 2-space indentation, trailing commas
- No unused variables, prefer const over let/var
- Console logging allowed for MCP server operations
The project uses ES modules ("type": "module") with Node.js 18+ requirement.
Key Dependencies
- AI SDK:
aipackage withgenerateObjectfor structured responses - Model Providers:
@ai-sdk/anthropic,@ai-sdk/openaifor AI integration - MCP Framework:
fastmcpfor Model Context Protocol server functionality - Schema Validation:
zodfor TypeScript type generation and runtime validation - Development:
tsxandjitifor TypeScript execution during development
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.

