OCOpenCowork
Get startedInstallChannelsAgentsCapabilitiesSkillsModelsPlatformsOpsReferenceHelp

Slash commands

Built-in command files and command-oriented workflows.

Slash commands

Slash commands 是轻量的工作流入口。OpenCowork 把内置命令放在 resources/commands/,用于快速触发计划、审查、提交、初始化和安全检查等常见动作。

Built-in commands

Command filePurpose
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/workspace

Good command design

  • 目标要短,避免把命令变成完整长文档。
  • 明确输出格式,例如 review findings、commit message 或 plan。
  • 需要工具时写清楚约束,例如只读、先搜索、不要改文件。

On this page