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

pip 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.1.tar.gz (8.3 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.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prompt_manager_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 8.3 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.1.tar.gz
Algorithm Hash digest
SHA256 e0260962073d0770dcf3e800a2869f63bac281bbddceb5be552142ba4d2a0c8c
MD5 487d0af0f9b241c6794a812659437086
BLAKE2b-256 b95ef6de7189f8763b64baca9fd3fdf07a92c4186857ed9e77b9d50035d5c5b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prompt_manager_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 04eb5631a3bca95d82b8c2282f7ff598939fbecc9bff27bc7c73bc86c040b626
MD5 42879473241a66987d0b238bd973949a
BLAKE2b-256 482ebe1638cd4ada83d4047718bf5bbad1d1bcae4671c51b5f6502d4746dcf52

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