cli-anything-godot
Skill này làm gì
Skill này cho phép agent quản lý dự án game Godot 4 qua công cụ dòng lệnh. Nó dành cho lập trình viên game muốn tạo scene và chạy script mà không cần trình biên tập.
Khi nào nên dùng
- ✓Khi bạn muốn một dự án hoặc scene Godot mới được tạo từ dòng lệnh.
- ✓Khi bạn muốn thêm node vào một scene có sẵn.
- ✓Khi bạn muốn xuất một dự án Godot hoặc chạy một file GDScript.
Liên kết skill
https://github.com/HKUDS/CLI-Anything/blob/main/godot/agent-harness/cli_anything/godot/skills/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tạo một dự án Godot mới tên Racer với một scene Level1 có một node Player.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill gọi chương trình Godot trên máy bạn với các lệnh cho dự án, scene, xuất và script. Nó đọc và ghi các file dự án để agent làm việc với chúng.
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.
Godot Engine CLI
Agent-native CLI for the Godot game engine. Manage projects, scenes, exports, and GDScript execution from the command line.
Installation
pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=godot/agent-harness
Requirements
- Godot 4.x on PATH (or set GODOT_BIN env var)
Commands
Project Management
# Create a new Godot project
cli-anything-godot project create <path> [--name "My Game"]
# Get project info (name, features, main scene)
cli-anything-godot --json -p <project> project info
# List all scenes
cli-anything-godot --json -p <project> project scenes
# List all scripts
cli-anything-godot --json -p <project> project scripts
# List all resources
cli-anything-godot --json -p <project> project resources
# Re-import project resources
cli-anything-godot -p <project> project reimport
Scene Operations
# Create a new scene with root node type
cli-anything-godot -p <project> scene create scenes/Level1.tscn --root-type Node3D
# Read scene structure (nodes, resources, connections)
cli-anything-godot --json -p <project> scene read scenes/Level1.tscn
# Add a child node to a scene
cli-anything-godot -p <project> scene add-node scenes/Level1.tscn --name Player --type CharacterBody3D --parent .
GDScript Execution
# Run a GDScript file (must extend SceneTree)
cli-anything-godot -p <project> script run tools/build_navmesh.gd
# Run inline GDScript code
cli-anything-godot -p <project> script inline 'print(ProjectSettings.get_setting("application/config/name"))'
# Validate GDScript syntax
cli-anything-godot -p <project> script validate scripts/player.gd
Export
# List configured export presets
cli-anything-godot --json -p <project> export presets
# Export all presets
cli-anything-godot -p <project> export build
# Export a specific preset
cli-anything-godot -p <project> export build --preset "Windows Desktop" --output build/game.exe
Engine
# Check Godot availability and binary path
cli-anything-godot --json engine status
# Get engine version
cli-anything-godot engine version
JSON Mode
Add --json flag to any command for structured JSON output suitable for agent consumption:
cli-anything-godot --json -p ./my-game project info
Interactive REPL
cli-anything-godot -p ./my-game session
Câu hỏi thường gặp
Cần phiên bản Godot nào?
Skill cần Godot 4.x trên đường dẫn của bạn, hoặc được đặt qua biến GODOT_BIN.
Nó có chạy được script không?
Có, nó có thể chạy một file GDScript, và file đó phải kế thừa SceneTree.
Nó có hiển thị thông tin dự án không?
Có, nó có thể hiển thị thông tin dự án, scene, script và tài nguyên.
Chi tiết
Mô tả gốc của tác giả
Agent-native CLI for Godot project management, scenes, exports, and script execution.
repo: HKUDS/CLI-Anything
Độ phổ biến
- Sao GitHub
- 58k
- Vị trí xếp hạng
- #3208
- Giấy phép
- Apache-2.0
- Cập nhật
- 21/9/2026
Bình luận
- …
Thêm skill từ kho mã này
cli-anything-3mf
58kCho phép agent của bạn kiểm tra và sửa file in 3D, gồm tìm lỗ tròn, đổi kích thước chúng, sửa lưới và so sánh hai file.
cli-anything-qgis
58kCho phép agent của bạn mở, sửa và xuất dự án bản đồ QGIS từ terminal, gồm các lớp, đối tượng, bố cục in và công cụ xử lý.
cli-anything-adguardhome
58kCho phép agent của bạn quản lý AdGuard Home, một bộ chặn quảng cáo toàn mạng, gồm bộ lọc, DNS rewrite, thiết bị và nhật ký truy vấn.
cli-anything-anygen
58kCho phép agent của bạn tạo slide, tài liệu, website và sơ đồ từ một prompt bằng dịch vụ AnyGen.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.