mcpField
H
honest-agent

honest-agent

github.com/hoodiniAgent 工作流291188 次安装5 天前更新
代码仓库

关于 honest-agent

honest-agent 是一次性配置技能,可检测项目中使用的编码 Agent,并将诚实、直接的沟通指引追加到其指令文件。它面向希望为项目或全局配置反馈风格的用户,并保留现有文件内容。

主要功能

  1. 01检测受支持的编码 Agent
  2. 02选择项目级或全局配置范围
  3. 03向指令文件追加沟通规则
  4. 04保留已有文件内容
  5. 05汇总配置结果并提示重启

适用场景

  1. 01为项目中的 Agent 添加反馈规范
  2. 02为支持的 Agent 配置全局规则
  3. 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-
AiderCONVENTIONS.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:报告结果

总结已完成的操作:

  1. 哪些文件是新建的,哪些文件是追加了内容
  2. 现已配置哪些 Agent
  3. 提醒用户重启 IDE 或 Agent 会话,使更改生效

示例

用户:“设置 honest agent”

  1. Agent 扫描项目——发现 .claude/CLAUDE.md(50 行)和 .github/copilot-instructions.md(20 行)。
  2. 询问范围。用户选择“两者”。
  3. 读取每个文件,将 Markdown 配置块追加到末尾。
  4. 报告:“已将诚实指令追加到 2 个现有文件(Claude Code、GitHub Copilot)。现有内容已保留。请重启 IDE 以使更改生效。”

参考资料

评论

支持 Markdown