AgentSkillsCN

design

依据设计模式,为Money Manager应用生成iOS界面屏幕与组件。适用于移动应用的UI组件、屏幕或功能开发,或当用户提及设计、样式、玻璃效果,以及专属于iOS的特性时,均可使用此技能。

SKILL.md
--- frontmatter
name: design
description: Generate iOS screens and components for Money Manager following design patterns. Use when building UI components, screens, or features for the mobile app, or when the user mentions design, styling, glass effects, or iOS-specific features.

Design Skill

Generate iOS screens and components following Money Manager design patterns.

Before You Start

Read these codebase files to understand the design system:

  • apps/mobile/src/global.css - Color tokens and theme variables
  • apps/mobile/src/config/interop.ts - Base styled components
  • apps/mobile/src/utils/motion.ts - Animation utilities

Reference Files (Read When Needed)

When you need...Read this file
Component/Screen templatescomponent-patterns.md
iOS features (Glass, Symbols, Haptics, SwiftUI)ios-enhancements.md
Animation guidance, depth, avoiding generic AI aestheticsanti-patterns.md
Database schemapackages/db/src/schema.ts
Project conventionsCLAUDE.md

Workflow

1. Understand the Request

Identify the type of work:

  • Component: Reusable UI element → components/
  • Screen: Full route → app/
  • Feature: Multiple components + screens

Ask clarifying questions if ambiguous.

2. Research Existing Patterns

  • Search for similar components in apps/mobile/src/components/
  • Read 2-3 similar components to understand patterns
  • Identify which base components to reuse (StyledLeanView, StyledLeanText, ScalePressable)

3. Load Relevant References

Based on task type, read the appropriate reference file from this skill folder:

  • Building a component/screen? → component-patterns.md
  • Adding iOS features? → ios-enhancements.md
  • Need animation/depth guidance? → anti-patterns.md

4. Implement with Critical Conventions (MUST FOLLOW)

RuleExample
numberOfLines requires ellipsizeMode<StyledLeanText numberOfLines={1} ellipsizeMode="tail">
Currency uses font-nunito-bold<StyledLeanText className="font-nunito-bold">{formatter.format(amount)}</StyledLeanText>
Rounded elements need borderCurvestyle={{ borderCurve: "continuous" }}
Interactive elements need a11yaccessibilityLabel, accessibilityRole="button"

5. Validate

bash
cd apps/mobile && pnpm type-check
cd apps/mobile && pnpm lint

Checklist:

  • Design system applied? (colors, typography, spacing)
  • iOS enhancements used? (glass, symbols, haptics)
  • Critical conventions followed? (borderCurve, ellipsizeMode, currency font)
  • Accessibility included?

Design System Quick Reference

Colors (Semantic)

PurposeBackgroundText
Primarybg-backgroundtext-foreground
Secondarybg-cardtext-foreground-secondary
Mutedbg-mutedtext-foreground-muted
Actionbg-primarytext-primary-foreground

Typography

UseClass
UI textfont-satoshi, font-satoshi-medium, font-satoshi-bold
Numbers/Currencyfont-nunito-bold
Monospacefont-azeret-mono-regular

Rounded Corners

ElementClass
Cardsrounded-2xl (16px)
Buttonsrounded-xl (12px)
Pillsrounded-full

Always add style={{ borderCurve: "continuous" }}


Remember

  • Be Distinctive: Avoid generic "AI slop"—read anti-patterns.md
  • Be Proactive: Apply iOS enhancements—read ios-enhancements.md
  • Be Orchestrated: Focus on high-impact animation moments, not scattered micro-interactions
  • Be Layered: Create depth through glass effects and z-layering

The test: Would a human designer be proud of this, or does it look AI-generated?