Skip to content
Skills Library
Design & UX · Building & coding

action-centered-design

/action-centered-design

Design and build apps/features action-first using Action-Centered Design — Divide a task into actions, split each action into Information / Logic / Interface, and (on Apple platforms) implement each action as an App Intent over SwiftData so it surfaces across app, widgets, Controls, Siri/Shortcuts, watchOS, and — on macOS — the main menu bar and an Apple Help book, from one definition. In Apple Platforms - Information is represented by AppEntities, and Actions are represented by AppIntents. Use when starting a new app or feature, when the user mentions Action-Centered Design / "action-first" /

Licence
MIT
Last repository change
04.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
22
Scripts
6
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 04.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 6 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: references/helpbook-template/Resources/nav.js, references/helpbook-template/edit-copy.py, references/helpbook-template/make-helpbook.sh, references/helpbook-template/make-pages.py, references/intent-template.swift, references/menu-commands-template.swift

What it does and when to use it

Design and build apps/features action-first using Action-Centered Design — Divide a task into actions, split each action into Information / Logic / Interface, and (on Apple platforms) implement each action as an App Intent over SwiftData so it surfaces across app, widgets, Controls, Siri/Shortcuts, watchOS, and — on macOS — the main menu bar and an Apple Help book, from one definition. In Apple Platforms - Information is represented by AppEntities, and Actions are represented by AppIntents. Use when starting a new app or feature, when the user mentions Action-Centered Design / "action-first" /

Triggers from the description

action-first
Original author description

Design and build apps/features action-first using Action-Centered Design — Divide a task into actions, split each action into Information / Logic / Interface, and (on Apple platforms) implement each action as an App Intent over SwiftData so it surfaces across app, widgets, Controls, Siri/Shortcuts, watchOS, and — on macOS — the main menu bar and an Apple Help book, from one definition. In Apple Platforms - Information is represented by AppEntities, and Actions are represented by AppIntents. Use when starting a new app or feature, when the user mentions Action-Centered Design / "action-first" /

