ouakar/web-hosting-ubinarys-dental/prompt-optimizer

Claude Code and agent skill by ouakar/web-hosting-ubinarys-dental

Trust tier 2
  • community
LLM review pending
Source check pending

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-optimizer

Semi-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-loop flags 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.md logic into dynamic dspy.Module classes.

Process Flow

  1. Information Gathering: Read the .forgewright/scoring-lessons.md and .forgewright/plan-lessons.md to identify the failing skill.
  2. Setup DSPy Environment: If the Python environment for DSPy isn't ready, you install it (pip install dspy-ai).
  3. Define Signature & Metric: You write a Python dspy.Signature representing the inputs/outputs of the failing skill. You define a deterministic Python metric (e.g., parsing the output to see if it compiles).
  4. Compile: You run a DSPy teleprompter (like MIPROv2 or BootstrapFewShot) over the historical failure data to compile an optimized prompt.
  5. Writeback: You inject the optimized output back into the target SKILL.md as heavily optimized few-shot examples.

Example DSPy Script Scaffold

When invoked to optimize a skill, generate a script similar to this:

python
import dspy
from dspy.teleprompt import BootstrapFewShot
lm = dspy.LM('openai/gpt-4o')
dspy.settings.configure(lm=lm)
class SkillSignature(dspy.Signature):
"""Generate an execution plan based on user requirements."""
requirements = dspy.InputField()
plan = dspy.OutputField()
class OptimizationModule(dspy.Module):
def __init__(self):
super().__init__()
self.generate_plan = dspy.ChainOfThought(SkillSignature)
def forward(self, requirements):
return self.generate_plan(requirements=requirements)
def deterministic_metric(example, pred, trace=None):
# Parse the plan and run a bash dry-run!
# Return True if perfectly valid, False otherwise.
return True # Placeholder for actual validation
# Load history from .forgewright/plan-lessons.md
trainset = [dspy.Example(requirements="Build auth", plan="...").with_inputs('requirements')]
teleprompter = BootstrapFewShot(metric=deterministic_metric, max_bootstrapped_demos=3)
optimized_skill = teleprompter.compile(OptimizationModule(), trainset=trainset)
# Save the compiled prompt back to the system
optimized_skill.save("compiled_skill.json")

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ouakar/web-hosting-ubinarys-dental/prompt-optimizer/badge)](https://verified-skill.com/skills/ouakar/web-hosting-ubinarys-dental/prompt-optimizer)

Something wrong with this skill or its page? Tell us.