WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

that1guy15/prompt-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’ก Prompt Manager

AI Prompt Management and Task-Master Integration System

Intelligent prompt management with context-aware suggestions, multi-project support, and seamless browser integration. Designed for developers, content creators, and teams who work with AI assistants across multiple projects.

License: MIT Python 3.8+ Chrome Extension

๐Ÿš€ Features

Intelligent Prompt Management

  • ๐Ÿ“ Template System - Variables, categories, and reusable prompts
  • ๐Ÿ” Secure Variables - AES-256 encrypted storage for API keys and sensitive data
  • ๐Ÿงน Log Sanitization - Intelligently filter repetitive patterns from verbose logs
  • ๐ŸŽฏ Context-Aware Suggestions - Smart prompt recommendations based on current task
  • ๐Ÿ“Š Usage Analytics - Track prompt effectiveness and success rates
  • ๐Ÿ” Search & Filter - Find prompts by category, tags, or content

Task-Master Integration

  • ๐Ÿ”— Multi-Project Support - Manage multiple Task-Master projects
  • ๐Ÿค– Auto-Context Extraction - Automatically fills PRD locations, requirements, success criteria
  • ๐Ÿ“‚ Project Registry - Manual and automatic project discovery
  • โšก One-Command Context - pmcli instantly copies perfect project context

Browser Extension

  • ๐ŸŒ Cross-Platform - Works on Claude.ai, ChatGPT, GitHub, Notion, Linear, Slack
  • ๐Ÿ’ซ Grammarly-Style Integration - Unobtrusive suggestions when you need them
  • ๐Ÿ“ฑ Visual Project Picker - Choose projects with rich metadata
  • โŒจ๏ธ Keyboard Shortcuts - Quick access with Ctrl+Shift+P

Security & Enterprise Ready

  • ๐Ÿ” Military-Grade Encryption - AES-256 encryption for sensitive variables
  • ๐Ÿ”‘ Session Management - Time-limited authentication with configurable TTL
  • ๐Ÿ“‹ Audit Logging - Complete trail of all secure variable operations
  • ๐Ÿข Enterprise Features - Secure storage, access controls, and compliance ready

Developer-Friendly

  • ๐Ÿ› ๏ธ CLI Tools - Full command-line interface for all features
  • ๐Ÿ”Œ REST API - Integrate with any tool or workflow
  • ๐ŸŽจ Customizable - Themes, settings, and extensible architecture
  • ๐Ÿ‘ฅ Team Support - Shared prompts and project configurations

๐Ÿš€ Getting Started

Transform your AI workflow in under 5 minutes! Choose your preferred setup method:

โšก Express Setup (2 minutes)

# 1. Clone and install
git clone https://github.com/your-username/promptManager.git
cd promptManager
make install

# 2. Start API server
prompt-api &

# 3. Add your first prompt
prompt-manager add --manual "Daily Standup" "Help me prepare for standup: 1) What I completed yesterday 2) What I'm working on today 3) Any blockers"

# 4. Use it instantly
prompt-manager copy 1  # โœ… Copied to clipboard!

๐Ÿ“ฆ Complete Installation

๐ŸŽฏ Professional CLI Installation (Recommended)

# Clone the repository
git clone https://github.com/your-username/promptManager.git
cd promptManager

# Production installation
make install

# Or development installation (includes dev tools)
make develop

Available Commands After Installation:

  • prompt-manager (or short alias pm) - Main CLI interface
  • pmcli - Task-Master integration
  • prompt-api - API server
  • project-registry - Project management

๐Ÿ“œ Legacy Script Installation

# If you prefer the original script approach
pip install flask flask-cors requests numpy
chmod +x prompt_manager.py pmcli setup_integration.sh
./setup_integration.sh

๐ŸŒ Chrome Browser Extension Installation

Step 1: Start API Server

# Navigate to promptManager directory
cd promptManager

# Start the API server (keep this running)
python3 src/prompt_api.py

