Skip to content
This repository was archived by the owner on Sep 2, 2026. It is now read-only.

feat: 对齐 Agent Skills 标准格式 - #82

Closed
HyxiaoGe wants to merge 2 commits into
masterfrom
feat/standard-skills-runtime
Closed

HyxiaoGe wants to merge 2 commits into
masterfrom
feat/standard-skills-runtime

Conversation

@HyxiaoGe

@HyxiaoGe HyxiaoGe commented Aug 31, 2026 •

Copy link
Copy Markdown
Owner

背景

现有 Skills Runtime 使用 Fusion 自定义的版本目录、顶层 version 和列表式 allowed-tools,无法直接承接 Anthropic、OpenAI、Vercel 等社区的标准 SKILL.md。

改动

  • 新增与 Agent Runtime 解耦的安全 YAML 解析层,支持 Agent Skills 标准必填和可选字段。
  • 只支持标准目录 <skill>/SKILL.md;明确拒绝 <skill>/<version>/SKILL.md,不保留旧目录兼容。
  • 支持 metadata.version、标准空格分隔 allowed-tools,并兼容旧版顶层 version 和列表格式。
  • 无声明版本时按整份文档 SHA-256 生成稳定 Run 版本;工具权限仍只取 Fusion Run 路由授权,不允许 Skill 扩权。
  • 将现有 verified-research 迁移为标准目录和 frontmatter,不改变正文摘要、Run 快照或 Trajectory 展示契约。
  • 将 PyYAML 纳入生产依赖,并补充标准格式、安全边界、版本子目录拒绝和内容版本的回归测试。

本轮明确不包含

  • 安装器、市场、远程运行时下载、自动更新
  • 用户上传或管理后台
  • LLM 开放式 Skill 检索与自动路由
  • references/、scripts/、assets/ 的按需资源执行

验证

  • python -m pytest test/ -q:3569 passed,2 skipped,1917 subtests passed
  • python scripts/check_architecture.py:通过(仅保留仓库已有的测试覆盖警告)
  • python -m ruff check .:通过
  • 改动 Python 文件 ruff format --check:通过
  • Anthropic template-skill、OpenAI writing-skills、Vercel vercel-react-best-practices、DeerFlow find-skills 的真实 SKILL.md:本地解析通过

背景:现有 Skills Runtime 要求 Fusion 自定义版本目录、顶层 version 和列表式 allowed-tools,无法直接承接 Anthropic、OpenAI、Vercel 等社区 SKILL.md。

改动:新增安全 YAML 标准解析层;兼容标准目录、metadata.version、可选 allowed-tools 和旧版字段;无版本文档按内容摘要冻结;现有 verified-research 迁移到标准目录,同时保持 Run、Trajectory 与工具权限收口契约。

验证:完整测试 3568 项、1917 个子测试通过,2 项跳过;架构检查、ruff check、改动文件格式检查和真实社区样本解析通过。

Co-Authored-By: Codex <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

改动:Registry 只读取标准的 <skill-id>/SKILL.md;删除版本子目录探测与相关测试夹具,并同步修正规格和实施计划。

验证:全量测试 3569 项、1917 个子测试通过,2 项跳过;架构检查、ruff check、定向格式检查与 git diff --check 通过。

Co-Authored-By: Codex <noreply@anthropic.com>
@HyxiaoGe HyxiaoGe closed this Aug 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant