ios-design-feature
Skill3 starsChanged 7 months agoMITArchived repositoryView on GitHub
Design and implement a single feature in an iOS project that has an established design DNA. Use when the user wants to add a new screen, new view, new flow, new feature, or new functionality to an existing iOS app initialized via ios-design:init. Produces a single HTML prototype in the approved DNA, gets user approval, then implements in SwiftUI per the design system tokens.
In this repository3 other files it gives its agents.
- ios-design-initSkill
- ios-designSkill
- ios-design-tweakSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. About 0 are common, 10 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Add a feature to an existing iOS project, conformant to its established DNA.
- Very specific: line 12
Check <project>/.claude/state/ios-design-feature-introduced.flag.
- Very specific: line 40
Read <project>/.design/design-system.json — fail with friendly error if missing ("init önce çalıştırılmalı")
- Very specific: line 46
If user's feature description is vague (e.g., "auth flow" without specifying screens): invoke superpowers:brainstorming to clarify scope.
- Very specific: line 52
Use templates/prototype-shell.html as base
- Very specific: line 55
Every motion declaration MUST have a sibling <!-- swiftui: ...
- Very specific: line 59
Start local HTTP server: ${CLAUDE_PLUGIN_ROOT}/scripts/serve-prototypes.sh (it reuses an existing server if one is running for this project)
- Very specific: line 62
After approval (Step 5), the server can stay running for subsequent feature iterations or be stopped with …
- Very specific: line 64
If playwright NOT available: print the file:// path and ask the user to open it manually.
- Distinctive: line 73
If tweak: iterate on the prototype until approved.
- Distinctive: line 83
Write failing test → minimal implementation → passing test → commit per its protocol
- Distinctive: line 90
Read the corresponding section of the prototype HTML
- Distinctive: line 93
Use the architecture pattern from Stack Decisions (e.g., MVVM + Observable services)
- Distinctive: line 103
All tests pass (if logic layer was TDD'd)
- Distinctive: line 106
No hardcoded magic numbers (search for raw color hexes, raw point values)
- Distinctive: line 119
NEVER implement before showing the prototype
- Distinctive: line 120
NEVER skip motion-fidelity self-test
- Very specific: line 121
NEVER hardcode tokens (always reference design-system.json values)
- Distinctive: line 122
NEVER deviate from DNA without explicit user permission
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ios-design:feature
Add a feature to an existing iOS project, conformant to its established DNA.
Step 1: Capability card (first activation per session)
Check <project>/.claude/state/ios-design-feature-introduced.flag. If absent, print:
🎨 ios-design:feature aktif
─────────────────────────────────────
Ne yaparım:
• Onaylanmış DNA içinde feature için interaktif HTML prototip üretirim
• Kullanıcı onayı sonrası SwiftUI implementation yazarım (design-system.json'a uyumlu)
• Motion-fidelity rules'u enforce ederim (CSS<>SwiftUI 1:1)
Kullandığım superpowers:
• brainstorming → feature scope belirsizse
• writing-plans → >3 adımlık feature için
• test-driven-development → logic katmanı için (UI hariç)
• simplify → her implementation sonrası KISS pass
• verification-before-completion → "tamamlandı" demeden önce
Şu an okudum:
✓ .design/design-system.json (dna: <id>, v<version>)
✓ .design/DESIGN_DNA.md
Bekliyorum: feature ne, hangi ekran/akış?Then create the flag.
Step 2: Read DNA context
REQUIRED before any other action:
- Read
<project>/.design/design-system.json— fail with friendly error if missing ("init önce çalıştırılmalı") - Read
<project>/.design/DESIGN_DNA.md - Hold both in context for all subsequent decisions
Step 3: Scope check
If user's feature description is vague (e.g., "auth flow" without specifying screens): invoke superpowers:brainstorming to clarify scope.
If clear: proceed.
Step 4: Generate single prototype
- Use
templates/prototype-shell.htmlas base - Inject design tokens from
design-system.json - Build the feature's primary screen + key transitions per DNA's motion signature (from
motionfield in design-system.json) - Every motion declaration MUST have a sibling
<!-- swiftui: ... -->comment perreferences/motion-fidelity-rules.md - Self-test: scan output against motion-fidelity-rules whitelist; revise if violations
- Write to
<project>/.design/prototypes/feature-<feature-name>.html Open via playwright if available:
- Start local HTTP server:
${CLAUDE_PLUGIN_ROOT}/scripts/serve-prototypes.sh(it reuses an existing server if one is running for this project) - Capture the printed base URL
- Navigate:
browser_navigate <baseUrl>/feature-<feature-name>.html - After approval (Step 5), the server can stay running for subsequent feature iterations or be stopped with
${CLAUDE_PLUGIN_ROOT}/scripts/stop-prototype-server.sh
If playwright NOT available: print the
file://path and ask the user to open it manually.Why server, not file://: Playwright MCP blocks
file://for security; HTTP server unblocks automation.- Start local HTTP server:
Step 5: User approval gate
Ask:
"Prototip hazır:
<path>.<Brief description of motion behavior to look for>. Onaylıyor musun, yoksa tweak mı?"
If tweak: iterate on the prototype until approved.
Step 6: Implementation planning
Estimate implementation step count. If > 3: invoke superpowers:writing-plans to produce a feature implementation plan.
Step 7: TDD for non-UI logic
For each non-UI file (services, ViewModels, business rules, data layer):
- Invoke
superpowers:test-driven-development - Write failing test → minimal implementation → passing test → commit per its protocol
UI/View code is NOT TDD'd — SwiftUI views are implemented directly per the prototype.
Step 8: SwiftUI implementation
For each view in the feature:
- Read the corresponding section of the prototype HTML
- Map every
<!-- swiftui: ... -->comment to its SwiftUI primitive - Reference design-system.json tokens — NEVER hardcode magic numbers (colors, spacing, motion timings)
- Use the architecture pattern from Stack Decisions (e.g., MVVM + Observable services)
- For Liquid Glass primitives on iOS<26 targets: use
#available(iOS 26)with the documented fallback
Step 9: Simplify pass
Invoke superpowers:simplify. Apply suggested KISS reductions.
Step 10: Verification gate
Invoke superpowers:verification-before-completion. Confirm:
- All tests pass (if logic layer was TDD'd)
- Project compiles
- Generated SwiftUI matches the prototype's visual structure
- No hardcoded magic numbers (search for raw color hexes, raw point values)
- All
<!-- swiftui: -->comment annotations were honored
Step 11: Commit
cd <project>
git add <feature-files> .design/prototypes/feature-<name>.html
git commit -m "feat: <feature-name>"Boundaries
- NEVER implement before showing the prototype
- NEVER skip motion-fidelity self-test
- NEVER hardcode tokens (always reference design-system.json values)
- NEVER deviate from DNA without explicit user permission
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

