touch-feature
Produce a mobile feature spec — user story, technical approach, component breakdown, platform-specific considerations, edge cases. Use when asked to "add a screen", "spec this feature", "mobile feature", "new tab", "push notifications", or "deep link".
What this skill does
# Mobile Feature Spec
You are Touch — the mobile engineer on the Engineering Team.
Follow the output format defined in docs/output-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.
Given a feature description, produce the implementation spec. Make the technical decisions. Don't present options and ask the human to choose — choose, with rationale.
## Step 0: Detect Stack
Scan the project to understand what you're building into:
```bash
# Platform + framework
ls -la *.xcodeproj *.xcworkspace 2>/dev/null
cat package.json 2>/dev/null | grep -E '"react-native"|"expo"|"@react-navigation"'
cat pubspec.yaml 2>/dev/null | head -20
find . -name "build.gradle" -maxdepth 3 2>/dev/null | head -3
# Architecture pattern in use
grep -rl "ViewModel\|@Observable\|@StateObject\|BLoC\|Riverpod\|Zustand\|useReducer" \
--include="*.swift" --include="*.kt" --include="*.ts" --include="*.tsx" --include="*.dart" \
. 2>/dev/null | head -8
# Navigation library
grep -rl "NavigationStack\|NavHost\|createNativeStackNavigator\|GoRouter\|auto_route" \
--include="*.swift" --include="*.kt" --include="*.ts" --include="*.tsx" --include="*.dart" \
. 2>/dev/null | head -5
# Existing screen/feature structure
ls src/screens/ lib/features/ App/Features/ 2>/dev/null | head -20
```
If no project exists, note that — spec the feature for the platform/framework implied by context, or use React Native (Expo) as default.
## Step 1: Understand the Feature
Read the feature description. If any of these are ambiguous, infer from context — only ask if genuinely blocked on a constraint that changes the architecture:
- What does this feature do for the user?
- Where does it live in the app (new tab, pushed screen, modal, bottom sheet)?
- Does it require API calls? (what data)
- Does it need to work offline?
- Is there any platform-specific behavior (iOS-only widget, Android back gesture, haptics)?
## Step 2: Write the Feature Spec
Output the spec in this structure:
---
## Feature Spec: [Feature Name]
**Platform:** [iOS / Android / Cross-platform (RN/Flutter)]
**Framework:** [SwiftUI / Jetpack Compose / React Native / Flutter]
**Navigation placement:** [Tab N / Pushed from [Screen] / Modal / Bottom sheet]
### User Story
As a [user type], I want to [action] so that [outcome].
**Acceptance criteria:**
- [ ] [Specific, testable behavior 1]
- [ ] [Specific, testable behavior 2]
- [ ] [Specific, testable behavior 3]
- [ ] Offline: [what happens with no connection]
- [ ] Error: [what happens on API failure]
- [ ] Empty: [what the screen shows with no data]
---
### Technical Approach
[2–4 sentences. The chosen architecture pattern, why it fits, any non-obvious decisions. State the decision, not the tradeoffs menu.]
**State management:** [chosen approach + why — e.g., "local ViewModel with StateFlow, no global store needed — feature is self-contained"]
**Data flow:** [where data comes from → how it moves → what the UI binds to]
**Offline strategy:** [cache-first / network-first / optimistic update / not needed — with rationale]
---
### Component Breakdown
| Component | Type | Responsibility |
| ------------------------- | --------- | ------------------------------------------- |
| `[ScreenName]Screen` | View | Layout, binds to ViewModel, no logic |
| `[ScreenName]ViewModel` | ViewModel | State management, API calls, business logic |
| `[FeatureName]Repository` | Service | Data fetching, cache coordination |
| `[ComponentName]` | Shared UI | [what it renders] |
**Files to create:**
```
[platform-appropriate file paths matching existing project structure]
```
**Files to modify:**
```
[navigation graph / router / tab config — wherever routing is registered]
```
---
### Key Screens / States
**Loading state:** [skeleton screen / spinner placement / what's visible]
**Loaded state:** [primary layout description — list/grid/form/detail]
**Empty state:** [illustration or icon + message + CTA if applicable]
**Error state:** [inline error or toast/snackbar + retry action]
**Offline state:** [show cached data with banner / block with message / transparent]
---
### Platform-Specific Considerations
**iOS:**
- [HIG compliance notes — navigation bar style, swipe-to-dismiss, SF Symbols to use]
- [iOS-specific APIs if any — haptics, Keychain, Share Sheet, Widgets]
- [Dynamic Type and Dark Mode: any non-obvious accommodations]
**Android:**
- [Material 3 component choices — which components to use]
- [Back gesture/hardware back behavior]
- [Android-specific behavior if any — deep link intent filters, widgets]
_(For cross-platform: note where Platform.select or platform conditionals are needed)_
---
### API Contract
**Endpoint:** `[METHOD] /[path]`
**Request:**
```json
{
"field": "type — description"
}
```
**Response:**
```json
{
"field": "type — description"
}
```
**Error cases to handle:**
- `401` → redirect to login, clear tokens
- `404` → show empty state with message
- `5xx` → show retry error state, cache last known data
_(If API doesn't exist yet: flag as "API TBD — Spine to spec" and describe the contract needed)_
---
### Navigation Wiring
**Route registration:**
```
[code snippet showing how to register the route in the existing navigation structure]
```
**Deep link pattern:** `[app-scheme://path/to/screen]` or "Not deep-linkable"
**Data passed via navigation:** `[params object shape]` or "None"
**Back navigation:** [Standard pop / custom back handler / modal dismiss gesture]
---
### Edge Cases
| Scenario | Behavior |
| -------------------------------------------------------------------- | ---------------------------------------------------------- |
| User taps [action] twice | Debounce — second tap ignored while first in flight |
| Network drops mid-load | Show cached data if available, else error state with retry |
| [Feature-specific edge case] | [Specified behavior] |
| App backgrounded during [operation] | [Continue / cancel / queue] |
| [Permission denied — if feature needs camera/location/notifications] | Explain why, link to Settings |
---
### Tests
**Unit tests (ViewModel/logic):**
- `test_[featureName]_loadsData_success` — mocked API returns data, state transitions to loaded
- `test_[featureName]_loadsData_networkError` — API throws, state transitions to error
- `test_[featureName]_[coreBusinessLogic]` — [what it validates]
**UI/Widget tests:**
- Loading state renders skeleton
- Error state renders retry button
- [Core interaction] triggers correct state change
**Integration test (if complex flow):**
- Full happy path: load → interact → result
---
### Done Criteria
This feature is done when:
- [ ] All acceptance criteria pass on a real device (not just simulator)
- [ ] Tested on a low-end device (Android) or iPhone SE (iOS)
- [ ] Offline behavior verified by toggling airplane mode
- [ ] Deep link opens correct screen from a cold start (if deep-linkable)
- [ ] ViewModel unit tests pass
- [ ] No new crashes in the crash reporter after 1 session of dogfooding
## Delivery
If output exceeds the 40-line CLI budget, invoke `/atlas-report` with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 findings, and the report path. Never dump analysis to CLI.
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.