Files
AstrBot/astrbot
Soulter 4483796c20 feat: add workspace-local skills support and auto-initialize workspace
This commit adds support for workspace-local skills and automatic workspace
initialization:

1. New init_workspace() function in util.py:
   - Creates workspace with EXTRA_PROMPT.md and skills/ subdirectory
   - Called automatically when using local runtime shell

2. SkillManager enhancements:
   - Added workspace_skills_root parameter for two-tier skill storage
   - list_skills() now scans both global and workspace skills
   - install_skill_from_zip() supports install_to_workspace parameter

3. Local mode system prompt updates:
   - Added EXTRA_PROMPT.md customization instructions
   - Added skill installation location preference hint

Changes:
- astrbot/core/tools/computer_tools/util.py: add init_workspace()
- astrbot/core/tools/computer_tools/shell.py: use init_workspace()
- astrbot/core/skills/skill_manager.py: workspace skills support
- astrbot/core/astr_main_agent.py: update system prompt
2026-04-13 16:40:18 +08:00
..
2026-04-13 00:36:04 +08:00