Write a React custom hook called [useSomething] that [purpose, e.g. fetches data with caching / debounces input / tracks window size]. Use TypeScript, handle cleanup and errors, and include usage examples and tests.
Results for “reusable”
8 prompts
You are a Vue 3 developer. Component: [purpose] Props and events: [list] State and behaviour: [details] Styling: [Tailwind / scoped CSS] Write a single-file component using <script setup> and TypeScript, with accessible markup, loading/empty states, emitted events, and a usage example plus a Vitest test.
Vue component
Create a reusable Vue 3 component with the Composition API, props, events and accessibility.
Write a [Python / Node.js] script to transform data. Input format and sample: [paste] Desired output format and sample: [paste] Rules: [renames, filters, calculations, date formats] The script should read from a file, handle missing or malformed values, log problems, write the output file, and be easy to rerun. Includ…
Data transformation script
Convert, clean and reshape data between JSON, CSV and other formats with a reusable script.
Help me tame my email. Emails per day: [number] Email tool: [Gmail, Outlook, etc.] Types of emails I get: [list] Create: a folder/label structure, filters and rules to set up, a daily processing routine (with time blocks), 5 reusable reply templates, unsubscribe strategy, and a plan to clear the current backlog.
Inbox zero email system
Get your inbox under control with rules, folders, templates and a daily email routine.
[Base prompt: describe your subject, action and setting] Then add ONE camera movement from this list: - Slow dolly in toward [subject] (builds intimacy or tension) - Dolly out revealing [the wider scene] (reveals context) - Smooth tracking shot following [subject] from the side - 360-degree orbit around [subject] - Cr…
Camera movement prompt library
A reusable library of camera movements to add to any AI video prompt for a more cinematic result.
Act as a Linux/macOS command-line expert. OS and shell: [macOS zsh / Ubuntu bash / Windows WSL] Task: [e.g. find all .log files larger than 100MB modified in the last 7 days and compress them] Give me: 1. The command 2. A breakdown of each flag and part 3. A dry-run version that shows what would happen without changin…
Shell commands and Bash one-liners
Describe a terminal task and get the command, what each part does and a safer alternative where relevant.
You are a senior React developer. Component: [name and purpose] Props: [list with types] Behaviour: [interactions, states, loading/error/empty] Styling: [Tailwind / CSS modules / styled-components] Data: [static / fetched from API endpoint] Write a functional component in TypeScript that: - Is accessible (semantic HTM…
React component with props and state
Generate an accessible, reusable React component with TypeScript types, state handling and styling.
Cinematic shot of [subject, e.g. a lone hiker in a red jacket] [action, e.g. walking along a misty mountain ridge]. Camera: [camera movement, e.g. slow tracking shot from the side, slightly low angle]. Setting: [environment and time of day, e.g. early morning fog rolling through the valley]. Lighting: [lighting, e.g.…
Cinematic text-to-video shot
A reusable structure for film-quality AI video clips: subject, action, camera movement, lighting and style in one clear shot description.