Prompting Guide
Good prompting is the fastest way to get accurate results.
Prompt template
Use this structure:
- Objective: what outcome you need.
- Context: relevant files, constraints, and environment.
- Scope: what to include/exclude.
- Output format: exact expected structure.
- Acceptance criteria: how success is measured.
Example
Objective: Create a docs page for AI quickstart.
Context: Docusaurus project in this repository.
Scope: Include setup, commands, and best practices.
Output format: Markdown file under docs/.
Acceptance criteria: Builds successfully with npm run build.
Quality tips
- Be specific about files and paths.
- State non-goals explicitly.
- Ask for assumptions to be listed.
- Require validation steps (build/tests).
- Prefer iterative prompts over one giant prompt.
Reusable prompt templates in this repo
prompts/api-design.mdprompts/typescript-quality.mdprompts/docs-update.md