CommunityEscrita e Ediçãogithub.com

ZhaoMCX/godot-skills

独立、可移植的 Godot 4.7 Codex 技能集合

O que é godot-skills?

godot-skills is a Codex agent skill that 独立、可移植的 Godot 4.7 Codex 技能集合.

Funciona com~Claude CodeCodex CLI~Cursor
npx skills add ZhaoMCX/godot-skills

Installed? Explore more Escrita e Edição skills: steipete/notion, affaan-m/seo, affaan-m/brand-voice · View all 6 →

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

Godot Dev

把磁盘文本和 Godot 运行时视为权威来源。只加载当前对象需要的参考与单类型契约,不预读整个契约库。

开始工作

  1. 读取项目 AGENTS.mdproject.godot 和受影响文件;项目规则优先于本技能的通用默认值,但不得要求保留本任务启动的可见程序。
  2. 解析 Godot:显式路径优先,其次 GODOT_BIN,再查找 PATH 中的 godotgodot4。执行 --version;使用契约时完整版本和构建哈希必须同时匹配。
  3. 检查编辑器是否可能对目标文件有未保存修改。无法确认时,先请人保存重叠文件。
  4. 读取契约清单,只选择本次涉及的 Node/Resource 契约:
    • 项目:docs/godot-dev/manifest.json
    • 内置:references/contracts/godot-4.7/manifest.json
  5. contract-layout.md 选择有效项目契约、精确版本第三方契约、对应 Godot 版本内置契约。不存在或过期时执行推导,不凭记忆猜序列化规则。

选择参考

编写约束

  • .gd.tres.tscn.gdshaderproject.godot 使用 UTF-8 文本;不要直接编辑 .res.scn 或导入生成物。
  • 只有契约的 authoring_modedirect_text 时才从零手写对应类型。
  • generated_structure 先由 Godot 创建并保存最小骨架,再做契约允许的文本调整。
  • scene_template 从项目认可的模板开始。
  • resource_saver_only 必须通过 Godot API 写入。
  • reference_only 只允许引用或继承,不直接实例化。
  • 场景是 Node/Resource 契约和通用场景规则的组合结果;不创建 <scene>.scene-contract.json
  • 默认值可写但 Godot 再保存时可能移除;不要依赖属性行是否存在表达业务语义。
  • 修改现有文件时保留 Godot 已生成的 UID、资源 ID、节点路径和与任务无关的序列化顺序。

固定验证门槛

  1. 对契约运行 validate_contract.gd
  2. 对每个变更的 .gd.tres.res.tscn 运行 validate_assets.gd;场景必须加载并实例化。
  3. 运行 godot --headless --editor --path <项目> --quit 完成导入和编辑器扫描。
  4. 执行仓库规定的结构审计、测试和主场景运行;错误、孤儿节点和 ObjectDB 泄漏均视为失败。
  5. 视觉任务可在可渲染显示驱动下运行 capture_scene.gd--headless 禁用渲染,不能截图。截图存在不等于视觉正确。
  6. 直接修改后让编辑器重新扫描。涉及 AutoLoad、全局脚本类、插件、GDExtension 或导入缓存时完整重启并重新验证。
  7. 复杂变更运行 collect_dependencies.gd 取得反向依赖闭包;交付前可用 verify_project.gd 输出统一 JSON 报告。skippedblocked 不等于通过。

任务收尾

  • 启动或重启可见 Godot 编辑器、游戏、截图进程或截图查看器前,记录任务开始时已经存在的窗口与进程,只把本任务产生的新实例纳入收尾范围。
  • 无论任务成功、失败、阻塞或中止,交付前都停止运行中的工程并关闭本任务启动或重启产生的编辑器、游戏窗口、截图进程和截图查看窗口,不让这些实例保持 Ready。任务开始前已经存在的窗口和进程不得关闭。
  • 截图脚本正常退出后仍要核对没有遗留进程;关闭截图查看窗口但保留截图文件作为验收证据,除非用户明确要求删除。

内置契约库额外要求:704 个条目不得残留 catalogedstaledirect_text 必须同时通过生成保存/重载、代表属性独立文本和再次往返。抽象类型验证不可实例化边界及具体子类见证;依赖外部运行时上下文的类型必须保守标为 reference_onlyAnimationTree 家族必须运行专项资产测试,不能用空实例替代状态、Transition、连接和动画推进。

所有脚本都使用 Godot 的用户参数:

godot --headless --path <project> --script <script> -- <arguments>

临时样本只写入 user://godot-dev/。验证失败时停止交付,报告具体文件、Godot 错误和尚未完成的同步步骤。

Habilidades Relacionadas

steipete/notion

Notion CLI/API for pages, Markdown content, data sources, files, comments, search, Workers, and raw API calls.

community

affaan-m/seo

Audit, plan, and implement SEO improvements across technical SEO, on-page optimization, structured data, Core Web Vitals, and content strategy. Use when the user wants better search visibility, SEO remediation, schema markup, sitemap/robots work, or keyword mapping.

community

affaan-m/brand-voice

Build a source-derived writing style profile from real posts, essays, launch notes, docs, or site copy, then reuse that profile across content, outreach, and social workflows. Use when the user wants voice consistency without generic AI writing tropes.

community

affaan-m/crosspost

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

community

affaan-m/x-api

X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.

community

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

community