gdscript-syntax-guide

Community

权威 GDScript 语法与风格指南

Authorhhhh124hhhh
Version1.0.0
Installs0

System Documentation

What problem does it solve?

GDScript 的语法规范与风格在大量 Godot 项目中分散,导致代码可读性差和维护成本上升。本技能提供一个权威、可直接应用的参考,帮助团队统一语法、缩进和命名约定。

Core Features & Use Cases

  • 语法与类型系统: 指导强类型提示、变量和函数签名的统一用法,避免常见错误。
  • 缩进与代码风格: 规定制表符缩进、snake_case 命名、统一的导入与注释风格,使团队协作更顺畅。
  • 实用示例与场景: 提供在节点、信号、资源加载等常见场景中的正确实现示例,适用于重构和新项目。

Quick Start

  • Open a Godot 4.5 project to compare your scripts against the guide's recommendations for syntax, naming, and indentation.
  • Apply the indentation and type-hinting examples to a sample script to see immediate improvements.
  • Use the checklist to audit existing code and start refactoring with the guide's guidelines.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: gdscript-syntax-guide
Download link: https://github.com/hhhh124hhhh/godot-mcp/archive/main.zip#gdscript-syntax-guide

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.