feat(bugfix): add React Query patterns to prevent incomplete implementations#50
Open
ambient-code[bot] wants to merge 1 commit intomainfrom
Open
feat(bugfix): add React Query patterns to prevent incomplete implementations#50ambient-code[bot] wants to merge 1 commit intomainfrom
ambient-code[bot] wants to merge 1 commit intomainfrom
Conversation
… patterns Addresses feedback from session-1771963475 where agent implemented incomplete React Query polling logic due to missing pattern guidance. Changes: - Add .claude/patterns/react-query-usage.md with 7 comprehensive patterns - Pattern 6 "Polling with Pagination" addresses the specific gap identified - Includes guidance on refetchInterval + placeholderData interaction - Documents complete terminal session phases (Stopped, Completed, Failed, Error) - Update fix skill to reference patterns before implementing fixes - Update diagnose skill to check patterns during root cause analysis Prevents future incidents where agents miss critical implementation details when working with React Query pagination and polling. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds comprehensive React Query usage patterns to the bugfix workflow to prevent incomplete implementations, specifically addressing gaps identified in session-1771963475.
Session
This improvement was generated from feedback loop session:
Problem
During session-1771963475, the agent implemented polling logic for a React Query hook with pagination but missed critical implementation details:
refetchInterval+placeholderData: keepPreviousDatainteractionChanges
New Files
.claude/patterns/react-query-usage.md: Comprehensive React Query patterns including:refetchInterval+placeholderDatainteractionUpdated Files
.claude/skills/fix/SKILL.md: Added "Technology-Specific Patterns" section directing agents to check.claude/patterns/before implementing fixes.claude/skills/diagnose/SKILL.md: Updated Step 7 and Best Practices to reference patterns during diagnosisImpact
Future agents working on React Query bugs will:
Testing