mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-04-21 16:10:56 +08:00
fix: 为 9 个 skill 补全 L0/L1/L2 分层结构,版本号 +1
按照 desirecore-format.md 规范,为以下 skill 添加标准分层结构: - docx (1.0.0→1.0.1), pdf (1.0.0→1.0.1), pptx (1.0.0→1.0.1), xlsx (1.0.0→1.0.1) - frontend-design (1.0.0→1.0.1), mail-operations (1.0.0→1.0.1) - environment-setup (1.1.0→1.1.1), web-access (1.1.0→1.1.1) - manage-teams (1.2.0→1.2.1) 每个文件增加 L0(一句话摘要)、L1(概述与使用场景)、L2(详细规范)三层, 原有技术内容保持不变,metadata.updated_at 更新为 2026-04-13。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3,11 +3,11 @@ name: 更新智能体
|
||||
description: >-
|
||||
安全更新现有智能体的配置、人格、原则、技能与记忆,输出可审阅 diff 并在确认后应用与提交。Use when 用户要求修改 Agent
|
||||
行为、安装/卸载技能、调整配置、回滚变更或修订规则。
|
||||
version: 3.0.0
|
||||
version: 3.0.1
|
||||
type: meta
|
||||
risk_level: low
|
||||
status: enabled
|
||||
disable-model-invocation: true
|
||||
disable-model-invocation: false
|
||||
tags:
|
||||
- agent
|
||||
- update
|
||||
@@ -67,14 +67,14 @@ update-agent 是一个**元技能(Meta-Skill)**,允许用户通过对话
|
||||
|
||||
### 支持的更新类型
|
||||
|
||||
| 更新类型 | 目标文件 | 风险等级 | 示例 |
|
||||
|---------|---------|---------|------|
|
||||
| Persona 更新 | `persona.md` | 中 | 修改沟通风格、价值观 |
|
||||
| Principles 更新 | `principles.md` | 高 | 添加/修改行为规则 |
|
||||
| Skills 安装 | `skills/` | 中 | 添加新技能包 |
|
||||
| Skills 卸载 | `skills/` | 低 | 移除技能包 |
|
||||
| Memory 更新 | `memory/` | 低 | 添加知识条目 |
|
||||
| Tools 配置 | `tools/` | 高 | 修改工具权限 |
|
||||
| 更新类型 | 目标文件 | 风险等级 | 示例 |
|
||||
| --------------- | --------------- | -------- | -------------------- |
|
||||
| Persona 更新 | `persona.md` | 中 | 修改沟通风格、价值观 |
|
||||
| Principles 更新 | `principles.md` | 高 | 添加/修改行为规则 |
|
||||
| Skills 安装 | `skills/` | 中 | 添加新技能包 |
|
||||
| Skills 卸载 | `skills/` | 低 | 移除技能包 |
|
||||
| Memory 更新 | `memory/` | 低 | 添加知识条目 |
|
||||
| Tools 配置 | `tools/` | 高 | 修改工具权限 |
|
||||
|
||||
### 对话流程
|
||||
|
||||
@@ -92,6 +92,7 @@ update-agent 是一个**元技能(Meta-Skill)**,允许用户通过对话
|
||||
### 阶段 1:意图识别
|
||||
|
||||
**触发条件**(任一满足):
|
||||
|
||||
- 用户说"修改你的..."、"更新你的..."、"调整一下..."
|
||||
- 用户说"你以后要..."、"记住这个规则..."
|
||||
- 用户说"安装/卸载这个技能..."
|
||||
@@ -103,21 +104,21 @@ update-agent 是一个**元技能(Meta-Skill)**,允许用户通过对话
|
||||
|
||||
**分析维度**:
|
||||
|
||||
| 维度 | 说明 |
|
||||
|------|------|
|
||||
| 影响范围 | 影响哪些文件、哪些行为 |
|
||||
| 维度 | 说明 |
|
||||
| -------- | ------------------------ |
|
||||
| 影响范围 | 影响哪些文件、哪些行为 |
|
||||
| 风险等级 | 低/中/高(见风险分级表) |
|
||||
| 依赖检查 | 是否影响其他配置 |
|
||||
| 冲突检测 | 是否与现有规则冲突 |
|
||||
| 依赖检查 | 是否影响其他配置 |
|
||||
| 冲突检测 | 是否与现有规则冲突 |
|
||||
|
||||
**风险分级表**:
|
||||
|
||||
| 风险等级 | 条件 | 确认要求 |
|
||||
|---------|------|---------|
|
||||
| 低 | 仅影响非核心配置(如记忆条目) | 简单确认 |
|
||||
| 中 | 影响 persona 或普通 principles | 展示 diff 后确认 |
|
||||
| 高 | 影响核心 principles 或工具权限 | 详细说明 + diff + 确认 |
|
||||
| 受保护 | 触及受保护路径 | 阻断,需 owner 权限 |
|
||||
| 风险等级 | 条件 | 确认要求 |
|
||||
| -------- | ------------------------------ | ---------------------- |
|
||||
| 低 | 仅影响非核心配置(如记忆条目) | 简单确认 |
|
||||
| 中 | 影响 persona 或普通 principles | 展示 diff 后确认 |
|
||||
| 高 | 影响核心 principles 或工具权限 | 详细说明 + diff + 确认 |
|
||||
| 受保护 | 触及受保护路径 | 阻断,需 owner 权限 |
|
||||
|
||||
### 阶段 3:Diff 生成
|
||||
|
||||
@@ -145,7 +146,7 @@ diff_metadata:
|
||||
lines_removed: 1
|
||||
risk_level: medium
|
||||
reversible: true
|
||||
estimated_impact: "沟通风格会变得更正式"
|
||||
estimated_impact: '沟通风格会变得更正式'
|
||||
```
|
||||
|
||||
### 阶段 4:用户确认
|
||||
@@ -168,6 +169,7 @@ diff_metadata:
|
||||
```
|
||||
|
||||
**确认选项**:
|
||||
|
||||
- **应用**:执行变更
|
||||
- **取消**:放弃变更
|
||||
- **修改**:进入编辑模式微调
|
||||
@@ -220,34 +222,34 @@ git show <commit>:persona.md
|
||||
|
||||
**更新操作对照表**:
|
||||
|
||||
| 用户意图 | 目标文件 | AgentFS 路径 |
|
||||
|---------|---------|-------------|
|
||||
| 修改性格/风格 | `persona.md` | `~/.desirecore/agents/<agentId>/persona.md` |
|
||||
| 修改行为规则 | `principles.md` | `~/.desirecore/agents/<agentId>/principles.md` |
|
||||
| 安装/卸载技能 | `skills/` | `~/.desirecore/agents/<agentId>/skills/` |
|
||||
| 修改工具配置 | `tools/` | `~/.desirecore/agents/<agentId>/tools/` |
|
||||
| 添加记忆 | `memory/` | `~/.desirecore/agents/<agentId>/memory/` |
|
||||
| 修改运行时配置 | `agent.json` | `~/.desirecore/agents/<agentId>/agent.json` |
|
||||
| 用户意图 | 目标文件 | AgentFS 路径 |
|
||||
| -------------- | --------------- | ---------------------------------------------- |
|
||||
| 修改性格/风格 | `persona.md` | `~/.desirecore/agents/<agentId>/persona.md` |
|
||||
| 修改行为规则 | `principles.md` | `~/.desirecore/agents/<agentId>/principles.md` |
|
||||
| 安装/卸载技能 | `skills/` | `~/.desirecore/agents/<agentId>/skills/` |
|
||||
| 修改工具配置 | `tools/` | `~/.desirecore/agents/<agentId>/tools/` |
|
||||
| 添加记忆 | `memory/` | `~/.desirecore/agents/<agentId>/memory/` |
|
||||
| 修改运行时配置 | `agent.json` | `~/.desirecore/agents/<agentId>/agent.json` |
|
||||
|
||||
### 错误处理
|
||||
|
||||
| 错误场景 | 处理方式 |
|
||||
|---------|---------|
|
||||
| 尝试修改受保护路径 | 阻断操作,提示需要 owner 权限 |
|
||||
| 文件不存在 | Agent 或目标文件不存在,提示用户检查 |
|
||||
| 权限不足 | 文件系统权限错误,提示用户检查目录权限 |
|
||||
| 回滚版本不存在 | 列出可用版本,请用户重新选择 |
|
||||
| 错误场景 | 处理方式 |
|
||||
| ------------------ | -------------------------------------- |
|
||||
| 尝试修改受保护路径 | 阻断操作,提示需要 owner 权限 |
|
||||
| 文件不存在 | Agent 或目标文件不存在,提示用户检查 |
|
||||
| 权限不足 | 文件系统权限错误,提示用户检查目录权限 |
|
||||
| 回滚版本不存在 | 列出可用版本,请用户重新选择 |
|
||||
|
||||
### 权限要求
|
||||
|
||||
| 操作 | 所需角色 |
|
||||
|------|---------|
|
||||
| 更新 persona | owner, member |
|
||||
| 操作 | 所需角色 |
|
||||
| --------------------------- | ------------- |
|
||||
| 更新 persona | owner, member |
|
||||
| 更新 principles(普通规则) | owner, member |
|
||||
| 更新 principles(安全红线) | owner |
|
||||
| 安装/卸载 skills | owner, member |
|
||||
| 修改 tools 权限 | owner |
|
||||
| 版本回滚 | owner |
|
||||
| 更新 principles(安全红线) | owner |
|
||||
| 安装/卸载 skills | owner, member |
|
||||
| 修改 tools 权限 | owner |
|
||||
| 版本回滚 | owner |
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user