Step 2: Install Extension in Chrome

  1. Open Chrome Extensions: Go to chrome://extensions/
  2. Enable Developer Mode: Toggle switch in top-right corner
  3. Load Extension:
    • Click "Load unpacked" button
    • Navigate to and select: promptManager/browser_extension/
    • Click "Select Folder"
  4. Pin Extension: Click puzzle piece icon โ†’ pin Prompt Manager

Step 3: Configure Extension

  1. Right-click extension icon โ†’ "Options"
  2. Test Connection - Should show โœ… if API server is running
  3. Add a project using "Add Manually" button
  4. Enable desired settings (auto-suggest, show widget, etc.)

Step 4: Test It Out

  1. Visit Claude.ai
  2. Focus on text input โ†’ See prompt suggestions appear! โœจ
  3. Press Ctrl+Shift+P โ†’ Quick access popup
  4. Click ๐Ÿ“‚ โ†’ Choose Task-Master project for context

๐ŸŽฏ First Steps

CLI Quick Start

# Add your first prompt
prompt-manager add --manual "Code Review" "Review this code for security, performance, and best practices: {code}" -c development

# List your prompts
prompt-manager list

# Copy prompt with variables  
prompt-manager copy 1 -v code="function login() { return true; }"

# Get interactive help
prompt-manager help

Task-Master Integration

# Add your first project
project-registry add "My Project" ~/path/to/project

# Get instant project context
cd ~/path/to/project
pmcli  # โœ… Copies: PRD, requirements, tasks, git branch, success criteria

Browser Magic

  1. Visit any supported site (Claude.ai, ChatGPT, GitHub, Notion, Linear, Slack)
  2. Focus text area โ†’ Auto-suggestions appear
  3. Use shortcuts: Ctrl+Shift+P for quick access
  4. Choose projects with ๐Ÿ“‚ for context-aware prompts

๐Ÿ” Secure Variables - Enterprise-Grade Security

Store sensitive data like API keys, passwords, and tokens with military-grade security that rivals enterprise password managers.

๐Ÿ›ก๏ธ Security Architecture

Encryption Standards:

  • AES-256 Encryption - Same standard used by banks and government agencies
  • PBKDF2 Key Derivation - 100,000 iterations to prevent brute-force attacks
  • System Keychain Integration - Leverages macOS Keychain for password storage
  • Secure Memory Handling - Values cleared immediately after use

Access Control:

  • Session-based Authentication - Time-limited access (1-hour default)
  • Write-only Storage - Values cannot be retrieved in plaintext after creation
  • Runtime-only Decryption - Secrets only decrypted when actually used in prompts
  • Audit Trail - Complete logging of all operations for compliance

๐Ÿš€ Quick Start with Secure Variables

# Add sensitive API key (interactive password prompt)
./pmcli svar add openai_key "OpenAI API Key"

# List all variables (secure ones marked with ๐Ÿ”’)
./pmcli var list

# Use in prompts (automatic authentication if needed)
./pmcli copy 1  # Secure variables automatically filled

# Session management
./pmcli svar session info    # Check authentication status
./pmcli svar session logout  # End session for security

๐ŸŽฏ Use Cases for Secure Variables

API Integration Prompts:

Test the {endpoint} API:
Authorization: Bearer {api_token}  # โ† Secure variable
Method: {method}
Expected: {expected_response}

Database Operations:

Connect to production database:
Host: {db_host}
Password: {db_password}  # โ† Secure variable
Execute: {query}

CI/CD Workflows:

Deploy to {environment}:
GitHub Token: {github_token}  # โ† Secure variable  
Docker Registry: {registry_token}  # โ† Secure variable
Slack Webhook: {slack_webhook}  # โ† Secure variable

๐Ÿ”’ Security Features Detail

Feature Description Security Level
Encryption AES-256-CBC with random IV/salt Military Grade
Key Derivation PBKDF2-SHA256, 100K iterations Bank Standard
Password Storage System keychain or encrypted file Hardware Secured
Session Management Configurable TTL with auto-expire Enterprise Standard
Audit Logging All operations logged with timestamps Compliance Ready
Memory Security Immediate cleanup after use Government Standard

๐Ÿ“‹ Complete Command Reference

