xiaohongshu
xiaohongshu
data-orchestrator
Central data strategy coordinator for AI-driven crypto trading. Use when building data pipelines, validating data quality, coordinating multi-source data aggregation, or implementing ML-ready data infrastructure. Covers: data governance, quality validation, source management, real-time pipelines,...
Full skill instructions
Central nervous system for all data operations across the meme-times ecosystem. Implements a robust, AI-ready data strategy that precedes and enables all trading decisions.
Data strategy comes BEFORE AI. Clean governance, validated sources, and secure infrastructure enable useful trading insights.
<data_sources> Price & Market Data:
| Source | Data Type | Latency | Quality | Cost |
|---|---|---|---|---|
| Dexscreener API | DEX prices, pools | Real-time | High | Free tier |
| Birdeye API | Solana tokens, analytics | Real-time | High | Paid |
| Jupiter Price API | Solana swap prices | Real-time | High | Free |
| CoinGecko | Cross-chain prices | 1-5 min | High | Free tier |
| CoinAPI | Historical + streaming | Configurable | Premium | Paid |
On-Chain Data:
| Source | Data Type | Latency | Quality | Cost |
|---|---|---|---|---|
| Helius RPC | Solana transactions | Real-time | High | Freemium |
| Solscan API | Token info, holders | Near real-time | High | Free tier |
| Dune Analytics | SQL queries | Minutes-hours | High | Freemium |
| Flipside Crypto | Pre-built datasets | Hours | High | Free |
Sentiment & Social:
| Source | Data Type | Latency | Quality | Cost |
|---|---|---|---|---|
| Twitter/X API | Social mentions | Real-time | Medium | Paid |
| LunarCrush | Social metrics | Near real-time | High | Paid |
| Telegram scraping | Community sentiment | Real-time | Low | DIY |
| Reddit API | Discussion sentiment | Minutes | Medium | Free |
DeFi Protocol Data:
| Source | Data Type | Latency | Quality | Cost |
|---|---|---|---|---|
| DefiLlama API | TVL, revenue, yields | 15 min | High | Free |
| Token Terminal | Revenue, P/E ratios | Daily | High | Paid |
| DeFi Pulse | TVL rankings | Hourly | Medium | Free |
| </data_sources> |
<data_governance> Quality Dimensions:
interface DataQualityMetrics {
accuracy: number; // 0-100: correctness vs ground truth
completeness: number; // 0-100: missing values ratio
timeliness: number; // 0-100: freshness score
consistency: number; // 0-100: cross-source agreement
validity: number; // 0-100: schema conformance
}
interface QualityThresholds {
trading_signals: { min: 90, critical: 'timeliness' };
historical_analysis: { min: 85, critical: 'completeness' };
sentiment_analysis: { min: 70, critical: 'consistency' };
backtesting: { min: 95, critical: 'accuracy' };
}
Validation Pipeline:
Raw Data → Schema Validation → Anomaly Detection → Cross-Source Check → Quality Score → Accept/Reject
Validation Rules:
Automated Quality Monitoring:
# Run continuous quality checks
npx tsx .claude/skills/data-orchestrator/scripts/quality-monitor.ts \
--sources "dexscreener,birdeye,jupiter" \
--interval 60 \
--alert-threshold 80
</data_governance>
<pipeline_architecture>
┌─────────────────────────────────────────────────────────────────┐
│ DATA INGESTION LAYER │
├─────────────────────────────────────────────────────────────────┤
│ WebSocket Feeds │ REST Polling │ RPC Subscriptions │
│ (Dexscreener, WS) │ (Coingecko) │ (Helius, Solana) │
└──────────┬──────────┴────────┬─────────┴──────────┬────────────┘
│ │ │
▼ ▼ ▼
┌─────────────────────────────────────────────────────────────────┐
│ VALIDATION & ENRICHMENT │
├─────────────────────────────────────────────────────────────────┤
│ Schema Check │ Anomaly Flag │ Cross-Verify │ Quality Score│
└──────────┬──────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ DATA STORAGE LAYER │
├─────────────────────────────────────────────────────────────────┤
│ Hot Store (Redis) │ Warm Store (SQLite) │ Cold (Parquet) │
│ Real-time prices │ Recent history (7d) │ Historical data │
│ TTL: 5 minutes │ Indexed, queryable │ Compressed, ML │
└──────────┬──────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ CONSUMPTION LAYER │
├─────────────────────────────────────────────────────────────────┤
│ Trading Signals │ ML Training │ Backtesting │ Dashboards │
│ (meme-trader) │ (llama-analyst) │ (meme-executor) │ (Reports)│
└─────────────────────────────────────────────────────────────────┘
Data Flow Configuration:
interface PipelineConfig {
sources: DataSource[];
validationRules: ValidationRule[];
enrichmentSteps: EnrichmentFunction[];
storageTargets: StorageTarget[];
alertsEnabled: boolean;
qualityThreshold: number;
}
const defaultPipeline: PipelineConfig = {
sources: [
{ name: 'dexscreener', type: 'websocket', priority: 1 },
{ name: 'birdeye', type: 'rest', priority: 2 },
{ name: 'jupiter', type: 'rest', priority: 3 },
],
validationRules: ['schema', 'range', 'anomaly', 'freshness'],
enrichmentSteps: ['normalize', 'calculate_indicators', 'tag_quality'],
storageTargets: ['redis:hot', 'sqlite:warm'],
alertsEnabled: true,
qualityThreshold: 85,
};
</pipeline_architecture>
<ml_integration> Data Preparation for ML:
interface MLReadyDataset {
features: {
price_data: TimeSeriesFeatures;
volume_data: TimeSeriesFeatures;
onchain_metrics: OnChainFeatures;
sentiment_scores: SentimentFeatures;
technical_indicators: TechnicalFeatures;
};
labels: {
price_direction: 'up' | 'down' | 'sideways';
price_magnitude: number;
optimal_action: 'buy' | 'sell' | 'hold';
};
metadata: {
timestamp: Date;
token: string;
quality_score: number;
source_count: number;
};
}
interface TimeSeriesFeatures {
values: number[];
timestamps: Date[];
normalized: number[]; // Z-score normalized
lagged: number[][]; // [lag_1, lag_5, lag_15, lag_60]
rolling_stats: {
mean_5: number[];
std_5: number[];
mean_15: number[];
std_15: number[];
};
}
Supported ML Techniques:
Continuous Learning Pipeline:
New Data → Feature Extraction → Model Inference → Signal Generation
↑
Performance Feedback
↓
Model Retraining (Weekly)
</ml_integration>
Backtest Execution:
# Run backtest with historical data
npx tsx .claude/skills/data-orchestrator/scripts/backtest-runner.ts \
--strategy "momentum" \
--token "BONK" \
--start "2024-01-01" \
--end "2024-12-01" \
--initial-capital 1000 \
--slippage 0.01
Backtest Report Output:
BACKTEST REPORT: Momentum Strategy on BONK
Period: 2024-01-01 to 2024-12-01
PERFORMANCE:
- Total Return: +234.5%
- Sharpe Ratio: 1.87
- Max Drawdown: -28.3%
- Win Rate: 62.4%
- Profit Factor: 2.15
TRADES:
- Total Trades: 156
- Avg Trade Duration: 4.2 hours
- Best Trade: +45.2%
- Worst Trade: -12.8%
DATA QUALITY:
- Coverage: 99.2%
- Missing Points: 847 / 105,120
- Quality Score: 94/100
CAVEATS:
- Historical results do not guarantee future performance
- Slippage model: 1% (actual may vary)
- Does not account for: MEV, extreme volatility periods
</backtesting>
<risk_data> Portfolio Metrics:
interface PortfolioData {
positions: {
token: string;
entry_price: number;
current_price: number;
size: number;
unrealized_pnl: number;
allocation_pct: number;
risk_score: number;
}[];
aggregate: {
total_value: number;
total_pnl: number;
daily_var: number; // Value at Risk (95%)
beta_to_sol: number;
concentration_score: number; // Herfindahl index
};
limits: {
max_position_size: number;
max_daily_loss: number;
max_correlation: number;
stop_loss_pct: number;
};
}
Risk Data Sources:
# Start the data pipeline
npx tsx .claude/skills/data-orchestrator/scripts/pipeline-manager.ts \
--mode production \
--sources all \
--storage sqlite,redis
# Validate specific data source
npx tsx .claude/skills/data-orchestrator/scripts/validate-source.ts \
--source dexscreener \
--token "BONK" \
--verbose
# Generate ML-ready dataset
npx tsx .claude/skills/data-orchestrator/scripts/ml-dataset-builder.ts \
--token "BONK" \
--features "price,volume,sentiment" \
--lookback 30 \
--output ./datasets/bonk_ml_ready.parquet
Data Orchestrator receives from:
<validation_rules>
<error_recovery>
| Metric | Target | Measurement |
|---|---|---|
| Data latency (real-time) | < 500ms | WebSocket to storage |
| Validation throughput | > 10K records/sec | Validation pipeline |
| Quality score accuracy | > 95% | vs manual audit |
| Backtest data coverage | > 99% | Historical completeness |
| ML feature freshness | < 5 min | Feature store update |
<see_also>
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