Skip to main content

A CLI tool to create and organize prompt files for code agents.

Project description

prompt-manager-cli

A CLI tool to create and organize prompt files for code agents (Claude Code, Codex, Gemini CLI, etc.).

Installation

# using uv
uv tool install prompt-manager-cli

# using pip 
pipx install prompt-manager-cli

Or install in editable mode for development:

pip install -e ".[dev]"

Usage

Initialize a project

pm init

This creates .pm/template.md with the default template. Edit this file to customize your prompts.

Create a new prompt file

pm new

This creates a new Markdown file in .pm/prompts/ and opens it in your editor.

prompt-2026-01-05-14-37-a1b2c3d.md

You can specify the editor directly:

pm new micro
pm new code
pm new vim

Options

# Specify a custom output directory
pm new --dir ./my-prompts

# Combine editor and directory
pm new micro --dir ./my-prompts

Editor Configuration

The editor is resolved in this order:

  1. Command argument: pm new micro
  2. Local config: .pm/editor (per-repo)
  3. Environment: $PM_EDITOR (global)

To set your default editor, add to your shell profile (.bashrc, .zshrc, etc.):

export PM_EDITOR="micro"

To override per-project:

echo "code" > .pm/editor

Custom Templates

Run pm init to create .pm/template.md with the default template, then edit it to customize your prompts.

You can also create a global template at ~/.pm/template.md for use across all projects. Local templates take precedence over global templates.

Template Variables

Templates use Python's string formatting. Available variables:

Variable Description Example
{created_at} ISO 8601 timestamp with timezone 2026-01-05T14:37:00+01:00
{git_hash} Short git hash or "nogit" a1b2c3d
{cwd} Absolute path to current directory /home/user/project

Example Custom Template

---
date: "{created_at}"
commit: "{git_hash}"
project: "{cwd}"
---

## What I Want

## Background

## Requirements

## Done When

Local Development

Run directly without installing:

python -m prompt_manager_cli new

Run tests:

pytest

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

prompt_manager_cli-0.1.3.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

prompt_manager_cli-0.1.3-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file prompt_manager_cli-0.1.3.tar.gz.

File metadata

  • Download URL: prompt_manager_cli-0.1.3.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for prompt_manager_cli-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e4e6421cfe4c5431fc94c37d1345b7aa75563b827f9477d9b25df5a5b1ab530a
MD5 f148f8e609b700e6faf8b6bf94d47947
BLAKE2b-256 8c3c36e3ab0e8ce5a3d01f8aa1af802154d66525fbb39b3cbbc6cb65b49f94a8

See more details on using hashes here.

File details

Details for the file prompt_manager_cli-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: prompt_manager_cli-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for prompt_manager_cli-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f3dbeb4d1707cb15e694aa735afa6ce4fc6c1d030f7e206be76067561dee26cb
MD5 41310359e407ea70b8e70bbd8fdf658d
BLAKE2b-256 9da083127805f2a9fa38f4cd6b1832367dba9fcaa3982405915a16d595531cb1

See more details on using hashes here.

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