ckokoski/fibb/prompt-optimizer
- community
Checking that the SKILL.md file is still in the repository.
Automatically improves prompts based on output quality, user feedback, and A/B testing results
Install
npx vskill@latest install ckokoski/fibb/prompt-optimizerSKILL.md
Prompt Optimizer — Core Skill
AuthorAgent's prompts are its most important tool. This skill continuously optimizes them based on what actually produces good results — not guesswork, but measured outcomes.
The Problem
Every skill, goal step, and system prompt contains prompts. Some work great. Some produce mediocre results. Without measurement, you're flying blind. The Prompt Optimizer tracks which prompt formulations produce the best outputs and evolves them over time.
How It Works
Prompt Tracking
Every prompt sent to an AI provider is logged with its outcome:
Quality Signals
The optimizer watches for these signals:
Positive signals (prompt is working):
- User accepted output without edits
- Output matched requested format/length
- No follow-up "try again" or "that's not what I meant"
- User explicitly praised the result
- Output was saved to a file (user valued it enough to keep)
Negative signals (prompt needs improvement):
- User heavily edited the output
- User said "try again" or "not quite"
- Output was too long/short for the task
- AI produced an error or refusal
- Output missed key requirements from the prompt
- User abandoned the result
Prompt Evolution
When a prompt consistently underperforms, the optimizer creates variations:
Optimization Strategies
- Add Specificity — Vague prompts ("write well") → Specific ("write in present tense, under 3000 words, with a cliffhanger ending")
- Add Examples — Show the AI what "good" looks like for this task
- Add Constraints — Boundaries improve output ("exactly 3 paragraphs", "no adverbs", "start with dialogue")
- Role Framing — "You are a [expert role]" can dramatically change quality
- Chain of Thought — For complex tasks, add "First analyze X, then plan Y, then write Z"
- Negative Examples — "Do NOT do X" can be as powerful as "Do Y"
- Output Format — Specifying exact output format reduces parsing errors
Automatic Optimization
When the optimizer detects a consistently weak prompt:
- Analyzes the failure pattern (too vague? wrong format? missing context?)
- Generates 2-3 variations using different strategies
- Rotates variations across future uses (A/B testing)
- Tracks outcomes per variation
- Promotes the best performer after sufficient data (minimum 5 uses)
- Logs the change to the improvement log
Storage
Prompt data lives in workspace/memory/prompts/:
Manual Optimization
Optimize a Specific Skill's Prompts
Analyzes all historical uses of the blurb-writer skill and suggests improvements.
Test a Prompt Variation
Runs the variation alongside the current prompt and compares results.
View Prompt Performance
Shows prompt win rates, A/B test status, and optimization suggestions.
Force a Prompt Update
Manually override a skill's prompt template.
Integration
- Self-Improvement Loop — Prompt changes are logged as lessons
- After-Action Review — Reviews identify which prompts contributed to good/bad outcomes
- Goal Engine — Dynamic planning prompts are optimized too (not just skill prompts)
- All AI Providers — Different providers may need different prompt styles (tracked separately)
Commands
optimize prompt for [skill]— Analyze and suggest improvements for a skill's promptsprompt stats— View performance metrics across all promptsprompt lab— Enter interactive prompt testing modetest prompt [text]— A/B test a prompt variationshow prompt winners— See which optimizations have been promotedprompt history [skill]— View prompt evolution for a specific skill
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/core/prompt-optimizer/SKILL.md
Popularity
- Repository stars
- 127
- Repository forks
- 45
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ckokoski/fibb/prompt-optimizer)