Skip to main content

Add your description here

Project description

Prompt Directory (pd)

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

Installation

uv install pd

Usage

Interactive Mode

# Run with default configuration in interactive mode
pd

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

# Skip SSH agent setup
pd --no-ssh

Command-line Mode

# List all available snippets
pd list

# Read a snippet
pd read user/snippet

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

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

# Edit a snippet in your default editor
pd edit snippet

# Copy a snippet to clipboard
pd copy user/snippet

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

# Sync repository with remote
pd sync

# Create a new snippet file
pd new filename

# Direct template hydration
pd 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

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

promptdir-0.1.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

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

promptdir-0.1.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file promptdir-0.1.0.tar.gz.

File metadata

  • Download URL: promptdir-0.1.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for promptdir-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0d2a0fb92a41ca326b28a6296f735c2f30b30fee021fb761429d6518c56ded8e
MD5 7bcbb8d3121a773c5f400c21f532060c
BLAKE2b-256 c5f53ed3ddc1e4cf18df5f22fbdf6ccdd79ff31824ba6d357a1da8a90bf2741e

See more details on using hashes here.

File details

Details for the file promptdir-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: promptdir-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for promptdir-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f5418daee15cf6edb1ce5611dd4e0ac9ed35f1048bcc720dccc5b953f864a5d
MD5 7794c6331ca6654454b054a7e47ef7a8
BLAKE2b-256 348f0112e674e02a010159bbf3fa7c82a0a2359c9ed237a3be6ce46a0d70e74f

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