Skip to main content

Prompt Directory (pd)

A command-line tool for managing and using prompts from a GitHub repository.

Installation

uv install promptdir

Usage

Interactive Mode

# Run with default configuration in interactive mode
promptdir

# Run with specific repository
promptdir --repo username/repository

# Skip SSH agent setup
promptdir --no-ssh

Command-line Mode

# List all available snippets
promptdir list

# Read a snippet
promptdir read user/snippet

# Write content to a snippet
promptdir write snippet --content "Your content here"

# Fork a snippet from another user
promptdir fork user/snippet

# Edit a snippet in your default editor
promptdir edit snippet

# Copy a snippet to clipboard
promptdir copy user/snippet

# Copy and hydrate a template
promptdir copy user/template --hydrate --name="John" -- Additional text

# Sync repository with remote
promptdir sync

# Create a new snippet file
promptdir new filename

# Direct template hydration
promptdir template_name --param1="value1" -- Additional text

Configuration

PD stores its configuration in ~/.config/pd/config.json. You can edit this file directly or use the --config flag to update settings interactively.

Main configuration options:

  • prompt_repo: GitHub repository containing prompts (format: username/repository)

SSH Keys

Prompt Directory will automatically set up SSH agent and attempt to add common SSH keys when connecting to GitHub. This behavior can be disabled with the --no-ssh flag.

License

MIT

Release files for promptdir 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for promptdir 0.7.0
File Size Uploaded
promptdir-0.7.0.tar.gz 18.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for promptdir 0.7.0
File Interpreter ABI Platform
promptdir-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 37.4 kB

Release files / promptdir-0.7.0.tar.gz

Download URL promptdir-0.7.0.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b4654d2390fbb9b79a343a6ea2f6d94de3544fa77fc473d9b85ac48661cebedf
BLAKE2b-256 checksum
How to use checksums
cf0a174d7f7f3532fac83ea030e95ad0deb721b35287dea620a7f0471c60f370
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release files / promptdir-0.7.0-py3-none-any.whl

Download URL promptdir-0.7.0-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a8717019518f16b43007877dbd7071caa693c960dcc352a44ca8fc90f80dcee
BLAKE2b-256 checksum
How to use checksums
d31fc6d09b6d02d8825f45d4e6a9520e24fdb08d0bd7003a0f4da2dbefc2c409
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page