Top 50 Codex Prompts for VS Code¶
A practical prompt library for AI-assisted software development
Tags¶
- Codex
- VS Code
- Prompt Engineering
- AI Coding
Keywords¶
codex prompts, ai coding, refactor, testing, security, architecture
1. Understanding a Project¶

Useful when you open a new or unfamiliar repository.
2. Understanding Code¶

Best used with a specific file or function selected / open.
3. Refactoring¶

Always add “preserve existing behaviour” when you want safe changes.
4. Code Quality¶

Great for quick health checks before a pull request.
5. Bug Hunting¶

Use after you already have a failing test or a reported issue.
6. Performance¶

Combine with profiling data when possible.
7. Testing¶

Works especially well when the source file is already open.
8. Documentation¶

Keep the tone consistent with the rest of the project.
9. Security¶

Run these periodically, not only at the end of a feature.
10. Architecture¶

Most valuable when you are about to start a larger change.
Bonus Prompts¶

Best Practices¶

Using @References¶

Great Prompt Template¶
