| name | alloy-howtos |
| description | Use when an Alloy MVC project needs help with the Alloy CLI (`alloy new`, `alloy generate`, `alloy compile`, `alloy extract-i18n`), configuration files (`alloy.jmk` build hooks, `config.json` env/platform precedence, `widget.json`), conditional views (`if=` attribute in XML/TSS), custom XML tags via `app/lib/`, Backbone.Events for cross-controller communication, or debugging Alloy compilation errors. Triggers include `app/views/` + `app/controllers/`, `alloy.jmk`, or `config.json` in the project root. |
alloy-howtos
Overview
Practical reference for Titanium Alloy MVC projects: CLI usage, project configuration, conditional rendering, custom XML tags, cross-controller communication, and common compilation/runtime errors. Reference-style — load the relevant file from references/ for deeper detail.
When to use
Use this skill when:
- The project contains
app/views/ + app/controllers/, alloy.jmk, or config.json
- Running or scripting the Alloy CLI (
alloy new, alloy generate, alloy compile, ...)
- Configuring
alloy.jmk build hooks or config.json environment / platform precedence
- Writing conditional views with
if= in XML or TSS
- Building reusable custom XML tags in
app/lib/
- Wiring cross-controller communication via
Backbone.Events
- Diagnosing Alloy compilation errors or platform-specific runtime issues
Do NOT use for:
- Alloy MVC concepts, controllers, models, or data binding (use
alloy-guides)
- Titanium SDK fundamentals,
tiapp.xml, Hyperloop, or app distribution (use )