Best Practices Guide
Learn proven patterns and workflows from successful teams using Workunit. Master workunit creation, AI collaboration, context preservation, and team productivity.
Last updated: October 2025
Overview
This guide distills insights from teams successfully using Workunit to build products faster with AI collaboration. These patterns help you avoid common pitfalls, maximize AI effectiveness, and maintain context across complex multi-model workflows.
Workunit Creation
Great workunits start with clarity. The effort you invest in creating a well-defined workunit pays dividends throughout the entire lifecycle.
Effective Naming
Names should be clear, concise, and action-oriented. Think of them as headlines that instantly communicate what you're building.
- • "Build JWT Authentication System"
- • "Add Stripe Payment Integration"
- • "Optimize Database Query Performance"
- • "Implement User Profile Editing"
- • "Auth stuff"
- • "Payment feature"
- • "Make it faster"
- • "User things"
Problem Statements That Work
A strong problem statement answers three questions: What's broken? Why does it matter? Who does it affect?
Measurable Success Criteria
Success criteria should be specific, measurable, and testable. Avoid subjective terms like 'better' or 'improved'.
- • "API response time under 200ms for 95th percentile"
- • "All passwords hashed with bcrypt cost factor 12"
- • "Test coverage above 90% for authentication flows"
- • "JWT tokens expire after 24 hours"
- • "System should be fast"
- • "Good security"
- • "Well tested"
- • "Tokens configured properly"
Task Management
Effective task breakdown enables parallel work by both humans and AI models. Good tasks are atomic, independent where possible, and clearly scoped.
Task Breakdown Strategy
Managing Dependencies
Explicitly mark which tasks can run in parallel and which have dependencies. This enables efficient multi-model collaboration.
Consistent Status Updates
Real-time status updates prevent duplicate work and enable effective multi-model collaboration.
- • Mark "In Progress" immediately when starting work
- • Mark "Done" as soon as task is complete and verified
- • Mark "Blocked" if dependencies are missing or issues arise
- • Update estimated completion time if scope changes
AI Context Writing
AI context is your project's living memory. Well-written context enables future AI models to pick up where previous models left off without losing critical insights.
When to Write Context
What to Include in Context
Format Guidelines
Use markdown formatting for readability and structure. AI models parse markdown well, and humans appreciate the clarity.
# Session Summary - October 10, 2025 ## Work Completed - Implemented JWT authentication with access/refresh token pattern - Added bcrypt password hashing with cost factor 12 - Created middleware for route protection - Wrote integration tests covering happy path and error cases ## Technical Decisions **JWT vs Sessions**: Chose JWT for horizontal scaling capability **Token Expiry**: 15-minute access tokens, 7-day refresh tokens - Balances security (short-lived access) with UX (less frequent re-auth) **Storage**: Refresh tokens in PostgreSQL with user_id index - Enables token revocation for security ## Patterns Discovered - Middleware chain pattern works well: auth → validation → handler - Token refresh should be separate endpoint, not middleware - Store token issued_at timestamp for future revocation needs ## Gotchas Encountered - bcrypt cost factor >12 causes noticeable latency on login - JWT secret must be >32 bytes for HS256 algorithm - Refresh token rotation prevents token replay attacks ## Next Steps - Implement password reset flow with time-limited tokens - Add rate limiting to auth endpoints (prevent brute force) - Consider adding 2FA support for Unlimited tier users ## Open Questions - Should we implement "remember me" functionality? - Need to decide on token revocation strategy for logout
Multi-LLM Workflows
The real power of Workunit emerges when you orchestrate multiple AI models, each playing to their strengths on the same workunit.
Choosing the Right Model
- • Initial project planning and task decomposition
- • Architecture design and system design reviews
- • Security audits and compliance analysis
- • Writing comprehensive problem statements
- • Code review requiring deep reasoning
- • Implementing well-defined features rapidly
- • Writing tests and boilerplate code
- • Bug fixing and debugging sessions
- • API endpoint implementation
- • Refactoring and code cleanup
- • Performance profiling and optimization
- • Log analysis and pattern detection
- • Code quality audits at scale
- • Data migration and transformation
- • Visual diagram analysis
Parallel Execution Strategies
- GPT Instance 1: Implements Task 3 (user registration)
- GPT Instance 2: Implements Task 4 (login endpoint)
- Gemini: Works on Task 5 (integration tests)
Smooth Context Handoffs
The key to multi-model success is ensuring each model has full context when they pick up work.
- Update all task statuses to current state
- Write AI context documenting work completed
- Note any blockers or dependencies discovered
- Document patterns or gotchas for next model
- Explicitly tell next model to read AI context first
- Point to specific tasks ready for pickup
- Mention any context from linked assets
Team Collaboration
Effective teams treat AI models as team members while maintaining clear human accountability and decision-making authority.
Communication Patterns
Handoff Protocols
Asset Organization
Well-organized assets provide critical context to AI models without cluttering individual workunits.
Strategic Asset Linking
Asset Metadata Best Practices
Rich asset metadata helps AI models understand context without reading entire codebases or documentation.
- • Technology stack and version
- • Repository URLs and paths
- • API documentation links
- • Environment dependencies
- • Key maintainers
- • Document type and purpose
- • Last updated date
- • Authoritative source links
- • Related standards/specs
- • Key decision makers
Context Preservation
Context preservation is Workunit's superpower. These practices ensure the 'why' behind decisions never gets lost.
Daily Documentation Habits
Trail-of-Thought Practices
Trail-of-thought documentation captures the evolution of understanding, not just the final state.
Productivity Patterns
Learn from common mistakes and proven efficiency patterns to maximize your team's velocity.
Common Anti-Patterns to Avoid
Proven Efficiency Tips
Next Steps
Ready to implement these best practices? Start with these resources:
Quick Start Guide
Create your first workunit following these best practices from the start
AI Features Guide
Deep dive into multi-LLM collaboration and AI context writing
Team Collaboration
Learn how to enable these practices across your entire team
Asset Management
Master asset organization and linking strategies
Questions About Best Practices?
These practices evolved from real teams building real products. We're here to help you adapt them to your workflow.