xiaohongshu
xiaohongshu
research-cascade
Multi-source research orchestration. Chains deepwiki, submodules, WebSearch, and codebase search. Defines when to escalate and how to synthesize findings.
Full skill instructions
Purpose: Define the mechanics of multi-source research. When to use each source, when to escalate, how to synthesize findings.
┌─────────────────────┐
│ USER QUESTION │
└──────────┬──────────┘
│
┌──────────▼──────────┐
│ UNCERTAINTY CHECK │
│ Am I confident? │
└──────────┬──────────┘
│
┌───────────────┼───────────────┐
│ YES │ NO │
▼ ▼ │
┌──────────┐ ┌──────────────┐ │
│ PROCEED │ │ LEVEL 1: │ │
│ (rare) │ │ deepwiki │ │
└──────────┘ └──────┬───────┘ │
│ │
┌─────────▼─────────┐ │
│ SUFFICIENT? │ │
└─────────┬─────────┘ │
│ │
┌──────────────┼───────────────┤
│ YES │ NO │
▼ ▼ │
┌──────────┐ ┌──────────────┐ │
│ VERIFIED │ │ LEVEL 2: │ │
└──────────┘ │ Submodules │ │
└──────┬───────┘ │
│ │
┌─────────▼─────────┐ │
│ SUFFICIENT? │ │
└─────────┬─────────┘ │
│ │
┌──────────────┼───────────────┤
│ YES │ NO │
▼ ▼ │
┌──────────┐ ┌──────────────┐ │
│ VERIFIED │ │ LEVEL 3: │ │
└──────────┘ │ WebSearch │ │
└──────┬───────┘ │
│ │
┌─────────▼─────────┐ │
│ SUFFICIENT? │ │
└─────────┬─────────┘ │
│ │
┌──────────────┼───────────────┤
│ YES │ NO │
▼ ▼ │
┌──────────┐ ┌──────────────┐
│ VERIFIED │ │ [UNCERTAIN] │
└──────────┘ │ Admit limits │
└──────────────┘
| Condition | Use deepwiki |
|---|---|
| Library API question | ✅ Yes |
| Current best practice | ✅ Yes |
| "Has X changed?" | ✅ Yes |
| Implementation details | ⚠️ Maybe (prefer source) |
| TMNL-specific question | ❌ No (use codebase) |
Verification Query (Preferred):
mcp__deepwiki__ask_question
repoName: "Effect-TS/effect"
question: "I believe [MY UNDERSTANDING]. Is this correct,
or has it changed in recent versions?"
Exploration Query:
mcp__deepwiki__ask_question
repoName: "Effect-TS/effect"
question: "What are the recommended patterns for [USE CASE]?"
Structure Query (Map the territory first):
mcp__deepwiki__read_wiki_structure
repoName: "Effect-TS/effect"
Escalate to Level 2 (Submodules) when:
| Condition | Use Submodules |
|---|---|
| Need code examples | ✅ Yes |
| Verify deepwiki claim | ✅ Yes |
| Test pattern needed | ✅ Yes |
| Human-authored prose | ✅ website submodule |
| Implementation source | ✅ effect submodule |
Effect Website (Human Docs):
# List available topics
ls ../../submodules/website/content/src/content/docs/docs/
# Search for topic
find ../../submodules/website -name "*.mdx" | xargs grep -l "TOPIC"
# Read specific doc
cat ../../submodules/website/content/src/content/docs/docs/[category]/[file].mdx
Effect Tests (Canonical Patterns):
# Find test files
find ../../submodules/effect/packages -name "*.test.ts" | head -30
# Search for pattern in tests
grep -r "PATTERN" ../../submodules/effect/packages/*/test/
# Read specific test
cat ../../submodules/effect/packages/sql-sqlite-bun/test/Client.test.ts
effect-atom Tests:
# List test files
ls ../../submodules/effect-atom/packages/atom/test/
# Search for pattern
grep -r "PATTERN" ../../submodules/effect-atom/packages/atom/
# Read specific test
cat ../../submodules/effect-atom/packages/atom/test/Atom.test.ts
Escalate to Level 3 (WebSearch) when:
| Condition | Use WebSearch |
|---|---|
| Recent breaking changes | ✅ Yes |
| Version-specific behavior | ✅ Yes |
| Community discussions | ✅ Yes |
| Migration guides | ✅ Yes |
| Core API questions | ❌ Use deepwiki first |
Breaking Changes:
WebSearch
query: "Effect-TS 3.0 breaking changes 2025 migration"
Recent Updates:
WebSearch
query: "Effect Schema 2025 new features changes"
Community Patterns:
WebSearch
query: "Effect-TS service pattern best practice 2025"
WebSearch results must be verified against deepwiki or submodules:
Always check codebase precedent AFTER external research:
Pattern Registry:
cat .edin/EFFECT_PATTERNS.md
cat .edin/EFFECT_SERVICE_PATTERNS.md
cat .edin/EFFECT_TESTING_PATTERNS.md
Working Implementations:
# Find pattern usage
grep -r "PATTERN" src/lib/*/
# Find specific service implementations
grep -r "Effect.Service" src/lib/*/services/
# Find atom patterns
grep -r "Atom.runtime\|runtimeAtom" src/lib/*/atoms/
Canonical Examples:
# Data Manager (service + atoms)
cat src/lib/data-manager/v1/DataManager.ts
# Slider (behavior pattern)
cat src/lib/slider/v1/services/SliderBehavior.ts
# Search Kernel
cat src/lib/data-manager/v1/kernels/SearchKernel.ts
After gathering information from multiple levels:
Do all sources agree?
| Sources Agree | Action |
|---|---|
| All agree | High confidence, proceed |
| Mostly agree | Note minor differences |
| Conflict | Investigate, prefer canonical |
| Unclear | Admit uncertainty |
When sources conflict:
1. Effect tests (packages/*/test/) — Most canonical
2. Website submodule — Human-vetted
3. deepwiki — AI-processed but repo-aware
4. WebSearch — Verify against above
5. Codebase — TMNL-specific but may lag
## Research Synthesis: [TOPIC]
### Sources Consulted
- [x] deepwiki: Effect-TS/effect
- [x] Submodule: website/docs/[topic].mdx
- [x] Submodule: effect/packages/[pkg]/test/[file].test.ts
- [ ] WebSearch: (not needed / consulted)
- [x] Codebase: src/lib/[module]/
### Findings
**deepwiki says**: [Summary]
**Submodule confirms**: [Summary]
**Codebase shows**: [Summary]
### Concordance
[All agree / Minor differences / Conflict requiring resolution]
### Verified Pattern
```typescript
// The verified pattern with high confidence
[VERIFIED-MULTI] / [VERIFIED-DEEPWIKI] / [INFERRED]
---
## Parallel vs Sequential Research
### Parallel (Fast Path)
Use when question is well-understood:
┌─────────────┬─────────────┬─────────────┐ │ deepwiki │ Submodule │ Codebase │ │ Query │ Search │ Search │ └──────┬──────┴──────┬──────┴──────┬──────┘ │ │ │ └─────────────┼─────────────┘ │ ┌──────▼──────┐ │ SYNTHESIZE │ └─────────────┘
### Sequential (Exploration Path)
Use when question needs clarification:
┌──────────┐ │ deepwiki │ → Understand the landscape └────┬─────┘ │ ┌────▼─────┐ │ Submodule│ → Verify with examples └────┬─────┘ │ ┌────▼─────┐ │ Codebase │ → Check TMNL context └────┬─────┘ │ ┌────▼──────┐ │ SYNTHESIZE│ └───────────┘
---
## Failure Modes
### Mode 1: deepwiki Returns Vague Response
**Symptom**: "It depends on your use case..."
**Action**: Escalate immediately to submodules with specific code search
### Mode 2: Submodules May Be Outdated
**Symptom**: Submodule git log shows old commit
**Action**: Check with WebSearch for recent changes, then verify
### Mode 3: Conflicting Information
**Symptom**: deepwiki and submodule say different things
**Action**:
1. Check dates (which is newer?)
2. Prefer test patterns over prose
3. Verify with WebSearch if needed
4. Admit uncertainty if unresolved
### Mode 4: No Information Found
**Symptom**: All sources return empty/irrelevant
**Action**:
1. Rephrase query with different terms
2. Check if this is a TMNL-specific pattern
3. Admit uncertainty explicitly
4. Suggest experimental approach
---
## Quick Reference
### Decision Tree
Is this an Effect API question? ├─ YES → deepwiki first, then submodules └─ NO ├─ Is this TMNL-specific? │ └─ YES → Codebase first └─ Is this a recent change question? └─ YES → WebSearch first, verify with submodules
### Minimum Viable Research
For quick questions, at minimum:
1. **One deepwiki query** (verification style)
2. **One submodule check** (website or test)
3. **State confidence level**
### Full Research Protocol
For important patterns:
1. deepwiki structure query
2. deepwiki verification query
3. Website submodule check
4. Effect test pattern check
5. Codebase precedent check
6. Synthesis with confidence level
---
## Integration Points
| Skill | Role in Cascade |
|-------|-----------------|
| `/grounded-research` | Uncertainty protocol |
| `/effect-research` | Effect-specific queries |
| `/tmnl-submodule-exploration` | Submodule navigation |
| Domain skills (`/effect-patterns`, etc.) | Implementation after research |
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience