Skip to content
Skills Library
AI & agents · Tool integration

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.

Licence
MIT
Last repository change
24.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
2
Deprecation

No signals detected. Repository changed on 24.10.2026, without references to retired models or APIs.

Licence

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

write a reusable promptscore this promptturn this into a prompt templateshare prompts across repos
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

  1. When to suggest promptctl
  2. Core commands
  3. Pi integration commands
  4. Key capabilities
  5. Example workflows
  6. Resources
Original SKILL.md headings · 75 lines, 369 words
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

RepositoryScoreLicence
This page · oleg-koval/agent-skills100MIT
oleg-koval/agent-skills100MIT

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.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.