Command Palette

Search for a command to run...

Назад к скиллам
скилл № 00076

writing-prompt

Create or edit agent-facing/LLM prompts using modern prompt-engineering practices. Use this skill before editing agent-facing docs, rule files, references…

БесплатноБез исполняемых скриптов
archibateот archibate★ 42 звезды на GitHub

Установить writing-prompt в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Writing Prompt

A prompt is read by a target model with particular capabilities. Size the prompt for that reader: lean, rational, unambiguous, and direct. Do not benchmaxx evaluations. Allocate detail by importance, and split the prompt when essential guidance becomes hard to find.

Know your target model

First, identify which model your prompt targets.

  • Agent-facing docs: CLAUDE.md, SKILL.md, references/, agent memory → assume the target model is the same as you, or another capable model with comparable abilities.
  • LLM tests, evaluations, and benchmarks → use the model being tested.

Call it the target model—the audience you are writing for.

Tailor the level of detail to the target model's instruction following and comprehension, using observed behavior on relevant tasks when available.

Why: Models can vary in how much explicit guidance they need. If heuristic guidance already produces stable behavior, its flexibility allows the model to use context and judgment without having every decision prescribed.

For agent-facing docs, assume the target model is yourself: the same model, but without your current context. Ask what would enable a fresh instance of you to understand the scenario and reliably make the same decisions. Do not repeat common knowledge that does not depend on context. If the audience is a flagship model comparable to you, GPT-3.5 era prompting is over-engineering.

Build a minimal working prompt

Clarify what you want to accomplish. Derive a minimal prompt from first principles that does the job. Prefer rational, direct sentences.

Why: Concise prompts are easier to inspect and maintain. Extra detail can obscure important constraints, add token cost, and overfit the prompt to individual examples.

Possible simplifications, when the intended meaning is preserved:

  • ALL-CAPS: ALWAYS use X. → Always use X.
  • Bold: **Use X**. → Use X.
  • Negative: Use X, not Y. → Use X.
  • Justifying: Use X (the correct form). → Use X.

Default to rational prompts. Add missing context or resolve ambiguity before strengthening the wording. Escalate emphasis gradually when observed failures show that an important instruction is being missed (see Instruction budget).

The rule: If the target model would not do Y after seeing Use X, then Use X, not Y. is unjustified (see When to use a negative hedge). If **X** does not improve the target model's adherence to the instruction, use plain X. If the target model likely already knows that X implies the correct form, that justification is redundant.

For reasoning models specifically, OpenAI recommends simple, direct prompts, avoiding chain-of-thought instructions, and trying zero-shot prompting before adding few-shot examples. (Reasoning-model guidance)

Instruction budget

Use instruction budget as a design metaphor for the difficulty of following many competing requirements. Practical limits depend on the model, task, and context; this is not a fixed count of instructions.

Keep instructions that materially affect behavior, including triggers, actions, and recovery steps. Do not delete useful instructions merely to reduce word count. Include the author's working context, design history, and implementation details only when the target model needs them to decide or act correctly. Catch yourself before story-telling in prompts.

To make the prompt easier to follow:

  • Use direct sentences that make the requested behavior clear.
  • Prefer positive wording when it fully expresses the requirement; retain negative constraints for relevant pitfalls.
  • Resolve contradictions so the model has a consistent set of rules to follow.
  • Group related instructions under descriptive headings, using consistent heading levels to make topics and subtopics easy to locate.
  • Use Markdown for prose and lists. Use descriptive XML tags when explicit start/end markers help delimit content without relying on semantic cues or indentation. Few-shot examples and nested content are common cases; see How to use when.
  • Use concise pseudocode in fenced code blocks only when it clarifies control flow, execution order, or branch boundaries.
  • Prefer explicit labels and relationships over layouts that depend on ASCII art or space padding.

ALL-CAPS or bold formatting may make an instruction more noticeable, but does not guarantee priority or reliable compliance. Reserve emphasis for important constraints.

Size balancing: important or information-dense instructions justify a long top-level document; niche rules do not. Do not waste too much of the budget on minor items that are unlikely to be reused. If you cannot cut further, split the prompt; see references/progressive-disclosure.md.

When to use a negative hedge

Reserve a negative hedge for cases in which the negative branch is relevant or would be a com

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/progressive-disclosure.md
  • references/testing-prompts.md

FAQ

Что делает скилл writing-prompt?

Create or edit agent-facing/LLM prompts using modern prompt-engineering practices. Use this skill before editing agent-facing docs, rule files, references, skills, memory, or any form of LLM prompt. Also use it before writing LLM tests or evaluations. This is mandatory: NEVER skip this skill before writing agent-facing text; MUST use it before editing a file that will be fed to AI agents.

Как установить скилл writing-prompt?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл writing-prompt запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить writing-prompt с