Claude API toolkit for prompt engineering, code review, and document analysis
Project description
promptctl
Claude API toolkit CLI — prompt engineering, code review, document intelligence, and template linting.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file promptctlai-0.3.0.tar.gz.
File metadata
- Download URL: promptctlai-0.3.0.tar.gz
- Upload date:
- Size: 45.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dab1130bd41ebfd7b55084c7c3029feb822f0214585959d38b13c23b6bcb4474
|
|
| MD5 |
ca922cb2b8514fb242c491671379b18d
|
|
| BLAKE2b-256 |
1414c9f004a5d4afc0eabfcc54e2b6f5d38ec5eb6dd6e1bdfbbca49d36694197
|
Provenance
The following attestation bundles were made for promptctlai-0.3.0.tar.gz:
Publisher:
release.yml on AreteDriver/promptctl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
promptctlai-0.3.0.tar.gz -
Subject digest:
dab1130bd41ebfd7b55084c7c3029feb822f0214585959d38b13c23b6bcb4474 - Sigstore transparency entry: 1061553881
- Sigstore integration time:
-
Permalink:
AreteDriver/promptctl@83f1547002990c3cafceb3ae05e5f04b89adb317 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/AreteDriver
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@83f1547002990c3cafceb3ae05e5f04b89adb317 -
Trigger Event:
push
-
Statement type:
File details
Details for the file promptctlai-0.3.0-py3-none-any.whl.
File metadata
- Download URL: promptctlai-0.3.0-py3-none-any.whl
- Upload date:
- Size: 31.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dac851424a9247236d51be1181a2c1e0495d27dfacf56b803fdc1c7560ac0da
|
|
| MD5 |
61f22063994ba139f0d996efe23f156f
|
|
| BLAKE2b-256 |
d9ec46766bc8733fa0a9d1a4f0ae0441f74279d6340bb844acb964f65d3585a9
|
Provenance
The following attestation bundles were made for promptctlai-0.3.0-py3-none-any.whl:
Publisher:
release.yml on AreteDriver/promptctl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
promptctlai-0.3.0-py3-none-any.whl -
Subject digest:
1dac851424a9247236d51be1181a2c1e0495d27dfacf56b803fdc1c7560ac0da - Sigstore transparency entry: 1061553883
- Sigstore integration time:
-
Permalink:
AreteDriver/promptctl@83f1547002990c3cafceb3ae05e5f04b89adb317 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/AreteDriver
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@83f1547002990c3cafceb3ae05e5f04b89adb317 -
Trigger Event:
push
-
Statement type: