feat: Complete fleet — 94 skills across 10+ domains
Pulled ALL skills from 15 source repositories: - anthropics/skills: 16 (docs, design, MCP, testing) - obra/superpowers: 14 (TDD, debugging, agents, planning) - coreyhaines31/marketingskills: 25 (marketing, CRO, SEO, growth) - better-auth/skills: 5 (auth patterns) - vercel-labs/agent-skills: 5 (React, design, Vercel) - antfu/skills: 16 (Vue, Vite, Vitest, pnpm, Turborepo) - Plus 13 individual skills from various repos Mosaic Stack is not limited to coding — the Orchestrator and subagents serve coding, business, design, marketing, writing, logistics, analysis, and more. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
---
|
||||
title: Import from Design System Folder
|
||||
impact: LOW
|
||||
impactDescription: enables global changes and easy refactoring
|
||||
tags: imports, architecture, design-system
|
||||
---
|
||||
|
||||
## Import from Design System Folder
|
||||
|
||||
Re-export dependencies from a design system folder. App code imports from there,
|
||||
not directly from packages. This enables global changes and easy refactoring.
|
||||
|
||||
**Incorrect (imports directly from package):**
|
||||
|
||||
```tsx
|
||||
import { View, Text } from 'react-native'
|
||||
import { Button } from '@ui/button'
|
||||
|
||||
function Profile() {
|
||||
return (
|
||||
<View>
|
||||
<Text>Hello</Text>
|
||||
<Button>Save</Button>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
```
|
||||
|
||||
**Correct (imports from design system):**
|
||||
|
||||
```tsx
|
||||
// components/view.tsx
|
||||
import { View as RNView } from 'react-native'
|
||||
|
||||
// ideal: pick the props you will actually use to control implementation
|
||||
export function View(
|
||||
props: Pick<React.ComponentProps<typeof RNView>, 'style' | 'children'>
|
||||
) {
|
||||
return <RNView {...props} />
|
||||
}
|
||||
```
|
||||
|
||||
```tsx
|
||||
// components/text.tsx
|
||||
export { Text } from 'react-native'
|
||||
```
|
||||
|
||||
```tsx
|
||||
// components/button.tsx
|
||||
export { Button } from '@ui/button'
|
||||
```
|
||||
|
||||
```tsx
|
||||
import { View } from '@/components/view'
|
||||
import { Text } from '@/components/text'
|
||||
import { Button } from '@/components/button'
|
||||
|
||||
function Profile() {
|
||||
return (
|
||||
<View>
|
||||
<Text>Hello</Text>
|
||||
<Button>Save</Button>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
```
|
||||
|
||||
Start by simply re-exporting. Customize later without changing app code.
|
||||
Reference in New Issue
Block a user