# PromptBox — Dynamic Prompt & Variable Workflow

> Slash-style prompt library & dynamic variable engine for Claude Code, Codex, and Cursor — 8 pro templates included.

PromptBox — Dynamic Prompt & Variable Workflow is a paid AI agent skill on Agensi by yu xiong, in Prompt & Skill Engineering. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $10 (one-time purchase)
- Creator: [yu xiong](https://www.agensi.io/creators/yu-xiong)
- Category: [Prompt & Skill Engineering](https://www.agensi.io/skills/prompt-skill-engineering)
- Version: 1.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/promptbox-dynamic-prompt-variable-workflow
- Tags: prompt-engineering, productivity, automation, prompt-library, variables, claude-code, codex, cursor

## What it does

- Recall and rank saved prompts instantly with slash-style prefix, title, category, or pinned priority
- Render dynamic [var] and {{var}} templates with defaults, strict enums, and multi-line code/diff/log blocks
- Validate, search, inspect, and export portable JSON prompt libraries using a zero-dependency Python 3 CLI

## Who it's for

- **Developers and engineers using AI editors:** Save and run your favorite coding prompts with shortcuts and smart placeholders. Try: "/review Language=Python Focus=Security code=app.py"
- **Technical writers and marketers:** Create a library of reusable writing templates that stay consistent every time. Try: "/rewrite Tone=Professional text=here is my draft..."
- **Data analysts and SQL users:** Turn rough SQL queries into optimized code using a library of data templates. Try: "/sql Engine=PostgreSQL Goal=Speed sql=SELECT * FROM users"

## About this skill

Turn your AI coding agent into a structured prompt powerhouse — zero browser extensions required.

PromptBox Workflow extracts the core slash-command recall, dynamic variable engine, and portable JSON library architecture from PromptBox into a standalone, zero-dependency Skill for Claude Code, Codex CLI, and Cursor.

### Core Capabilities
- **Slash-Style Rapid Recall**: Rank and trigger saved prompts by pinned priority, prefix, title, or category.
- **Smart Dynamic Variables**: Supports both `[var]` and `{{var}}` syntax, defaults (`[Language=TypeScript]`), strict enum choices (`[Tone:Concise|Executive|Technical]`), and multi-line code/diff/log blocks (`[code]`, `[diff]`, `[logs]`, `[sql]`).
- **Zero-Dependency CLI (`scripts/promptbox.py`)**: Run `list`, `search`, `inspect`, `render --strict`, and `export-json` with Python 3 standard library only.

### 8 Ready-to-Use Templates Included (`templates/`)
1. `code-review-refactor.md` — Security, performance & edge-case code review + clean refactor
2. `bug-root-cause-debug.md` — Stack-trace root-cause analysis & minimal regression fix
3. `pr-commit-changelog.md` — Structured PR summary & release notes from git diffs
4. `api-spec-architecture.md` — Data model, API contract & rollout checklist
5. `test-suite-generator.md` — Deterministic Vitest / Jest / pytest edge-case suites
6. `sql-query-optimizer.md` — Sargable SQL rewrites & `CREATE INDEX` recommendations
7. `executive-polish-rewrite.md` — High-signal technical & executive copy editing
8. `first-principles-brief.md` — First-principles technical breakdowns with worked examples

### Quick Example
`python scripts/promptbox.py render code-review-refactor --var Language=Python --var Focus=Security --var-file code=src/auth.py --strict`

## Known limitations

The skill requires you to provide the text or code for variables that don't have a default value. It works best if you keep your prompts in the provided folder structure.

## Technical details

Built for Claude Code, Codex, and Cursor using a system of Markdown templates and a prompts.json library. Uses a Python helper script (promptbox.py) for rendering Mustache and bracket-style variables. Supports variable types like defaults, enums, and multiline blocks for code snippets. Includes logic for template ranking based on pins, prefix matches, and category tags.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the PromptBox — Dynamic Prompt & Variable Workflow skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill help me if I already know how to write prompts?

This skill helps you stop retyping the same complex instructions by creating a library of templates. You can call up detailed prompts for things like code reviews, SQL optimization, or professional rewrites using simple slash shortcuts like /review or /rewrite.

### What exactly do I get when I use this skill?

You get a set of 8 ready-to-use templates for engineering and writing, plus a system that handles smart placeholders. It can automatically fill in details like programming languages or tones based on your defaults or specific choices you provide during the chat.

### Do I need any special software or files to make this work?

Beyond your AI agent, this skill uses Markdown files for your templates and a JSON file to keep your prompt library organized. It also includes a Python script that helps the agent fill in your template variables and export your library if needed.

### What is the best way to tell my AI agent to use these templates?

You can ask your agent to list available templates, search for a specific one by keyword, or run a shortcut. For example, you can say /debug along with your code and error logs, and the skill will fill in the template to start the analysis.

### Are there any situations where this skill might not work as expected?

This skill requires you to provide the specific code blocks or text when a template asks for them. It works best when your folders are organized so the agent can easily locate the library files and the Python helper script.

### Can the skill handle complex prompts that need specific code snippets or custom settings?

Yes, the skill is designed to handle different types of placeholders, including required single-line inputs, default values, and multi-line blocks for things like code snippets or long transcripts. It ensures that all blanks are filled before the final prompt is run.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
