prompt-master  by nidhinjs

AI prompt optimization tool

Created 1 week ago

New!

2,145 stars

Top 20.6% on SourcePulse

GitHubView on GitHub
Project Summary

This project addresses the significant problem of wasted AI tokens and credits caused by inefficient prompting. It offers a Claude skill designed to automatically generate highly optimized prompts for virtually any AI tool, ensuring maximum effectiveness with minimal resource expenditure. The target audience includes AI practitioners, developers, and researchers who rely on AI tools and seek to improve prompt quality, reduce costs, and retain conversational context.

How It Works

Prompt Master employs a structured pipeline to craft precise prompts. It first detects the target AI tool and extracts nine dimensions of user intent (task, input, output, constraints, context, audience, memory, success criteria, examples). If critical information is missing, it asks up to three targeted clarifying questions. The system then selects an appropriate prompt framework from nine available options and applies advanced techniques like Chain of Thought, few-shot learning, or XML structuring, tailored to the tool and task. Finally, it performs a token efficiency audit, stripping unnecessary words before delivering a clean, optimized prompt with metadata. This approach prioritizes prompt "sharpness" over length, maximizing AI performance and minimizing wasted resources.

Quick Start & Requirements

  • Installation:
    • Claude.ai (browser): Download the repository as a ZIP or copy the content of SKILL.md and upload via Claude.ai's Sidebar → Customize → Upload into Custom Skill.
    • Recommended (Claude Code): Clone the repository directly into Claude Code's skills directory: mkdir -p ~/.claude/skills && git clone https://github.com/nidhinjs/prompt-master.git ~/.claude/skills/prompt-master.
    • Manual: Copy SKILL.md into ~/.claude/skills/prompt-master/.
  • Prerequisites: Access to AI tools such as Claude, ChatGPT, Gemini, Midjourney, etc. No specific hardware or software dependencies are listed beyond the Claude environment.
  • Links: claude.ai (for browser installation).

Highlighted Details

  • Supports over 18 specific AI tools (e.g., Claude, ChatGPT, Gemini, Midjourney, DALL-E, Stable Diffusion, Sora, ElevenLabs, Zapier, Make) and any other AI system via a "Universal Fingerprint" mechanism.
  • Automatically selects from 9 prompt frameworks (e.g., RTF, CO-STAR, RISEN, CRISPE, Chain of Thought, Visual Descriptor) based on the task type.
  • Applies 10 advanced techniques automatically, including Role Activation, XML Structural Tags, Grounding Anchors, and Self-Check Instructions.
  • Addresses 35 common "credit-killing" patterns in prompts, categorized into Task, Context, Format, Scope, Reasoning, and Agentic types, providing before/after examples.
  • Features a Memory Block system that automatically carries forward prior decisions in long conversations, preventing AI contradictions and maintaining session context.

Licensing & Compatibility

  • License: MIT.
  • Compatibility: The MIT license is permissive, generally allowing for commercial use and integration into closed-source projects without significant restrictions.

Limitations & Caveats

The project is presented as a Claude skill, implying its primary operational environment is within Claude's ecosystem. While it aims to work with any AI tool via its Universal Fingerprint, its effectiveness with entirely novel or highly specialized AI systems may vary. The system's reliance on extracting intent from user input means clarity in the initial user request is still beneficial, though the skill is designed to mitigate vagueness.

Health Check
Last Commit

23 hours ago

Responsiveness

Inactive

Pull Requests (30d)
13
Issues (30d)
2
Star History
2,165 stars in the last 13 days

Explore Similar Projects

Starred by Bryan Helmig Bryan Helmig(Cofounder of Zapier) and Jared Palmer Jared Palmer(SVP at GitHub; Founder of Turborepo; Author of Formik, TSDX).

dspyground by karthikscale3

0.3%
306
Optimize AI agent prompts with DSPy GEPA
Created 6 months ago
Updated 1 month ago
Feedback? Help us improve.