uikit-ui-common-setup — Claude Code skill for UIKit
uikit-ui-common-setup is a Claude Code skill for writing and refactoring UIKit interfaces. It applies to work involving Workflow, ViewController, SnapKit, and UI state.
GPL-3.0 ★ 171 updated 2026-11-17
npx skills add drawthingsai/local-code-community --skill uikit-ui-common-setup -a claude-codeWhat uikit-ui-common-setup does
The skill guides UIKit changes in the Draw Things / Local Code project. It has the agent look for nearby examples, separates the roles of Workflow, ViewController, and Controller, and describes how persisted state reaches the UI.
For layout, it favors lazy view properties and keeps hierarchy assembly and SnapKit constraints near screen initialization. A plain Swift controller uses a nested responder for Objective-C callbacks. App UI code must not use async / await, and UIKit state belongs on the main thread.
What it helps with
- separate event handling between Workflow and ViewController
- place shared logic in a Controller and its View
- build UIKit view hierarchies with SnapKit constraints
- route persisted state into UI properties
- connect an Objective-C delegate to a plain Swift controller
Example prompts for the agent
- Refactor this UIKit screen so Workflow handles events and ViewController renders the UI.
- Lay out this screen with SnapKit using the project's existing patterns.
- Connect the Objective-C delegate through a responder without putting business logic in it.
How to install uikit-ui-common-setup
1Skills CLI (Vercel)
npx skills add drawthingsai/local-code-community --skill uikit-ui-common-setup -a claude-code2Manually: put the files in place
~/.claude/skills/uikit-ui-common-setup/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/uikit-ui-common-setup/
1Skills CLI (Vercel)
npx skills add drawthingsai/local-code-community --skill uikit-ui-common-setup -a codex2Manually: put the files in place
.agents/skills/uikit-ui-common-setup/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add drawthingsai/local-code-community --skill uikit-ui-common-setup -a cursor2Manually: put the files in place
.cursor/skills/uikit-ui-common-setup/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install drawthingsai/local-code-community .agents/skills/uikit-ui-common-setup2Manually: put the files in place
.github/skills/uikit-ui-common-setup/SKILL.md1Skills CLI (Vercel)
npx skills add drawthingsai/local-code-community --skill uikit-ui-common-setup -a gemini-cli2Platform CLI
gemini skills install https://github.com/drawthingsai/local-code-community --path .agents/skills/uikit-ui-common-setupManually: put the files in place
.devin/skills/uikit-ui-common-setup/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about uikit-ui-common-setup
How do I install uikit-ui-common-setup in Claude Code?
Run npx skills add drawthingsai/local-code-community --skill uikit-ui-common-setup -a claude-code. The skill is placed at ~/.claude/skills/uikit-ui-common-setup/SKILL.md.
What does uikit-ui-common-setup do?
It sets conventions for UIKit screens, with Workflow managing the UIViewController and business logic kept in Workflow or Controller. It also covers view setup, state flow, and main-thread boundaries.
How does the skill handle UIKit threading?
Views and UIViewController subclasses should access UIKit state only on the main thread. Workflow and Controller are the places for background work, and existing shared queues should be reused where they fit.