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

cli-anything-generator

Skill này làm gì

Skill này đóng gói bộ xây dựng CLI-Anything cho Cursor. Nó dành cho lập trình viên dùng Cursor và muốn tạo công cụ dòng lệnh để agent AI điều khiển phần mềm desktop.

Khi nào nên dùng

  • ✓Khi bạn muốn xây một harness dòng lệnh cho ứng dụng desktop từ trong Cursor.
  • ✓Khi bạn muốn thêm tính năng cho một harness có sẵn.
  • ✓Khi bạn muốn chạy kiểm thử hoặc danh sách kiểm tra xác thực trên một harness.

Liên kết skill

https://github.com/HKUDS/CLI-Anything/blob/main/cursor-plugin/skills/cli-anything-generator/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/HKUDS/CLI-Anything/blob/main/cursor-plugin/skills/cli-anything-generator/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

“Xây một harness dòng lệnh cho thư mục GIMP trong repository này và chạy các kiểm thử của nó.”

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

Cách hoạt động

Skill tìm các file phương pháp trong thư mục plugin Cursor của bạn, rồi làm theo bước xây, tinh chỉnh, kiểm thử hoặc xác thực tương ứng. Lệnh gạch chéo là cách chính để dùng nó, và yêu cầu thường cũng đượ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.

CLI-Anything Generator (Cursor Plugin Skill)

This skill is packaged inside the Cursor plugin as a supporting entry point. The primary generator UX is the plugin slash commands.

Prefer Slash Commands

Goal Command
Full 7-phase build /cli-anything <path-or-repo>
Expand coverage /cli-anything-refine <path> [focus]
Run tests /cli-anything-test <path>
Validate checklist /cli-anything-validate <path>
List tools /cli-anything-list

If the user speaks naturally ("build a CLI for ./gimp"), run the same workflow as the matching command.

Consumer Path (Separate)

This skill is not the Hub consumer. For finding/installing published CLIs:

npx skills add HKUDS/CLI-Anything --skill cli-hub-meta-skill -g -y

Per-app skills live under the repo skills/ tree and install via npx skills add.

PLUGIN_ROOT and Methodology

  1. Resolve PLUGIN_ROOT via discovery pointer then stamp:
    • ~/.cursor/cli-anything-generator.root / %USERPROFILE%\.cursor\cli-anything-generator.root
    • {install}/PLUGIN_ROOT.txt
    • default ~/.cursor/plugins/local/cli-anything if references/HARNESS.md exists there
  2. Read {PLUGIN_ROOT}/references/HARNESS.md with an absolute path.
  3. Read the matching file under {PLUGIN_ROOT}/references/commands/.
  4. Use guides under {PLUGIN_ROOT}/references/guides/ on demand.
  5. Helper scripts: {PLUGIN_ROOT}/scripts/repl_skin.py, preview_bundle.py, skill_generator.py, templates/.

Path remapping (from HARNESS / plugin docs)

Document reference Installed plugin path
guides/... references/guides/...
cli-anything-plugin/repl_skin.py scripts/repl_skin.py
cli-anything-plugin/preview_bundle.py scripts/preview_bundle.py
cli-anything-plugin/skill_generator.py scripts/skill_generator.py
templates/SKILL.md.template scripts/templates/SKILL.md.template
docs/PREVIEW_PROTOCOL.md references/docs/PREVIEW_PROTOCOL.md

Cursor Tool Bindings

Cursor tool Role
Read Methodology and source analysis
Grep / Glob API and file discovery
Shell Clone, pytest, pip, CLI invocation
Write / StrReplace Harness implementation
Task Optional parallel subtasks

Phase Gates

For build/refine/test/validate, maintain {software-root}/agent-harness/.cli-anything-progress.json. Create agent-harness/ when tracking starts. Do not advance without completing the previous phase. Resume non-terminal runs.

Quality Bar

Match Claude Code plugin / Codex skill output: same harness layout, namespace packaging, --json, tests, and skill generation. Do not invent a different harness format.

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

Các lệnh chính là gì?

Các lệnh chính là build, refine, test, validate và list, và các yêu cầu thường được khớp với chúng.

Nó có tìm công cụ đã được xuất bản không?

Không, việc tìm công cụ đã xuất bản do một skill riêng là CLI-Hub meta-skill đảm nhận.

Nó có cần Cursor không?

Có, nó được đóng gói như một skill plugin của Cursor.

Chi tiết

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

Build, refine, test, validate, or list CLI-Anything harnesses for GUI applications in Cursor. Prefer slash commands /cli-anything, /cli-anything-refine, /cli-anything-test, /cli-anything-validate, and /cli-anything-list when available. This skill supports natural-language discovery of the generator; it does not replace those commands. Discovering already-published CLIs from CLI-Hub is a separate consumer skill (cli-hub-meta-skill).

repo: HKUDS/CLI-Anything

Độ phổ biến

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