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 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

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.2.2.tar.gz (18.1 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.2.2-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for promptdir-0.2.2.tar.gz
Algorithm Hash digest
SHA256 9b4ff51c42a2a37ded0644f563b29cd9c9c10d0ec8bb7c7bd1c63adda77949c9
MD5 2e4207c4c1c9d457362800b4df62106e
BLAKE2b-256 d8b0ba0a36741b53e5e6448aef5a4bc03a4b4b904e1d0b4949083fcc89a2f1c4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for promptdir-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 125bb78b81ca77323aef9048ef2d638e08bf97b4dbccd48304955573faf285ee
MD5 a2a519855430727b694162f35daf7989
BLAKE2b-256 0d977c42aea2ba615fb83f3358f08d3f476f242d768e2f6a5892d2cff6510b44

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