Agent skill
update-workspace
Update Dart/Flutter workspace configuration in pubspec.yaml. Use when user wants to add a module to workspace, fix workspace config, add resolution:workspace, or manage monorepo pubspec.yaml entries. Triggers on "update workspace", "add to workspace", "fix pubspec workspace", "resolution workspace".
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/update-workspace
SKILL.md
Update Workspace
更新 Dart/Flutter 单仓库 workspace 配置。
功能
- 向子模块
pubspec.yaml添加resolution: workspace - 更新根目录
pubspec.yaml的workspace:列表(自动排序、去重)
Usage
dart run <skill_path>/scripts/update_workspace.dart <root_path> [module_path]
参数
root_path(必填):工作区根目录路径module_path(可选):要添加的模块路径(绝对路径或相对于根目录的路径)
Examples
# 仅整理根目录 workspace 配置
dart run <skill_path>/scripts/update_workspace.dart /path/to/workspace
# 添加新模块到 workspace
dart run <skill_path>/scripts/update_workspace.dart /path/to/workspace /path/to/workspace/packages/my_pkg
What It Does
- 验证目录存在性
- 如果提供了模块路径,在
environment:后添加resolution: workspace - 解析根目录
pubspec.yaml现有的workspace:条目 - 添加新模块(如果提供),路径自动规范化为正斜杠
- 排序后重建
workspace:节
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?