npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

promptie

v1.0.0

Published

A CLI tool for managing AI prompts.

Downloads

87

Readme

Promptie

CLI-based prompt management for humans & agents!

Node.js Version TypeScript License: MIT

Promptie is a powerful CLI tool that lets you write AI prompts once and apply them across Claude, Gemini, Codex, Cursor, and other AI development assistants. Perfect for teams and individuals who want consistent AI behavior across multiple tools and projects.

Table of Contents

Key Features

  • Multi-Tool Support - Apply prompts to Claude, Gemini, Codex, Cursor, Zed, Warp, Aider, RooCode, and more
  • 🔍 Fuzzy Search - Find prompts by name or content with intelligent matching
  • 🔄 Import/Export - Backup, share, and transfer your prompts
  • 🏠 Global Storage - Store prompts in OS-specific config directories
  • 🗂️ Category Management - Organize prompts with custom categories
  • 🔧 Variable Substitution - Use placeholders like {{name}} for dynamic prompt content
  • 📊 Statistics & Analytics - Track prompt usage and get insights with the stats command

Installation

Global Installation (Recommended)

npm install -g promptie

This installs the pti command globally on your system.

Verify Installation

pti --version
pti --help

Local Development Installation

git clone <repository-url>
cd promptie
npm install
npm run build
npm link  # Creates global symlink for development

Quick Start

Get up and running in 3 minutes:

1. Install Promptie

npm install -g promptie

2. Create Your First Prompt

pti create

When prompted:

  • Name: my-first-prompt (or press Enter for default)
  • Content: Write your custom AI instructions (e.g., "You are a helpful coding assistant who writes clean, well-documented code.")

3. Apply to Your Projects

pti apply

Select:

  • Your saved prompt
  • Target AI tools (Claude, Gemini, etc.)

4. Verify Installation

Check that agent files were created:

ls -la CLAUDE.md AGENTS.md GEMINI.md .github/copilot-instructions.md
cat CLAUDE.md  # Should contain your prompt in markers

🎉 You're done! Your AI assistants now have consistent behavior across all tools.

The Marker System

Your prompts are wrapped in special HTML comments:

<!-- Existing agent file content -->

<!-- USER-RULES-START -->

You are a helpful coding assistant who writes clean, well-documented code.

<!-- USER-RULES-END -->

<!-- More existing content -->

Usage

Basic Commands

# Create and manage prompts
pti create                    # Create a new prompt (interactive)
pti create --name my-prompt --content "Your content here"
pti edit my-prompt           # Edit existing prompt
pti get my-prompt            # Display prompt content
pti ui                      # Terminal UI for viewing prompts
pti list                     # List all prompts
pti search "typescript"      # Search prompts

# Apply to AI tools
pti apply                    # Apply prompts to agent files (interactive)
pti apply --prompts "prompt1,prompt2" --files CLAUDE.md AGENTS.md

# Manage storage
pti export backup.json       # Export prompts to file
pti import backup.json       # Import prompts from file
pti delete --all --yes       # Delete all prompts
pti clean --prompts "old-prompt"  # Remove prompts from agent files

# Categories
pti category create          # Create prompt categories
pti category list            # List all categories
pti list --category "AI"     # Filter prompts by category

# Configuration
pti location                 # Show current data storage location
pti location /new/path -y    # Change storage location

# Information
pti stats                    # Show prompt statistics
pti onboard                  # Show detailed command reference

Complete Command Reference

| Command | Description | Options | | ------------------------------------------------------------------------- | ------------------------------------------------------------------ | ------------------------------------------------------------- | | pti create [--name] [--content] [--file] [--categories] [--marker] | Create a new prompt | --name, --content, --file, --categories, --marker | | pti edit [name] [--name] [--content] [--file] [--marker] [--categories] | Edit existing prompts | --name, --content, --file, --marker, --categories | | pti get [name] [--all] | Get prompt content and display | --all | | pti ui | Terminal UI for managing prompts | | | pti apply [--prompts] [--files] [--dry-run] | Apply prompts to agent files | --prompts, --files, --dry-run | | pti list [--full] [--json] [--category] [--sort-by] [--sort-order] | List saved prompts | --full, --json, --category, --sort-by, --sort-order | | pti search <query> [--category] | Search through saved prompts using fuzzy matching | --category | | pti run [name] [--vars] | Run prompt with placeholder substitution | --vars | | pti clean [--prompts] [--dry-run] | Clean prompts and remove from agent files | --prompts, --dry-run | | pti delete [--all] [--prompts] [--yes] | Delete prompts from storage | --all, --prompts, --yes | | pti export <path> | Export prompts to JSON file | | | pti import <path> [--overwrite-all] | Import prompts from JSON file | --overwrite-all | | pti category create | Create a new prompt category | | | pti category edit [name] [--name] [--description] | Edit an existing prompt category | --name, --description | | pti category delete <name> | Delete a prompt category | | | pti category get <name> | Get detailed information about a prompt category | | | pti category list | List all prompt categories | | | pti category search <keyword> | Search prompt categories by keyword | | | pti stats [--json] [--category] [--recent] | Display statistics about prompts | --json, --category, --recent | | pti location [new-path] [--confirm] | Manage the data storage location for prompts and categories | --confirm | | pti onboard | Display all commands with non-interactive usage for bots/AI agents | |

