# uikit-ui-common-setup

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 171 repo stars
- Author: drawthingsai
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/drawthingsai/local-code-community/tree/HEAD/.agents/skills/uikit-ui-common-setup/SKILL.md
- Updated: 2026-11-17
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/uikit-ui-common-setup

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add drawthingsai/local-code-community --skill uikit-ui-common-setup -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/uikit-ui-common-setup/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/uikit-ui-common-setup/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add drawthingsai/local-code-community --skill uikit-ui-common-setup -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/uikit-ui-common-setup/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add drawthingsai/local-code-community --skill uikit-ui-common-setup -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/uikit-ui-common-setup/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install drawthingsai/local-code-community .agents/skills/uikit-ui-common-setup
```

2. **Manually: put the files in place**
- File: `.github/skills/uikit-ui-common-setup/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add drawthingsai/local-code-community --skill uikit-ui-common-setup -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/drawthingsai/local-code-community --path .agents/skills/uikit-ui-common-setup
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/uikit-ui-common-setup/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/drawthingsai/local-code-community/tree/HEAD/.agents/skills/uikit-ui-common-setup/SKILL.md

## When to use it
- 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
- 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.

## Similar
- [uikit-guidelines-cursorrules-prompt-file](https://affpapa.org/en/nevibecode/rules/uikit-guidelines-cursorrules-prompt-file.md) — rule · ★ 41178 repo stars
- [swiftui-uikit-interop](https://affpapa.org/en/nevibecode/skills/swiftui-uikit-interop.md) — skill · 4400 installs
- [uikit](https://affpapa.org/en/nevibecode/skills/uikit.md) — skill · 566 installs
- [ios-uikit-architecture](https://affpapa.org/en/nevibecode/skills/ios-uikit-architecture.md) — skill · 145 installs
- [uikit-max](https://affpapa.org/en/nevibecode/skills/uikit-max.md) — skill · 939 installs
- [uikit-expert](https://affpapa.org/en/nevibecode/skills/uikit-expert.md) — skill · 878 installs

From the same set: [drawthingsai/local-code-community](https://affpapa.org/en/nevibecode/by/drawthingsai/local-code-community.md) — 20 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
