Open the relevant repository and replace the bracketed details before copying a brief. Start with a reproducible task so you can review a small, concrete change.
Reproduce a bug before changing code
Use when you know what failed and can describe the expected result.
Investigate this bug in the current repository.
Steps to reproduce: [exact actions and input].
Expected: [observable result].
Actual: [result or error, with secrets removed].
Find the entry point and the smallest code path that explains the failure. Before editing, identify the existing test command and add a focused regression that fails for these steps. Fix the cause without changing unrelated behavior or introducing a dependency. Run the regression and the relevant existing checks. Report changed files, actual command results and any check you could not run. Do not report a test as passed unless you ran it.
Check: Repeat the original steps, then check one nearby case that previously worked. Review the diff for unrelated edits.
Add pagination without breaking callers
Use for an existing list endpoint with a known response shape.
Add bounded pagination to [existing list endpoint] in this repository. First inspect its current response shape, callers, authorization checks and database query. Preserve existing fields and caller behavior. Use a stable ordering with a unique tie-breaker. Validate the page size and reject malformed cursors; do not fetch the entire table and slice it in memory. Keep authorization filters on every page. Add tests for the first page, next page, empty result, invalid input and no repeated item across adjacent pages. Use the existing project conventions and dependencies. Explain any response-contract change before implementing it, and report only checks actually run.
Check: Request adjacent pages with equal sort values and verify the boundary item appears exactly once. Check that a different user cannot retrieve restricted rows.
Alternatives
Alternatives to Cursor
A coding-agent change affects how files are edited, reviewed and authorized. Included model pools, provider charges, execution environment and review controls are part of the choice.
Information may be outdated or incomplete: verify prices, terms and capabilities with the provider before relying on them. This is editorial information, not legal, financial or other professional advice. Product names and logos belong to their owners and are used for identification only. Promtable may have commercial relationships with listed providers. Terms · Disclosures · Corrections and takedowns