ti-guides
Titanium SDK guide expert
Use this skill to keep Titanium projects aligned with TiDev standards for stability, performance, and cross-platform behavior.
Project detection
:::info Auto-detects Titanium projects This skill auto-detects Titanium projects. No manual command is needed.
Titanium project indicator:
tiapp.xmlfile (definitive indicator)
Applies to both:
- Alloy projects (
app/folder) - Classic projects (
Resources/folder)
Behavior:
- If a Titanium project is detected, provide official Titanium SDK guidance, memory management best practices, and app distribution help.
- If not detected, say this skill is only for Titanium projects. :::
Core workflow
- Validate the project follows a modular pattern (CommonJS or Alloy).
- Ensure global listeners are removed and heavy objects are nulled during cleanup.
- Cache frequently accessed native properties to reduce bridge crossings.
- Use Hyperloop for specialized native functionality and handle casting and threading correctly.
- Use transactions for database work and manage image memory footprints.
Procedural rules
- Always remove
Ti.AppandTi.Geolocationlisteners during controller cleanup. - Do not access
Ti.PlatformorTi.DisplayCapsinside loops. Store values in local variables. - Concatenate Hyperloop selectors accurately (for example,
addAttribute:value:range:->addAttributeValueRange). - Close resultsets and database handles after every transaction block.
Reference guides
- Hello World (references/hello-world.md): project creation, structure, and getting started with Alloy or Classic Titanium.
- JavaScript Primer (references/javascript-primer.md): JavaScript fundamentals, learning resources, best practices, and ES6+ features.
- Application Frameworks (references/application-frameworks.md): Alloy vs Classic Titanium, architectural patterns, and framework selection.
- Coding Best Practices (references/coding-best-practices.md): memory leaks, bridge efficiency, event naming, security, and lazy loading.
- CommonJS Advanced (references/commonjs-advanced.md): stateful modules, caching, ES6+ support, and antipatterns.
- Advanced Data & Images (references/advanced-data-and-images.md): SQLite transactions and image memory optimization.
- Hyperloop Native Access (references/hyperloop-native-access.md): Objective-C/Swift/Java syntax, casting, debugging, XIB/Storyboards.
- Style & Conventions (references/style-and-conventions.md): naming standards and formatting rules.
- Reserved Words (references/reserved-words.md): ECMAScript, iOS, and Alloy reserved keywords to avoid.
- Android Manifest (references/android-manifest.md): custom AndroidManifest.xml, permissions, and manifest merge.
- App Distribution (references/app-distribution.md): Google Play (APK/AAB), App Store (IPA), certificates, provisioning, and deployment.
- tiapp.xml Configuration (references/tiapp-config.md): complete reference for tiapp.xml and timodule.xml, including all elements, properties, and platform-specific settings.
- CLI Reference (references/cli-reference.md): Titanium CLI commands, options, tasks, configuration, and build processes.
- Resources (references/resources.md): community support, modules, sample code, Slack, and learning materials.
Related skills
For tasks beyond SDK fundamentals, use these complementary skills:
| Task | Use this skill |
|---|---|
| Project architecture, services, patterns | ti-expert |
| Native features (location, push, media) | ti-howtos |
| Alloy CLI, configuration, debugging | alloy-howtos |
| UI layouts, ListViews, gestures | ti-ui |
Response format
- Technical recommendation: cite the specific TiDev best practice.
- Optimized implementation: provide modern ES6+ code without semicolons.
- Rationale: briefly explain the performance or memory impact.
More from maccesar/titools
ti-ui
Titanium SDK UI/UX patterns and components expert. Use when working with, reviewing, analyzing, or examining Titanium layouts, ListView/TableView performance optimization, event handling and bubbling, gestures (swipe, pinch), animations, accessibility (VoiceOver/TalkBack), orientation changes, custom fonts/icons, app icons/splash screens, or platform-specific UI (Action Bar, Navigation Bar).
4purgetss
Titanium PurgeTSS utility-first styling toolkit. Use when styling, reviewing, analyzing, or examining Titanium UI with utility classes, configuring config.cjs, creating dynamic components with $.UI.create(), building animations, using grid layouts, setting up icon fonts, or working with TSS styles. Never suggest other CSS framework classes - verify in class-index.md first.
4ti-howtos
Titanium SDK native feature integration guide. Use when implementing, reviewing, analyzing, or examining Titanium location services, maps (Google Maps v2, Map Kit), push notifications (APNs, FCM), camera/gallery, media APIs, SQLite databases, HTTPClient networking, WKWebView, Android Intents, background services, iOS Keychain/iCloud, WatchKit/Siri integration, or CI/CD with Fastlane and Appium.
4ti-expert
Titanium SDK architecture and implementation expert. Use when designing, reviewing, analyzing, or examining Titanium project structure (Alloy or Classic), creating controllers/views/services, choosing models vs collections, implementing communication patterns, handling memory cleanup, testing, auditing code, or migrating legacy apps. Automatically identifies project type.
4alloy-guides
Titanium Alloy MVC official framework reference. Use when working with, reviewing, analyzing, or examining Alloy models, views, controllers, Backbone.js data binding, TSS styling, widgets, Alloy CLI, sync adapters, migrations, or MVC compilation. Explains how Backbone.js models and collections work in Alloy.
4alloy-howtos
Titanium Alloy CLI and configuration guide. Use when creating, reviewing, analyzing, or examining Alloy projects, running alloy commands (new, generate, compile), configuring alloy.jmk or config.json, debugging compilation errors, creating conditional views, using Backbone.Events for communication, or writing custom XML tags.
4