Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

opencode-api-control-skill

bởi malek262

Web & Frontend Development
442Lượt tải do clawskills.sh công bố
2Sao
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

A powerful skill to control Open Code CLI via a local web server API.

Mô tả

Kỹ năng này làm gì

Controls the OpenCode CLI through its local HTTP API using a set of shell scripts. Acts as an orchestrator that sends coding tasks to OpenCode, manages sessions and providers, and monitors progress without reading or modifying generated files directly. State is persisted locally so workflows can resume across runs.

Keeps orchestration separate from execution so the agent never interrupts OpenCode mid-task by poking at files, reducing errors from partial reads or conflicting writes.

Khi nào nên dùng

  • Delegating a new React app build to OpenCode and tracking its progress
  • Switching between AI providers (Anthropic, Gemini) for different coding tasks
  • Running multi-phase dev workflows: plan with one session, implement in another
  • Resuming a paused coding session by loading saved project state
  • Monitoring long-running code generation with real-time event streaming

Quy trình ví dụ

ĐẦU VÀO

User asks: Create a React dashboard app using Claude Sonnet

AGENT
  1. 1

    Run update_providers.sh to refresh the connected providers cache

  2. 2

    Run select_provider.sh with 'claude' and 'sonnet' to get provider and model IDs

  3. 3

    Create the project directory and a new session with create_session.sh

  4. 4

    Send the task via send_message.sh using the selected provider and model

  5. 5

    Run monitor_session.sh to stream progress, then get_diff.sh to summarize changes

ĐẦU RA

Diff summary listing added files such as src/App.tsx (+120/-0) and src/components/Dashboard.tsx (+89/-0), reported to the user without reading file contents

Yêu cầu

  • OpenCode CLI installed and server running on port 4099

Cài đặt

clawhub install malek262/opencode-api-control-skill

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết