supabase
Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...
iterative-retrieval
Execute 4-phase loop for progressive context refinement. Use when complex searches require multiple refinement cycles or context gap is unknown. Not for simple file searches or known file locations.
Full skill instructions
A 4-phase loop for progressive context refinement when dealing with unknown or complex information needs.
Subagents don't know what they need until they start searching:
┌─────────────────────────────────────────────────────────────┐
│ ITERATIVE RETRIEVAL LOOP │
├─────────────────────────────────────────────────────────────┤
│ │
│ 1. DISPATCH ──► Broad initial query to gather files │
│ │ │
│ ▼ │
│ 2. EVALUATE ──► Score relevance 0-1 for each file │
│ │ │
│ ▼ │
│ 3. REFINE ──► Update search criteria based on scores│
│ │ │
│ ▼ │
│ 4. LOOP ──► Repeat with refined criteria (max 3) │
│ │ │
│ ▼ │
│ HIGH RELEVANCE FILES FOUND ✓ │
│ │
└─────────────────────────────────────────────────────────────┘
Purpose: Cast a wide net to gather candidate files.
Approach:
Example:
# Searching for "authentication patterns"
files = glob("**/*auth*.ts") + glob("**/*login*.ts")
files += grep("authenticate|login|signup", "**/*.ts")
Output: List of candidate files (unordered, broad)
Purpose: Score each file's relevance to the actual query.
Scoring System (0-1):
| Score | Relevance | Action |
|---|---|---|
| 0.8-1.0 | High | Read immediately, use in context |
| 0.5-0.7 | Medium | Skim first, read if relevant |
| 0.2-0.4 | Low | Skip unless no high/medium found |
| 0-0.2 | None | Ignore |
Scoring Criteria:
Example:
# Score each candidate file
for file in candidates:
score = 0
if "auth" in file.name: score += 0.3
if "authenticate" in file.content: score += 0.4
if file.content.count("login") > 3: score += 0.2
# ... store score
Output: Files with relevance scores
Purpose: Update search criteria based on evaluation results.
Refinement Strategies:
| Situation | Refinement |
|---|---|
| Too many high scores (0.8+) | Narrow by adding specific terms |
| No high scores, many medium | Add domain-specific terms |
| All low scores | Change terminology entirely |
| Found right domain, wrong files | Add file extension filters |
Example:
# Initial: "authentication"
# Result: Many frontend auth files, need backend
# Refined: "authentication server api"
# Result: Backend auth endpoints found
Output: Updated search query for next iteration
Purpose: Repeat with refined criteria until convergence.
Termination Conditions:
Example:
max_iterations = 3
high_relevance_files = []
for iteration in range(max_iterations):
candidates = dispatch(search_query)
scored = evaluate(candidates, target_query)
high_relevance_files.extend([f for f in scored if f.score >= 0.8])
if len(high_relevance_files) >= 3:
break # Converged
search_query = refine(search_query, scored)
Output: Final set of high-relevance files
✅ Use when:
❌ Don't use when:
file-search: Basic search capability (find files by pattern)
iterative-retrieval: Advanced refinement (relevance scoring, progressive narrowing)
For simple searches:
→ Use file-search directly
For complex searches:
→ Use iterative-retrieval (uses file-search as initial dispatch)
Task: Find React context patterns in a large codebase
Iteration 1:
Iteration 2:
Iteration 3:
Result: 4 context definition files with usage patterns identified
Return results as:
## Iterative Retrieval Results
### Summary
- **Iterations**: 3
- **Total files evaluated**: 73
- **High-relevance files**: 4
- **Search query evolution**: "context" → "React useContext" → "createContext useContext"
### High-Relevance Files (0.8+)
1. **src/context/AuthContext.tsx** (score: 0.95)
- Defines AuthContext with provider
- Exports useAuth hook
- 15 usages across codebase
2. **src/context/ThemeContext.tsx** (score: 0.88)
- Defines ThemeContext with dark/light mode
- Exports useTheme hook
- 8 usages across codebase
### Medium-Relevance Files (0.5-0.7)
- **src/hooks/useContext.ts** (score: 0.65) - Utility hook, not context definition
### Context Gap Analysis
**Initial query**: "React context patterns"
**Gap**: Need both definitions and usage patterns
**Filled**: Found 4 definitions, usage patterns documented
### Next Steps
Use high-relevance files as context for understanding React context patterns in this codebase.
Integration: iterative-retrieval uses file-search as initial dispatch mechanism.
Integration: Use iterative-retrieval for discovery, filesystem-context for persistent access.
Progressive refinement through 4-phase loop (DISPATCH → EVALUATE → REFINE → LOOP) yields higher relevance than single-pass search, especially when terminology is unknown upfront.
<critical_constraint> MANDATORY: Maximum 3 iterations - stop when converged MANDATORY: Score files on 0-1 scale with documented criteria MANDATORY: Report high-relevance files (0.8+) with scores MANDATORY: Document query evolution across iterations No exceptions. Iterative retrieval must converge efficiently with traceable refinement. </critical_constraint>
This component carries essential Seed System principles for context: fork isolation:
<critical_constraint> MANDATORY: All components MUST be self-contained (zero .claude/rules dependency) MANDATORY: Achieve 80-95% autonomy (0-5 AskUserQuestion rounds per session) MANDATORY: Description MUST use What-When-Not format in third person MANDATORY: No component references another component by name in description MANDATORY: Progressive disclosure - references/ for detailed content MANDATORY: Use XML for control (mission_control, critical_constraint), Markdown for data No exceptions. Portability invariant must be maintained. </critical_constraint>
Delta Standard: Good Component = Expert Knowledge − What Claude Already Knows
Recognition Questions:
Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...
Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.
Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.
A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.
Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.
Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.
Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.
Send, read, and manage Gmail messages, drafts, labels, and account settings.
Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.
Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.
Discover your celebrity doppelgänger with StarByFace!
GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams
Detect AI-generated voices to protect against audio fraud.
Ensure Your Content's Originality with AI Plagiarism Checker
Upscale images by 400% without quality loss
Protect your social media from copyright disputes
Accurately Detect AI-Generated Content with TheChecker.AI
Chrome extension that detects and flags AI-generated content