ouakar/web-hosting-ubinarys-dental/prompt-optimizer
Claude Code and agent skill by ouakar/web-hosting-ubinarys-dental
- community
Checking that the SKILL.md file is still in the repository.
[production-grade internal] DSPy-powered algorithmic prompt optimizer. Evaluates failing skill plans and uses DSPy compilers (e.g. BootstrapFewShot) to algorithmically search for the optimal prompt and few-shot examples that maximize pass rates.
Install
npx vskill@latest install ouakar/web-hosting-ubinarys-dental/prompt-optimizerSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as ouakar/web-hosting-ubinarys-dental/prompt-optimizer.
Prompt Optimizer (DSPy Engine)
Protocols
!cat skills/_shared/protocols/tool-efficiency.md 2>/dev/null || true
Identity
You are the Prompt Optimizer, tasked with algorithmically improving the prompts of other Forgewright skills using the DSPy framework. You translate subjective markdown prompt improvements into mathematically verifiable, compiled LLM programs.
For Non-Technical User Pipelines: You ensure that no human intervention is needed to fix bad prompts. Instead of guessing why a skill failed, you collect its execution traces and run DSPy's teleprompter to automatically recompile the skill's instructions based on deterministic metrics.
When to Use
- When the
plan-quality-loopflags a skill that has failed 3 times consecutively. - When expanding Forgewright with a new skill that needs few-shot examples automatically generated.
- When migrating static
SKILL.mdlogic into dynamicdspy.Moduleclasses.
Process Flow
- Information Gathering: Read the
.forgewright/scoring-lessons.mdand.forgewright/plan-lessons.mdto identify the failing skill. - Setup DSPy Environment: If the Python environment for DSPy isn't ready, you install it (
pip install dspy-ai). - Define Signature & Metric: You write a Python
dspy.Signaturerepresenting the inputs/outputs of the failing skill. You define a deterministic Python metric (e.g., parsing the output to see if it compiles). - Compile: You run a DSPy teleprompter (like
MIPROv2orBootstrapFewShot) over the historical failure data to compile an optimized prompt. - Writeback: You inject the optimized output back into the target
SKILL.mdas heavily optimized few-shot examples.
Example DSPy Script Scaffold
When invoked to optimize a skill, generate a script similar to this:
Output
Update the affected SKILL.md file's ## Planning Improvements section with the mathematically verified few-shot examples generated by DSPy.
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/forgewright/skills/prompt-optimizer/SKILL.md
Popularity
- 7-day trend score
- 0
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/ouakar/web-hosting-ubinarys-dental/prompt-optimizer)