prompts!
Browse
Back to prompts
Coding
Any model

Extract and Simplify Component

Split an oversized component into focused pieces without behavior change.

Prompt
Copy the prompt, then replace the placeholders with your own context.
This component is too large. Refactor without changing behavior. Steps: 1. List distinct responsibilities in the current file 2. Propose extraction boundaries (hooks, subcomponents, utils) 3. Keep public props stable unless noted 4. Run/tests or describe manual checks for parity Prefer composition over prop drilling. Match existing file and naming conventions.

Related prompts

More prompts with similar tags or categories.

Coding
Cursor
Implement the thinnest end-to-end slice of a feature to validate the approach.
396 copies

Implement a vertical slice of this feature — thinnest path end-to-end. Rules: - One happy path only — no edge cases yet unless trivial - Real persistence and UI wire-up, not mocks (unless spike labeled) - Tests for the happy path - List follow-up slices explicitly Goal: learn fast with something demoable today.

mvp
workflow
by prompts!
View
Coding
Cursor
Build a concise AGENTS.md-style context file for coding agents working in this repo.
451 copies

Explore this repository and draft an AGENTS.md for coding agents. Include only durable facts: - What the product does - Stack and key directories - How to run dev, test, lint - Database/auth conventions - What not to do (destructive migrations, etc.) Exclude secrets and one-off tickets. Keep under 80 lines. Use bullet points.

agents
documentation
cursor
by prompts!
View
Design
Any model
Find hardcoded colors/spacing and map them to design tokens.
158 copies

Audit this UI for design system consistency. Find: - Hardcoded colors, spacing, radii, typography - One-off components duplicating existing primitives - Dark mode gaps Propose token mappings using existing theme variables. Minimal visual change unless fixing clear bugs.

design system
ui
by prompts!
View