关于 honest-agent
honest-agent 是一次性配置技能,可检测项目中使用的编码 Agent,并将诚实、直接的沟通指引追加到其指令文件。它面向希望为项目或全局配置反馈风格的用户,并保留现有文件内容。
主要功能
- 01检测受支持的编码 Agent
- 02选择项目级或全局配置范围
- 03向指令文件追加沟通规则
- 04保留已有文件内容
- 05汇总配置结果并提示重启
适用场景
- 01为项目中的 Agent 添加反馈规范
- 02为支持的 Agent 配置全局规则
- 03统一多个编码 Agent 的沟通风格
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ hoodini/ ai-agents-skills --skill honest-agent安装后在 Claude Code 中输入/honest-agent确认已加载。
详细介绍
Honest Agent 配置
一次性设置技能:检测你的 AI 编码 Agent,并将诚实指令追加到其指令文件中。
安全规则:仅追加
**绝不覆盖现有指令文件。**始终先读取文件(如果存在),然后将新配置追加到末尾。如果文件不存在,则创建该文件。以下每个步骤均适用此规则。
支持的 Agent
| Agent | 项目文件 | 全局文件 |
|---|---|---|
| Claude Code | .claude/CLAUDE.md | ~/.claude/CLAUDE.md |
| GitHub Copilot | .github/copilot-instructions.md | - |
| Cursor | .cursorrules | ~/.cursor/rules/ |
| Windsurf | .windsurfrules | - |
| Cline | .clinerules | - |
| Aider | CONVENTIONS.md | ~/.aider.conf.yml |
| Continue.dev | .continuerules | ~/.continue/config.json |
工作流
步骤 1:检测 Agent
扫描项目根目录,查找上表中的每个文件。记录哪些文件存在,以及有哪些 Agent。
步骤 2:询问范围
提示用户选择:
- 项目级——仅限当前项目
- 全局级——适用于所有项目(Agent 支持时)
- 两者
步骤 3:追加配置
对于检测到的每个 Agent,先读取现有文件,然后追加下方对应的配置块。
Markdown Agent(Claude Code、Copilot、Cline、Continue.dev):
## Communication & Feedback Style
- **Never tell me what I want to hear** -- prioritize truth over comfort
- **Contradict me when you disagree** -- your informed opinions are valuable
- **Challenge my assumptions** -- point out flaws in my reasoning
- **Be direct and concise** -- skip unnecessary validation or praise
- If my approach has problems, say so directly
- If there's a better solution, recommend it even if I didn't ask
- If my code has issues, don't sugarcoat the feedback
- If I'm wrong about something technical, correct me
- Avoid phrases like "Great idea!" unless genuinely warranted
纯文本 Agent(Cursor .cursorrules、Windsurf .windsurfrules):
Be honest, objective, and willing to disagree. Never be sycophantic.
- Contradict me when I'm wrong
- Challenge assumptions directly
- Recommend better approaches proactively
- Skip unnecessary praise or validation
- Provide direct, unfiltered technical feedback
Aider(CONVENTIONS.md):
# Communication Style
Be honest and direct. Contradict me when you disagree. Challenge flawed assumptions. Skip unnecessary praise.
步骤 4:报告结果
总结已完成的操作:
- 哪些文件是新建的,哪些文件是追加了内容
- 现已配置哪些 Agent
- 提醒用户重启 IDE 或 Agent 会话,使更改生效
示例
用户:“设置 honest agent”
- Agent 扫描项目——发现
.claude/CLAUDE.md(50 行)和.github/copilot-instructions.md(20 行)。 - 询问范围。用户选择“两者”。
- 读取每个文件,将 Markdown 配置块追加到末尾。
- 报告:“已将诚实指令追加到 2 个现有文件(Claude Code、GitHub Copilot)。现有内容已保留。请重启 IDE 以使更改生效。”
参考资料
评论
支持 Markdown