Skip to content
AI Resource Hub

AI prompts for software development

Copy-ready prompts for software development. Replace the [brackets] with your own details for the best results.

Software development

Plan a feature before coding

Break a feature into requirements, design decisions and tasks.

Help me plan this feature before I write code. Project: [description and tech stack] Feature: [what users should be able to do] Constraints: [deadlines, performance, existing architecture] Give: user stories, acceptance criteria, data model changes, API/interface changes, edge cases, security considerations, a task breakdown in the order to build it, and the tests I should write.

How to use it

Use the plan to discuss with your team before building.

Details
Software development

Write unit tests

Generate tests covering normal cases, edge cases and errors.

Write unit tests for this function using [test framework, e.g. pytest, Jest, Vitest]. ```[language] [paste function] ``` Cover normal inputs, edge cases (empty, zero, very large, unusual characters), and error handling. Use clear test names that describe the expected behaviour. Point out any behaviour that seems like a bug rather than writing a test that passes for it.

How to use it

Run the tests; a failing test may reveal a real bug.

Details

More programming prompts