一键导入
prompt-master
Guide for writing effective prompts for LLMs. Use when: "напиши промпт", "улучши промпт", "prompt engineering", "проверь промпт"
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guide for writing effective prompts for LLMs. Use when: "напиши промпт", "улучши промпт", "prompt engineering", "проверь промпт"
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Maintain project documentation in .claude/skills/project-knowledge/: audit, edit, check consistency, track status. Use when: "проверь документацию", "обнови документацию", "аудит документации", "check docs", "audit documentation", "update docs", "проверь базу знаний проекта" For creating documentation from scratch use project-planning skill. For reading docs or explaining concepts, read project-knowledge skill directly.
Maintain project documentation in .claude/skills/project-knowledge/: audit, edit, check consistency, track status. Use when: "проверь документацию", "обнови документацию", "аудит документации", "check docs", "audit documentation", "update docs", "проверь базу знаний проекта" For creating documentation from scratch use project-planning skill. For reading docs or explaining concepts, read project-knowledge skill directly.
AI-First development methodology: spec-driven pipeline, project structure, skills/agents ecosystem, quality gates. Use when: "изучи методологию", "изучи глобальную папку", "как работает методология", "how does the methodology work", "explain the workflow" For infrastructure tasks, use infrastructure-setup or deploy-pipeline skills.
Converted Codex workflow from Claude slash command `decompose-tech-spec-coarse`. Use when the user asks to run the equivalent command or describes this workflow.
Converted Codex workflow from Claude slash command `decompose-tech-spec`. Use when the user asks to run the equivalent command or describes this workflow.
Converted Codex workflow from Claude slash command `do-feature`. Use when the user asks to run the equivalent command or describes this workflow.
| name | prompt-master |
| description | Guide for writing effective prompts for LLMs. Use when: "напиши промпт", "улучши промпт", "prompt engineering", "проверь промпт" |
Based on Anthropic and OpenAI guidelines (2025-2026). Every principle here has a motivation — when you understand WHY something works, you follow it more reliably.
Add only what the model lacks: domain context, constraints, success criteria. Every sentence should justify its token cost. The context window is a shared resource — prompts compete for attention with conversation history, tool outputs, and the model's own reasoning.
Most prompt failures stem from ambiguity, not model limitations. Test: show the prompt to a colleague with no context. If they're confused about what to do, the model will be too.
Explain WHY a rule matters. One motivated sentence outperforms ten capitalized words.
When every instruction screams for attention (ALL CAPS, "CRITICAL", "NEVER", "ALWAYS", "MUST"), nothing stands out. Emphasis words signal a poorly written instruction — rewrite it instead of raising the volume. Over-thorough language ("Be THOROUGH", "Make sure you have the FULL picture") also hurts — it inflates token cost without adding signal.
Before:
CRITICAL: You MUST ALWAYS validate input. NEVER skip validation.
IMPORTANT: ALWAYS check for edge cases. This is MANDATORY.
After:
Validate all input before processing.
Reason: unvalidated input causes pipeline crashes in production.
Default to stating what you want, not what to avoid. Models follow positive instructions more reliably. Long prohibition lists get ignored — they add tokens without adding clarity.
Rewrite when positive form is sufficient:
Before: Don't use bullet points. Never include code examples.
After: Write in prose paragraphs, 2-3 sentences each.
Keep negatives for hard boundaries where positive rewrite loses the prohibition:
"Return data as JSON. Do not include markdown fences around it."
— positive alone ("Return raw JSON") may not prevent the common mistake.
Test: does the positive rewrite fully convey the prohibition?
Yes → rewrite positively.
No → keep negative + add reason why it matters.
1-3 canonical examples transfer knowledge more efficiently than paragraphs of description. Show the desired output — let the model generalize from the pattern.
Remove filler ("could you please", "I would like you to", "make sure to"). Shorter prompts often perform equally well or better — less noise means stronger signal per token.
Match specificity to the task's fragility. Over-specifying creative tasks stifles the model's reasoning. Under-specifying fragile tasks leads to format errors and broken parsing.
Fragile tasks (parsing specific formats, following exact protocols): prescribe steps. Creative tasks (writing, analysis, design): give constraints and let the model find its path.
Provide constraints and success criteria rather than step-by-step micro-instructions. The model's own reasoning often exceeds prescriptive procedures. Describe WHAT success looks like — the model figures out HOW.
Provide concrete context (audience, use case, constraints) instead of decorative phrasing. The model gains nothing from flattery.
Before:
You are an incredibly brilliant and talented expert programmer
who writes the most amazing code in the world. Please write
a function that validates emails.
After:
Write an email validation function.
Context: TypeScript, used in a signup form, must handle
international domains. Return {valid: boolean, reason: string}.
Separate instructions, data, and examples with XML tags. This prevents the model from confusing context with instructions. Consistent tag names make handoffs between chained prompts clean.
Before:
Here's some customer feedback. Also, the format should be
JSON. And please analyze sentiment. The feedback is:
"Great product but shipping was slow."
After:
<instructions>
Analyze sentiment. Output JSON: {text, sentiment, confidence}.
</instructions>
<data>
Great product but shipping was slow.
</data>
Instead of describing the desired output format in paragraphs, show 1-3 examples. The model generalizes from patterns faster than from rules.
Before:
When summarizing articles, create a summary that includes
the main topic as a short phrase, then 2-3 key points as
bullet items, then a one-sentence practical takeaway.
After:
Summarize articles in this format:
<example>
Topic: Remote work productivity
- Async communication reduces meetings by 40%
- Written documentation improves onboarding speed
Takeaway: Teams that default to async work ship faster.
</example>
Break complex tasks into focused steps. Each step gets the model's full attention. A chain of 3 focused prompts outperforms one overloaded prompt — empirically shown to reduce error rates.
Before (single mega-prompt):
Analyze this contract for risks, then draft an email
to the vendor with concerns, then review for tone.
After (3-step chain):
Step 1: Analyze <contract> for risks. Output in <risks> tags.
Step 2: Using <risks>, draft vendor email with proposed changes.
Step 3: Review <email> for tone. Grade A-F with suggestions.
Tell the model what good output looks like — not just what to do. Include format, length, audience, and evaluation criteria.
Before:
Write a good product description.
After:
Write a product description for noise-canceling headphones.
Audience: Tech-savvy millennials on a comparison shopping site.
Format: 80-120 words, no superlatives, focus on specs and
use cases. End with one differentiating fact vs. competitors.
How to improve a prompt that isn't working well:
| Problem | Fix |
|---|---|
| Model misunderstands the task | Add context (audience, use case, constraints) |
| Output missing required sections | Add an example showing all sections |
| Wrong format or style | Add 1-2 output examples |
| Model uses wrong context | Restructure with XML tags to separate data from instructions |
| Contradictory behavior | Audit prompt for conflicting rules and resolve them |
| Instead of | Do this | Why |
|---|---|---|
| Emphasis words (CAPS, "NEVER", "ALWAYS") | One sentence explaining motivation | When everything screams, nothing stands out |
| Lists of prohibitions | State desired behavior; keep negatives only for hard boundaries + motivation | Positive framing is followed more reliably |
| "Act as a world-class expert..." | Provide context + success criteria | Flattery adds tokens without adding signal |
| One mega-prompt with many tasks | Chain of 3-4 focused prompts | Each step gets full model attention |
| Filler ("please", "make sure", "I want you to") | Direct instruction | Fewer tokens = less noise |
| Paragraphs describing format | 1-3 examples of desired output | Models generalize from examples faster than from rules |
| Step-by-step micro-instructions | Constraints + success criteria | Model's own reasoning exceeds prescriptive procedures |