godot-4-migration
将 Godot 3 项目迁移到 Godot 4
Godot 4 迁移可能会因语法和 API 变化而导致脚本失效。此技能会指导 Claude、Codex 和 Claude Code 进行有针对性的 GDScript 2.0 更新。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "godot-4-migration" from https://skillstore.io/skills/sickn33-godot-4-migration.md and its manifest at https://skillstore.io/api/skills/sickn33-godot-4-migration/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“godot-4-migration”。 一个 Godot 3 玩家脚本使用 export 变量、setget health 逻辑和一个 Tween 节点。
预期结果:
- 审查会识别 export 语法变化,并推荐 Godot 4 注解风格。
- health 属性会被标记为需要迁移到内联 setter 和 getter。
- Tween 节点会被标记为应替换为 Godot 4 tween 创建模式。
正在使用“godot-4-migration”。 一个 pull request 在将 UI 场景迁移到 Godot 4 时更改了信号连接。
预期结果:
- 审查会检查是否一致使用基于 callable 的信号连接。
- 它会突出显示可能需要手动测试的剩余基于字符串的连接。
- 它会建议对按钮和发出的信号进行场景冒烟测试。
正在使用“godot-4-migration”。 一个团队在用 Godot 4 打开大型 Godot 3 项目之前需要迁移检查清单。
预期结果:
- 检查清单会按注解、Tweens、信号、类型化数组和 await 用法对工作进行分组。
- 它会将自动文本更新与基于编辑器的验证分开。
- 它会指出转换后需要手动行为测试的脚本。
安全审计
安全All 33 external-command detections are Markdown backticks used for Godot names or fenced GDScript examples; none invokes a shell. The reconnaissance detection is an ordinary Godot error message, and no prompt injection or malicious intent appears in SKILL.md.
风险因素
⚙️ 外部命令 (33)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/sickn33-godot-4-migration/audits/5?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/sickn33-godot-4-migration?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/sickn33-godot-4-migration?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/sickn33-godot-4-migration/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/sickn33-godot-4-migration.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
sickn33. (2026). godot-4-migration security audit report (audit version 5) [Author version unspecified]. Skillstore. https://skillstore.io/skills/sickn33-godot-4-migration/audits/5BibTeX 引用
@techreport{sickn33-sickn33-godot-4-migration-2026,
author = {sickn33},
title = {godot-4-migration security audit report (audit version 5)},
institution = {Skillstore},
year = {2026},
number = {5},
url = {https://skillstore.io/skills/sickn33-godot-4-migration/audits/5},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "godot-4-migration security audit report (audit version 5)"
version: "unspecified"
type: report
authors:
- name: "sickn33"
date-released: "2026-07-24"
url: "https://skillstore.io/skills/sickn33-godot-4-migration/audits/5"
identifiers:
- type: other
value: "skillstore:sickn33-godot-4-migration:audit:5"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
升级玩法脚本
在测试场景之前,将常见的 Godot 3 脚本模式转换为 Godot 4 语法。
审查迁移 Pull Request
检查提交的脚本更改是否遵循 GDScript 2.0 约定,并避免使用已弃用的 Tween 用法。
讲解 Godot 4 语法变化
为注解、类型化数组、信号和 await 行为准备清晰说明。
试试这些提示
审查这个 Godot 3 GDScript,并列出所需的 Godot 4 更改。重点关注注解、yield、Tween 和信号。
将以下 Godot 3 脚本迁移到 Godot 4。用简单的项目符号解释每一处语法变化。
为这个 Godot 3 项目创建迁移检查清单。优先处理脚本、场景、Tween 用法、导出和手动编辑器检查。
比较这些原始脚本和迁移后的脚本。找出行为变化、缺失的类型注解、信号问题和 Godot 4 API 风险。
最佳实践
- 每完成一批有针对性的更改后,都在 Godot 4 中运行迁移后的脚本。
- 在新语言版本支持的地方使用类型化变量和数组。
- 让行为测试或场景冒烟检查贴近每个已迁移的功能。
避免
- 不要在不检查运行时行为的情况下机械地替换语法。
- 不要假设每个 Godot 3 节点或信号都能直接映射到 Godot 4。
- 不要在应使用新 API 的脚本中保留旧的 Tween 节点模式。