feat(app): 移除内置agents并添加CORS支持和技能上传优化

移除了agents/registry.json中的所有内置agents配置,将agents数组清空。
为web应用添加了CORS中间件支持,允许指定的前端地址跨域访问。
重构了技能上传功能,增加了LLM重写机制,自动规范化上传的技能格式。
新增了工具名称提取逻辑,从技能正文中自动识别Required Tools段落。
更新了技能学习候选者和草稿的载荷结构,添加评估报告统计信息。
修改了意图路由技能的说明,改进任务状态管理逻辑。
This commit is contained in:
2026-06-12 13:25:20 +08:00
parent fc9fd93c36
commit 8aeb97a5fc
76 changed files with 3382 additions and 553 deletions

View File

@ -6,27 +6,65 @@ tools:
- skill_view
---
# Skills Admin — 技能查看
# Skills Admin
## Overview
技能Skill列表查看和内容加载。用于浏览已发布技能、读取技能正文和支持文件。
## When to Use
- Use when the task requires Skills Admin guidance.
## Required Tools
- `skills_list`
- `skill_view`
## 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
### Skills Admin — 技能查看
查看已发布的技能列表并加载技能详情。
## 工具说明
#### 工具说明
### skills_list
##### skills_list
列出系统中所有可用技能及其描述。
- 返回技能名称、描述和版本
- 用于浏览当前可用的技能
### skill_view
##### skill_view
加载某个技能的完整正文或支持文件。
- `name` (str): 技能名称
- `file_path` (str | None): 可选的支持文件路径
- 不传文件路径时返回 SKILL.md 主内容
- 支持按需加载 references/、templates/ 等目录
## 使用原则
#### 使用原则
1. 需要参考某个技能的详细内容时,先 `skills_list` 找到名称,再用 `skill_view` 加载
2. 用户问“你有哪些技能”时,优先使用 `skills_list` 获取当前可见技能
3. 用户问某个技能如何工作时,用 `skill_view` 读取正文或支持文件
4. 这个默认技能不创建草稿;技能创作能力属于单独的 authoring/admin skill
## 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.

View File

@ -1,12 +1,15 @@
{
"change_reason": "Initial skill for skills inspection",
"content_hash": "placeholder",
"content_hash": "62238f16c6fe63d178a8557f391fc1f6f424d5f64eb940eb32c8ba73f8c77a05",
"created_at": "2026-05-26T00:00:00.000000+00:00",
"created_by": "system",
"frontmatter": {
"description": "技能Skill列表查看和内容加载。用于浏览已发布技能、读取技能正文和支持文件。",
"name": "skills-admin",
"tools": ["skills_list", "skill_view"]
"tools": [
"skills_list",
"skill_view"
]
},
"parent_version": null,
"provenance": {
@ -15,8 +18,11 @@
},
"review_state": "published",
"skill_name": "skills-admin",
"summary": "Skills Admin — 技能列表查看和内容加载",
"summary_hash": "placeholder",
"tool_hints": ["skills_list", "skill_view"],
"summary": "# Skills Admin ## Overview 技能Skill列表查看和内容加载。用于浏览已发布技能、读取技能正文和支持文件。",
"summary_hash": "f7b43e2ab596c025cfc9396f3f5d82eaaec1d36daf0c5be97ce46afb046b16a2",
"tool_hints": [
"skills_list",
"skill_view"
],
"version": "v0001"
}