How it works

  1. When to use this
  2. The model (use this to think)
  3. The build recipe (Apple platforms)
  4. Shipping on macOS (two extra obligations)
  5. The rules (don't break these)
  6. Common pitfalls
  7. Verify it builds
  8. References
Original SKILL.md headings · 147 lines, 1,509 words
SKILL.md preview
---
name: action-centered-design
description: Design and build apps/features action-first using Action-Centered Design — Divide a task into actions, split each action into Information / Logic / Interface, and (on Apple platforms) implement each action as an App Intent over SwiftData so it surfaces across app, widgets, Controls, Siri/Shortcuts, watchOS, and — on macOS — the main menu bar and an Apple Help book, from one definition. In Apple Platforms - Information is represented by AppEntities, and Actions are represented by AppIntents. Use when starting a new app or feature, when the user mentions Action-Centered Design / "action-first" / "tools follow action", or when wiring App Intents, widgets, Controls, App Shortcuts, a watch app, a Mac menu bar, or a help book to share logic.
user-invocable: true
allowed-tools:
  - Read
  - Write
  - Edit
  - Bash
---

# Action-Centered Design (ACD)

> **Tools follow action, just as form follows function.**
> Design what people *do* first. A screen, widget, watch face, or voice command is just one tool that serves the action — and a good tool recedes (Weiser: you look at the world, not the eyeglasses).

This skill turns that philosophy into a concrete build process. On Apple platforms it maps
ACD onto **App Intents + AppEntities (+ SwiftData)**, where one action definition lights up every surface.

## When to use this

- Starting a new app or a new feature and you want an action-first architecture.
- The user says "Action-Centered Design", "action-first", "tools follow action", or wants
  the same capability in the app **and** a widget / Control / Siri / Shortcuts / watch.
- You're about to add an App Intent, an interactive widget, a Control, an
  `AppShortcutsProvider`, or a watch app and want them to share one source of truth.

## The model (use this to think)

1. **Person → Wants & Needs.** Who is it for, and what do they want and need?
2. **Divide the task into actions.** Smallest discrete *verbs* that move the job forward.
   "Add a to-do" is an action; "Home tab" is not.
3. **Split each action into three parts:**
   1. **Information** — input data + results (`@Model`, `AppEntity`, `AppEnum`).
   2. **Logic** — what happens when it runs (`AppIntent.perform()`).
   3. **Interface** — the output UI, *adapted per platform*. Try to keep the basics shareable. So if a Widget shows a To-Do List, that same UI should scale from Widget, to SnippetView (Shortcuts and Siri AI, AppIntents), to iOS App. That consistency allows designers to design for modular actions.

The action = Information + Logic. Interface multiplies for free.

## The build recipe (Apple platforms)

Work through these in order. Templates are in `references/intent-template.swift`.

1. **List the actions** (verbs) before drawing any screen. Write them down.
2. **Information — model + entity.**
   1. A SwiftData `@Model` for stored state.
   2. A `ModelContainer` shared via an **App Group** so every surface reads the same data
	 (see `references/intent-template.swift` → `Store`).
   3. An `AppEntity` (+ `EntityQuery`) as the Sendable snapshot the system passes around.
	 Use `AppEnum` for fixed choices (it doubles as a Siri/Shortcuts picker *and* a stored value).
3. **Logic — one `AppIntent` per action.** `@Parameter`s are the inputs; `perform()` opens a
   `ModelContext` on the shared container, does the work, saves, then `WidgetCenter.shared.reloadAllTimelines()`.
4. **Interface #1 — the app.** SwiftUI views, but **the UI performs the intent** rather than
   mutating the model directly: `Button(intent: SomeIntent(...))` or `try await SomeIntent(...).perform()`.
5. **Interface #2 — widget.** A WidgetKit timeline reads the shared store; interactive
   `Button(intent:)` runs the same action inline.
6. **Interface #3 — Control** (iOS 18+): a `ControlWidget` whose button runs an intent.
7. **Interface #4 — Siri/Shortcuts:** an `AppShortcutsProvider` with spoken phrases.
   (Only `AppEntity`/`AppEnum` params may be interpolated into phrases — never a `String`.)
8. **Interface #5 — watchOS:** a watch target whose buttons call the *same* intents.

## Shipping on macOS (two extra obligations)

A Mac release is not the iOS build resized. Two surfaces are **required**, and both are
generated from the action list you already wrote — read
`references/macos-menu-bar.md` and `references/help-book.md` before writing either.

9. **Interface #6 — the main menu bar.** *Every* action gets a menu item. Menus are named
   after your **Information objects** (the `AppEntity` nouns), ordered left→right from the
   largest parent container down to the smallest child; the items inside a menu are that
   object's actions, titled with the intent's own `title`. An action that doesn't apply
   right now is **disabled, never removed** — the menu bar is the app's complete,
   always-visible capability list.
   → `references/macos-menu-bar.md` · `references/menu-commands-template.swift`
10. **Interface #7 — the help book.** An Apple Help book with **one page per action**, using
   the same verb as the intent and the menu item, grouped under the same object hierarchy.
   Every page carries a **Tips** block (non-obvious ways to reach or speed up the action)
   and an **Other ways to do this** block (that action's other surfaces — which you get for
   free, because you listed them when you built the action).
   **Generate the pages; don't hand-write them.** The words go in `copy.json`, the HTML comes
   from `make-pages.py`, and `edit-copy.py` serves a local web page for editing the copy whose
   Save runs copy → pages → bundle → index and then verifies what it built. Every page carries
   a full copy of the table of contents, so hand-authoring means editing every file in the book
   to add one action — that is how the nav drifts out of step with the menu bar.
   → `references/help-book.md` · `references/help-copy-editor.md` · `references/helpbook-template/`

**One hierarchy, three artifacts.** The menu bar, the help book's table of contents, and the
`AppShortcutsProvider` list are three renderings of the same object→action tree. If you can't
render all three from one list, your action list is the thing that's wrong.

## The rules (don't break these)

- **Your own UI calls the action, not a private method.** The app's button runs the same intent that Siri, the widget, and the watch run.
- **Add surfaces by adding renderers, never logic.** A new widget/Control/watch app is view code over existing intents.
- **One definition per action.** Put shared files (model, entity, intents, store) in a `Shared/` group compiled into the app, widget, and watch targets.
- **Keep Information & Logic stable; let Interface vary and adapt to each platform’s guidelines.**
- **On macOS, no action may be menu-bar-orphaned.** If an intent has no menu to live in, the
  object it acts on is missing from your hierarchy. Fix the hierarchy, don't invent a
  "Tools" or "Actions" junk drawer.
- **On macOS, no action may be undocumented.** One help page per action, keyed to the intent.

## Common pitfalls

- App Shortcut phrase using a `String` `@Parameter` → build fails ("AppEntity and AppEnum are the only allowed types"). Drop the interpolation or make it an entity/enum.
- Widget/watch can't see the app's data → App Group not set on every target, or `appGroupID` mismatch. Provide a local-store fallback so it still launches (see template).
- Mutating SwiftData from the view → breaks the "UI calls the action" rule; route through the intent.
- Menus named after *screens* ("Sidebar", "Home", "Dashboard") → name them after objects.
  `View` and `Window` are the only screen-shaped menus, and they're the system's, not yours.
- Menu items that appear and disappear with selection → users learn the app by reading the
  menu bar once. Keep the item, `.disabled(...)` it.
- Menu item wording that drifts from the Shortcuts action wording → both should read
  `Intent.title`; never retype the verb.
- Help book present but Help menu does nothing → `CFBundleHelpBookFolder` /
  `CFBundleHelpBookName` missing from the *app's* Info.plist, or the `.help` bundle isn't in
  a Copy Files phase into `Contents/Resources`.
- Help book opens, reads perfectly, and its search field finds **nothing** → one of two silent
  indexing bugs. Either the book has only one index (it needs `search.cshelpindex` **and**
  `search.helpindex`, named by `HPDBookCSIndexPath` and `HPDBookIndexPath`), or the pages say
  `<meta name="robots" content="anchors">` where they must say `"all"` — "anchors" indexes the
  anchors and none of the words. A whole book indexing to a couple of KB is the tell for both.
- Help book edits don't show up, no matter how often you rebuild → `helpd` keys its index cache
  on `CFBundleShortVersionString`, so a book stuck at `1.0` is served from cache forever.
  Stamp that version from a hash of the pages (`make-helpbook.sh` does). `hiutil -P` is a
  per-session workaround, not the fix, and its cache delete needs Full Disk Access.

## Verify it builds

```bash
xcodebuild -project <App>.xcodeproj -target <App> -sdk iphonesimulator \
  -destination 'generic/platform=iOS Simulator' build CODE_SIGNING_ALLOWED=NO
# watch target:
xcodebuild -project <App>.xcodeproj -target <Watch> -sdk watchsimulator \
  -destination 'generic/platform=watchOS Simulator' build CODE_SIGNING_ALLOWED=NO
# Mac target:
xcodebuild -project <App>.xcodeproj -target <Mac> -sdk macosx \
  -destination 'platform=macOS' build CODE_SIGNING_ALLOWED=NO
```

## References

Everything you need to build each surface is in `references/`:

- `references/intent-template.swift` — copy-paste skeletons for model, store, entity, intent, shortcuts, widget button, and Control.
- `references/cheatsheet.md` — the one-page summary for applying ACD to anything.
- `references/macos-menu-bar.md` — how to derive the Mac main menu bar from the action list.
- `references/menu-commands-template.swift` — copy-paste `Commands`, focused values, and the
  one menu-item type that performs an intent and takes its title from it.
- `references/help-book.md` — how to author, index, and wire up the Apple Help book: page
  anatomy, what makes a tip worth writing, the plist keys on both bundles, and the `hiutil`
  invocations (§6 is the one that stops search failing silently).
- `references/help-copy-editor.md` — holding the book as `copy.json` + a renderer, and the
  browser editor over it: the schema, why an empty section *is* a removed section, the
  validate-before-write rule, and the post-build checks worth running every save.
- `references/helpbook-template/` — a working help book, both routes: `copy.json` +
  `make-pages.py` + `edit-copy.py` (generated, use this), `handwritten/` (a few pages), plus
  Info.plist, CSS, nav, and `make-helpbook.sh` to assemble and index the bundle.
Files in this package (22)
  • SKILL.md 11 KB
  • references/cheatsheet.md 4 KB
  • references/help-book.md 15 KB
  • references/help-copy-editor.md 10 KB
  • references/intent-template.swift 5 KB
  • references/macos-menu-bar.md 10 KB
  • references/menu-commands-template.swift 9 KB
  • references/helpbook-template/Info.plist 2 KB
  • references/helpbook-template/README.md 5 KB
  • references/helpbook-template/copy.json 5 KB
  • references/helpbook-template/edit-copy.html 30 KB
  • references/helpbook-template/edit-copy.py 13 KB
  • references/helpbook-template/make-helpbook.sh 7 KB
  • references/helpbook-template/make-pages.py 12 KB
  • references/helpbook-template/Resources/nav.js 2 KB
  • references/helpbook-template/Resources/English.lproj/add-a-bit.html 3 KB
  • references/helpbook-template/Resources/English.lproj/add-a-thing.html 3 KB
  • references/helpbook-template/Resources/English.lproj/index.html 2 KB
  • references/helpbook-template/Resources/English.lproj/keyboard-shortcuts.html 2 KB
  • references/helpbook-template/Resources/css/main.css 7 KB
  • references/helpbook-template/handwritten/action-template.html 6 KB
  • references/helpbook-template/handwritten/index.html 4 KB

Versions

The database has no other skills named action-centered-design.

Database snapshot: 13.11.2026 · package version 422ae061dd60 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 91apple-hig-siri
    Use when designing or reviewing Siri/App Intents actions, app entities and contextual references, relevant donation/indexing, spoken dialogue, snippets, or App Shortcuts.
  • 100ios-app-intents
    Design and implement App Intents, app entities, and App Shortcuts for iOS apps so useful actions and content are available to Shortcuts, Siri, Spotlight, widgets, controls, and other intent-driven system surfaces. Use when exposing app actions outside the UI, adding `AppEntity`…
  • 100apple-app-intents
    Use when exposing app features to App Intents, Shortcuts, Siri, Spotlight, widgets, controls, or system actions — small safe AppIntents, AppShortcutsProvider, AppEnum/AppEntity, parameters, and open-vs-background behavior.
  • 90app-intents-workflow
    Design, implement, validate, and troubleshoot App Intents, App Entities, App Shortcuts, and system-surface integrations. Use when exposing a focused app action or content to Siri, Spotlight, Shortcuts, widgets, controls, Live Activities, or hardware interactions.
  • 90hig-platforms
    Apple Human Interface Guidelines for platform-specific design. Use this skill when the user asks about "designing for iOS", "iPad app design", "macOS design", "tvOS", "visionOS", "watchOS", "Apple platform", "which platform", platform differences, platform-specific conventions,…
  • 90hig-platforms
    >" Apple Human Interface Guidelines for platform-specific design. Use this skill when the user asks about "designing for iOS", "iPad app design", "macOS design", "tvOS", "visionOS", "watchOS", "Apple platform", "which platform", platform differences, platform-specific…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.