Effective prompts are the foundation of successful AI-assisted development. Clear, specific requests with appropriate context enable Verdent to deliver accurate, relevant results.

What You’ll Learn

  • Best practices for writing effective prompts
  • How to provide context and avoid common mistakes
  • Advanced techniques like @-mentions and subagent delegation
  • Examples of well-structured prompts

What Makes an Effective Prompt

Effective prompts are clear, specific, and provide necessary context for Verdent to understand your intent and deliver accurate results. Key Principles:
  • Be Specific - State exactly what you need, not vague requests
  • Include Details - Provide technical specs when you have preferences
  • Specify Scope - Clarify which files/components are involved
  • Provide Context - Help Verdent understand your architecture
  • State Outcomes - Describe what success looks like
Example transformations:
BadGood
Fix the codeAdd input validation to the email field in ContactForm.js to reject invalid email formats
Add authenticationAdd JWT authentication using the same middleware pattern as auth.js, store tokens in httpOnly cookies

Common Prompting Mistakes

Make the app better
Problem: Verdent doesn’t know what improvements you want.Solution: Specify exactly what needs improvement.
Press Shift+Tab or Ctrl+. to switch to Plan Mode for complex changes.

Well-Structured Prompt Examples

Create a POST /api/tasks endpoint that:
- Accepts task title (required), description (optional), and category_id (required)
- Validates that the category exists in the database
- Returns 400 if validation fails with descriptive error messages
- Saves the task to the database and returns the created task with 201 status
- Add this to the existing tasks router in routes/tasks.js
What makes this effective:
  • Clear requirements for inputs and validation
  • Specific file locations for implementation
  • Expected HTTP status codes and error handling

Advanced Prompting Techniques

Reference specific files or subagents:
@auth.js @UserController.js Refactor authentication to use the same validation pattern
Benefits:
  • Ensures Verdent has exact context
  • Prevents ambiguity in large codebases
  • Essential when referencing patterns from one file to apply in another

See Also