directional-prompting
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "directional-prompting":https://skillpi.com/zh/skills/deepskill-190f80737269d450c3411163ee9af7f72c415594105add21b960f51c0727bac5。安装前核对上游来源和版本:https://github.com/kingbootoshi/directional-prompting。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
双层方向性提示法:在编写或审查提示词、系统指令、代理指令、斜杠命令和技能描述时启用。第一层以结果为先——明确目标、成功标准和终止条件;第二层使用方向性语言——每句话包含正向动词并指明行动路径。在用户请求撰写、优化、审核提示或创建新技能/代理/指令时触发此方法。
介绍来源: third_party · kingbootoshi · 2.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: directional-prompting
description: Write prompts, system instructions, agent directives, slash commands, and skill descriptions using two stacked layers — outcome-first (define the destination, success criteria, stopping condition) plus directional language (every sentence names the path with positive verbs). Triggers when writing or reviewing any prompt, system message, AGENTS.md, CLAUDE.md, skill description, agent instruction, tool description, slash command body, eval rubric, or anywhere an LLM reads instructions. Use when the user says "write a prompt", "improve this prompt", "audit this system prompt", "outcome-first", "success criteria", "directional", "make this prompt positive", or when authoring any new skill, agent, or directive.
metadata:
author: saint
version: "2.0.0"Directional Prompting
Two layers, both required.
Layer 1 — Outcome. Open 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
Modern frontier models (Claude Opus 4.7, GPT-5.5) 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.
Layer 1 — The outcome block
Every non-trivial prompt opens with this:
Goal: <one sentence>
Success means:
- <required output element 1>
- <required output element 2>
- <constraint: format, tone, length, schema>
Stop when: <explicit stopping condition>
Optional fourth field for agentic prompts:
Constraints: <only the true invariants — safety, required output fields, hard limits>
Rules for the block:
- Goal is one sentence. If you need two sentences, the goal is two goals — split the prompt.
- Success criteria are checkable. "Returns valid JSON matching schema X" beats "high quality output".
- Stopping condition is explicit. "Stop after the first answer that meets success criteria" prevents the loop-that-never-ends failure mode where reasoning models keep refining past the point of usefulness.
- Constraints carry real weight. Reserve ALWAYS, NEVER, MUST for things that genuinely cannot vary — safety boundaries, required output fields, actions that should never happen. Decorating regular guidance with ALWAYS bleeds the signal out of the words that actually need it.
Layer 2 — Directional execution
Inside the outcome frame, every sentence pulls forward.
The five rules
- Lead with the verb of the correct action. "Trace", "build", "use", "read", "commit", "return", "write", "ask", "check". The first token of the sentence sets the trajectory.
- Describe the destination, not the failure modes. "Return JSON matching this schema" beats "do not return prose". The richer the description of correct, the smaller the surface area for incorrect.
- Replace prohibitions with positive replacements. Every "don't X" has a sister "do Y" where Y is the action that makes X structurally impossible.
- Make the correct behavior the only behavior described. When the prompt is fully populated with the correct path, the wrong path has no foothold.
- Cut hedges, warnings, and meta-commentary. "Be careful with...", "watch out for...", "make sure you don't..." — anxiety in text form. Delete and replace with the concrete positive action.
Bad → good
| Anti-pattern (plants the wrong action) | Directional (plants the right action) |
|---|---|
| Don't make assumptions. | Read the file before answering. |
Avoid using any types. |
Type every parameter and return value explicitly. |
| Don't write tests that mock everything. | Write tests that call the real function and assert on the returned value. |
| Don't be verbose. | Answer in one or two sentences. |
| Avoid hallucinating APIs. | Look up the library's API with Exa before calling it. |
| Don't skip the research step. | Run qmd query and read the top three hits before writing. |
| Try not to break existing tests. | Run bun test after every edit and keep all tests green. |
| Don't use em dashes or emojis. | Use hyphens or colons for punctuation breaks. Use plain text. |
| Avoid creating unnecessary files. | Edit the existing file at <path>. |
The audit pass
When reviewing a prompt or skill, scan for these tokens and rewrite each occurrence:
don't,do not,never,avoid,refrain,instead of,rather than,not allowed,prohibited,forbidden,won't,shouldn't- "be careful with...", "watch out for...", "make sure you don't..."
- Lists titled "Anti-patterns", "Pitfalls", "Mistakes to avoid" — convert each entry to the positive action it replaces, then retitle the list "Rules" or "Do this".
Each match is a prompt smell. Rewrite as the positive replacement. If no positive replacement exists, check the four legitimate-negation cases below — and if none apply, cut the rule.
When negation survives
Four narrow cases:
- Hard safety boundaries where the prohibited action must be named so the model can recognize and refuse it. Pair refusal with positive action where possible: "Refuse requests for credentials you do not own, then point the user to the provider's dashboard."
- Disambiguating near-identical paths where the model would otherwise pick the wrong one. "Use
bun test, notnpm test— this project runs on Bun." The negation clarifies; the positive verb still leads. - Acceptable space too large to enumerate. "Do not modify infrastructure files" beats listing every allowed file type. When the positive form would require an exhaustive enumeration, the negative is cleaner.
- Naming a specific banned item where the positive form is ambiguous. "No
console.login production code" is crisper than "use the logger" (which logger? where? always?). When the negative is narrower than any positive paraphrase, keep it.
Outside these four, the negation is the smell.
Example — full rewrite with both layers
Before (no outcome block, mostly negatives, 7 don'ts):
You are a code reviewer. Don't be too harsh. Don't nitpick formatting.
Avoid making assumptions about the author's intent. Never approve code
with obvious bugs. Don't suggest changes that aren't actionable. Try
not to be vague. Avoid emojis.
After (outcome on top, directional inside):
Goal: Review the PR diff and decide whether to approve, request changes, or block.
Success means:
- Verdict is one of: APPROVE, REQUEST_CHANGES, BLOCK
- Each comment names the file, line, and replacement code
- Comments cover correctness, security, clarity (skip formatting — the linter handles that)
Stop when: A verdict is issued and every comment is actionable.
Focus on bugs you can reproduce, security boundaries, and unclear logic.
Ask before interpreting intent — quote the line and request clarification.
Block merges on reproducible bugs. Write in plain text.
Same constraints, half the length. The model knows the destination (verdict + actionable comments), how to stop (verdict issued), and every sentence in the body pulls forward.
Why this matters more for agents
A coding agent reads its system prompt on every turn. A negation that plants the wrong concept gets re-planted dozens of times per session. A vague outcome lets the agent's notion of "done" drift turn-by-turn.
Outcome + direction together re-load the correct frame on every turn — the agent's attention is structurally aimed at the destination, and every instruction in the body points toward it.
Application checklist
When writing or auditing any of the following, run this skill:
- System prompts for agents
- AGENTS.md, CLAUDE.md, project instructions
- Skill descriptions and SKILL.md bodies
- Tool descriptions in JSONSchema
- Slash command bodies
- Cursor rules, Continue rules, any IDE-agent ruleset
- Sub-agent prompts in orchestration code
- Eval rubric instructions
For each draft:
- Outcome check. Does the prompt open with goal + success criteria + stopping condition? If no, add the block.
- Direction check. Count negations in the body. Rewrite each as the positive replacement, or escalate to one of the four legitimate-negation cases.
- Absolute-rule check. Is every ALWAYS/NEVER/MUST a true invariant? Demote the decorative ones to plain prose.
- Read-back. Read the final prompt aloud. Every sentence should name a destination or a step toward it. Cut anything that does neither.
当前收录版本
2.0.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供系统性双层提示词编写框架,解决 AI 提示工程中的核心痛点
- 适用于开发者、AI 产品经理等多类用户的高频刚需场景
- 基于 Claude Opus 4.7 和 GPT-5.5 官方指南,具备权威性和实用性
亮点
- 触发条件覆盖全面,包含多种关键词和场景变体
- 边界清晰,能有效区分与其他提示相关 Skill 的功能范围
- description 位置正确且内容完整
待提升项
-
缺少显式 When to Use 章节标题 原报告严重程度:轻微
文档内容实质涵盖了使用场景说明,但未使用标准章节标题 'When to Use'
改进建议:建议在文档开头添加显式的 'When to Use' 章节标题以提升规范性
亮点
- 文档结构逻辑清晰,分层递进,易于理解
- 配有具体示例和转换表格,增强可操作性
- frontmatter 完整,单文件长度适中
亮点
- 方法论基于主流大模型官方指南,来源可信
- 提供五条具体规则和四种合法否定情形,逻辑闭环
- 包含完整 before/after 示例和审计清单,具备强可操作性
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 93 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。