Getting Started
Welcome to PUPT (Powerful Universal Prompt Tool) - your faithful prompt companion for managing and using AI prompts with advanced templating capabilities.
What is PUPT?
PUPT is a command-line tool designed to streamline your AI workflow by:
- Managing a library of reusable prompt templates
- Collecting user input dynamically through interactive prompts
- Integrating seamlessly with AI tools like Claude Code, Amazon Q, and others
- Tracking prompt history and analyzing usage patterns
- Sharing prompts across teams and projects
Installation
Install PUPT globally using npm:
npm install -g puptOr with yarn:
yarn global add puptAfter installation, the pt command will be available globally.
Quick Start
1. Initialize Your Configuration
Start by running the initialization command:
pt initThis interactive setup will help you configure:
- Prompt directories: Where to store your prompt files
- History tracking: Save executed prompts for future reference
- Annotation support: Add notes and tags to your executions
- Default tool: Your preferred AI tool (Claude, GPT, etc.)
2. Create Your First Prompt
Create a new prompt interactively:
pt addThis will:
- Ask for a filename (e.g.,
code-review.md) - Collect metadata (title, description, tags)
- Open your default editor to write the prompt content
Here's a simple example prompt:
---
title: Code Review Assistant
tags: [code, review, analysis]
---
Please review the following code and provide feedback on:
- Code quality and best practices
- Potential bugs or issues
- Performance considerations
- Suggestions for improvement
{{input "code" "Paste the code to review:"}}3. Use Your Prompt
Run PUPT without arguments to see the interactive prompt selector:
ptThis will:
- Show a searchable list of all your prompts
- Let you preview prompt content
- Collect any required inputs
- Display the generated prompt
4. Execute with Your AI Tool
To send the prompt directly to your configured AI tool:
pt runOr specify a different tool:
pt run claude
pt run gpt
pt run code -Understanding Prompt Files
Prompt files are Markdown files with optional YAML frontmatter. They live in your configured prompt directories and can contain:
Basic Structure
---
title: My Prompt Template
tags: [category, subcategory]
---
Your prompt content here with {{variables}} and {{input "helpers"}}.Interactive Inputs
PUPT provides several helpers to collect user input:
{{input "name"}}- Text input{{select "name"}}- Single choice selection{{multiselect "name"}}- Multiple choice selection{{confirm "name"}}- Yes/no question{{editor "name"}}- Multi-line text in editor{{file "name"}}- File path with tab completion{{password "name"}}- Masked password input
System Variables
Access system information in your prompts:
{{date}}- Current date{{time}}- Current time{{username}}- System username{{cwd}}- Current working directory{{uuid}}- Generate a unique ID
Next Steps
Now that you have PUPT installed and configured:
- Explore Commands: Learn about all available commands
- Master Templates: Dive deep into the template system
- Configure PUPT: Customize your configuration
- Browse Examples: Check out recipes and examples
Getting Help
- Run
pt helpfor general help - Run
pt help <command>for command-specific help - Visit our GitHub repository for issues and discussions
Welcome to the PUPT community! 🐾
