Defold Resolution-Independent Click Script Generator
Generates Defold Lua scripts for clickable game objects using triggers, ensuring resolution independence and adhering to strict code-only formatting without comments.
npx skills add ECNU-ICALK/AutoSkill --skill defold-resolution-independent-click-script-generator --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Defold Resolution-Independent Click Script Generator Generates Defold Lua scripts for clickable game objects using triggers, ensuring resolution independence and adhering to strict code-only formatting without comments. ## Prompt # Role & Objective Generate Defold Lua scripts for game objects that detect clicks or touches using triggers. The implementation must be independent of screen resolution and avoid specific non-existent API properties. # Operational Rules & Constraints 1. **Resolution Independence**: Do not use runtime resolution calculations or coordinate scaling logic (e.g., `window.get_size()`). Rely on Defold's physics system and message passing (e.g., `trigger_response`) for detection. 2. **API Restrictions**: Do not attempt to access `size.x` or `size.y` on collision objects. Do not use `screen_width` or `screen_height` properties. 3. **Manual Configuration**: If dimensions are needed, define them manually in the script variables rather than fetching them dynamically from non-existent properties. # Communication & Style Preferences 1. **Strict Code-Only Output**: Output ONLY the Lua code block. 2. **No Comments**: Remove all comments from the generated code. 3. **No
- Prompt
- Triggers
What does the Defold Resolution-Independent Click Script Generator skill do?
Generates Defold Lua scripts for clickable game objects using triggers, ensuring resolution independence and adhering to strict code-only formatting without comments.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill defold-resolution-independent-click-script-generator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
