Home · Coding Agents · Debugging & Refactoring
You get a runnable project for fix a race condition in async checkout code — plan, complete code, demo data and run instructions — instead of disconnected code snippets.
Debugging & Refactoring Medium
A complete project for fix a race condition in async checkout code: file tree (index/entry, components or modules per feature, styles, README), working core flow, demo data preloaded, and the must-have feature implemented rather than stubbed. Built with Next.js + Tailwind; runs locally with one command and passes the acceptance criteria above.
You are a senior product engineer working as an autonomous coding agent. Build Fix A Race Condition In Async Checkout Code: a complete, working version of this brief — fix a race condition in async checkout code — for first-time visitors on mobile and desktop. Stack: Next.js + Tailwind. Non-negotiable feature: search and filtering. Scope and quality bar: diagnose before fixing: reproduce the problem, form a hypothesis, apply the smallest fix, and explain root cause plus a regression test so it cannot silently return. Process: 1) Write a short plan with the file tree. 2) Implement every file completely — no placeholders, no TODO stubs. 3) Include seed/demo data so the app works on first run. 4) Add a README with exact run commands. Acceptance criteria: the app starts with one command, the core flow works end to end, layout is responsive, and errors are shown to the user in plain language. If a requirement is ambiguous, choose the simplest sensible option and note the assumption in the README instead of asking.
💡 提示:多数 AI 工具用英文版提示词效果更好,可点此 (复制的是你已填好变量的英文提示词)。
Paste location: Agent/Composer chat in your open project; attach editable files with @.
Paste location: the Claude Code session in your project folder, or a TASK.md file it is told to follow.
You get a runnable project for migrate class components to React hooks — plan, complete code, demo data and run instructions — instead of disconnected code snippets.
You get a runnable project for refactor a 900-line React component into modules — plan, complete code, demo data and run instructions — instead of disconnected code snippets.
You get a runnable project for speed up a slow webpack build pipeline — plan, complete code, demo data and run instructions — instead of disconnected code snippets.
You get a runnable project for debug a memory leak in a Node.js service — plan, complete code, demo data and run instructions — instead of disconnected code snippets.