# appcreator

> Crea apps de iPhone robustas con Scriptable usando un patrón de arquitectura probado, UI adaptable y tests automáticos.

appcreator is a free AI agent skill on Agensi by Jorge Fernandez, in Mobile Development. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Jorge Fernandez](https://www.agensi.io/creators/jorge-fernandez)
- Category: [Mobile Development](https://www.agensi.io/skills/mobile-development)
- Version: 1.0
- Last updated: 2026-11-24
- Security: scan passed (2026-11-24); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/appcreator
- Tags: ai-agents, ios, scriptable, javascript, mobile-app

## About this skill

Building functional iPhone apps within the Scriptable environment is error prone due to undocumented API quirks and UI scaling issues. This skill enforces a production-hardened architecture used in real-world task and expense trackers to deliver reliable, single-file iOS applications.

### What it does
- **Architects single-file apps** by generating a robust script featuring a pure logic core, JSON storage with quarantine backups, and iCloud Drive syncing.
- **Builds responsive WebViews** using a polling bridge protocol that handles keyboard offsets, safe areas, and dark mode for every iPhone screen size.
- **Automates UI testing** by generating WebKit screenshots across all device resolutions (SE to Pro Max) to ensure touch targets and layouts never break.
- **Integrates iOS native features** including Lock Screen widgets, Siri Shortcuts, Apple Pay automation hooks, and Share Sheet extensions.
- **Manages data integrity** via a versioned schema with migration support and a "borrado: true" flag system to prevent data loss during sync collisions.

### How it works
1. **Define the domain** by specifying entities, required shortcut inputs, and widget data requirements.
2. **Scaffold the project** using the `nueva-app.js` utility to create the directory structure, core logic, and initial test suite.
3. **Develop and build** by editing the `src/` files and running `npm run build` to compile the single-file Scriptable deliverable.
4. **Validate across devices** using `npm run capturas` to visually inspect the UI in light and dark modes on multiple simulated iPhone resolutions.
5. **Deploy to iOS** by copying the generated script to the Scriptable folder in iCloud Drive and following the guided verification checklist.

### Frameworks & tools
The skill utilizes Node.js for the build pipeline and testing (node:test), Python for icon generation, and WebKit/Playwright for automated visual regression. It targets the Scriptable iOS app environment using vanilla JavaScript and HTML/CSS.

### Why this beats prompting it yourself
Scriptable apps often fail due to race conditions between Shortcuts and the UI or broken layouts on different iPhones. This skill applies a proven "no-state UI" pattern and a strict polling bridge that prevents the common "black screen" and data overwrite bugs that generic prompts ignore.

### Use cases
- Create a personal expense tracker that logs Apple Pay notifications via Shortcuts.
- Build a custom task manager with Lock Screen widgets and Share Sheet integration.
- Develop a local-first data dashboard that syncs via iCloud without a backend.
- Prototype iOS-native utilities with complex UI interactions in a single script.

### Known limitations
Requires a local Node.js environment for the build and test pipeline. Does not support external NPM dependencies in the final script. Network requests are disabled by default for privacy.

## Requires

- Playwright
- Node.js
- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the appcreator skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does appcreator improve upon standard Scriptable development?

This skill provides a production-grade architecture for Scriptable, automating complex tasks like iCloud sync, responsive UI scaling for all iPhone sizes, and automated WebKit testing to prevent common "black screen" or data loss bugs.

### What exactly is included in the appcreator package?

You will receive the complete development framework, including the scaffold utility, the polling bridge protocol for UI-to-Logic communication, and the automated visual regression suite for testing layouts.

### Are there any specific technical requirements or software I need to install?

Yes, you need a local Node.js environment to run the build pipeline and testing suite, and the Scriptable app installed on your iOS device to run the final compiled script.

### How does the skill handle data integrity and sync errors?

The skill employs a "no-state UI" pattern and a versioned JSON schema with quarantine backups, specifically designed to prevent data corruption during iCloud sync collisions or Shortcut interruptions.

### Can I use external NPM libraries in my final iOS application?

While the skill uses Node.js for the build and testing phases, the final output is a single, optimized vanilla JavaScript file that runs natively within Scriptable without any external dependencies.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
