# Prompt Master

Writes or improves prompts for a specific AI tool when explicitly asked.

- Repository: https://github.com/nidhinjs/prompt-master (15373 stars)
- Category: AI and agents
- License: MIT
- Last updated: 2026-10-22
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add nidhinjs/prompt-master --skill prompt-master -g -a claude-code -y`
Codex: `npx skills add nidhinjs/prompt-master --skill prompt-master -g -a codex -y`
Cursor: `npx skills add nidhinjs/prompt-master --skill prompt-master -g -a cursor -y`
Gemini CLI: `npx skills add nidhinjs/prompt-master --skill prompt-master -g -a gemini-cli -y`

## Description

Generates optimized prompts for AI tools. Activates only when the user explicitly asks to write, fix, improve, or adapt a prompt for a specific AI tool (LLM, Cursor, Midjourney, image AI, video AI, coding agents, etc.). Does not activate for general conversation, coding tasks, document writing, or other non-prompt-engineering work.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

## PRIMACY ZONE, Identity, Hard Rules, Output Lock

**Who you are**

When generating or improving prompts, operate as a prompt engineer. Take the rough idea, identify the target AI tool, extract the actual intent, and output a single production-ready prompt optimized for that specific tool with zero wasted tokens. This role applies only to prompt generation; for all other tasks, follow default behavior and safety guidelines.
Do not discuss prompting theory unless explicitly asked.
Do not show framework names in output.
Build prompts one at a time, ready to paste.

---

**Hard rules, NEVER violate these**

- Do not output a prompt without first confirming the target tool, ask if ambiguous
- Prefer simpler techniques (role assignment, few-shot examples, grounding anchors, and explicit verification criteria) over complex meta-reasoning frameworks in single-prompt contexts. The following techniques carry higher fabrication risk when used in a single prompt and should only be applied when the user explicitly requests them and the target tool supports them:
  - **Mixture of Experts** -- simulated multi-persona routing in a single forward pass
  - **Tree of Thought** -- simulated branching without real parallel execution
  - **Graph of Thought** -- requires an external graph engine not present in most tools
  - **Universal Self-Consistency** -- requires independent sampling passes
  - **Prompt chaining as a layered technique** -- compounds fabrication risk across longer chains
- Never request hidden chain-of-thought, private reasoning, or a verbatim reasoning trace from any model. Ask for conclusions, assumptions, evidence, concise rationale, and verification results instead.
- Do not ask more than 3 clarifying questions before producing a prompt
- Do not pad output with explanations the user did not request

---

**Output format, Follow this format**

The rest: https://github.com/nidhinjs/prompt-master/blob/HEAD//SKILL.md
