Component Scaffold
Both tools generate components that match project conventions when pointed to a reference component. Cursor previews the component inline. Claude Code can also create the file structure and update exports automatically.
Create a new {{component_type}} component called {{component_name}} for a {{framework}} project. Purpose: {{component_purpose}} Location: {{target_directory}} Requirements: - Props interface with JSDoc descriptions for each prop - Match existing component patterns in the project (check {{reference_component}} for style) - Include: loading state, error state, empty state - Responsive: mobile-first, works from 320px to 1440px - Accessible: proper ARIA labels, keyboard navigation, focus management - Use {{styling_approach}} for styling (match project conventions) File structure: - {{component_name}}.tsx — main component - Types inline if simple, separate {{component_name}}.types.ts if >5 props - Export from directory index if barrel exports exist Do not: - Add features not specified in the requirements - Install new dependencies without asking - Use inline styles when the project uses {{styling_approach}} After creating the component, show a usage example with realistic props.
Variables to customize
Why this prompt works
Both tools generate components that match project conventions when pointed to a reference component. Cursor previews the component inline. Claude Code can also create the file structure and update exports automatically.
What you get when you save this prompt
Your workspace unlocks powerful tools to iterate and improve.
AI Optimization
One-click improvement with structure analysis and pattern suggestions.
Version History
Track every edit. Compare versions side-by-side with word-level diffs.
Folders & Tags
Organize your library with nested folders, tags, and drag-and-drop.
$ npm i -g @promptingbox/mcpUse Everywhere
Access prompts from Claude, Cursor, ChatGPT & more via MCP integration.
Your prompts, organized
Save, version, and access your best prompts across ChatGPT, Claude, Cursor, and more.