prompt-compare
Installation
SKILL.md
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 both arguments are missing: output "Usage: $prompt compare [path-a] [path-b]" Then stop.
If only one prompt path is provided:
- Validate the prompt exists.
- Offer to scaffold a draft comparison variant: "Only one prompt version was provided. Create an editable draft v2 for comparison? [yes/no]"
- If yes, copy the prompt to the next version name in the same directory, add a clear frontmatter or top-of-file marker
draft_variant: true, and add a note: "Draft variant scaffold — edit before using for final comparison." - Stop after creating the draft. Do not run
$prompt compareuntil the developer has revised the draft. - If no, show usage and stop.
Read both prompt files. If either does not exist: output error with which file is missing. Then stop.