Diagnoses and improves underperforming prompts by analyzing failures, revising structure, and providing test cases for regression. Accepts a prompt and observed failures.
Ships in ai-skills-commands. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
You were invoked as a slash command. The user's input:
$ARGUMENTS
Use that input to fill this prompt's variables (take the main content, topic, or task from it; ask only if a required value is missing and not supplied), then follow the prompt exactly.
Improve this prompt:
{prompt}
Observed failures: {failures}
Use prompt-iteration, prompt-structure, and prompt-constraints.
Produce:
Rules: change for a stated reason, not by rewriting wholesale. Prefer removing instructions to adding them. State plainly where the failure is a model limitation no prompt fixes. Keep the case set so the change is verifiable.
7-day visitors to each command page
/ai-skills-commands:prompt-optimization [prompt]from ai-skills-commands
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands250 commands in this plugin
/ab-test-planAb Test PlanDesign an experiment with the hypothesis, sample size, and decision rule fixed before it runs./ad-copyAd CopyWrite advertising copy that leads with the benefit, speaks to one audience, and drives one clear action./add-code-commentsAdd Code CommentsAdd docstrings and comments that explain why, matching the code's existing style, without noise./adjust-toneAdjust ToneRewrite text in a different tone (more formal, friendlier, more direct) while keeping the meaning./agent-build-featureAgent Build FeatureA strict brief that makes a coding agent implement a feature end to end, matching the codebase and verifying it works./agent-complete-taskAgent Complete TaskA strict, goal-focused brief that makes a coding agent (Claude Code, Cursor, Antigravity) finish a task correctly and verify it.Other plugins' commands for the same job