Skip to main content

promptctl

Claude API toolkit CLI — prompt engineering, code review, document intelligence, and template linting.

CI CodeQL

Install

pip install -e ".[dev]"

Requires Python 3.10+ and an Anthropic API key.

export ANTHROPIC_API_KEY=sk-ant-...

Usage

Prompt Engineering

# Run a prompt template
promptctl prompt run greeting.yaml

# Save a versioned snapshot
promptctl prompt version greeting.yaml

# View version history
promptctl prompt history greeting

Code Review

Review code with structured findings across 6 dimensions:

# Review staged git changes
promptctl review diff

# Review a specific file
promptctl review file src/app.py --json

Document Intelligence

Analyze, query, and summarize documents (long context + prompt caching):

# Extract key points, entities, themes
promptctl doc analyze report.md

# Ask questions about a document
promptctl doc ask report.md "What are the main findings?"

# Executive summary (map-reduce for large docs)
promptctl doc summarize report.md --json

Template Linting

8 built-in rules for YAML prompt templates (no API required):

# Check a template for issues
promptctl lint check template.yaml

# List all lint rules
promptctl lint rules

# AI-powered fix suggestions (Pro)
promptctl lint fix template.yaml

Configuration

promptctl config init              # Create default config
promptctl config set model claude-haiku-4-5-20251001
promptctl config show              # View current config
promptctl status                   # API key + license status

Pro Features

Unlock additional capabilities with a Pro license key:

export PROMPTCTL_LICENSE=PCTL-XXXX-XXXX-XXXX
Feature Free Pro
Prompt run (basic + streaming) Yes Yes
Prompt versioning 5 max Unlimited
Code review (diff, file) Yes Yes
Document intelligence (analyze, ask, summarize) Yes Yes
Template linting (local checks) Yes Yes
Multi-model comparison - Yes
AI-powered lint fixes - Yes
JSON/markdown export - Yes

Development

python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest tests/ -v --cov=promptctl --cov-report=term-missing
ruff check src/ tests/ && ruff format --check src/ tests/

License

MIT

Metadata

Release files for promptctlai 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for promptctlai 0.3.0
File Size Uploaded Provenance Actions
promptctlai-0.3.0.tar.gz 45.2 kB With provenance Details for promptctlai-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for promptctlai 0.3.0
File Interpreter ABI Platform Actions
promptctlai-0.3.0-py3-none-any.whl Python 3 none any Details for promptctlai-0.3.0-py3-none-any.whl

Total release size: 77.0 kB

Release files / promptctlai-0.3.0.tar.gz

Download URL promptctlai-0.3.0.tar.gz
Size 45.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dab1130bd41ebfd7b55084c7c3029feb822f0214585959d38b13c23b6bcb4474
BLAKE2b-256 checksum
How to use checksums
1414c9f004a5d4afc0eabfcc54e2b6f5d38ec5eb6dd6e1bdfbbca49d36694197
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 8, 2026.

Transparency log

Release files / promptctlai-0.3.0-py3-none-any.whl

Download URL promptctlai-0.3.0-py3-none-any.whl
Size 31.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1dac851424a9247236d51be1181a2c1e0495d27dfacf56b803fdc1c7560ac0da
BLAKE2b-256 checksum
How to use checksums
d9ec46766bc8733fa0a9d1a4f0ae0441f74279d6340bb844acb964f65d3585a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 8, 2026.

Transparency log

Security for promptctlai 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for promptctlai-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page