本文へ移動
cccskills
無料GitHub で公開

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.

インストール方法を見る

含まれるファイル(7)

  • SKILL.md6.4 KB
  • references/failure-modes-and-workflows.md5.5 KB
  • references/prompt-patterns-catalog.md7.6 KB
  • references/testing-and-versioning.md3.8 KB
  • scripts/eval_scorer.py14.2 KB
  • scripts/prompt_analyzer.py9.9 KB
  • scripts/prompt_diff.py11.8 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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, confirm these inputs. If any is unknown or vague, ASK — do not assume:

  • 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)

Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.

Tools

ToolPurposeCommand
eval_scorer.pyScore evaluation results from JSON test cases (exact/contains/regex)python scripts/eval_scorer.py suite.json --fail-under 0.80 --json
prompt_analyzer.pyAnalyze prompt files for clarity, instruction density, few-shot coverage, tokenspython scripts/prompt_analyzer.py my_prompt.txt --json
prompt_diff.pyCompare two prompt versions for structural changes, instruction deltas, riskpython 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 — 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 — 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 — 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

SkillIntegrationData Flow
agent-designerAgent system prompts are the highest-stakes prompts; use this toolkit to test and version themAgent specs → prompt layers → tested system prompts
self-improving-agentPrompt degradation signals feed into self-improvement loops for automatic correctionTest suite results → regression alerts → prompt iteration
context-engineRetrieved context quality directly impacts prompt effectiveness; coordinate retrieval tuning with prompt testingRetrieved chunks → prompt context layer → evaluation scores
ab-test-setupA/B test prompt variants in production with statistical rigor before full rolloutPrompt candidates → traffic split → scoring comparison → winner promotion
llm-gateway-designGateway handles prompt routing, versioning, and model fallback at the infrastructure layerVersioned prompts → gateway config → model routing → response logging
code-review-automationCode review prompts are high-frequency production prompts that benefit from this toolkit's testing frameworkReview criteria → prompt design → test suite → deployed reviewer prompt

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

This skill should be used when the user asks to "check accessibility", "audit WCAG compliance", "scan HTML for a11y issues", "check color contrast", or "find accessibility violations in web pages".

日本語の概要は準備中です。原文の説明を表示しています。

borghei/Claude-Skills9002026年10月7日 更新

Design and run statistically rigorous A/B tests and experiments. Use when planning experiments, calculating sample sizes, designing test variants, selecting metrics, analyzing results, or when someone says "let's test that."

日本語の概要は準備中です。原文の説明を表示しています。

borghei/Claude-Skills9002026年10月7日 更新

Design and analyze A/B tests: sample size, test duration, and statistical significance for conversion experiments. Use when setting up an A/B test, calculating sample size, designing an experiment, or analyzing results.

日本語の概要は準備中です。原文の説明を表示しています。

borghei/Claude-Skills9002026年10月7日 更新

Sales execution across pipeline, discovery, demos, negotiation, and closing. Use when qualifying opportunities, running MEDDIC discovery, building account plans, handling objections, structuring proposals, or forecasting pipeline.

日本語の概要は準備中です。原文の説明を表示しています。

borghei/Claude-Skills9002026年10月7日 更新

Design ad creative across Google, Meta, LinkedIn, Twitter/X, and TikTok with platform format specs, headline formulas, and A/B testing. Use when writing ad copy, generating headline variations, creating ad sets, or validating creative.

日本語の概要は準備中です。原文の説明を表示しています。

borghei/Claude-Skills9002026年10月7日 更新

aeo

無料

Answer Engine Optimization (AEO): optimize content to be cited by LLMs (ChatGPT, Claude, Perplexity, Gemini) in their answers. Use when designing content for LLM citation, auditing citability, or structuring Q&A schema.

日本語の概要は準備中です。原文の説明を表示しています。

borghei/Claude-Skills9002026年10月7日 更新

borghei のスキルをすべて見る

このスキルの問題を報告する