Promptdeck
Render, batch-generate, and rank prompt variants with the promptdeck Go CLI, using Go text templates driven by JSON variable files. Use when rendering a single prompt from a template plus a JSON vars object (or array of objects), batch-rendering a Cartesian experiment matrix of prompt variants into stdout, files, or a JSON manifest, or ranking/optimizing scored prompt variants from a matrix and a scores file to find the best-performing variable combination and per-factor averages. Trigger for requests like "render this prompt template with these variables", "generate every prompt variant from this matrix", "build a prompt manifest for this experiment", "which tone/audience combination scored best", "rank these scored prompt variants", or "optimize this prompt experiment and give me the winner".From its SKILL.md
npx -y skills add itamaker/promptdeck-skill --skill promptdeckAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.5 KB, as published. Nobody here has run it
promptdeck
promptdeck is a Go CLI that renders Go text-template prompts from JSON variables, expands them into Cartesian experiment matrices, and ranks variants against a scores file. It has three real subcommands (render, matrix, optimize) plus an interactive Bubble Tea TUI. Prefer invoking the subcommands directly — they are the same commands the TUI shells out to internally.
Workflow
-
Make sure
promptdeckis available.- If installed (
brew install itamaker/tap/promptdeck), call it directly:promptdeck <subcommand> .... - If working from a source checkout of this repo, build once with
go build -o promptdeck .and call./promptdeck, or run ad hoc withgo run . <subcommand> ....
- If installed (
-
Render one prompt from a template and a JSON vars file:
promptdeck render -template <template.tmpl> -vars <vars.json> [-out <file>]-varsaccepts either a single JSON object (one rendered prompt) or a JSON array of objects (each rendered, joined with a\n---\nseparator).- Without
-out, the rendered body prints to stdout. With-out, it is written to that file instead (silently overwriting it) and nothing prints to stdout.
-
Batch-render an experiment matrix into every variable combination:
promptdeck matrix -template <template.tmpl> -matrix <matrix.json> [-out-dir <dir>] [-ext .txt] [-manifest <manifest.json>]-matrixis a JSON object whose values are string arrays; every combination (Cartesian product) becomes one candidate, numbered001,002, ... in sorted-key order.- Without
-out-dir, all rendered prompts print to stdout separated by\n---\n. With-out-dir, each candidate is written as<index><ext>(default extension.txt) inside that directory instead, and awrote N prompts to <dir>summary prints to stdout. - Add
-manifest <path>(combinable with either output mode) to also write a JSON array of{index, vars, prompt}objects — this is the inputoptimizeexpects to pair with a scores file.
-
Rank scored prompt variants and surface the best-performing factors:
promptdeck optimize -template <template.tmpl> -matrix <matrix.json> -scores <scores.json> [-top N] [-out <file>] [-json]optimizerebuilds the same candidatesmatrixwould produce from-template/-matrix, then joins them byindexagainst-scores(a JSON array of{index, score, notes?}). Candidates with no matching score entry are dropped from ranking.- Default
-topis 3. Human-readable output (default) prints candidate/scored counts, the best candidate, the top-N ranked list, and per-factor average scores. Pass-jsonto emit the same data as a singleOptimizationReportJSON object instead. - Pass
-out <file>to also write the single best-scoring prompt body to that file (silently overwriting it).
-
Interactive mode: running
promptdeckwith no arguments (orpromptdeck tui/promptdeck interactive) launches a Bubble Tea terminal UI that walks through the same three actions with prompted fields. It requires a real terminal — don't use it for scripted/agent-driven invocations; use the direct subcommands above instead.
For the full flag list, JSON schema details, template function reference, and exit codes, see references/REFERENCE.md.
Safety Rules
-out,-out-dir, and-manifestoverwrite existing files without confirmation or backup.matrix -out-dirfile names come only from that run's own sequential index (001.txt,002.txt, ...). Re-running with a different template or matrix against the same-out-dirsilently overwrites unrelated prior output with no warning — confirm the target directory is empty or expendable before reusing it.
Prompt Patterns
- "Render examples/review.tmpl with examples/vars.json and show me the output."
- "Generate every prompt variant from this experiment matrix."
- "Batch-render this template against the matrix and write a manifest I can score later."
- "Write all the rendered variants out as individual .txt files."
- "Which tone and risk combination scored best in this experiment?"
- "Rank the top 5 scored prompt variants as JSON."
- "Optimize this prompt template using the scores file and save the winning prompt to a file."
Resources
examples/review.tmpl: example Go text template ({{.artifact}},{{.audience}},{{.tone}},{{.depth}},{{.risk}}).examples/vars.json: example single-object input forrender.examples/matrix.json: example matrix input (object of string arrays) formatrixandoptimize.examples/scores.json: example scored-run input foroptimize.references/REFERENCE.md: full flag reference per subcommand, JSON schema for vars/matrix/scores/manifest, template functions, and exit codes.