ui
UI/UX patterns and rules
Install / Use
npx skills add Pranav-Karra-3301/tuckInstalls into whichever agent you are using.
Cursor Rules
Cursor IDE rules (v2)
Quality Score
Category
DesignSupported Platforms
Tags
Skill content
View source on GitHubdescription: UI/UX patterns and rules globs: ["src/ui//*.ts", "src/commands//*.ts"]
UI Rules
Color Palette
| Color | Usage | |-------|-------| | Cyan | Primary brand, headings, emphasis | | Green | Success states, confirmations | | Yellow | Warnings, modifications | | Red | Errors, deletions | | Dim/Gray | Secondary info, paths, hints |
Command Structure
Every command should follow this pattern:
prompts.intro('tuck commandname');
// ... work with spinners/progress ...
prompts.note("Run 'tuck next' to continue", 'Next step');
prompts.outro('Done!');
Spinners
Use for operations >100ms:
const spinner = prompts.spinner();
spinner.start('Processing files...');
try {
await doWork();
spinner.stop('Processed 5 files');
} catch (error) {
spinner.stop('Failed to process');
throw error;
}
Progress Feedback
For multi-step operations:
- Show what's being done
- Show progress (X of Y)
- Show completion status
prompts.log.step(`Syncing file ${i}/${total}: ${filename}`);
Confirmations
ALWAYS confirm destructive actions:
const confirmed = await prompts.confirm(
'Delete all backups?',
false // Default to NO (safe option)
);
if (!confirmed) {
prompts.cancel('Operation cancelled');
return;
}
Error Messages
Provide helpful, actionable errors:
// Good
throw new FileNotFoundError(path, {
suggestion: "Run 'tuck add' first to track this file"
});
// Bad
throw new Error('File not found');
Interactive Mode
Every command should support:
- Interactive mode (default) - prompts for input
- Non-interactive mode (--yes, --force) - for scripts
Next Steps
Always end successful operations with guidance:
prompts.note("Run 'tuck push' to upload changes", 'Next step');
Related Skills
ui-ux-pro-max-skill
129.5kAn AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
openpencil
6.0kThe world's first open-source AI-native vector design tool and the first to feature concurrent Agent Teams. Design-as-Code. Turn prompts into UI directly on the live canvas. A modern alternative to Pencil.
baoyu-design
4.1kRun Claude Design locally as an Agent Skill — Cursor, Claude Code & more. Produce polished UI mockups, prototypes, decks & wireframes as self-contained HTML, without claude.ai/design. Best with Opus or Claude.
design-extract
4.1kExtract any website's complete design system with one command. DTCG tokens, semantic+primitive+composite, MCP server for Claude Code/Cursor/Windsurf, multi-platform emitters (iOS SwiftUI, Android Compose, Flutter, WordPress), Tailwind v4, Figma variables, shadcn/ui, CSS health audit, WCAG remediatio…
Security Score
Audited on Jul 26, 2026
