update-agent

- 查找 .claude/agents/ 目录

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "update-agent" with this command: npx skills add blueif16/amazing-claude-code-plugins/blueif16-amazing-claude-code-plugins-update-agent

更新Agent

目的

修改现有agent的内容。

执行逻辑

  1. 列出所有agents
  • 查找 .claude/agents/ 目录

  • 列出所有agent(编号列表)

  • 询问:"要更新哪个agent?"

  1. 询问修改内容

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

  • 描述

  • 模型

  • 工具列表

  • 说明/指令

  • 其他

  1. 执行修改

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

  • 保持YAML frontmatter完整

  • 仅修改指定部分

  • 不改变其他内容

  1. 基本验证

检查:

  • YAML frontmatter完整(--- 开始和结束)

  • 必需字段存在

  • 模型值有效(sonnet/opus/haiku/inherit)

成功输出

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

错误处理

  • 未找到 .claude/ → 提示先创建agent

  • YAML格式错误 → 报告具体问题

  • 无效的模型值 → 提示有效选项

  • 无写入权限 → 报告错误

示例

用户: "更新git-helper agent"

执行流程:

  • 列出agents:

  • git-helper

  • code-reviewer

  • 用户选择: 1

  • 询问修改内容 → "模型"

  • 询问新模型 → "opus"

  • 使用Edit工具更新model字段

  • 输出成功消息

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

create-skill

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

merge-resolver

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

global-setup

No summary provided by upstream source.

Repository SourceNeeds Review