defold-scripts-editing

Generate and edit Defold script files and Lua modules.

81|6|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/indiesoftby/defold-agent-config --skill defold-scripts-editing-indiesoftby
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: defold-scripts-editing
Source: https://github.com/indiesoftby/defold-agent-config/tree/main/.agents/skills/defold-scripts-editing
Command: npx skills add https://github.com/indiesoftby/defold-agent-config --skill defold-scripts-editing-indiesoftby

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Defold projects require consistent structure and templates for Lua scripts (.script, .gui_script, .render_script, .editor_script) and Lua modules (.lua). This skill guides and automates creation and edits, reducing boilerplate and ensuring correct lifecycle usage and organization.

Core Features & Use Cases

  • Supports all Defold script types: .script, .gui_script, .render_script, .editor_script, plus reusable .lua modules.
  • Provides templates, structure guidance, and best-practices for script lifecycles, module patterns, and inter-script communication.
  • Use case: quickly scaffold a new script with proper properties, requirements, and a clean module pattern for reuse across objects and GUIs.

Quick Start

Ask me to generate or modify a Defold script or Lua module, and I will produce ready-to-use templates and guidance.

Frequently Asked Questions about defold-scripts-editing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a new Defold Lua script with the correct lifecycle callbacks?

To create a Defold Lua script, you need proper templates for lifecycle callbacks like init, update, and final. This skill generates ready-to-use .script files with correct structure, properties, and module patterns, reducing boilerplate for game objects and GUI components.

What is the best way to structure reusable Lua modules in a Defold game project?

Structuring reusable Lua modules in Defold requires consistent patterns for requirements and inter-script communication. This skill provides best-practice templates and organization guidance for .lua modules, ensuring clean architecture across your game objects and GUIs.

Does this support generating Defold render scripts and editor scripts?

Yes, Defold render scripts and editor scripts are fully supported. Alongside standard .script and .gui_script files, the skill generates and edits .render_script and .editor_script types, applying appropriate lifecycle callbacks and structural guidance for each specific context.

How do I add custom properties to a Defold GUI script template?

Adding custom properties to a Defold GUI script involves defining them correctly within the script structure. This skill edits existing .gui_script files to incorporate new properties, requirements, and lifecycle updates while maintaining best-practice module patterns.

When should I use a .gui_script versus a standard .script file in Defold?

A .gui_script is used for GUI components, while a standard .script attaches to game objects. This skill guides the correct usage and structure for each Defold script type, ensuring proper lifecycle implementation and inter-script communication across different components.

Can I update lifecycle callbacks in an existing Defold script without breaking the module pattern?

Yes, you can update lifecycle callbacks in existing Defold scripts safely. This skill edits current .script and .lua files to implement common patterns and new callbacks while preserving the existing module structure and inter-script communication logic.