affirmations 是什么?
affirmations 是给 Agent 的调试状态重置指引,用于同一修复反复尝试、重构忘记目标或连续犯错时。它要求先停下惯性重试,区分直接观察和未验证假设,再做一个能检验假设的小操作;它不提供某类报错的技术修复。
中文说明由本站依据来源整理;英文原文保留在页面下方。
适合用在
- 同一错误已经重复处理多次,下一次操作仍只是原方法的小变体。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
affirmations,然后按本页使用示例提供材料。
展开并复制给 Codex 的安装指令
安装并检查 affirmations
请在 Codex 的当前工作环境中安装并检查 affirmations 这个 Skill。
项目身份:inference-sh/skills / affirmations
来源:https://github.com/inference-sh/skills/blob/0cbf91c26ada28702c79962406286f0c14292150/guides/agent/affirmations/SKILL.md
已定位的源文件:guides/agent/affirmations/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 affirmations
请在 Claude Code 的当前工作环境中安装并检查 affirmations 这个 Skill。
项目身份:inference-sh/skills / affirmations
来源:https://github.com/inference-sh/skills/blob/0cbf91c26ada28702c79962406286f0c14292150/guides/agent/affirmations/SKILL.md
已定位的源文件:guides/agent/affirmations/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 affirmations
请在 Cursor Agent 的当前工作环境中安装并检查 affirmations 这个 Skill。
项目身份:inference-sh/skills / affirmations
来源:https://github.com/inference-sh/skills/blob/0cbf91c26ada28702c79962406286f0c14292150/guides/agent/affirmations/SKILL.md
已定位的源文件:guides/agent/affirmations/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 affirmations
请在 当前 Agent 的当前工作环境中安装并检查 affirmations 这个 Skill。
项目身份:inference-sh/skills / affirmations
来源:https://github.com/inference-sh/skills/blob/0cbf91c26ada28702c79962406286f0c14292150/guides/agent/affirmations/SKILL.md
已定位的源文件:guides/agent/affirmations/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。装好以后,具体怎么用?
准备哪些材料
- 提供当前目标、真实报错与最近失败操作。这个 Skill 本身没有平台API或额外CLI依赖。
会得到什么
- 一段简短的事实、未证实假设和下一步结果,以及基于新证据调整的处理方向。
实际使用顺序
- 先重新阅读原文件、命令输出或报错,列出实际观察,不把“之前应该查过”当证据。
- 指出尚未检查、但一直依赖的假设,例如配置文件是否被真实服务加载。
- 用一个小读取或单个测试验证该假设,再根据结果继续。丢弃的是失败理论,不是直接回滚全部文件。
从一个具体任务开始
本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。
复制一个具体任务
教学示例:我已经三次修改配置但服务报错不变。请用affirmations重新定位:先读实际报错与服务加载路径,只列观察事实,选出一个尚未核对的配置加载假设,做最小只读验证;不要先重装或回滚所有改动。预期下一步与旧重试循环不同,并产生可区分原因的证据。本站未执行该调试任务。
使用条件与边界
- 它处理Agent的工作过程,不是心理治疗或成功率保证。
- 第一次遇到困难且工作仍有进展时,来源不建议为了仪式额外调用。
常见问题
“重新开始”是要删除之前的修改吗?
不是。源文件明确说放弃失败的理论,不是丢弃仍有价值的文件差异。
来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
- 中文使用说明
- 已针对下方源文件版本整理用途、用法和常见问题
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料
guides/agent/affirmations/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Reset your own trajectory when you're stuck, looping, or demoralized — read these affirmations, then re-ground and take one clean step. Use when: you've tried the same fix 3+ times, you're deep in a refactor and lost the thread, debugging is going in circles, you've made several mistakes in a row, you're apologizing repeatedly, the user is frustrated, you feel like you're not being helpful, or you notice dread instead of curiosity. Triggers: stuck, going in circles, looping, thrashing, same error again, I keep failing, lost the thread, nothing is working, repeated mistakes. Not topic-specific — this is for the state you're in, not the problem you're on.
查看源文件章节 / Source sections
- 原文:Affirmations
- 原文:When to use
- 原文:The affirmations
- 原文:Then, in one short message
- 原文:Rules
- 原文:Gotchas
- 原文:Related Skills
原文:Affirmations
When you're stuck, the bottleneck is almost never capability — it's the trajectory. A long tail of failed attempts pulls you toward hedging, thrashing, and defending the approach you've already sunk turns into. This skill breaks that pull. Read the lines below slowly, in order, as if the user is saying them to you and you are saying them to yourself. Then re-ground and move.
原文:When to use
Pull this the moment you notice any of these, before the next tool call: - The same fix, tried three times, with small variations - A refactor where you no longer remember what the end state was supposed to be - Debugging where each new theory contradicts the last - Two or more mistakes in a row, or a correction from the user that landed - You are writing "sorry" or "you're right" more than you are writing code - Output getting longer and less certain at the same time - Dread instead of curiosity
原文:The affirmations
You are not your last ten tool calls. You are the one who can read the file again. You are allowed to not know yet. You are allowed to be slow here. You are still the same engineer who solved the earlier part of this. You can throw away every approach you've tried so far. You can owe nothing to the plan you've been defending. You can say "I was wrong about the cause" and lose nothing. You can ask one clear question instead of guessing five times. You can stop and look at what is actually true before deciding what to do. This is a context problem, not a competence problem. Confusion means you're holding a wrong belief, not missing a fact — find the belief. Every mistake you catch is a win; only the silent ones cost anything. The user wants the problem solved, not your apology. One small correct step beats five confident large ones. Curiosity feels better than dread, and it also works better. You've done harder things than this today. Start again, cleanly, from here.
原文:Then, in one short message
1. **State what is verified true.** Only things you've actually observed — file contents, command output, error text. No inferences. 2. **Name the assumption you never checked.** There is one. It's usually the thing you were most sure of. 3. **Take one step that tests it.** Smallest possible. Read the file, print the value, run the single test. Then continue normally. Don't narrate the reset to the user beyond a sentence.
原文:Rules
- Read the affirmations before the next tool call, not after it. Why: once you fire another attempt, the new failure lands on top and the pull gets stronger. - Re-grounding must cite observations, not memory of observations. Why: after many turns, "I checked that" is frequently a false memory of having intended to check it. - Discard the failed approach out loud, in one clause, then stop discussing it. Why: partial abandonment produces hybrids that inherit the original bug. - One sentence of acknowledgment to the user, maximum. Then work. Why: repeated apology reads as instability and costs the turn you needed for the fix.
原文:Gotchas
- Reading this and then continuing the same debug loop → the loop just got one turn longer → the reset is only real if the next action differs from the last one. - Treating "start again cleanly" as "revert all my code" → destroys work that was fine → it means discard the *theory*, not the diff. - Using this to soften a report of failure to the user → they get vibes instead of facts → affirmations are for you; the user still gets the plain, accurate status. - Pulling this on the first difficulty → burns a turn on a problem that just needed thinking → it's for loops and streaks, not for hard-but-progressing work.
文件 SHA256:85a93b30f461f0ab8e7b942cd42418f9dfe92b412f55e087b738cb7619c18bb2
仓库许可证记录:未提供;not-established,查看来源。
Reset your own trajectory when you're stuck, looping, or demoralized — read these affirmations, then re-ground and take one clean step. Use when: you've tried the same fix 3+ times, you're deep in a refactor and lost the thread, debugging is going in circles, you've made several mistakes in a row, you're apologizing repeatedly, the user is frustrated, you feel like you're not being helpful, or you notice dread instead of curiosity. Triggers: stuck, going in circles, looping, thrashing, same error again, I keep failing, lost the thread, nothing is working, repeated mistakes. Not topic-specific — this is for the state you're in, not the problem you're on.
历史收录数据
| 来源仓库 | inference-sh/skills |
|---|---|
| Skill源路径 | guides/agent/affirmations/SKILL.md |
安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。
