Slash commands
Built-in command files and command-oriented workflows.
Slash commands
Slash commands 是轻量的工作流入口。OpenCowork 把内置命令放在 resources/commands/,用于快速触发计划、审查、提交、初始化和安全检查等常见动作。
Built-in commands
| Command file | Purpose |
|---|---|
plan.md | 先分析目标,再形成可审阅计划 |
review.md | 代码审查,优先报告 bug、回归和测试缺口 |
security-review.md | 安全风险审查 |
commit.md | 组织改动、生成提交说明 |
init.md | 初始化项目上下文 |
agents.md | 生成或维护 agent 指令 |
Runtime shape
resources/commands/*.md
-> loaded by command loader
-> injected into the active session
-> executed with the current model/tools/workspaceGood command design
- 目标要短,避免把命令变成完整长文档。
- 明确输出格式,例如 review findings、commit message 或 plan。
- 需要工具时写清楚约束,例如只读、先搜索、不要改文件。