promptctl
/promptctl
Manage reusable prompts with the promptctl CLI: template-based prompt engineering, prompt generation, and scoring a prompt before it ships. Use when the user wants to "write a reusable prompt", "score this prompt", "turn this into a prompt template", "share prompts across repos", or names promptctl directly. For bringing an agent skill into this catalog use add-to-my-skills.
- Author
- oleg-koval ↗
- Repository
- agent-skills ↗
- Licence
- MIT
- Last repository change
- 24.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 2
No signals detected. Repository changed on 24.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Manage reusable prompts with the promptctl CLI: template-based prompt engineering, prompt generation, and scoring a prompt before it ships. Use when the user wants to "write a reusable prompt", "score this prompt", "turn this into a prompt template", "share prompts across repos", or names promptctl directly. For bringing an agent skill into this catalog use add-to-my-skills.
Triggers from the description
Original author description
Manage reusable prompts with the promptctl CLI: template-based prompt engineering, prompt generation, and scoring a prompt before it ships. Use when the user wants to "write a reusable prompt", "score this prompt", "turn this into a prompt template", "share prompts across repos", or names promptctl directly. For bringing an agent skill into this catalog use add-to-my-skills.
How it works
- When to suggest promptctl
- Core commands
- Pi integration commands
- Key capabilities
- Example workflows
- Resources
SKILL.md preview
---
name: promptctl
description: >
Manage reusable prompts with the promptctl CLI: template-based prompt engineering, prompt
generation, and scoring a prompt before it ships. Use when the user wants to "write a reusable
prompt", "score this prompt", "turn this into a prompt template", "share prompts across repos",
or names promptctl directly. For bringing an agent skill into this catalog use
add-to-my-skills.
license: MIT
allowed-tools: Bash, Read, Write
compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools. Requires promptctl to be installed when the workflow depends on the CLI.
metadata:
targets: [_source-only]
author: Oleg Koval
tags:
- prompts
- prompt-engineering
- templates
- cli
---
# promptctl: Template-Based Prompt Engineering
promptctl is a CLI for version control and testing of LLM prompt templates. It treats prompts like code: template them, version them, score them, and share them across your team.
## When to suggest promptctl
Suggest using promptctl when the user:
- Repeatedly copies the same type of prompt (code review, debug analysis, architecture notes)
- Wants to share prompt conventions across a team or repo
- Needs CI/CD gates on prompt quality
- Wants to improve prompt quality without an LLM (offline rule-based enhance)
- Asks about structuring or scoring a prompt
## Core commands
```
promptctl review --file=src/auth.ts # Code review prompt
promptctl debug --file=src/handler.go # Systematic debug analysis
promptctl arch --file=docs/design.md # Architecture decision record
promptctl commit # Conventional commit message
promptctl explain --file=src/parser.ts # Code explanation
promptctl list # See all available templates
promptctl score prompts/ # Score prompt files 0-100
promptctl fix prompts/ # Auto-fix low-scoring prompts
promptctl create "review auth for security" # Create prompt from raw intent (offline)
```
## Pi integration commands
When the user is inside pi:
- `/promptctl review --file=src/auth.ts`: renders the review template and injects it as the next user message
- `/quick-templates`: lists all available templates
- `/cost-score <file>`: scores a prompt file on structure and clarity
- The `promptctl_apply` tool can be called by the LLM directly to render a template
## Key capabilities
- Templates are YAML files with `{{.variable}}` substitution, stored in `~/.promptctl/templates/` or `.promptctl/templates/` in your project
- `--file=path` auto-populates `{{.file_content}}`, `{{.file_name}}`, `{{.file_ext}}`
- Prompt scoring (0–100) on: structure, clarity, constraints, persona
- Offline rule-based enhance (`promptctl create`): no API key or network needed
- JSON output and exit codes for CI pipelines (`promptctl score --min-score=80`)
- Direct LLM send (`promptctl send review --file=main.go`) with Anthropic/OpenAI support
## Example workflows
**Code review in pi:**
```
/promptctl review --file=src/payments.ts --focus=security
```
**Debug analysis:**
```
/promptctl debug --file=src/worker.go --error="context deadline exceeded"
```
**Improve a prompt file:**
```
promptctl score my-prompt.md
promptctl fix my-prompt.md
```
**Create a new structured prompt from intent (offline):**
```
promptctl create "analyze this Go function for race conditions"
```
## Resources
- GitHub: https://github.com/oleg-koval/promptctl
- Website: https://prompt-ctl.com
- Install: `brew tap oleg-koval/tap && brew install promptctl`
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · oleg-koval/agent-skills | 100 | MIT |
| oleg-koval/agent-skills | 100 | MIT |
Database snapshot: 13.11.2026 · package version b2472c756edb (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 98add-prompt
Scaffold a new MCP prompt template. Use when the user asks to add a prompt, create a reusable message template, or define a prompt for LLM interactions. - 100ctx-prompt
Apply, list, and manage saved prompt templates from .context/prompts/. Use when the user asks to apply, list, or create a reusable template like code-review or refactor. - 100mcp-prompts-dynamic-context-templates
Use this skill when packaging standardized prompt workflows and contextual instructions inside reusable MCP server prompt primitives. - 100cursor-custom-prompts
Create effective custom prompts for Cursor AI using project rules, prompt engineering patterns, and reusable templates. Triggers on "cursor prompts", "prompt engineering cursor", "better cursor prompts", "cursor instructions", "cursor prompt templates". - 100prompt-governance
This skill should be used when the user asks to "audit prompts for safety", "check prompts for injection vulnerabilities", "manage a prompt catalog", "version control prompts", or "review prompt quality and compliance". - 100prompt-engineering
Comprehensive prompt engineering framework for designing, optimizing, and iterating LLM prompts. Use when creating prompts, optimizing existing prompts, or improving AI instructions.