What is a User Story?
A user story is a brief, user-centered feature note in the form 'As a [role], I want [goal], so that [benefit]' that records intent, not a technical spec.
A user story describes one slice of value as seen by the person who wants it, typically written as “As a [role], I want [goal], so that [benefit].” Most agile teams use stories as the building blocks of a sprint backlog. The template is not paperwork for its own sake. “As a” makes you identify who really wants the thing, and “so that” makes you say why, the piece teams tend to leave out right before they build the wrong feature. Think of a story as a reminder to have a conversation, not as a contract.
Strong stories usually meet the INVEST criteria: Independent (it can be built by itself), Negotiable (details stay open until discussed), Valuable (it gives a user or buyer something they care about), Estimable (the team is able to size it), Small (it fits within one iteration), and Testable (you can tell when it is finished). Those final two are where stories most often break down, either because they are too large to complete or because they are worded so loosely that no one can define “done.”
Acceptance criteria are what make a story testable, and phrasing them in the BDD Given/When/Then style is the tidiest approach. They list the specific conditions the story must meet to be accepted, and they are written before any work begins. “As a user I want to reset my password” states an intention. The acceptance criteria (the reset link stops working after an hour, a bad token produces a clear error, a completed reset signs the user in) are what the team really builds and tests against.
A frequent anti-pattern is a task masquerading as a story. “As a developer I want to add an index to the orders table” is dressed up like a user story, yet it has no user and no benefit; it is an engineering task in costume. Tracking it is perfectly fine, but it is not a user story, and disguising technical tasks as stories gradually wipes out the user perspective that the template is there to protect.