smithery.ai

update-agent

修改现有的agent

First seen Mar 21, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsRead, Edit, Glob
Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,294 B
  • docs SUMMARY.md 40 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

更新Agent

目的

修改现有agent的内容。

执行逻辑

1. 列出所有agents

  1. 查找 .claude/agents/ 目录
  2. 列出所有agent(编号列表)
  3. 询问:"要更新哪个agent?"

2. 询问修改内容

询问:"你想修改什么?" 选项:

  • 描述
  • 模型
  • 工具列表
  • 说明/指令
  • 其他

3. 执行修改

根据用户选择,使用Edit工具进行精确修改:

  • 保持YAML frontmatter完整
  • 仅修改指定部分
  • 不改变其他内容

4. 基本验证

检查:

  • YAML frontmatter完整(--- 开始和结束)
  • 必需字段存在
  • 模型值有效(sonnet/opus/haiku/inherit)

成功输出

✅ Agent已更新: {agent-name}
📁 位置: ./.claude/agents/{agent-name}.md

错误处理

  • 未找到 .claude/ → 提示先创建agent
  • YAML格式错误 → 报告具体问题
  • 无效的模型值 → 提示有效选项
  • 无写入权限 → 报告错误

示例

用户: "更新git-helper agent"

执行流程:

  1. 列出agents:

1. git-helper 2. code-reviewer

  1. 用户选择: 1
  2. 询问修改内容 → "模型"
  3. 询问新模型 → "opus"
  4. 使用Edit工具更新model字段
  5. 输出成功消息