基于技能的架构
- 作者仓库星标 264
- 作者仓库 skill-based-architecture
- 领域
- 通用
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @WoJiSama · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
# skill-based-architecture (Cursor Registration Entry)
**This is the Cursor discovery entry.** Formal skill content lives at the repo root — read [SKILL.md](../../../SKILL.md) immediately, then follow its design principles and workflow routing.
<!-- SELF_ROUTING_BLOCK_START -->
## Quick Routing (survives context truncation)
Task routes live in `references/self-hosting-routing.yaml`.
For every new task:
1. Read `SKILL.md`.
2. Read `references/self-hosting-routing.yaml`.
3. Match by `labels`, `trigger_examples`, and task intent.
4. Read only that route's `required_reads`, then follow its `workflow`.
5. If no route matches, use the `other` route.
<!-- SELF_ROUTING_BLOCK_END -->
## Why this file exists
Cursor's `agent_skill` mechanism only scans `.cursor/skills/`. Without this registration entry, the formal skill at repo root is invisible to Cursor.
The `description` above **must stay identical** to the root [SKILL.md](../../../SKILL.md) `description` field. Drift between the two = Cursor uses one activation rule while other harnesses use another. `templates/skill/scripts/smoke-test.sh` automatically verifies they match.
章节与文件索引
按说明文件中的顺序排列。
快速路由(在上下文截断中幸存)
为什么这个文件存在
文件/命令 -> references/self-hosting-routing.yaml · labels · trigger_examples · required_reads · workflow · other · agent_skill · .cursor/skills/
内容校验值 -> 81bb882e6d75
当前原文的自动摘译,尚未人工审校。
快速路由(在上下文截断中幸存)
任务路线位于
references/self-hosting-routing.yaml。对于每一个新任务:阅读SKILL.md。阅读references/self-hosting-routing.yaml。按labels、trigger_examples和任务意图进行匹配。为什么这个文件存在
光标的
agent_skill机制仅扫描.cursor/skills/。如果没有这个注册条目,repo root 的正式技能对于 Cursor 来说是不可见的。上面的description必须与根SKILL.mddescription字段保持一致。两者之间的漂移 = 光标使用一种激活规则,而其他线束使用另一种激活规则。templates/skill/scripts/smoke-test.sh自动验证它们是否匹配。