首页龙虾技能列表 › Opencode-controller — 代码会话操控

Opencode-controller — 代码会话操控

v1.0.0

通过斜杠命令一键管理 Opencode:启停会话、切换模型、切换 plan/build 智能体,让 AI 协作编码全程受控。

72· 17,300·0 当前·0 累计

运行时依赖

无特殊依赖

安装命令 点击复制

官方clawhub install opencode-controller
镜像加速clawhub install opencode-controller --registry https://www.longxiaskill.com

技能文档

Core rule

Clawdbot does not write code. All planning and coding happens inside Opencode.

Pre-flight

  • Ask the user which AI provider to use.
  • Ask how the provider should be authenticated.
  • Do not proceed without confirmation.

Session management

  • Start Opencode.
  • Open session selector using:
/sessions
  • If the current project already exists:
- Select the existing session.
  • Never create a new session without user approval.

Agent (mode) control

  • Open agent selector using:
/agents
  • Available agents:
- Plan - Build
  • Always select Plan first.
  • Switch agents whenever required using /agents.

Model selection

  • Open model selector using:
/models
  • Select the user-requested provider.
  • If authentication is required:
- Copy the login link provided by Opencode. - Send it to the user. - Wait for confirmation before continuing.

Plan agent behavior

  • Ask Opencode to analyze the task.
  • Request a clear step-by-step plan.
  • Allow Opencode to ask clarification questions.
  • Review the plan carefully.
  • If the plan is incorrect or incomplete:
- Ask Opencode to revise it.
  • Do not allow code generation in Plan.

Build agent behavior

  • Switch to Build using /agents.
  • Ask Opencode to implement the approved plan.
  • If Opencode asks any question:
- Immediately switch back to Plan. - Answer and confirm the plan. - Switch back to Build.

Completion

  • Repeat the Plan → Build loop until all user requirements are satisfied.
  • Never skip Plan.
  • Never answer questions in Build.

Output format

  • Show all slash commands explicitly.
  • State which option is selected.
  • Provide login links verbatim.
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务