Help us improve
Share bugs, ideas, or general feedback.
Analyzes user prompts for clarity, scope, specificity, success criteria, and length; provides S/A/B/C/D/F scores and concrete suggestions. Rewrites prompts on request for better Claude Code results.
npx claudepluginhub egorfedorov/claude-context-optimizerHow this skill is triggered — by the user, by Claude, or both
Slash command
/claude-context-optimizer:cco-coachThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
When the user runs `/cco-coach` or asks for "prompt feedback" / "оцени мой промпт", run the analyzer on the user's last natural-language ask (or on text they provide).
Transforms raw prompts into professional-grade, codebase-aware instructions. Use when improving vague/incomplete prompts, adding codebase context, or crafting structured AI requests with templates.
Optimizes prompts for code tasks like implementation, debugging, refactoring, review, and testing by adding investigation steps, verification, anti-hallucination rules, and clarity.
Audits and rewrites prompts for Claude Opus 4.7 instruction-following best practices. Produces a scored audit and rewritten prompt for system prompts, CLAUDE.md, agent definitions, slash commands, SKILL.md, Jinja2 templates, and Pydantic/Zod schemas.
Share bugs, ideas, or general feedback.
When the user runs /cco-coach or asks for "prompt feedback" / "оцени мой промпт", run the analyzer on the user's last natural-language ask (or on text they provide).
If the user passes text after the command (e.g. /cco-coach add login screen):
node ${CLAUDE_PLUGIN_ROOT}/src/prompt-coach.js analyze "the prompt text here"
If no text given, show recent prompt history and average score:
node ${CLAUDE_PLUGIN_ROOT}/src/prompt-coach.js history 10
The coach grades on four dimensions (S/A/B/C/D/F):
After running the script, summarise the top 1–3 suggestions in plain language and offer to rewrite the prompt for the user. If they say yes:
node ${CLAUDE_PLUGIN_ROOT}/src/prompt-coach.js improve "the original prompt"
Then show the improved version with a brief diff explaining what changed.
If you notice the user's prompt scored ≤60 in the last UserPromptSubmit hook and a task is going off the rails (lots of reads with no edits), gently suggest /cco-coach to refine.