Generates a Mac app repo's own macos-screen-creator + macos-component-checker skills: "맥 앱 화면 생성 스킬 이 레포에 맞게 만들어줘". Not for iOS. Discovers THIS repo's real SwiftUI conventions for a Mac-only app (XcodeGen, SPM targets, isolation, @Observable models, the sidebar NavigationSplitView, keyboard shortcuts, App Sandbox entitlements, DesignSystem tokens) and records the design already hardcoded in Swift inside the pair. Use for "set up macos-screen-creator here", "맥 앱 컴포넌트 공통화 스킬 깔아줘", "apps/desktop/macos 기준으로 화면 스킬이랑 컴포넌트 점검 스킬 만들어줘". Do NOT use to build or audit a Mac screen right now (the generated macos-screen-creator / macos-component-checker), to scaffold a Mac app (macos-bootstrap), for iOS (ios-screen-creator-bootstrap), Android (android-screen-creator-bootstrap) or Next.js (screen-creator-bootstrap), to import a theme from references (native-design-system-import), for the whole bootstrap chain (project-setup), or to edit skills (skill-ops).
Ships in mobile. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Generates a pair of macOS skills tailored to the repository it runs in: macos-screen-creator
(builds a new SwiftUI screen in a Mac app through four approval gates) and macos-component-checker
(audits existing views for duplication, design-token drift, keyboard and sandbox gaps, and
commonization). Both come from one discovered recipe, and the checker points at the screen creator's
quality rules instead of copying them, so the two never drift. It is the Mac twin of
ios-screen-creator-bootstrap: the same file layout and check design, adapted rather than shared, as
android-screen-creator-bootstrap is.
Each generated skill is two layers welded together:
ponytail:), leaf-first build order, a drift scan, a render
ladder (screenshot tests, the built app's window or ImageRenderer, compile-only), and Brief-by-default
output. It ships in assets/template/ and is copied almost verbatim.What changes from the iOS twin, because a Mac is not a big iPhone: a top-level screen is a sidebar case
plus its detail branch, not a pushed route; refresh is a toolbar button on Command-R (no pull to refresh);
the floors are keyboard, menu commands, tooltips, hover and window sizes instead of 44pt touch targets,
safe areas and haptics; the verify ladder has no simulator, signs the build so the sandbox is real, and
reads the entitlements back from the signature; and the raw-value harvest stays inside the pair (each
skill's Appendix A), while the macOS coverage parts of docs/design-system/mobile/ (the macOS column of
components.md and inventory.md, the macOS parts of patterns.md) are written the way the iOS twin
writes its iOS parts.
The biggest failure is inventing conventions the project does not use. So discovery reads real code, and nothing is written until the recipe is confirmed.
| what | value | |
|---|---|---|
REPO_ROOT | where the skills are installed | always <repo root>/.claude/skills/<name>/. Nested apps/*/.claude/skills is never loaded |
MACOS_ROOT | what the skills learn from | apps/desktop/macos (what macos-bootstrap makes in a monorepo) or . standalone; detected, never assumed |
Detect MACOS_ROOT by looking for apps/desktop/macos first, then a root project.yml whose app target
says platform: macOS (or a root *.xcodeproj building for macosx, a Project.swift with a macOS
destination), then any such spec up to four levels down. Never apps/mobile/ios: that is the iOS app,
and a pair generated against it is wrong in every field at once. More than one macOS app is a B2
question, never a silent pick. A repo with only an iOS app is not this skill's: say so and stop.
GATE B1 Discover read the target, fill the profile, run the verify commands once
GATE B2 Confirm show the profile, interview the gaps, get approval (stop and wait)
GATE B3 Generate copy the machine, fill the recipe, record the harvest, write the docs' macOS parts, self-verify
Hard block: write nothing into the target before B2 is approved: not .claude/skills/, not
.codex/, not docs/. Before B2 only reading, searching, and the probes discovery runs (each verify command once).
Whatever those probes leave (.build/, a generated .xcodeproj) is listed in the B2 recap. A re-run is no
exception: B1 snapshots into a temp file and evals/check.sh writes nothing; the Refresh rewrites the
installed snapshot only after B2 approval. In docs/ only the macOS coverage parts of
docs/design-system/mobile/ are written, each while its TODO(macos) line is there (generation guide
section 4): never the Android or iOS column, a shared part, tokens.md or migration.md, and never the
web docs/design-system/.
ls -d .claude/skills/macos-screen-creator .claude/skills/macos-component-checker 2>/dev/null
None exists: first run, continue. If either skill exists, stop and report before anything else: does it
still hold a SKILL.md.tpl or a {{ (never finished), what does its Appendix A provenance line say, and
does git status --porcelain .claude/skills/macos-screen-creator .claude/skills/macos-component-checker
show local edits (the strongest sign someone works in there by hand; a target that is not a git repo skips
this signal).
SKILL.md.tpl is still there):
say so, run the normal first-run copy for that one and Refresh the other, in every run mode.Otherwise ask, and wait (a blocking question, not a B2 batch item, because the wrong answer deletes work). Non-interactive or pre-approved (the B2 "Which run am I in?" table decides it here too): do not ask; take Refresh only, never Regenerate, and say so in the Brief.
| choice | what happens |
|---|---|
Refresh only (the default; the pair "works" when bash <this skill>/evals/check.sh <repo root> passes, and when it fails its FAIL lines are what the Refresh ports) | two directions, both required: re-measure the repo into the snapshot and Appendix A, and port the machine deltas the template gained since (evals/check.sh <target> diffs the machine half against the template). It goes through B2 like a first run: the recap lists the regions to rewrite and the deltas to port, then approval. Recipe in generation-guide.md "Re-run first" |
| Regenerate | full re-copy of both skills. Say that hand edits are lost, and confirm the tree is committed first |
| Stop | report the current state and exit |
PROJECT_ROOT=<repo root> SNAPSHOT_OUT=<scratch>/macos-context.md bash <this skill>/assets/template/scripts/update-skill-context.sh
(it calls scan-drift.sh beside it). Without SNAPSHOT_OUT it would write into this skill's own
directory. It gives targets, isolation per target, the sidebar enum and the detail switch's branches,
scenes and commands, the shared-UI inventory with use counts, same-named views in two targets, models,
clients, drift counts, entitlements against the APIs that need them, and the Scale table, so the reads
below start from facts. Then read project.yml / Project.swift and the Package.swift files it
points at.ds token with its use count; check one or two counts by hand). The counts are load-bearing: the
generated skill's one promotion rule (template section 5.2) and the checker's inventory-drift check
measure against them. Section 5's same-named views are duplicates already.absent / detected-thin /
detected; system colors alone are absent; a DesignSystem target that native-design-system-import
wrote for macOS uses the iOS file names) and the applied design (none / harvestable): run the
scans in references/design-harvest.md. Two or more files sharing a
raw value makes it harvestable. docs/design-system/mobile/ and the web docs/design-system/ are read
as brand inputs when present; B3 writes only the mobile folder's macOS coverage parts.DEVELOPER_DIR set when xcode-select
points at CommandLineTools and Xcode is installed, logs under MACOS_ROOT/.build/, never piped. The
build is signed the way the project's Debug configuration says, never CODE_SIGNING_ALLOWED=NO: the
sandbox entitlements only exist in a signature. Read them back with codesign -d --entitlements -.
Count tests from the xcresult. Take git status --porcelain before and after: a probe can rewrite a
tracked Package.resolved, and the difference goes into the B2 recap. Install nothing to make a command
pass. No Xcode: run the reduced ladder (gate4-recipes "Without Xcode") and record the Xcode rows as not
run; a package with #Preview does not build there at all, which is itself a row.detected (with file:line), uncertain (2 or 3 candidates seen),
assumed (no evidence and a real choice), or N/A (nothing to decide). Keep Findings (defects:
wrong, not conventional) in a separate list: never fix them, never copy them.Stop when every field is filled and every convention has a citation. The inventory lists shared UI, not every view in the app.
Three starting points, each with its own provenance sentence (generation guide, {{RECIPE_PROVENANCE}}):
detected wherever code shows them.macos-bootstrap seed: one screen with its model, client and test in AppFeature,
registered as a SidebarItem case with its RootView detail branch, a Command-R toolbar refresh, the
sandbox with the network entitlement, and a DesignSystem target only if a design-system import wrote
one): that screen is real code, so its model shape, DI, client, fake, test style, sidebar registration
and refresh are detected; everything no code demonstrates (drill-down, failed and empty states, DTO
decoding, tokens or their use on a screen, localization, the preview form) comes from
references/macos-baseline.md as assumed.assumed from the
baseline.assumed fields are interviewed at B2 with the baseline first. Quote whether each default is house
(what macos-bootstrap scaffolds) or a best-practice fill; never present a fill as observed. The
generated Appendix A says assumed and why, never a pointer into the baseline.
Not the house shape: a TabView window, a single-pane utility, a MenuBarExtra-only app, a TCA app,
or a Tuist workspace still gets the portable machine (gates, reuse scan, leaf-first order, drift scan,
render ladder). Say at B2 which machine rules change meaning (a menu bar app's "sidebar case" is a menu
section; a TCA reducer plays the model's role) and write Appendix A in the project's own vocabulary. A Mac
Catalyst or "Designed for iPad" app is an iOS app: offer ios-screen-creator-bootstrap and stop. An
AppKit-only app: say the generated skill would fight it, and offer to stop.
detected fields: one compact table (field, value, file:line). Not interviewed.uncertain / assumed fields: one multiple-choice question each, first option the recommended
default (labelled), plus one line on why it is undetermined. Where a structured question tool exists
(AskUserQuestion), batch up to 4 fields per call; otherwise ask the same numbered questions in plain
text.Which run am I in? Decide mechanically, before asking anything:
| test | you are | what to do |
|---|---|---|
| a human is there to answer and the prompt did not pre-approve | interactive | ask the batched questions, then stop and wait. Write nothing |
| nobody is there to answer (headless, cron, subagent), or a question comes back with nothing usable | non-interactive | do not ask, do not stop: take every recommended default, tag it assumed, generate, list every auto-decision in the Brief |
| the prompt already granted approval ("기본값으로 진행해", "all defaults, go", "질문 없이") | pre-approved | same as non-interactive |
Ending a non-interactive run on a question is a failure, not caution: nobody answers, and the run produces no skill. Non-interactive means no human present, not "this runtime lacks a question tool". One exception to taking defaults: in a non-interactive run a contrast replacement question resolves to the passing token the code already defines for that role, or to "leave it unset" when there is none (design-harvest.md), because a new color the team lives with is not a default to take alone.
The recap always surfaces:
docs/design-system/mobile/ seeded from the template or present (one seeded before the
macOS column gets the column added), which macOS parts still hold TODO(macos) and get filled, and
which keep their marker and why.#F2F5FA in 2 files proposed as Color.dsSurfaceSecondary)..secondary or system red for
body text: on a Mac they measure 3.95:1 and 3.57:1 on the white window background), and the mandatory
"leave it unset" option. A token with no value in code stays a note for the first real surface.#Preview (needs Xcode) or PreviewProvider (builds
with the Command Line Tools too)..codex/skills link when Codex is present.git status --porcelain difference across the probes (.build/ logs, a
generated .xcodeproj, a rewritten Package.resolved).MACOS_ROOT the pair is for, if discovery found more than one.Then show the final recap and ask for the go-ahead. Interactive only: wait for an explicit approval ("진행해", "go"); "shall I generate?" is a question, not an answer.
Follow references/generation-guide.md; in short:
assets/template/ to <repo root>/.claude/skills/macos-screen-creator/ and
assets/template-component-checker/SKILL.md.tpl to
<repo root>/.claude/skills/macos-component-checker/, keeping the .tpl names. Use cp, never
Read-then-Write. On Refresh only, copy only a member B1.0 found missing or unfinished.MACOS_ROOT_FIXED, DS_DIRS, FOUNDATION_TARGETS,
ROOT_TARGETS, EXEMPT), then run the installed snapshot: the slots quote its sections..tpl files from the same recipe, in this
project's vocabulary, the harvest included (the token line in the screen creator, the backlog in the
checker). Every Appendix A sentence is cited (file:line) or tagged assumed; measurements carry the
snapshot row they expire against; Findings get their own section. Only then rename each
SKILL.md.tpl to SKILL.md: a half-filled skill never appears in a session.docs/design-system/mobile/ from
the template when it is absent, then fill each macOS part still holding TODO(macos) from evidence
and delete its line; a filled part gets a proposed diff in the Brief, never an overwrite..codex/ exists or codex is on PATH, mkdir -p .codex && ln -sfn ../.claude/skills .codex/skills.bash <this skill>/evals/check.sh <repo root> for the
mechanical half, then the judgement checklist in the generation guide section 6.Report the Brief (generation guide section 7): both skill paths, conventions tuned to, every assumed
field and deferred decision, the harvest numbers and backlog size (input to macos-component-checker),
the observed verify table with failing or not-run commands as preconditions, the render rung with its
condition, Findings, the macOS docs parts filled (and the folder seeded or not), and every file written
outside .claude/skills/.
<repo root>/
└── .claude/skills/
├── macos-screen-creator/
│ ├── SKILL.md machine + Appendix A (token line, sandbox, Findings)
│ ├── scripts/update-skill-context.sh snapshot (tailoring block only)
│ ├── scripts/scan-drift.sh drift report: RULE<TAB>path:line<TAB>snippet, "# total N"
│ └── assets/
│ ├── codebase-context.md written by the snapshot
│ ├── plan-format.md copied verbatim: the detailed Gate 2
│ ├── gate4-recipes.md copied verbatim: running a command, render rungs
│ ├── ui-defaults.md copied verbatim
│ └── visual-defect-checklist.md copied verbatim
└── macos-component-checker/
└── SKILL.md audit machine + Appendix A (the design backlog); reuses the scripts above
docs/design-system/mobile/ seeded from the template if absent; only the macOS parts written
├── components.md macOS column, macOS rows of the two lists below it
├── inventory.md macOS column statuses
└── patterns.md macOS column of Screen states, the `### macOS` subsections
macos-bootstrap -> macos-screen-creator-bootstrap -> macos-screen-creator (build screens)
(scaffold) (this skill) macos-component-checker (audit)
native-design-system-import: references to tokens, writes the DesignSystem code
feature-builder / spec-implementer: dispatch macos-screen-creator for tasks classified `macos`
macos-bootstrap's shape (XcodeGen, Packages/ with
Core / AppFeature / AppFeatureTests, a SidebarItem plus RootView split view, App Sandbox with
the network entitlement, no DesignSystem) is the expected discovery result; if the repo differs, follow
the repo.native-design-system-import, not here. This skill documents what the
code already does and proposes names; the generated screen creator builds components one real screen
at a time.macos-screen-creator speaks the orchestrator contract: plan round ("GATE 1-2 only"),
build round ("GATE 1-2 are done"), and an optional API contract from a preceding backend task.assets/template-component-checker/SKILL.md.tpl (opens in a new tab)assets/template/SKILL.md.tpl (opens in a new tab)assets/template/assets/gate4-recipes.md (opens in a new tab)assets/template/assets/plan-format.md (opens in a new tab)assets/template/assets/ui-defaults.md (opens in a new tab)assets/template/assets/visual-defect-checklist.md (opens in a new tab)assets/template/scripts/scan-drift.sh (opens in a new tab)assets/template/scripts/update-skill-context.sh (opens in a new tab)evals/behavior.sh (opens in a new tab)evals/check-template.sh (opens in a new tab)evals/check.sh (opens in a new tab)evals/fixtures/macos-sandbox.sh (opens in a new tab)evals/trigger-eval.json (opens in a new tab)references/design-harvest.md (opens in a new tab)references/discovery-checklist.md (opens in a new tab)references/generation-guide.md (opens in a new tab)references/macos-baseline.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/mobile:macos-screen-creator-bootstrapfrom mobile
npx claudepluginhub siu9068/ggyul-skills --plugin mobileOther plugins' skills for the same job
10 skills in this plugin
/android-bootstrapScaffolds a native Android app (Kotlin, Compose, AGP 9) from zero, standalone or apps/mobile/android in a monorepo. Not for iOS. House convention: Gradle 9 + version catalog, Compose Material3, Navigation 3, Hilt/KSP, Retrofit + kotlinx.serialization, Room + DataStore, ViewModel + StateFlow, JUnit/Turbine, ktlint, a seeded /ping status screen. Use when the user wants to start, set up or scaffold a new Android or Kotlin app: "안드로이드 앱 세팅해줘", "코틀린 컴포즈 프로젝트 만들어줘", "apps/mobile/android 만들어줘", "bootstrap an Android app", "set up a Jetpack Compose project in our monorepo". Do NOT use for: an iOS or Swift app (ios-bootstrap), a whole project or two or more bootstrap legs in one ask like backend + web + mobile (project-setup), adding a screen or feature to an existing Android app (android-screen-creator) or generating that skill (android-screen-creator-bootstrap), a theme from design references (native-design-system-import), React Native, Flutter or Kotlin Multiplatform, or a Next.js web frontend (nextjs-bootstrap)./android-screen-creator-bootstrapGenerates an Android repo's own android-screen-creator + android-component-checker pair from its real Compose code. Not for scaffolding. Android twin of screen-creator-bootstrap: discovers THIS Kotlin + Compose repo's conventions (modules, Nav3 or Nav2, Hilt, ViewModel and UiState, stateful/stateless split, Retrofit DTOs, theme, shared composables, tests, Gradle verify chain) and welds them into a gated screen builder and a composable auditor, harvesting design hardcoded in Kotlin (Color(0x..), raw dp) into the Android sections of docs/design-system/mobile/. Use for "안드로이드 화면 생성 스킬 이 레포에 맞게 만들어줘", "set up android-screen-creator here", "컴포즈 컴포넌트 공통화 스킬 만들어줘". Do NOT use to scaffold an app (android-bootstrap), for Next.js (screen-creator-bootstrap) or iOS (ios-screen-creator-bootstrap), to import a design reference (native-design-system-import, design-system-import), for a whole new project (project-setup), to build a screen now (the generated android-screen-creator), or to edit skills (skill-ops).