# Secure Variable Management
./pmcli svar add <name> "description"       # Add with password prompt
./pmcli svar list [--show-values]           # List (--show-values is DANGEROUS)
./pmcli svar update <name> [-d "desc"]      # Update description/value
./pmcli svar delete <name> [-f]             # Delete (force flag available)

# Session Management  
./pmcli svar session info                   # Show authentication status
./pmcli svar session logout                 # End secure session
./pmcli svar session extend                 # Extend session time

# Security & Compliance
./pmcli svar audit [-n 50]                  # View audit log
./pmcli svar export backup.json             # Export encrypted backup

โš ๏ธ Security Notes:

  • Passwords are never stored - only secure hashes
  • Values are write-only after creation - cannot be retrieved in plaintext
  • Sessions auto-expire after configured time (default: 1 hour)
  • All operations are audited for security compliance

๐Ÿ“– Complete Security Documentation:

๐Ÿงน Log Sanitization - Save Tokens & Time

Clean up verbose logs before using them in AI prompts - automatically filters repetitive patterns while preserving important information.

Quick Example

# Your clipboard has 500 lines of repetitive logs
./pmcli sanitize

โœ… Sanitized content copied to clipboard!
   Reduced from 500 to 45 lines (91% reduction)

Key Features

  • Intelligent Pattern Detection - Finds similar lines even with slight variations
  • Smart Summarization - Replaces repetitive blocks with concise summaries
  • Sensitive Data Warning - Alerts you to potential API keys or passwords
  • Flexible I/O - Works with clipboard, files, or piped input

Common Use Cases

# Docker logs
docker-compose logs | ./pmcli sanitize

# Server logs with custom threshold
./pmcli sanitize -i server.log -t 0.8 -s

# Preview without modifying
./pmcli sanitize -p

๐Ÿ“– Full Log Sanitization Guide - Complete documentation with examples and best practices

๐Ÿ“š Documentation

Quick Access Help

# CLI help - available anytime
prompt-manager help             # Interactive help system
pmcli --help               # Task-Master integration help
project-registry --help       # Project management help

# Start here
prompt-manager help quick-start # 5-minute tutorial

Complete Guides

Advanced Topics

Examples & Tutorials

๐ŸŽฏ Use Cases

For Individual Developers

# Morning routine: Get project context instantly
cd ~/projects/my-app
pmcli  # Copies full project context for AI chat

# Code review: Use standardized review prompts
prompt-manager copy 1  # "Code Review Request" prompt

# Bug investigation: Context-aware debugging prompts
# Extension auto-suggests debugging prompts when "error" detected

For Teams

# Team lead: Set up shared project contexts
project-registry add "Team Project" /shared/team-project
project-registry add "Client Work" /shared/client-work

# Developers: Consistent project context across team
pmcli  # Everyone gets same PRD locations, requirements, success criteria

For Content Creators

  • Blog Writing: Prompts for different article types and audiences
  • Social Media: Platform-specific content generation prompts
  • Documentation: Technical writing and API documentation prompts
  • Marketing: Campaign ideas, ad copy, and engagement prompts

๐Ÿ†˜ Getting Help

Built-in Help System

# Interactive help - start here!
prompt-manager help

# Available help topics:
prompt-manager help quick-start     # 5-minute getting started
prompt-manager help commands        # All CLI commands
prompt-manager help task-master     # Task-Master integration
prompt-manager help browser         # Browser extension setup
prompt-manager help examples        # Common use cases
prompt-manager help troubleshooting # Fix common issues

Browser Extension Help

  • Right-click extension icon โ†’ "Options" โ†’ "Help" tab
  • Built-in tutorials and troubleshooting guides
  • Connection testing and diagnostics
  • Visual setup wizards for common tasks

Online Resources

  • ๐Ÿ“– Full Documentation: Browse the docs/ directory
  • ๐Ÿ’ฌ Issues: GitHub Issues
  • ๐Ÿ› Bug Reports: Use our issue templates
  • ๐Ÿ’ก Feature Requests: We love new ideas!

๐Ÿ—๏ธ Project Structure

