prompt-engineer-toolkit
/prompt-engineer-toolkit
Prompt engineering frameworks for building, testing, versioning, and evaluating prompts: chain-of-thought, few-shot, regression testing, and rubrics. Use when designing production prompts, running A/B tests, or building prompt libraries.
- Author
- borghei ↗
- Repository
- Claude-Skills ↗
- Licence
- MIT
- Last repository change
- 23.10.2026
Assessment and security
- Files in this package
- 7
- Scripts
- 3
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 23.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 3 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/eval_scorer.py, scripts/prompt_analyzer.py, scripts/prompt_diff.py
What it does and when to use it
Prompt engineering frameworks for building, testing, versioning, and evaluating prompts: chain-of-thought, few-shot, regression testing, and rubrics. Use when designing production prompts, running A/B tests, or building prompt libraries.
Original author description
Prompt engineering frameworks for building, testing, versioning, and evaluating prompts: chain-of-thought, few-shot, regression testing, and rubrics. Use when designing production prompts, running A/B tests, or building prompt libraries.
How it works
- Core Capabilities
- When to Use
- Clarify First
- Tools
- References
- Scope & Limitations
- Integration Points
SKILL.md preview
---
name: prompt-engineer-toolkit
description: >
Prompt engineering frameworks for building, testing, versioning, and evaluating prompts:
chain-of-thought, few-shot, regression testing, and rubrics. Use when designing production
prompts, running A/B tests, or building prompt libraries.
license: MIT + Commons Clause
metadata:
version: 1.1.0
author: borghei
category: engineering
domain: ai-engineering
tier: POWERFUL
updated: 2026-06-17
frameworks: prompt-patterns, evaluation-rubrics, regression-testing, version-control
tags:
- prompt-engineering
- few-shot
- evals
- regression-testing
- llm
---
# Prompt Engineer Toolkit — Production Prompt Engineering
The complete lifecycle for production prompts: design patterns that work, testing frameworks that catch regressions, versioning systems that track changes, and evaluation rubrics that replace subjective "looks good" with measurable quality. This treats prompts as production code with the same rigor — not clever tricks.
**Tags:** prompt engineering, chain-of-thought, few-shot, evaluation, testing, prompt versioning
## Core Capabilities
- **Prompt patterns** — 6-layer system-prompt architecture, chain-of-thought (standard, scratchpad, self-consistency), few-shot design + dynamic selection, JSON/section output structuring, decomposition pipelines, calibration (temperature + confidence levels).
- **Testing framework** — test-case structure, suite composition (40/30/15/15), a 5-dimension automated scoring rubric with a weighted formula, and a regression-testing protocol.
- **Versioning** — version-control layout, changelog format with rationale/baselines/rollback, and a prompt-diff risk checklist.
- **Failure-mode catalog** — instruction override, format drift, sycophancy, verbosity, hallucination, anchoring, lost-in-the-middle, each with fixes.
- **Lifecycle workflows** — design a prompt, debug a degraded prompt, migrate a prompt to a new model.
## When to Use
- Designing production prompts or building a prompt library.
- Running A/B tests or regression tests on prompt variants.
- Versioning prompts and gating changes on test scores.
- Debugging a degraded prompt or migrating prompts across models.
## Clarify First
Before designing or testing the prompt, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
- **Task & definition of "good":** what the prompt must produce and how success is judged (drives the 5-dimension evaluation rubric).
- **Target model:** calibration (temperature, few-shot count) and migration paths differ by model.
- **Lifecycle stage:** design new / debug a degraded prompt / migrate to a new model (selects the workflow).
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
## Tools
| Tool | Purpose | Command |
|------|---------|---------|
| `eval_scorer.py` | Score evaluation results from JSON test cases (exact/contains/regex) | `python scripts/eval_scorer.py suite.json --fail-under 0.80 --json` |
| `prompt_analyzer.py` | Analyze prompt files for clarity, instruction density, few-shot coverage, tokens | `python scripts/prompt_analyzer.py my_prompt.txt --json` |
| `prompt_diff.py` | Compare two prompt versions for structural changes, instruction deltas, risk | `python scripts/prompt_diff.py v2.txt v3.txt --show-diff --json` |
## References
Load the reference that matches the task — keep this file lean and pull detail on demand:
- **[references/prompt-patterns-catalog.md](references/prompt-patterns-catalog.md)** — complete catalog of prompting techniques with examples: system-prompt architecture, chain-of-thought, few-shot, output structuring, decomposition, and calibration. Read when designing or structuring a prompt.
- **[references/testing-and-versioning.md](references/testing-and-versioning.md)** — test-case design, suite composition, the evaluation rubric and scoring formula, the regression protocol, version-control strategy, changelog format, and diff analysis. Read when building a test suite or managing versions.
- **[references/failure-modes-and-workflows.md](references/failure-modes-and-workflows.md)** — common failure modes, the three lifecycle workflows, a quick-view integration table, the troubleshooting matrix, and success criteria. Read when debugging a prompt or running a workflow.
## Scope & Limitations
**This skill covers:**
- Designing, structuring, and layering system prompts for production AI applications
- Building and running test suites, evaluation rubrics, and regression tests for prompt quality
- Versioning prompts with changelogs, baselines, and rollback plans
- Calibration techniques including temperature tuning, confidence levels, and few-shot selection
**This skill does NOT cover:**
- Fine-tuning or training models -- see `engineering/model-training-pipeline` for training workflows
- Retrieval-augmented generation (RAG) pipeline design -- see `engineering/context-engine` for context retrieval architecture
- Agent orchestration and multi-step tool use -- see `engineering/agent-designer` for agent system design
- LLM infrastructure, hosting, or cost optimization -- see `engineering/llm-gateway-design` for inference infrastructure patterns
## Integration Points
| Skill | Integration | Data Flow |
|-------|-------------|-----------|
| **agent-designer** | Agent system prompts are the highest-stakes prompts; use this toolkit to test and version them | Agent specs → prompt layers → tested system prompts |
| **self-improving-agent** | Prompt degradation signals feed into self-improvement loops for automatic correction | Test suite results → regression alerts → prompt iteration |
| **context-engine** | Retrieved context quality directly impacts prompt effectiveness; coordinate retrieval tuning with prompt testing | Retrieved chunks → prompt context layer → evaluation scores |
| **ab-test-setup** | A/B test prompt variants in production with statistical rigor before full rollout | Prompt candidates → traffic split → scoring comparison → winner promotion |
| **llm-gateway-design** | Gateway handles prompt routing, versioning, and model fallback at the infrastructure layer | Versioned prompts → gateway config → model routing → response logging |
| **code-review-automation** | Code review prompts are high-frequency production prompts that benefit from this toolkit's testing framework | Review criteria → prompt design → test suite → deployed reviewer prompt |
Files in this package (7)
- SKILL.md 7 KB
- references/failure-modes-and-workflows.md 5 KB
- references/prompt-patterns-catalog.md 8 KB
- references/testing-and-versioning.md 4 KB
- scripts/eval_scorer.py 14 KB
- scripts/prompt_analyzer.py 10 KB
- scripts/prompt_diff.py 12 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · borghei/Claude-Skills | 100 | MIT |
| alirezarezvani/claude-skills | 100 | MIT |
| LeoYeAI/openclaw-master-skills | 100 | MIT |
Database snapshot: 13.11.2026 · package version 6e4a8d2e0b0b (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100prompt-engineer
Design, test, and optimize prompts for LLM interactions. Cover prompt patterns (few-shot, chain-of-thought, ReAct), system prompt design, output formatting, prompt evaluation, and prompt optimization techniques. Triggers on "write prompt", "optimize prompt", "design system… - 100prompt-engineering-patterns
Use when designing production-LLM prompts — few-shot, chain-of-thought, system prompts, templates, self-verification — distinct from prompt-optimizer and refine-prompt. - 100prompt-engineer
Writes, refactors, and evaluates prompts for LLMs — generating optimized prompt templates, structured output schemas, evaluation rubrics, and test suites. Use when designing prompts for new LLM applications, refactoring existing prompts for better accuracy or token efficiency,… - 100prompt-engineer
Writes, refactors, and evaluates prompts for LLMs — generating optimized prompt templates, structured output schemas, evaluation rubrics, and test suites. Use when designing prompts for new LLM applications, refactoring existing prompts for better accuracy or token efficiency,… - 100prompt-engineering
Provides workflows to write, debug, and optimize prompts for LLMs, including few-shot example selection, chain-of-thought structuring, system prompt design, and template composition. Use when the user asks to write or improve a prompt, wants help with few-shot examples,… - 100prompt-engineer
Expert in designing effective prompts for LLM-powered applications. Masters prompt structure, context management, output formatting, and prompt evaluation. Use when: prompt engineering, system prompt, few-shot, chain of thought, prompt design.