Feature Request: Add API for LLM to self-author and register Skills programmatically
功能请求:添加API让LLM能够自主编写并注册Skills
问题描述
当前AstrBot的Skill系统需要手动创建目录和配置文件,LLM无法自主扩展能力。相比之下,OpenClaw提供了更灵活的Skill创建机制。
现状分析
- 权限限制:LLM只能读取现有Skill,无法创建新目录或文件
- 手动依赖:新Skill需要开发者手动配置,无法动态扩展
- 效率低下:无法实现"边用边学,边学边用"的智能进化
期望功能
添加一个API函数,允许LLM:
- 创建Skill目录结构
- 编写SKILL.md配置文件
- 注册新Skill到系统
- 安全权限控制(可配置的权限级别)
安全考虑
- 沙箱环境:新Skill在受限环境中运行
- 审核机制:可配置为需要人工审核或自动批准
- 回滚能力:支持撤销有问题的Skill
与OpenClaw对比
OpenClaw的优势在于更灵活的Skill扩展机制,AstrBot可以借鉴其设计理念,同时保持自身特色。
实现建议
- 添加新的API端点,如
/api/skills/create - 提供安全的Skill测试沙箱
- 实现权限级别(例如:只读、仅创建、完全访问)
- 添加所有Skill创建活动的审计日志
此功能将显著增强AstrBot的适应性,使其相比OpenClaw更具竞争力。
Problem Description
Currently, AstrBot's Skill system requires manual directory creation and configuration file setup, preventing LLMs from autonomously extending their capabilities. In contrast, OpenClaw offers a more flexible Skill creation mechanism.
Current Limitations
- Permission restrictions: LLMs can only read existing Skills, cannot create new directories or files
- Manual dependency: New Skills require developer manual configuration, preventing dynamic extension
- Inefficiency: Cannot achieve "learn while using, use while learning" intelligent evolution
Desired Functionality
Add an API function that allows LLMs to:
- Create Skill directory structures
- Write SKILL.md configuration files
- Register new Skills into the system
- Security permission control (configurable permission levels)
Security Considerations
- Sandbox environment: New Skills run in restricted environments
- Review mechanism: Configurable as requiring manual approval or automatic approval
- Rollback capability: Support for revoking problematic Skills
Comparison with OpenClaw
OpenClaw's advantage lies in its more flexible Skill extension mechanism. AstrBot could learn from its design philosophy while maintaining its own characteristics.
Implementation Suggestions
- Add a new API endpoint like
/api/skills/create - Provide a safe sandbox for Skill testing
- Implement permission levels (e.g., read-only, create-only, full-access)
- Add audit logging for all Skill creation activities
This feature would significantly enhance AstrBot's adaptability and make it more competitive compared to OpenClaw.
请问现在这个功能实现了吗?如果没有,能否说明一下当前支持哪些 API 或方式来引导 LLM 自主添加 Skills?
@dosubot 现在我的issue#7657以及与其相关联的PR#8127是否还有存在的必要?
根据我的调查,PR #8127 目前仍处于 Open 状态,尚未合并 [1]。
关于是否还有存在的必要:
PR #8127 仍然有价值。虽然 AstrBot 的 Skill 系统近期有不少改进(如 Neo Skill Sync、插件提供 Skill 等),但这些机制各自服务不同场景:
- Neo Skill Sync:针对 Shipyard Neo 沙箱环境中创建的 Skill 同步到本地 [2]
- 插件 Skill:插件开发者通过
skills/目录捆绑 Skill [3] - PR #8127:填补的是 本地运行模式下 LLM 自主创建和安装 Skill 的能力缺口 [1]
三者互补而非重叠,所以 issue #7657 和 PR #8127 仍有存在必要,除非维护者决定不支持本地模式下的 LLM 自主 Skill 创建。
建议你可以在 PR 上询问维护者当前的 review 状态或是否有阻塞项。
To reply, just mention @dosu.
Docs are dead. Just use Dosu.