Anatomy of a Great Prompt
A well-structured prompt includes four essential elements. First, state a clear objective that describes what needs to be done. Next, provide relevant context explaining why it matters and what’s affected. Then define acceptance criteria so everyone knows when the work is complete. Finally, include technical details that specify any requirements or constraints.Examples of Ideal Stories
Bug Fix Example
Good:Feature Implementation Example
Good:Refactoring Example
Good:API Endpoint Example
Good:Less Effective Prompts
Too Vague
Poor:Missing Context
Poor:Overly Broad
Poor:Tips for Different Issue Types
For Bug Reports
When reporting bugs, start by providing clear steps to reproduce the issue. Describe both the expected and actual behavior so the difference is obvious. Include complete error messages or log excerpts. Specify environment details like whether it’s happening in production, staging, or local development. Link to error tracking tools like Sentry if you have them, as stack traces and error contexts are invaluable for debugging.For Feature Requests
Feature requests should begin with a user story or use case that explains the problem being solved. Include mockups or wireframes if the feature has a visual component. Define success metrics so you can measure whether the feature achieves its goals. Think through edge cases and document them upfront. List dependencies on other features or systems that need to be considered.For Refactoring Tasks
Refactoring prompts need to describe the current state and what problems it’s causing. Clearly articulate the desired end state and why it’s better. Document constraints like backward compatibility requirements or performance considerations. Identify the specific files or modules that need refactoring. Link to related technical debt items to provide broader context.For Documentation Tasks
Documentation requests should specify exactly what needs to be documented and why. Identify the target audience, whether that’s developers, end users, or administrators. Reference existing documentation that should be updated or that provides a good model to follow. Include examples that should appear in the documentation. State format preferences, like whether you want API reference docs, how-to guides, or tutorials.Working with Jira and Linear
When creating issues in Jira or Linear for Tembo, take advantage of the platform’s organizational features to provide additional context and structure.Use Labels Effectively
Add relevant labels to help Tembo prioritize and categorize work. Use type labels likebug, feature, refactor, and docs to indicate what kind of work is needed. Add priority labels like urgent or high-priority when time-sensitive. Include scope labels like frontend, backend, or full-stack to clarify what parts of the system are involved.