Skip to content

v0.3.25 — Skill Config System

Choose a tag to compare

@catlog22 catlog22 released this 01 May 04:13
· 1328 commits to master since this release

✨ New Feature: maestro config — Skill Parameter Defaults

为 51 个命令/skill 设置默认参数,通过 Hook 自动注入,消除重复手动输入。

核心能力

  • 智能识别 — 自动解析 51 个命令的 argument-hint,识别 boolean/enum/string/number 参数类型
  • CLI 管理 — maestro config set/unset/show/list/reset 完整 CRUD
  • TUI 编辑器 — maestro config 交互式仪表盘,支持参数浏览、编辑、作用域选择
  • Hook 自动注入 — 通过 skill-context hook 在调用时注入默认参数,用户显式参数自动跳过
  • 双层级作用域 — 全局 (~/.maestro/skill-config.json) + 项目级覆盖
  • Hook 状态检测 — CLI/TUI 自动检查 skill-context hook 安装状态,未安装时提示

使用示例

# 设置 maestro-execute 的默认参数
maestro config set maestro-execute auto-commit true -g
maestro config set maestro-execute method auto -g
maestro config set maestro-execute y true -g

# 之后调用 /maestro-execute 3 自动注入上述参数

# TUI 编辑器
maestro config

# 查看所有可配置 skill
maestro config list

新增文件

文件 说明
src/config/argument-hint-parser.ts argument-hint 解析器
src/config/skill-config.ts 配置读写层
src/commands/config.ts CLI 命令
src/commands/config-ui/*.tsx TUI 组件 (4 个)
guide/skill-config-guide.md 使用指南

修改文件

  • src/hooks/skill-context.ts — 泛化 skill 匹配 + 参数注入
  • src/config/paths.ts — 添加 skillConfig 路径
  • src/cli.ts — 注册 config/cfg 命令
  • docs-site/ — 注册指南到文档站

Full Changelog: v0.3.24...v0.3.25