mcp-prompt-optimizer: Command for Claude Code

.claude/commands/README.md

README is a command for Claude Code from grandinh/mcp-prompt-optimizer. It costs 0 tokens per session (462 once invoked), scanned A, original, MIT.

A set of custom Claude Code slash commands for researching, checking, and implementing software changes. Its main documented command, /ori, can research sources and the codebase, verify findings, apply changes, and update documentation.

In plain words
What is it for?
Use /ori for tasks such as adding authentication or rate limiting, fixing bugs, improving performance, and updating project documentation.
Why use it?
It organizes feature work and bug fixes into repeatable research, verification, implementation, and documentation stages. This reduces the need to coordinate those stages manually.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions Claude Code.

This is grandinh/mcp-prompt-optimizer's own configuration. It tells Claude Code how to work on mcp-prompt-optimizer itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-prompt-optimizer configures →

Reuse

Borrowing it

Nothing to install: this file belongs to grandinh/mcp-prompt-optimizer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/grandinh/mcp-prompt-optimizer/main/.claude/commands/README.md
Clone the repo
git clone --depth 1 https://github.com/grandinh/mcp-prompt-optimizer

Made for: Claude Code.

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 README

README.md
[![agentmods](https://agentmods.dev/badge/commands/grandinh/mcp-prompt-optimizer/readme/github.svg)](https://agentmods.dev/commands/grandinh/mcp-prompt-optimizer/readme)
Your own site
<a href="https://agentmods.dev/commands/grandinh/mcp-prompt-optimizer/readme"><img src="https://agentmods.dev/badge/commands/grandinh/mcp-prompt-optimizer/readme/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for README

Your own site · 80×15
<a href="https://agentmods.dev/commands/grandinh/mcp-prompt-optimizer/readme"><img src="https://agentmods.dev/badge/commands/grandinh/mcp-prompt-optimizer/readme.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 462 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.1 $0.00000 $0.00462
Opus 5 $0.00000 $0.00231
Sonnet 5 $0.00000 $0.00092
Haiku 4.5 $0.00000 $0.00046

Measured 9d ago against content hash cd116c12c86d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

README 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 9d 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.

.claude/commands/README.md · 78 lines

What it actually says

Custom Slash Commands

This directory contains custom Claude Code slash commands for the MCP Prompt Optimizer project.

Available Commands

/ori - Optimize Research Implement

Purpose: Autonomous workflow for researching, validating, and implementing changes with minimal user input.

Usage:

/ori <your request>

Examples:

# Add a new feature
/ori add JWT authentication to the Express API

# Fix a bug
/ori fix the memory leak in the data processing pipeline

# Optimize performance
/ori optimize database queries for the user dashboard

# Research and implement best practices
/ori add rate limiting to all API endpoints using industry standards

What it does:

  1. Phase 1: Research - Automatically searches web, docs, and codebase
  2. Phase 2: Verify - Cross-validates findings and checks for risks
  3. Phase 3: Implement - Applies changes with error handling
  4. Phase 4: Document - Updates README, CHANGELOG, and other docs

Configuration: Edit .claude/ori-config.json to customize behavior:

  • Auto-approve low-risk changes
  • Research depth and source count
  • Documentation update preferences
  • Error handling settings

Full Documentation: See ori.md


Creating Custom Commands

To create a new slash command:

  1. Create a new .md file in this directory: .claude/commands/your-command.md
  2. Write the command specification/prompt
  3. Use the command: /your-command <args>

Example:

# Create .claude/commands/test.md with content:
# "Run all tests in the project and report results"

# Then use it:
/test

Command Best Practices

  1. Be specific - Clear commands get better results
  2. Provide context - Include tech stack, constraints when relevant
  3. Review output - Check implementation before committing
  4. Use config - Customize behavior via config files
  5. Iterate - Refine commands based on results

Last updated: 2025-11-08

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. 9d ago First seen · 78 lines · 0 tokens per session scan A cd116c12c86d

Subscribe to this mod's changes

README is a command published in the GitHub repository grandinh/mcp-prompt-optimizer (0 stars, last pushed 10mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 462 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.