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.2.tar.gz (8.8 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.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prompt_manager_cli-0.1.2.tar.gz
  • Upload date:
  • Size: 8.8 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.2.tar.gz
Algorithm Hash digest
SHA256 dc9104bfba61a77dfd9d99d957a58368eb3de6c7b2d95473e26adf5dbacde8e5
MD5 44d7c46b5455340809e0b2f71ba896ea
BLAKE2b-256 f2e578942dd8b23cb4bc89f860d7be1dea9108310c0cbd7c91040915a3be98b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prompt_manager_cli-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2cd539c4cc1dc5e154a373a423414c83c93c6be02531d4ef5f9fcede76cbe80d
MD5 599f4297db8c710822d16b419f0172f0
BLAKE2b-256 0300201a0a893bbbe5ebfcb70fec48b59df7b072bb5340560f811d03dd650a33

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