Skip to main content

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.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

promptctlai-0.3.0.tar.gz (45.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

promptctlai-0.3.0-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

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

Hashes for promptctlai-0.3.0.tar.gz
Algorithm Hash digest
SHA256 dab1130bd41ebfd7b55084c7c3029feb822f0214585959d38b13c23b6bcb4474
MD5 ca922cb2b8514fb242c491671379b18d
BLAKE2b-256 1414c9f004a5d4afc0eabfcc54e2b6f5d38ec5eb6dd6e1bdfbbca49d36694197

See more details on using hashes here.

Provenance

The following attestation bundles were made for promptctlai-0.3.0.tar.gz:

Publisher: release.yml on AreteDriver/promptctl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for promptctlai-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1dac851424a9247236d51be1181a2c1e0495d27dfacf56b803fdc1c7560ac0da
MD5 61f22063994ba139f0d996efe23f156f
BLAKE2b-256 d9ec46766bc8733fa0a9d1a4f0ae0441f74279d6340bb844acb964f65d3585a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for promptctlai-0.3.0-py3-none-any.whl:

Publisher: release.yml on AreteDriver/promptctl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page