Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Prompt Diff

ASecurity

Compare two versions of the system prompt (or any other

2 stars
0 votes
0 copies
0 views
Added 9/19/2026
ai-agentsgobashtesting

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add thecoderpanda/fde-starter-kit --skill prompt-diff --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prompt Diff?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Prompt Diff
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thecoderpanda-prompt-diff/badge)](https://www.skillsdirectory.com/skills/thecoderpanda-prompt-diff)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: prompt-diff
description: Compare two versions of the system prompt (or any other
  prompt) across the golden case set and produce a per-case, per-metric
  diff. Use when the user is A/B-testing a prompt change before merging.
---

# prompt-diff

Purpose: give the user evidence — not vibes — that prompt A is better
than prompt B for the workload the evals actually cover.

## When to fire

- The user says: "which prompt is better", "A/B this prompt", "diff
  prompts", "compare prompt versions", "should I use prompt X or Y".
- The user pasted two prompt strings, or pointed at two prompt files, or
  is comparing HEAD vs a previous commit of `./agent/prompts/system.ts`.

## Inputs you need

Before starting, confirm:

1. **Prompt A** — the baseline. Usually the current `SYSTEM_PROMPT`
   export from `./agent/prompts/system.ts`.
2. **Prompt B** — the candidate. Either a string the user provided or
   another commit / file to read.
3. **Case set** — default to everything under `./evals/cases/`. If the
   user wants a subset, filter by `tags` on each case.

Ask exactly one clarifying question if any input is missing.

## Steps

1. **Save both prompts** into temp files under `eval-results/prompts/`:
   - `prompt.A.txt`
   - `prompt.B.txt`
   Keep them in the repo tree so future runs can be re-diffed.

2. **Run the suite twice**, once per prompt. The runner reads
   `SYSTEM_PROMPT` at import time, so patch the import via an env
   override rather than editing the file. Use this pattern:
   ```bash
   AGENT_SYSTEM_PROMPT_FILE=eval-results/prompts/prompt.A.txt \
     npm run eval:ci
   mv eval-results/summary.json eval-results/summary.A.json

   AGENT_SYSTEM_PROMPT_FILE=eval-results/prompts/prompt.B.txt \
     npm run eval:ci
   mv eval-results/summary.json eval-results/summary.B.json
   ```
   (If the env override isn't wired yet, tell the user — do NOT edit
   `system.ts` and commit it silently.)

3. **Produce the diff.** For each case ID, report:
   - Pass status: A ✓ vs B ✗ (regression), A ✗ vs B ✓ (improvement),
     equal (skip in report).
   - Step count delta.
   - Duration delta (informational only — don't optimize on it).
   - Tool-call set delta (did B start using or stop using a tool?).

4. **Summarize** in this shape:
   ```
   Prompt A: <passed>/<total>   avg steps <n>
   Prompt B: <passed>/<total>   avg steps <n>

   B wins on:      <case ids>
   A wins on:      <case ids>
   No difference:  <count>
   ```

5. **Recommend.** State a recommendation (adopt B, keep A, mixed —
   need more cases) and back it with the numbers, not adjectives.

## Definition of done

- Both prompts stored in `eval-results/prompts/` for reproducibility.
- Both summary JSONs kept, not overwritten.
- Report includes at least one concrete case per "wins on" bucket, with
  the failure message quoted.
- You did NOT overwrite `./agent/prompts/system.ts` without an explicit
  user instruction.

Attribution

thecoderpandathecoderpanda
View sourceMore from thecoderpanda →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.

1023331 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3331 votes

catchup

Recovers prior coding-agent session context by running `catchup <agent> --since-compact`, which extracts a clean summary of a previous Codex, Claude Code, Antigravity, OpenCode, or Pi Agent session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", or asks to recover/summarize a previous session before continuing. Do NOT use for the current conversation, git history, or any non-agent log.

611 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →