## Tip: Be Specific About Context

**Category**: prompting

**Problem**: AI generates code that doesn't match your project's architecture, dependencies, or coding style because it lacks context.

**Solution**: Always provide specific context in your prompts:
- Mention the framework/library versions you're using
- Specify the programming language and version
- Include relevant file structure or architecture details
- Mention existing patterns or conventions in your codebase
- Share any constraints (performance, compatibility, etc.)

**Example**:

❌ **Vague**: "Create a user authentication function"

✅ **Specific**: "Create a user authentication function for our Node.js Express app (v4.18) using JWT tokens. We're using PostgreSQL with Sequelize ORM. Follow our existing pattern in `auth/` directory where we store tokens in Redis for session management."

**Why It Works**:
- AI can generate code that integrates seamlessly
- Reduces back-and-forth iterations
- Avoids deprecated or incompatible solutions
- Matches your codebase conventions

**Tags**: #prompting #context #best-practices
