Prompt Master — Zero-Waste AI Prompt Generator Skill
Claude Code skill that generates optimized prompts for 30+ AI tools. Auto-detects target tool, applies 5 safe techniques, catches 35 credit-killing patterns. 4.8K+ stars, MIT license.
Agent 可直接安装
这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。
npx -y tokrepo@latest install 0994566a-33aa-11f1-9bc6-00163e2b0d79 --target codex先 dry-run 确认安装计划,再运行此命令。
What it is
Prompt Master is a Claude Code skill that generates optimized prompts for over 30 AI tools. It auto-detects the target tool from your description, applies 5 proven optimization techniques, and catches 35 common patterns that waste AI credits.
The skill targets developers and teams who use multiple AI tools and want consistent, high-quality prompts without manually learning each tool's prompt engineering best practices.
How it saves time or tokens
Poorly written prompts cause models to produce vague, incomplete, or incorrect responses, leading to expensive retry cycles. Prompt Master front-loads the optimization, producing prompts that get the right output on the first attempt.
The credit-killing pattern detector identifies common mistakes: overly broad instructions, missing context, ambiguous specifications, and unnecessary verbosity. Fixing these before submission saves significant token costs.
How to use
- Install the Prompt Master skill in your Claude Code project.
- Describe what you want the AI to do:
Generate a prompt for: summarize a long technical document
into a 3-paragraph executive summary
for non-technical stakeholders
- Prompt Master generates an optimized prompt:
You are a technical writer creating executive summaries.
Input: [Technical document text]
Task: Write a 3-paragraph executive summary.
Paragraph 1: Key findings and conclusions (2-3 sentences)
Paragraph 2: Business impact and recommendations (2-3 sentences)
Paragraph 3: Next steps and timeline (2-3 sentences)
Constraints:
- Use plain language, no jargon
- Audience: C-suite executives without technical background
- Each paragraph: 50-75 words
- Review, adjust, and use the generated prompt with your target AI tool.
Example
# Using Prompt Master programmatically
result = prompt_master.generate(
task='Code review for Python backend',
target_tool='claude-code',
constraints=['Focus on security', 'Check for SQL injection', 'Max 500 words']
)
print(result.optimized_prompt)
print(f'Estimated token savings: {result.savings_percent}%')
Related on TokRepo
- Prompt Library — Curated collection of effective prompts
- AI Tools for Coding — AI coding tools and prompt optimization
Common pitfalls
- Generating prompts without specifying the target tool. Each AI tool has different strengths and prompt formats. Prompt Master optimizes differently for Claude vs GPT vs Gemini.
- Not iterating on generated prompts. Prompt Master provides a strong starting point but may not capture domain-specific requirements. Refine the output based on actual results.
- Over-constraining the prompt. Too many constraints can make the AI output rigid and unnatural. Balance structure with flexibility.
- Failing to review community discussions and changelogs before upgrading. Breaking changes in major versions can disrupt existing workflows. Pin versions in production and test upgrades in staging first.
常见问题
Prompt Master generates optimized prompts for over 30 AI tools including Claude, GPT-4, Gemini, Midjourney, Stable Diffusion, DALL-E, and various coding assistants. It adjusts prompt structure and language based on the target tool's strengths.
Prompt Master applies structured output specification, role definition, constraint framing, example provision, and chain-of-thought elicitation. Each technique is calibrated per target tool based on known effectiveness.
Prompt Master identifies 35 patterns including vague instructions, missing output format, redundant context, over-broad scope, missing constraints, ambiguous pronouns, and unnecessary verbosity. Each pattern has a specific fix.
Yes. Paste an existing prompt and Prompt Master analyzes it for optimization opportunities. It identifies waste patterns, suggests improvements, and generates a revised version with estimated token savings.
Yes. Prompt Master generates prompts for image generation tools like Midjourney, DALL-E, and Stable Diffusion. It adjusts for the visual prompt syntax each tool expects, including style keywords, negative prompts, and aspect ratio specifications.
引用来源 (3)
- Prompt Master GitHub— Prompt Master generates optimized prompts for 30+ AI tools
- Anthropic Documentation— Prompt engineering best practices for Claude
- OpenAI Prompt Engineering Guide— Prompt optimization techniques for LLMs
来源与感谢
Created by nidhinjs. Licensed under MIT.
prompt-master — ⭐ 4,800+
讨论
相关资产
Multi-Platform Social Media Growth Skill for Developer Communities
Production-tested Claude Code skill for automating authentic developer engagement across 10+ platforms (Twitter, Bluesky, Dev.to, HN, Reddit, GitHub, Product Hunt, Hashnode, Medium, Quora). Includes rotation queue, per-platform cooldowns, action diversity rules, Chrome MCP toolchain with JS injection patterns, anti-ban safety, and continuous optimization framework. Battle-tested across 30+ cycles.
vanilla-extract — Zero-Runtime Type-Safe CSS in TypeScript
A CSS-in-TypeScript framework that generates static CSS files at build time, giving you type-safe style authoring with zero runtime cost and standard CSS output.
zcf — Zero-Config Setup for Claude Code & Codex
Zero-config initializer for Claude Code and Codex: one `npx zcf i` sets up workflows, routing, and optional MCP pieces in minutes.
Nuxt + Go-Zero Quality Audit Skill — 30 Checks from 250 Real Bugs
Production-tested quality check skill for Nuxt SSR + Go-Zero + MySQL projects. 30 automated checks across 7 dimensions (security, race conditions, transactions, frontend SSR, dependencies, API contracts, ops) — distilled from 10 rounds of Codex audit that found ~250 real issues in a live SaaS product.