KD

kingbootoshi/directional-prompting

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

145 stars Качество 54 Тренд 0MIT

kingbootoshi/directional-prompting - кандидат на навыки агента, импортированный из https://github.com/kingbootoshi/directional-prompting.

Обзор

kingbootoshi/directional-prompting - кандидат на навыки агента, импортированный из https://github.com/kingbootoshi/directional-prompting.

Обзор (машинный перевод)

Двухслойный навык для написания подсказок, директив агента, описаний навыков, команд слэша и в любом другом месте LLM читает инструкции. Работает так же в Claude Code и OpenAI Codex CLI.

То же [[Т0]], та же спусковая поверхность, тот же результат. Опустите его в ~/.claude/skills/directional-prompting/ и ~/.codex/skills/directional-prompting/, и оба агента подберут его изначально.

##Два слоя

Слой 1 — Результат. Каждая нетривиальная подсказка открывается блоком, который называет пункт назначения: цель, что «сделано» выглядит, когда остановиться, истинные инварианты. Это кадр.

Уровень 2 — направление. Внутри этого кадра каждое предложение называет путь вперед положительными глаголами. “След”, “построить”, “использовать”, “читать”, “возвратить”, “просить”, “проверить”. Правильное поведение описывается настолько ясно и полно, что неправильное поведение не имеет места для существования.

Результат без направления читается как желаемое — модель знает, куда идти, но не знает, как действовать. Направление без исхода блуждает — модель идет четкими путями в никуда. Оба слоя вместе: модель, которая знает пункт назначения и идет к нему на каждом токене.

Почему обе лаборатории сходятся здесь

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Directional Prompting

A two-layer skill for writing prompts, agent directives, skill descriptions, slash commands, and anywhere else an LLM reads instructions. Works the same in Claude Code and OpenAI Codex CLI.

Same SKILL.md, same trigger surface, same outcome. Drop it into ~/.claude/skills/directional-prompting/ and ~/.codex/skills/directional-prompting/ and both agents pick it up natively.

The two layers

Layer 1 — Outcome. Every non-trivial prompt opens with a block that names the destination: the goal, what “done” looks like, when to stop, the true invariants. This is the frame.

Layer 2 — Direction. Inside that frame, every sentence names the path forward with positive verbs. “Trace”, “build”, “use”, “read”, “return”, “ask”, “check”. The correct behavior is described so clearly and completely that the wrong behavior has no room to exist.

Outcome without direction reads as wishful — the model knows where to go but not how to step. Direction without outcome wanders — the model walks crisp paths to nowhere. Both layers together: a model that knows the destination and walks toward it on every token.

Why both labs converge here

Modern frontier models follow instructions literally. The Claude 4.7 guide: “Positive examples showing how Claude can communicate with the appropriate level of concision tend to be more effective than negative examples or instructions that tell the model what not to do.” The GPT-5.5 guide: “GPT-5.5 is strongest when the prompt defines the target outcome, success criteria, constraints, and available context, then lets the model choose the path.”

Both labs converge on the same shape. Name the destination. Name the path. Skip the prohibitions.

What this skill does

When the agent sees prompt-authoring language (write a prompt, improve this prompt, audit this system prompt, outcome-first, make this prompt positive, or any new skill, agent, or directive being authored), it:

  1. Opens the draft with an explicit outcome block: Goal:, Success means:, Stop when: (plus Constraints: when needed).
  2. Rewrites the body so every sentence leads with a positive verb naming the correct action.
  3. Audits the draft for don't, do not, never, avoid, refrain, instead of, rather than, not allowed, prohibited, forbidden, won't, shouldn't — and rewrites each as the positive replacement.
  4. Demotes decorative ALWAYS / NEVER / MUST down to plain prose so the absolute-rule signal stays loud where it matters.
Открыть полный README на GitHub

Рекомендуемые инструменты

Попробуйте другой запрос или уберите фильтр.

Установка

npx skillfish add kingbootoshi/directional-prompting
Новичок в MCP? Начните с руководства на mcpskill.org →