GitHub Copilot Train-the-Trainer
Including an example: good and bad
Good: one real input, one expected output, tied to a test.
Implement TodoStore.create. For { title: " Write " } it must
return { id: 1, title: "Write", status: "pending", priority: "normal" }.
Bad: the example contradicts the rule, or is the only case.
Trim titles. Example: " Write " -> " Write ".
The model follows the example, and the rule is lost. Add one edge case, such as
an empty title, so Copilot doesn't copy a single case.