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

opencli-usage

Skill này làm gì

Skill này giải thích cách tìm lệnh OpenCLI phù hợp cho một tác vụ và đọc kết quả đầu ra. Nó bao gồm cả bộ chuyển đổi trang web lẫn các công cụ Chrome trực tiếp.

Khi nào nên dùng

  • ✓Khi bạn muốn tìm một lệnh OpenCLI cho một trang web hoặc tác vụ.
  • ✓Khi bạn cần biết một lệnh nhận những đầu vào nào.
  • ✓Khi bạn muốn đọc kết quả OpenCLI hoặc khôi phục sau một lỗi.

Liên kết skill

https://github.com/jackwener/OpenCLI/blob/main/skills/opencli-usage/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/jackwener/OpenCLI/blob/main/skills/opencli-usage/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

“Tìm một lệnh OpenCLI để tìm kiếm trên GitHub, và chỉ cho tôi cách chạy nó.”

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

Cách hoạt động

Agent tìm trong danh sách lệnh theo từ khóa, kiểm tra phần trợ giúp để xem đầu vào chính xác, rồi chạy lệnh. Nó đọc kết quả JSON hoặc mã lỗi và dùng các gợi ý được đưa ra để khôi phục.

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.

OpenCLI

OpenCLI exposes reusable website adapters and direct Chrome tools to agents.

opencli list search
opencli list --site github --limit 20
opencli github search --help -f json

list [query] searches command names and descriptions across built-ins and adapters. Results are compact and paginated: {ok:true,data:{commands,total,nextOffset?}}. Pass --offset <nextOffset> to continue. Inspect exact inputs using command help. Do not hard-code the adapter catalog or dump all commands into context.

Results

Commands default to JSON: {ok:true,data:...}. Failures produce a nonzero exit code and {ok:false,error:{code,message,hint?,...}} on stdout. Logs use stderr. Explicit -f table|yaml|csv|md|plain exports are available where command help lists them. Help, version, completion and explicit plain exports retain their own formats. Browser follow modes stream one JSON envelope per line.

Use error codes and supplied candidates/keys to recover. Unknown write outcomes require inspecting state before repeating an action. An empty successful result is distinct from an execution failure.

Browser

opencli browser open https://example.com --session research
opencli browser state --session research
opencli browser close --session research
opencli browser chrome describe

Page commands use --session; native Chrome methods need no session. --profile selects a connected Chrome profile. profile list discovers profiles and profile use <name> selects the default. Use doctor for connection diagnosis. See opencli-browser for interaction, API evidence and tab/group management.

Adapters and installation

opencli adapter init example/search
opencli adapter check example/search
opencli adapter test example/search --args '{"query":"hello"}'
opencli adapter status

See opencli-adapter-author for implementation. adapter eject makes an official site editable locally; adapter reset removes that local override. Adapter tests execute real commands and can perform writes.

plugin list|install|update|uninstall|create manages plugin packages. auth status reports website login facts; auth refresh touches sessions. daemon status|restart|stop manages the bridge process. Read help for the selected capability.

Bundled skill content is available through skills list and skills read opencli-browser -f plain (omit -f plain for JSON).

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

Nó có liệt kê mọi lệnh cùng lúc không?

Không. Kết quả được phân trang và tìm theo từ khóa để đầu ra ngắn gọn.

Kết quả được trả về thế nào?

Mặc định là JSON với trường ok, còn lỗi có kèm mã và thông báo.

Nếu một thao tác ghi thất bại thì sao?

Agent kiểm tra trạng thái hiện tại trước khi thử lại thao tác.

Chi tiết

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

Discover and invoke OpenCLI capabilities for websites and Chrome. Find commands, inspect schemas, interpret results and choose browser or adapter tools.

repo: jackwener/OpenCLI

Độ phổ biến

Sao GitHub
31k
Vị trí xếp hạng
#9335
Giấy phép
Apache-2.0
Cập nhật
26/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ự