Generate a draft, then make it yours
Code generation is useful when the behavior is clear and the surrounding system is small enough to describe. CursorBot writes a draft. You decide if it belongs in the codebase.
Write the contract first
State inputs, outputs, errors, and what must not happen. A paragraph of vibes produces a paragraph of assumptions.
Name the language and the constraints: no new dependencies, pure function, or must match an existing style you paste.
Example prompt
Write a TypeScript function that parses a cursor of the form base64url JSON `{ u, i }` and returns null when it is malformed. No dependencies.- Ask for tests in a follow-up.
- Review edge cases the prompt did not mention.
Questions
Does generation spend from my quota?
Yes. Each model request counts toward the daily request limit and the monthly token limit for your plan.