.claude/skills/rugged-utility/SKILL.md
LivestockAI's design philosophy for field-ready, farmer-friendly UI
npx skillsauth add captjay98/gemini-livestockai Rugged UtilityInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
LivestockAI is built for farmers in the field - often on dusty phones with cracked screens, under bright sunlight, with dirty hands. Every UI decision prioritizes usability over aesthetics.
All interactive elements MUST meet minimum sizes:
| Element | Minimum Size | Rationale | | ----------------- | --------------- | --------------------- | | Buttons | 48px height | Fat finger friendly | | Action Grid items | 64px × 64px | Field use with gloves | | Form inputs | 44px height | Easy tap targets | | List items | 48px row height | Scrollable lists | | Icon buttons | 44px × 44px | Toolbar actions |
| Color | CSS Variable | Usage |
| ------------ | --------------- | ----------------------------------- |
| Forest Green | --success | Growth, revenue, healthy batches |
| Amber | --warning | Alerts, low stock, attention needed |
| Red | --destructive | Mortality, losses, critical issues |
| Neutral | --muted | Data, secondary information |
| Primary | --primary | Actions, CTAs (Emerald brand) |
Color-coded status at a glance:
┌─────────────────────────────────────────────┐
│ 🟢 ON TRACK │
│ Mortality: 2.1% • FCR: 1.8 • Weight: 1.2kg │
└─────────────────────────────────────────────┘
States:
High-frequency actions as large touch targets:
┌──────────┬──────────┬──────────┐
│ 🍗 │ 💀 │ 💰 │
│ Feed │ Death │ Sale │
├──────────┼──────────┼──────────┤
│ ⚖️ │ 💉 │ 💧 │
│ Weigh │ Vax │ Water │
└──────────┴──────────┴──────────┘
| Element | Size | Weight | Usage | | ---------- | ---- | -------- | ------------------- | | Page title | 24px | Bold | Route headers | | Card title | 18px | Semibold | Card headers | | Body | 16px | Regular | Content | | Caption | 14px | Regular | Secondary text | | Label | 12px | Medium | Form labels, badges |
┌─────────────────────────────────────────────┐
│ ⚠️ Failed to save feed record │
│ │
│ Check your connection and try again. │
│ │
│ [Retry] [Save Offline] │
└─────────────────────────────────────────────┘
batch-centric-design - Batch-focused UI patternsoffline-first - Offline indicatorsdata-ai
Input validation patterns with Zod in LivestockAI server functions
testing
Unit testing patterns with Vitest in LivestockAI
tools
Server → Service → Repository pattern for feature organization
data-ai
Server-side rendering and server functions with TanStack Start in LivestockAI