Vibe Coding
Vibe Coding Cheatsheet
Copy-paste prompt templates for planning, implementing, reviewing, testing, and debugging.
Start a session
Paste this at the top of a new chat (or CLI agent) when you sit down to work.
I am the director. You draft. I review and run tests.
Goal: [one sentence]
Files: @[file] @[test file]
Must not: extra deps, unrelated files, secrets
Done: [exact command I will run]
Do not write code until I approve a short plan.
Then implement one step at a time.Plan only
Do not write or edit code.
Goal: [one sentence]
Constraints: [language, tests, no extra deps, files you must not touch]
Return: steps, files to change, tests, open questions for me.Implement a slice
@[file] @[test file]
Implement only: [behavior]
Match this API / example:
[signature or sample output]
Constraints:
- Do not change unrelated files
- Do not add dependencies
- Do not edit tests unless I ask
Done: [pytest command]Tests first
Add tests only in [test file] for [behavior].
Use a temp dir / mocks so tests are isolated.
Do not change production code yet.Review
Review the last diff.
List extra files, bugs, missing tests, secret risks.
Do not write more code unless I say so.Debug
@[file] @[test]
Command: [exact command]
Expected: [result]
Got: [traceback or output]
Explain the cause, then apply the smallest fix.
Do not rewrite the module.Tighten after a mess
Stop. Revert to the last plan.
Implement step [n] only.
Files allowed: [list]
If you need another file, ask.Point at files in your tool
| Tool | How |
|---|---|
| Cursor, Windsurf, many editors | @notes.py @test_notes.py in the agent chat |
| VS Code + Copilot | Attach those files in Copilot Chat, then paste the four-part prompt |
| Claude Code, Codex CLI, Aider | Name the paths: Files: notes.py, test_notes.py |
Standing rules (short)
- Python 3, pytest -q after changes
- Small diffs, no drive-by refactors
- No new dependencies unless asked
- Never commit secrets or .venvThe loop (memorize this)
- Explore
- Plan
- Implement one slice
- Review the diff
- Run tests yourself
- Commit
Back to course home, the session guide inHow You Work, the stack picker inTools, or start again atWhat Is Vibe Coding.