prompt-creator
БесплатноБез исполняемых скриптовНе проверенExpert guide for crafting high-quality, production-grade prompts and system prompts for LLMs. Use when a user wants to create, improve, debug, or evaluate a…
от gabrielmoreira★ 23 звезды на GitHubОб этом скилле
Prompt Creator
Create prompts that reliably produce the desired output by applying structured prompt engineering techniques. This skill covers the full lifecycle: requirements gathering, drafting, structuring, evaluating, and iterating.
Golden Rule
Show the prompt to a colleague with minimal context and ask them to follow the instructions. If they are confused, the LLM will be too.
Treat the LLM as a brilliant new employee with amnesia — it has no context on norms, styles, or preferences unless explicitly told.
Prompt Creation Workflow
Step 1: Define Success Criteria
Before writing a single word, answer these questions:
- What is the task? — State the exact job the prompt must accomplish
- Who is the audience? — Who will consume the output?
- What does a perfect output look like? — Write or imagine a gold-standard example
- What are the failure modes? — List unacceptable outputs (hallucinations, wrong format, off-topic, too verbose)
- What are the constraints? — Length, tone, format, language, safety
Capture criteria as measurable assertions when possible (e.g., "output is valid JSON", "answer contains exactly 3 bullet points").
Step 2: Draft the Prompt
Apply the techniques from the Core Techniques section in this order — each one compounds on the previous:
- Be clear, direct, and detailed
- Structure with XML tags
- Provide examples (few-shot)
- Assign a role via system prompt
- Add chain-of-thought reasoning
- Specify output format
- Add guardrails and edge-case handling
Step 3: Assemble Using the Prompt Architecture
For non-trivial prompts, use the Prompt Architecture to organize elements into a coherent, ordered structure.
Step 4: Evaluate and Iterate
Run through the Quality Checklist. Test with edge cases, adversarial inputs, and boundary conditions. Refine iteratively — prompt engineering is empirical, not formulaic.
Core Techniques
1. Be Clear, Direct, and Detailed
This is the highest-impact technique. Apply it first, always.
| Principle | How |
|---|---|
| Provide context | Explain what the output is used for, who reads it, where the task fits in a workflow |
| Be specific | "Extract the 5 most relevant keywords" not "Extract some keywords" |
| Use sequential steps | Numbered lists or bullet points for multi-step tasks |
| Define ambiguous terms | If a word has multiple interpretations, define the one you mean |
| State what NOT to do | Explicitly forbid common failure modes |
| Set length expectations | "Respond in 2-3 sentences" or "Maximum 500 words" |
Anti-pattern: Vague instructions like "Be helpful" or "Do a good job" add nothing.
2. Structure with XML Tags
XML tags are the most reliable way to separate instructions from data, organize complex prompts, and delineate output sections. Claude was specifically trained to recognize XML tags as a prompt organizing mechanism.
Use XML tags to:
- Wrap input data — Prevent the model from confusing data with instructions:
<document>{{DOCUMENT_TEXT}}</document> - Delineate prompt sections — Make structure explicit:
<instructions>...</instructions> <context>...</context> <examples>...</examples> - Specify output structure — Tell the model to wrap its answer:
Put your answer in <answer></answer> tags. - Isolate variables — Keep dynamic content clearly separated:
<email>{{USER_EMAIL}}</email> <tone>{{DESIRED_TONE}}</tone>
Pro tip: There are no magic tag names — use descriptive, semantic names relevant to the task.
3. Provide Examples (Few-Shot Prompting)
Examples are the most reliable way to communicate complex formats, styles, or reasoning patterns. They dramatically reduce ambiguity that words alone cannot resolve.
Guidelines:
- Wrap examples in
<example>tags to separate them from instructions - Provide 2-5 diverse examples covering different scenarios
- Include at least one edge case or tricky example
- Show both input and expected output
- For classification tasks, include examples of each category
- If examples are long, place them after the instructions but before the task input
Template:
Here are examples of the expected input and output:
<example>
<input>How do I reset my password?</input>
<output>Category: Account Management
Priority: Low
Response: Navigate to Settings > Security > Reset Password.</output>
</example>
<example>
<input>The system is completely down, nothing works!</input>
<output>Category: System Outage
Priority: Critical
Response: I'm escalating this immediately to our infrastructure team.</output>
</example>
4. Assign a Role (System Prompt)
Place the role assignment in the system prompt when using the API. Define both identity and behavioral constraints.
Effective role prompts include:
- Who the model is (expertis
Установить prompt-creator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл prompt-creator?
Expert guide for crafting high-quality, production-grade prompts and system prompts for LLMs. Use when a user wants to create, improve, debug, or evaluate a prompt — whether for Claude, GPT, or any other LLM. Triggers on create prompt, write prompt, improve prompt, system prompt, prompt engineering, prompt template, metaprompt, prompt review, prompt optimization, why is my prompt not working, prompt debugging, few-shot examples, chain of thought, prompt architecture, agent instructions.
Как установить скилл prompt-creator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prompt-creator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic