Finding Authentication Patterns
Search for authentication implementation in Next.js with middleware:- Searches Next.js documentation semantically for auth + middleware concepts
- Filters results to show code containing middleware, auth, session, or cookie keywords
- Returns relevant documentation sections with code examples
Async Function Usage
Find async/await patterns in the Anthropic Python SDK:async\s+def- Matches async function definitions in Pythonawait\s+- Matches await statementsAsyncAnthropic- Matches the async client class name
Error Handling
Find error handling patterns in React:(?i)makes the pattern case-insensitive- Alternation
|matches any of the error-related terms - Finds Error Boundaries, try-catch blocks, and error handling patterns
React Hooks Patterns
Search for specific React hooks usage:Database Operations
Find Prisma database query patterns:- Escapes the dot:
prisma\. - Matches common Prisma methods
- Includes
includefor relation queries
API Route Creation
Find Express.js route creation patterns:Testing Patterns
Search for testing patterns with Jest:- Test blocks with async functions
- Async testing patterns
- Promise-based test cases
TypeScript Type Definitions
Find TypeScript type usage in a package:Environment Configuration
Find environment variable configuration patterns:Streaming Responses
Search for streaming patterns in the Anthropic SDK:Workflow: Complete Feature Implementation
Here’s a complete workflow for implementing a new feature:1
Find Setup Instructions
2
Find Specific Implementation
3
Find Session Management
Multi-Framework Comparison
Compare authentication approaches across frameworks:Next.js
Express
Debugging Patterns
Find debugging and logging patterns:Performance Optimization
Search for performance optimization techniques:WebSocket Implementation
Find WebSocket patterns:Tips for Effective Examples
Start Specific
Begin with specific use cases, then broaden if needed
Use Technical Terms
Include framework-specific terminology in queries
Combine Patterns
Use alternation (
|) to match related patternsTest Incrementally
Start with simple patterns, add complexity gradually