.claude/skills/enhance-prompt/SKILL.md
Transforms vague UI/feature requests into structured, optimized prompts with design system awareness. Use when generating prompts for UI implementation, feature specification, or design-to-code translation. Triggers on tasks requiring prompt refinement, UI specification, or design system integration.
npx skillsauth add oimiragieo/agent-studio enhance-promptInstall 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.
Transform vague UI and feature requests into structured, optimized prompts with design system awareness. Based on the Google Labs Stitch Skills prompt enhancement pipeline.
Use this skill when:
Analyze the raw request to identify:
Example:
Raw: "Add a settings page"
Assessment:
- Core: User preferences management interface
- Implicit: Navigation integration, form validation, save/cancel actions
- Audience: Authenticated users
- Interactions: View current settings, modify, save, receive confirmation
Look for a DESIGN.md or equivalent design system file in the project root or docs directory. Extract:
If no design system file exists, generate reasonable defaults based on the project's existing patterns (check tailwind.config.*, theme.*, or CSS custom properties).
Lookup order:
DESIGN.md in project rootdocs/design-system.mdtailwind.config.ts / tailwind.config.js theme sectionTransform the raw request by applying these enhancement layers:
Replace vague terms with specific component names and patterns:
| Vague Term | Specific Replacement | | --------------- | ------------------------------------------------------------------------- | | "nice" | Clean layout with consistent spacing, proper visual hierarchy | | "modern" | Card-based layout, rounded corners, subtle shadows, micro-interactions | | "responsive" | Mobile-first grid (1-col mobile, 2-col tablet, 3-col desktop) | | "fast" | Skeleton loading states, optimistic updates, prefetched data | | "user-friendly" | Clear labels, inline validation, helpful error messages, focus management | | "beautiful" | Design-system-compliant colors, balanced whitespace, typography scale | | "simple" | Single-column layout, minimal navigation, progressive disclosure | | "interactive" | Hover states, transitions, keyboard navigation, ARIA attributes |
Insert design system values into the specification:
Enhanced: "Use the primary color (--color-primary / colors.primary.500)
for the submit button. Apply spacing-4 (16px) between form fields.
Use the heading-2 typography preset for section titles."
Generate a structural layout for the page/component:
Page Layout:
Header: Breadcrumb navigation + page title
Body:
Sidebar (desktop only): Section navigation
Main Content:
Section 1: [Primary feature area]
Section 2: [Secondary feature area]
Section 3: [Related actions]
Footer: Save/Cancel actions (sticky on mobile)
Specify loading states, error states, empty states, and transitions:
Produce the enhanced prompt in this structured format:
## Enhanced Specification: [Feature Name]
### Objective
[1-2 sentences describing the precise goal]
### Design System Integration
- Colors: [specific tokens]
- Typography: [specific presets]
- Spacing: [specific scale values]
- Components: [reusable components to use]
### Layout Structure
[ASCII or markdown layout diagram]
### Component Breakdown
1. [Component name] - [purpose] - [key props/state]
2. [Component name] - [purpose] - [key props/state]
### Interaction States
- Loading: [description]
- Error: [description]
- Empty: [description]
- Success: [description]
### Accessibility Requirements
- Keyboard navigation: [specifics]
- Screen reader: [ARIA labels/roles]
- Focus management: [focus trap/restore behavior]
### Responsive Behavior
- Mobile (< 640px): [layout]
- Tablet (640-1024px): [layout]
- Desktop (> 1024px): [layout]
Raw Request: "Build a dashboard for our analytics"
Enhanced Output:
## Enhanced Specification: Analytics Dashboard
### Objective
Build a data visualization dashboard displaying key business metrics
with real-time updates, date range filtering, and exportable reports.
### Design System Integration
- Colors: --color-primary for active states, --color-success/warning/danger
for metric status indicators
- Typography: heading-1 for page title, heading-3 for card titles,
body-sm for metric labels
- Spacing: gap-6 between metric cards, padding-4 inside cards
- Components: Card, Select (date picker), Button, Badge, Skeleton
### Layout Structure
[Nav]
[Page Title + Date Range Selector + Export Button]
[KPI Card] [KPI Card] [KPI Card] [KPI Card] <- 4-col grid
[Line Chart (2/3 width)] [Pie Chart (1/3 width)] <- 2-col split
[Data Table (full width)] <- sortable, paginated
### Component Breakdown
1. KPICard - Displays single metric with trend indicator - { label, value, change, status }
2. DateRangeSelector - Preset ranges + custom date picker - { range, onRangeChange }
3. TrendChart - Line/area chart for time series data - { data, dateRange, metric }
4. DistributionChart - Pie/donut for categorical data - { data, metric }
5. MetricsTable - Sortable, paginated data table - { columns, data, sortBy, page }
### Interaction States
- Loading: Skeleton cards (pulse animation) matching final dimensions
- Error: Error banner with retry button, individual chart error boundaries
- Empty: "No data for selected range" with suggestion to expand range
- Success: Smooth number transitions (count-up animation) on data refresh
### Accessibility Requirements
- Keyboard navigation: Tab through cards, charts have data table alternatives
- Screen reader: Chart descriptions via aria-label, live region for metric updates
- Focus management: Date picker focus trap, return focus on close
### Responsive Behavior
- Mobile (< 640px): Single column, KPI cards stack vertically, charts full width
- Tablet (640-1024px): 2-col KPI grid, charts stack vertically
- Desktop (> 1024px): 4-col KPI grid, side-by-side charts
After using this skill, record learnings using MemoryRecord:
MemoryRecord({
type: 'pattern',
text: 'enhance-prompt: [describe what design system pattern or prompt structure worked well]',
area: 'frontend',
});
Write decisions to .claude/context/memory/decisions.md when choosing between design system approaches. Write issues to .claude/context/memory/issues.md when DESIGN.md is absent and fallback patterns were used.
tools
Comprehensive biosignal processing toolkit for analyzing physiological data including ECG, EEG, EDA, RSP, PPG, EMG, and EOG signals. Use this skill when processing cardiovascular signals, brain activity, electrodermal responses, respiratory patterns, muscle activity, or eye movements. Applicable for heart rate variability analysis, event-related potentials, complexity measures, autonomic nervous system assessment, psychophysiology research, and multi-modal physiological signal integration.
tools
Comprehensive toolkit for creating, analyzing, and visualizing complex networks and graphs in Python. Use when working with network/graph data structures, analyzing relationships between entities, computing graph algorithms (shortest paths, centrality, clustering), detecting communities, generating synthetic networks, or visualizing network topologies. Applicable to social networks, biological networks, transportation systems, citation networks, and any domain involving pairwise relationships.
data-ai
Molecular featurization for ML (100+ featurizers). ECFP, MACCS, descriptors, pretrained models (ChemBERTa), convert SMILES to features, for QSAR and molecular ML.
development
Run Python code in the cloud with serverless containers, GPUs, and autoscaling. Use when deploying ML models, running batch processing jobs, scheduling compute-intensive tasks, or serving APIs that require GPU acceleration or dynamic scaling.