KD

kingbootoshi/directional-prompting

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

144 stars 质量 59 趋势 4MIT

kingbootoshi/方向提示是从https://github.com/kingbootoshi/directional-prompting.导入的代理技能候选人。

概览

kingbootoshi/方向提示是从https://github.com/kingbootoshi/directional-prompting.导入的代理技能候选人。

概述(AI 翻译)

这是一个两层技能,用于编写提示词、代理指令、技能描述、斜杠命令,以及大语言模型读取指令的其他部分。在 Claude Code 和 OpenAI Codex CLI 中工作原理相同。

同样的SKILL.md,相同的触发表面,相同的结果。把它放进~/.claude/skills/directional-prompting/和[~/.codex/skills/directional-prompting/,两个代理都能原生接收。

两层

**第1层——结果。**每个非平凡提示以一个块开头,标明目的地:目标、“完成”是什么样子、何时停止、真正的不变量。这就是框架。

第二层——方向。 在该框架内,每个句子都用积极动词标明前进的路径。“追踪”、“构建”、“使用”、“阅读”、“返回”、“询问”、“检查”。正确行为描述得如此清晰完整,错误行为根本无容身之地。

没有方向的结果读起来像是一厢情愿——模型知道该去哪里,却不知道该如何迈步。没有结果的方向漫游——模型走在清晰的路径上,走向虚无。两层结合:一个知道目的地并在每个标记上朝着它前进的模型。

为什么两个实验室会在这里汇聚

本页由 AI 翻译,技术细节请以原文为准。

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.
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add kingbootoshi/directional-prompting
新手?先看 mcpskill.org 教程 →