Skip to content
Back to skills

Prompt Studio

ASecurity

Compare two prompt versions by running both against the same test inputs and showing output differences. Usage: $prompt compare [prompt-a-path] [prompt-b-path].

  • 724 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 5, 2026
ai-agentssql

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned June 5, 2026

npx -y skills add Snowflake-Labs/cocoplus --skill prompt-studio --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prompt Studio?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Prompt Studio
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/snowflake-labs-prompt-studio/badge)](https://www.skillsdirectory.com/skills/snowflake-labs-prompt-studio)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "prompt-compare"
description: "Compare two prompt versions by running both against the same test inputs and showing output differences. Usage: $prompt compare [prompt-a-path] [prompt-b-path]."
version: "1.0.0"
author: "CocoPlus"
tags:
  - cocoplus
  - prompt-studio
---

Your objective is to compare two prompt versions.

Before proceeding, verify that `.cocoplus/` exists.
If not: output "CocoPlus not initialized in this directory. Run `$pod init` to begin." Then stop.

Parse arguments: `$prompt compare [path-a] [path-b]`
If arguments missing: output "Usage: $prompt compare [path-a] [path-b]" Then stop.

Read both prompt files. If either does not exist: output error with which file is missing. Then stop.

## Test Input Collection

Ask: "Provide 3-5 test inputs to compare the prompts against (one per line):"

## Run Comparison

For each test input, generate output using both prompts (invoke Cortex COMPLETE function via SnowflakeSqlExecute with each prompt as system context).

## Output Comparison Table

```
# Prompt Comparison: [prompt-a name] vs [prompt-b name]

| Test Input | Prompt A Output | Prompt B Output | Difference |
|------------|----------------|----------------|------------|
[one row per test input]

## Analysis
Prompt A: [strengths and weaknesses]
Prompt B: [strengths and weaknesses]
Recommendation: [which prompt to use and why]
```

## Anti-Rationalization

| Shortcut / Temptation | Why It Fails |
|-----------------------|--------------|
| Compare with only one input | A single case hides regressions and overfits the recommendation |
| Skip difference column details | Without explicit diffs, recommendation becomes subjective |
| Ignore missing prompt file validation | Comparison output becomes misleading and non-reproducible |

## Exit Criteria

- [ ] Both prompt files were validated as existing before comparison
- [ ] Comparison output includes rows for each provided test input with Prompt A output, Prompt B output, and a difference summary
- [ ] `## Analysis` section includes strengths and weaknesses for each prompt plus a recommendation
- [ ] Errors for missing arguments or missing files are handled with clear usage guidance

Files in this skill

  • prompt-compare.skill.md2.1 KB
  • prompt-new.skill.md2.9 KB

Attribution

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

Loading comments…