Adding a Feature
Fixing a Bug started from code that was broken. Feature tasks start from code that works and is missing something, which sounds easier and usually isn't. There's no failing test to tell you where to look, the ticket is often vague on purpose, and the AI will happily build the feature in a style the repo has never seen. The interviewer is watching whether your addition looks like it belongs.
The running example is a made-up task tracker with a Python API and a React front end, and this ticket:
Let users snooze a task until a date. Snoozed tasks shouldn't show in the default list. Bonus: a "Snoozed" filter.
Find the Pattern Before You Write Code
Find the existing feature most like yours and copy its shape. Every repo has conventions for where validation lives, how routes are named, how errors come back and how tests are set up. A feature that follows them is easy to review and merge. One that invents its own is a maintenance cost, even if it works, and interviewers notice.
The nearest neighbour is usually easy to find. Snoozing hides a task from the list, and if the tracker already supports archiving, archive does the same thing. Ask the AI to map it before you plan anything:
Weak: "How do I add snoozing?"
Better: "List every file involved in archiving a task, from the database model to the button in the UI. For each, one line on what it does and the function name. Don't change anything."
Open the files it names and check the map, as The First Five Minutes describes. You're
looking for answers to concrete questions. Is the filter applied in SQL or in Python? Is there a service layer or do
routes talk to the database? Where do the API tests live and which fixtures do they use? Those answers become
constraints in every prompt that follows: "follow the pattern in archive_task".
Before building, pin down the ticket. "Until a date" leaves open whether snoozing ends at midnight in the user's time zone or at a timestamp, and whether a user can snooze someone else's task. Ask the one or two questions that change the design and assume the rest out loud, as Turning a Ticket into Acceptance Criteria covers. Write down "done means...": snoozed tasks are hidden from the default list until the date passes, and appear again after it without anyone doing anything.