Skillshub defold-project-build
Builds the project using the running Defold editor, returns build errors, and launches the game if build succeeds.
install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/indiesoftby/defold-agent-config/defold-project-build" ~/.claude/skills/comeonoliver-skillshub-defold-project-build && rm -rf "$T"
manifest:
skills/indiesoftby/defold-agent-config/defold-project-build/SKILL.mdsource content
Build Defold Project via Editor HTTP API
Build and run a Defold project by sending HTTP requests to the running Defold editor.
Prerequisites
- The Defold editor must be running with the project open.
Reading the Editor Port
The editor writes its HTTP port to
.internal/editor.port in the project root. Read this file to get the port number.
Windows (PowerShell):
$port = Get-Content .internal/editor.port
Linux/macOS:
port=$(cat .internal/editor.port)
If the file does not exist, the editor is not running or the project is not open.
Building the Project
Send a POST request to the
/command/build endpoint.
Windows (PowerShell):
Invoke-RestMethod -Uri "http://127.0.0.1:$port/command/build" -Method Post
Linux/macOS:
curl -X POST "http://127.0.0.1:$port/command/build" --silent
The response is JSON with two fields:
(boolean) — whether the build succeeded.success
(array) — list of build issues (empty on success).issues
If
success is true, the build succeeded and the editor launches the game automatically.
If
success is false, each entry in issues contains:
| Field | Description |
|---|---|
| or |
| Human-readable description |
| Absolute project path (e.g. ) |
| Start line (0-based) |
| Start column (0-based) |
| End line (0-based) |
| End column (0-based) |
Checking Console Output
After a successful build and launch, read runtime logs from the editor console:
Windows (PowerShell):
Invoke-RestMethod -Uri "http://127.0.0.1:$port/console" -Method Get
Linux/macOS:
curl "http://127.0.0.1:$port/console" --silent
Workflow
- Read the port from
..internal/editor.port - POST to
./command/build - If the build fails, report all issues with file paths, line numbers, and messages.
- If the build succeeds, the game launches automatically. Check
for runtime logs if needed./console
Troubleshooting
- Connection refused — the editor is not running or the port file is stale. Restart the editor and try again.
Example: Successful Build Response
{ "success": true, "issues": [] }
Example: Failed Build Response
{ "success": false, "issues": [ { "severity": "error", "message": "go.property declaration should be a top-level statement", "resource": "/main/logo.script", "range": { "start": { "line": 3, "character": 4 }, "end": { "line": 3, "character": 35 } } } ] }