For detailed help on any command:

pti --help          # Show all available commands
pti <command> --help # Show help for specific command
pti onboard         # Show comprehensive command reference

Configuration

Data Storage Location

Promptie stores data in OS-specific locations:

  • Windows: %APPDATA%\promptie\
  • macOS: ~/Library/Application Support/promptie/
  • Linux: ~/.config/promptie/

Change the location with:

pti location /custom/path

Examples

Team Development Setup

# 1. Create team coding standards prompt
pti create --name team-standards --content "Follow our team's coding standards: use TypeScript, add JSDoc comments, write tests."

# 2. Apply to all team projects
pti apply --prompts "team-standards"

# 3. Team members get consistent AI behavior

Personal Workflow

# Different prompts for different project types
pti create --name react-expert --content "You are a React expert..." --categories "React" "Frontend"
pti create --name node-expert --content "You are a Node.js expert..." --categories "Node" "Backend"

# Apply context-appropriate prompts
cd ~/projects/react-app
pti apply --prompts "react-expert"

cd ~/projects/api-server
pti apply --prompts "node-expert"

Backup and Sharing

# Backup your prompts
pti export ~/backups/prompts-$(date +%Y%m%d).json

# Share with team
pti export team-prompts.json

# Restore on new machine
pti import ~/backups/prompts-20241201.json

Advanced Multi-Prompt Setup

# Create specialized prompts
pti create --name typescript-focus --content "Focus on TypeScript best practices..."
pti create --name testing-emphasis --content "Emphasize comprehensive testing..."
pti create --name security-conscious --content "Prioritize security considerations..."

# Apply multiple prompts to same project
pti apply --prompts "typescript-focus,testing-emphasis,security-conscious"

Finding the Right Prompt

# Search by keyword
pti search "typescript"
pti search "security"

# Filter by category
pti search "expert" --category "Development"

# List with categories
pti list --category "AI"

Supported Tools

Promptie currently supports these AI development assistants:

| Tool | File Pattern | Description | | --------------------------------------- | --------------------------------- | --------------------------------- | | Claude Code | CLAUDE.md | Anthropic's Claude Code assistant | | Codex/Cursor/Zed/Warp/Aider/RooCode | AGENTS.md | GitHub Copilot and similar tools | | Gemini Code Assist | GEMINI.md | Google's Gemini AI assistant | | GitHub Copilot | .github/copilot-instructions.md | GitHub Copilot Instructions |

Advanced Usage

Variable Substitution

Use placeholders in your prompts for dynamic content:

# Create prompt with variables
pti create --name template-prompt --content "Hello {{name}}, you work with {{language}}."

# Run with variable substitution
pti run template-prompt --vars name=Alice language=TypeScript
# Output: Hello Alice, you work with TypeScript.

Category Management

# Create categories
pti category create
pti category edit "AI"
pti category rename "OldName" "NewName"
pti category delete "Unused"

# Filter by categories
pti list --category "Development"
pti search "typescript" --category "Frontend"

Statistics and Analytics

# View prompt statistics
pti stats
pti stats --json
pti stats --category "AI"
pti stats --recent 7  # Last 7 days

Data Management

# Export specific data
pti export my-prompts.json

# Import with conflict resolution
pti import shared-prompts.json --overwrite-all

# Clean up old prompts
pti clean --prompts "obsolete-prompt"
pti delete --prompts "another-prompt"

Contributing

We welcome contributions! Here's how you can help:

Setting Up Development

git clone <repository-url>
cd promptie
npm install
npm run build
npm link

Development Workflow

  1. Create a feature branch: git checkout -b feature/your-feature
  2. Make changes: Follow existing code style and patterns
  3. Test thoroughly: Run npm test and manual testing
  4. Update documentation: Keep README.md and AGENTS.md current
  5. Submit a PR: Include clear description of changes

Code Quality

  • Follow TypeScript strict mode requirements
  • Add tests for new functionality
  • Update documentation for API changes
  • Run npm run lint and npm run typecheck before submitting

License

Promptie is licensed under the MIT License. See LICENSE for details.


Promptie - Consistent AI behavior across all your development tools.

Built with ❤️ using TypeScript README.md