promptManager/
โ”œโ”€โ”€ ๐Ÿ“„ README.md                 # You are here
โ”œโ”€โ”€ ๐Ÿ” SECURE_VARIABLES.md       # Security documentation
โ”œโ”€โ”€ ๐Ÿ”ง prompt_manager.py          # Core CLI tool
โ”œโ”€โ”€ โšก pmcli                      # Task-Master integration + secure variables
โ”œโ”€โ”€ ๐Ÿ“ src/
โ”‚   โ”œโ”€โ”€ ๐ŸŒ prompt_api.py         # REST API server
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ project_registry.py   # Multi-project management
โ”‚   โ”œโ”€โ”€ ๐Ÿ”— task_master_*.py      # Task-Master integration
โ”‚   โ”œโ”€โ”€ ๐Ÿ” secure_session.py     # Session management
โ”‚   โ”œโ”€โ”€ ๐Ÿ” secure_crypto.py      # AES-256 encryption
โ”‚   โ”œโ”€โ”€ ๐Ÿ” secure_variables.py   # Secure variable manager
โ”‚   โ”œโ”€โ”€ ๐Ÿงน log_sanitizer.py      # Log pattern filtering
โ”‚   โ””โ”€โ”€ ๐Ÿง  opus_reasoning.py     # AI-powered optimization
โ”œโ”€โ”€ ๐ŸŒ browser_extension/        # Chrome/Firefox extension
โ”‚   โ”œโ”€โ”€ manifest.json
โ”‚   โ”œโ”€โ”€ content.js              # Page integration magic
โ”‚   โ”œโ”€โ”€ options.html            # Settings page
โ”‚   โ””โ”€โ”€ popup.html              # Extension popup
โ”œโ”€โ”€ ๐Ÿ“š docs/                    # Complete documentation
โ”‚   โ”œโ”€โ”€ QUICK_START.md          # Start here
โ”‚   โ”œโ”€โ”€ CLI_USAGE.md            # Command reference
โ”‚   โ”œโ”€โ”€ BROWSER_EXTENSION.md    # Extension guide
โ”‚   โ”œโ”€โ”€ TASK_MASTER_INTEGRATION.md
โ”‚   โ”œโ”€โ”€ MULTI_PROJECT_GUIDE.md
โ”‚   โ”œโ”€โ”€ PROJECT_MANAGEMENT_GUIDE.md
โ”‚   โ””โ”€โ”€ examples/               # Real-world examples
โ”œโ”€โ”€ ๐Ÿ’พ prompts.json             # Your prompt database
โ”œโ”€โ”€ ๐Ÿ” prompts_secure.json       # Encrypted secure variables (auto-created)
โ””โ”€โ”€ โš™๏ธ setup_integration.sh     # Easy setup script

๐Ÿš€ 30-Second Demo

CLI Power User

# Setup takes 30 seconds
make install

# Add a project in 5 seconds  
project-registry add "My Project" ~/projects/my-app

# Get perfect AI context in 1 command
pmcli
# โœ… Copies: PRD location, requirements, success criteria, current task, git branch

# Paste into Claude Code โ†’ Perfect context every time! 

Browser Extension Magic

  1. Install extension (2 clicks)
  2. Visit Claude.ai
  3. Focus text area โ†’ See prompt suggestions appear ๐Ÿ’ซ
  4. Click ๐Ÿ“‚ โ†’ Choose your project
  5. Click suggestion โ†’ Perfect prompt with full project context!

Just like Grammarly, but for AI prompts!

๐ŸŽ›๏ธ Key Commands

Essential CLI Commands

# Prompt Management
prompt-manager help                         # Interactive help system
prompt-manager add --manual "Title" "Content"  # Add prompt
prompt-manager list                         # List all prompts
prompt-manager copy 1                       # Copy prompt to clipboard

# Secure Variables (NEW!)
pmcli svar add api_key "API Key Description"   # Add secure variable
pmcli svar list                             # List secure variables (๐Ÿ”’ marked)
pmcli var list                              # List all variables (regular + secure)
pmcli svar session info                     # Check authentication status

# Log Sanitization (NEW!)
pmcli sanitize                              # Clean clipboard logs (removes repetition)
pmcli sanitize -i app.log -o clean.log      # Sanitize log file
pmcli sanitize -p -s                        # Preview with statistics

