feat(app): 移除内置agents并添加CORS支持和技能上传优化
移除了agents/registry.json中的所有内置agents配置,将agents数组清空。 为web应用添加了CORS中间件支持,允许指定的前端地址跨域访问。 重构了技能上传功能,增加了LLM重写机制,自动规范化上传的技能格式。 新增了工具名称提取逻辑,从技能正文中自动识别Required Tools段落。 更新了技能学习候选者和草稿的载荷结构,添加评估报告统计信息。 修改了意图路由技能的说明,改进任务状态管理逻辑。
This commit is contained in:
@ -5,9 +5,16 @@
|
||||
"display_name": "memory-management",
|
||||
"lineage": [],
|
||||
"name": "memory-management",
|
||||
"owners": ["system"],
|
||||
"owners": [
|
||||
"system"
|
||||
],
|
||||
"source_kind": "initial",
|
||||
"status": "active",
|
||||
"tags": ["memory", "persistence", "context", "preferences"],
|
||||
"tags": [
|
||||
"memory",
|
||||
"persistence",
|
||||
"context",
|
||||
"preferences"
|
||||
],
|
||||
"updated_at": "2026-05-26T00:00:00.000000+00:00"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,13 +5,35 @@ tools:
|
||||
- memory
|
||||
---
|
||||
|
||||
# Memory Management — 记忆管理
|
||||
# Memory Management
|
||||
|
||||
## Overview
|
||||
|
||||
持久化记忆管理。存储用户信息、项目上下文、偏好和反馈,实现跨会话记忆。
|
||||
|
||||
## When to Use
|
||||
|
||||
- Use when the task requires Memory Management guidance.
|
||||
|
||||
## Required Tools
|
||||
|
||||
- `memory`
|
||||
|
||||
## Workflow
|
||||
|
||||
- Identify whether the user's request matches the skill's trigger conditions.
|
||||
- Read the relevant source guidance below and apply only the steps that fit the current task.
|
||||
- Use the required tools deliberately and keep tool output tied to the user's goal.
|
||||
|
||||
### Source Guidance
|
||||
|
||||
### Memory Management — 记忆管理
|
||||
|
||||
持久化记忆系统,保存用户角色、项目上下文、偏好反馈等跨会话信息。
|
||||
|
||||
## 工具说明
|
||||
#### 工具说明
|
||||
|
||||
### memory
|
||||
##### memory
|
||||
管理记忆条目(增删改查)。
|
||||
- `action` (str): `add` | `replace` | `remove`
|
||||
- `target` (str): `user` 或 `memory`
|
||||
@ -23,10 +45,25 @@ tools:
|
||||
- 支持自动保存和检索
|
||||
- 跨会话持久化
|
||||
|
||||
## 使用原则
|
||||
#### 使用原则
|
||||
|
||||
1. 了解用户角色偏好后及时保存到 `user` 类型
|
||||
2. 用户明确要求记住的内容立即保存
|
||||
3. 过时的记忆及时更新或删除
|
||||
4. 不保存可以从代码/git 推导出的信息
|
||||
5. 记忆是辅助参考,当前上下文和文件状态优先级更高
|
||||
|
||||
## Validation
|
||||
|
||||
- Verify the requested outcome with the most direct available check.
|
||||
- Report any skipped step, unavailable dependency, or remaining uncertainty explicitly.
|
||||
|
||||
## Boundaries
|
||||
|
||||
- Do not broaden the task beyond the user's request.
|
||||
- Do not use tools that are not listed or clearly available in the current runtime.
|
||||
|
||||
## Anti-Patterns
|
||||
|
||||
- Do not summarize the skill instead of applying it.
|
||||
- Do not claim completion without validation evidence.
|
||||
|
||||
@ -1,12 +1,14 @@
|
||||
{
|
||||
"change_reason": "Initial skill for memory management",
|
||||
"content_hash": "placeholder",
|
||||
"content_hash": "2d6d3f35c8f0fedbfd4d3e999298f516846e512931241c157c8f978cbcd8d697",
|
||||
"created_at": "2026-05-26T00:00:00.000000+00:00",
|
||||
"created_by": "system",
|
||||
"frontmatter": {
|
||||
"description": "持久化记忆管理。存储用户信息、项目上下文、偏好和反馈,实现跨会话记忆。",
|
||||
"name": "memory-management",
|
||||
"tools": ["memory"]
|
||||
"tools": [
|
||||
"memory"
|
||||
]
|
||||
},
|
||||
"parent_version": null,
|
||||
"provenance": {
|
||||
@ -15,8 +17,10 @@
|
||||
},
|
||||
"review_state": "published",
|
||||
"skill_name": "memory-management",
|
||||
"summary": "Memory Management — 持久化记忆系统,支持跨会话信息存储",
|
||||
"summary_hash": "placeholder",
|
||||
"tool_hints": ["memory"],
|
||||
"summary": "# Memory Management ## Overview 持久化记忆管理。存储用户信息、项目上下文、偏好和反馈,实现跨会话记忆。",
|
||||
"summary_hash": "9a90dbc4b11315e936a752395efc0df32b0d02cad57e9ebd1de341512beff197",
|
||||
"tool_hints": [
|
||||
"memory"
|
||||
],
|
||||
"version": "v0001"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user