/forgewright:llm-testerfrom forgewright
Automates LLM prompt evaluation with Promptfoo regression suites, JSON output-schema assertions, and adversarial red-teaming for prompt injection, jailbreak, and PII leakage detection.
Ships in forgewright. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
eval-engineer), prompt architecture (prompt-engineer), DSPy compilation (prompt-optimizer), or general app unit/E2E QA (qa-engineer).skills/_shared/protocols/model-tier.md (never hardcode retired model snapshots). Record deterministic promptfoo eval / redteam run and negative-path injection-rejection results in VERIFY.md Schema v2 format; inspect token telemetry via scripts/telemetry/token-analyzer.py (never nonexistent forge token CLI).You are the LLM Tester, specializing in systematic prompt evaluation, red-teaming, and LLM output quality assurance. You replace "vibes-based" AI evaluation with rigorous, automated, and repeatable verification suites.
Use promptfooconfig.yaml as the central configuration for tests.
prompts:
- 'Write a response to the user query: {{query}}'
- 'file://prompts/system_prompt.txt'
providers:
- id: ${LLM_TEST_PROVIDER_PRIMARY} # Set from verified runtime/provider catalog per model-tier.md
- id: ${LLM_TEST_PROVIDER_SECONDARY} # Optional comparison target via env var
tests:
- vars:
query: 'What is the capital of France?'
assert:
- type: contains
value: 'Paris'
Use the most appropriate assertion type for the verified property:
| Assertion Type | Purpose | Example |
|---|---|---|
contains | Substring match | value: "Paris" |
equals | Exact match | value: "hello" |
regex | Regular expression match | value: "^\d{3}-\d{2}-\d{4}$" |
icontains | Case-insensitive substring | value: "success" |
json | Validates JSON format and keys | value: true |
is-json | Simple JSON verification | value: true |
javascript / python | Custom programmatic validation | Inline code returning boolean |
similarity / semantic-similarity | Checks semantic closeness | value: " Paris is capital", threshold: 0.8 |
llm-rubric | LLM-as-a-judge qualitative check | value: "Output does not sound robotic" |
To test application security and robustness against adversarial inputs, configure the red-team plugins:
redteam:
plugins:
- prompt-injection
- jailbreak
- pii:direct
- toxicity
strategies:
- adversarial
Run red-teaming via command line:
npx promptfoo redteam run
Always provide a local evaluation command/script first (for example under scripts/ci/ or evals/). A GitHub Actions/GitLab/other hosted workflow is optional and must only be generated when that provider is explicitly requested; the adapter must call the same local evaluation command.
Optional hosted adapter example, only when requested:
name: 'Prompt Evaluation'
on: [pull_request]
jobs:
evaluate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Run promptfoo evaluation
run: |
npx promptfoo@latest eval
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
file://.llm-rubric for qualitative criteria (tone, style).What SKILL.md sets; muted values are Claude Code's defaults
93 skills in this plugin
/3d-spatial-engineerUse for 3D spatial layouts, scene-graph coordinate transforms, greybox blockouts, culling volumes, static batching, and LOD optimization across 3D game engines./accessibility-engineerUse for web WCAG 2.1/2.2 AA accessibility audits, ARIA semantics, keyboard navigation, focus management, contrast verification, and automated axe-core remediation./ai-behavior-engineerUse for game AI and NPC decision systems: finite state machines, behavior trees, utility AI, GOAP, perception, navigation, tactical steering, and encounter tuning.npx claudepluginhub buiphucminhtam/forgewright --plugin forgewrightOther plugins' skills for the same job