Conversation
This commit introduces a new structured workflow for developing features using AI assistants. The workflow is designed to improve clarity, control, and reliability when building complex features with AI. The new `agent-template/` directory contains markdown files that guide the AI through a step-by-step process: - `create-prd.md`: A template for generating a Product Requirement Document (PRD) for a new feature. - `generate-tasks.md`: A template for breaking down the PRD into a detailed, actionable task list for the AI. - `README.md`: Provides a comprehensive guide on how to use this workflow. This approach helps in defining the scope, planning the implementation, and iteratively building and verifying the feature, one task at a time.
This commit refactors the daily challenge and streak calculation logic for better accuracy and performance. Key changes: - Moves streak calculation to a dedicated `streak.ts` query with comprehensive unit tests. - Updates the `daily-challenge` server function to use the new streak query, ensuring consistent data. - Simplifies the `stats` function by removing the outdated streak logic. - Introduces a new `[feature-name].md` task for tracking. This improves the maintainability and reliability of the gamification system.
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis PR introduces an "AI Dev Tasks" workflow template for structured AI-assisted development using PRD-driven task decomposition, along with a refactored daily streak computation that centralizes streak calculation logic into a shared utility with optional mode filtering and removes redundant inline calculations. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (9)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
Bug Fixes
Documentation
Refactor
✏️ Tip: You can customize this high-level summary in your review settings.