Chuyển đến nội dung
Skillpedia
Lập trình chung53k · #3383

code-mate-opencode

Skill này làm gì

Agent AI này giúp phân tích mã và thực hiện tác vụ lập trình. Nó có thể dùng để kiểm tra dự án, so sánh các công cụ lập trình hoặc giao việc cho một công cụ khác tên OpenCode.

Khi nào nên dùng

  • ✓Khi bạn muốn phân tích một dự án mã.
  • ✓Khi bạn cần so sánh OpenCode với một công cụ lập trình khác.
  • ✓Khi bạn muốn AI thực hiện một tác vụ lập trình cụ thể.

Liên kết skill

https://github.com/CherryHQ/cherry-studio/blob/main/resources/code-cli-skills/code-mate-opencode/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/CherryHQ/cherry-studio/blob/main/resources/code-cli-skills/code-mate-opencode/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Phân tích dự án này và cho tôi biết các tệp chính.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent chạy một chương trình tên OpenCode ở chế độ nền. OpenCode phân tích mã của bạn và trả về thông tin được yêu cầu mà bạn không cần tương tác trực tiếp.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

OpenCode

Run

  1. Set the Bash working directory to the exact project the user named and set a finite timeout, normally 10 minutes.
  2. Check availability with command -v opencode. If it is missing, stop and ask the user to install OpenCode in Code Mate.
  3. Run one task and exit:
opencode run "<prompt>" --format json

Pass the prompt as one quoted argument. Parse stdout as a JSON event stream and treat an error event or nonzero exit as failure. Never start the interactive OpenCode UI or an authentication flow.

Authentication And Permissions

If OpenCode reports a missing provider or credentials, stop and ask the user to configure OpenCode in Code Mate. Never request, read, print, or copy credentials.

Headless mode denies permission prompts by default; keep that behavior for analysis. Only when the user explicitly requests workspace changes may the command enable the minimum tools needed. Do not add --auto merely to avoid a denied permission.

Example: ask OpenCode to inspect a failing test without editing, run the command above from that repository, and summarize the final content event and any tool errors.

Câu hỏi thường gặp

OpenCode là gì?

OpenCode là công cụ giúp phân tích và làm việc với mã lập trình.

Tôi có cần cài đặt gì không?

Có, bạn cần cài OpenCode để agent này hoạt động.

AI có thể sửa mã của tôi không?

Nói chung là không. Nó được thiết kế để phân tích và báo cáo thông tin, trừ khi bạn yêu cầu thay đổi tối thiểu và cần thiết một cách rõ ràng.

Chi tiết

Mô tả gốc của tác giả

Runs OpenCode non-interactively for repository analysis and coding tasks. Use when the user asks to delegate work to OpenCode or compare OpenCode with another coding agent.

repo: CherryHQ/cherry-studio

Độ phổ biến

Sao GitHub
53k
Vị trí xếp hạng
#3383
Giấy phép
AGPL-3.0
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự