ai-docs/docs/ai/crossplatform/starter-prompts.md
Matt Bruce 3586f39e8e More refactoring
Signed-off-by: Matt Bruce <matt.bruce1@toyota.com>
2026-02-22 15:02:58 -06:00

52 lines
1.2 KiB
Markdown

# Starter Prompts (Copy/Paste)
You are here: [AI Docs Home](../index.md) > [Cross-Platform AI Usage](cross-platform.md) > Starter Prompts
## Contents
- How To Use Starter Prompts
- Understand Existing Code
- Safe Refactoring
- Testing
- Planning
- Debugging
- Next Steps
## How To Use Starter Prompts
1. Copy one prompt that matches your task.
2. Replace placeholders (file names, functions, constraints).
3. Keep the request focused on one outcome.
## Understand Existing Code
Example prompt:
```text
Summarize this file in 5 bullets and list 2 risks.
```
## Safe Refactoring
Example prompt:
```text
Refactor this function to remove duplication. Keep behavior the same.
```
## Testing
Example prompt:
```text
List tests I should add for this change.
```
## Planning
Example prompt:
```text
Create a 5-step plan to split this class into smaller components. Wait for approval before edits.
```
## Debugging
Example prompt:
```text
Explain this error and propose the top 3 fixes in priority order.
```
## Next Steps
- Learn stronger prompt structure in [Prompting Patterns](prompting-patterns.md).
- Avoid common mistakes in [Prompting Anti-Patterns](prompting-antipatterns.md).