# Task-Master Integration  
pmcli                                   # Auto-detect project and copy context
pmcli --list-projects                   # Show available projects
pmcli --select-project                  # Choose project interactively

# Project Management
project-registry add "Name" /path          # Add project manually
project-registry list                      # List all projects
project-registry disable project-id        # Hide project temporarily

# API Server
prompt-api                                  # Start REST API for browser extension

Browser Extension

  • Ctrl+Shift+P - Quick access popup
  • Click ๐Ÿ“‚ - Choose project for Task-Master prompts
  • Right-click icon โ†’ "Options" - Full settings and project management

๐Ÿค Contributing

We welcome contributions! Here's how to get started:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes and add tests
  4. Run the test suite: python -m pytest
  5. Submit a pull request

Development Setup

# Install in development mode with all dev tools
make develop

# Run tests
make test

# Format code
make format

# Start development API server
prompt-api --debug

# Load extension in Chrome developer mode
# Point to browser_extension/ directory

๐Ÿ“ˆ Roadmap

v1.1 - AI Enhancement

  • Opus-powered prompt optimization
  • Success rate learning and improvement
  • Automatic prompt generation from usage patterns

v1.2 - Team Features

  • Shared prompt libraries
  • Team analytics and insights
  • Role-based access control

v1.3 - Platform Expansion

  • VS Code extension
  • Slack bot integration
  • API webhooks and automation

v2.0 - Enterprise

  • SSO authentication
  • Audit logs and compliance
  • Advanced analytics dashboard

๐Ÿ”ง Configuration

Backend URL Configuration

CLI Tools - Configure via environment variable or command-line flag:

# Environment variable (recommended)
export PROMPT_API_URL="http://localhost:5000/api"

# Or use command-line flag for individual commands
prompt-manager --api-url "http://your-server:5000/api" list
pmcli --api-url "http://your-server:5000/api"

Browser Extension - Configure via options page:

  1. Right-click extension icon โ†’ "Options"
  2. Update "API URL" field
  3. Click "Test Connection" to verify

Environment Variables

# API Configuration
export PROMPT_API_URL="http://localhost:5000/api"
export PROMPT_MANAGER_DIR="/path/to/promptManager"

# Secure Variables Configuration
export PM_SECURE_SESSION_TTL=60              # Session timeout in minutes
export PM_SECURE_ENCRYPTION_BACKEND="auto"   # Encryption backend preference

# Task-Master Integration  
export TASK_MASTER_DIR="/path/to/task-master"

# AI Service Keys (DEPRECATED - Use Secure Variables Instead!)
# Migrate these to secure variables for better security:
# ./pmcli svar add anthropic_api_key "Anthropic API Key"
# ./pmcli svar add openrouter_api_key "OpenRouter API Key"
export ANTHROPIC_API_KEY="your-key-here"
export OPENROUTER_API_KEY="your-key-here"

Shell Integration

# Add to ~/.bashrc or ~/.zshrc for power-user shortcuts
source ~/promptManager/src/claude_integration.sh

# Quick commands now available:
# pms - prompt suggest     pmu - prompt use  
# pml - prompt list       pmf - prompt find
# tm  - task-master prompt

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Inspired by tools like Grammarly for seamless user experience
  • Built for the Claude Code and Task-Master workflow
  • Thanks to the open-source community for the amazing libraries

๐ŸŽ‰ Ready to Supercharge Your AI Workflow?

Next Steps:

  1. ๐Ÿš€ Quick Start - Get running in 5 minutes
  2. ๐ŸŽฎ Try the CLI: prompt-manager help quick-start
  3. ๐ŸŒ Install Browser Extension - Like Grammarly for AI prompts
  4. ๐Ÿ“š Explore Full Documentation - Become a power user

Join thousands of developers, writers, and teams who use Prompt Manager to work smarter with AI.

๐Ÿš€ Get Started Now | ๐Ÿ“– Full Docs | ๐ŸŒ Browser Extension | ๐Ÿ’ป API Reference

About

AI Prompt Manager - CLI tool for organizing and managing AI prompts with template variables

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •