/tradecraft:alternative-data-integratorfrom tradecraft
Integrates alternative data sources (Google Trends, shipping indices, web traffic, satellite proxies) into trading signals. Use when the user requests non-standard indicators like search trends, nowcasting, Baltic Dry, or big data for trading decisions.
Ships in tradecraft. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
import pandas as pd
import numpy as np
from datetime import datetime
class AlternativeDataSources:
"""
Framework for integrating alternative data. In Claude context, use web_search
to fetch data, then process through these analytical pipelines.
"""
# Web search queries for alt data
SEARCH_QUERIES = {
"google_trends": "Google Trends {keyword} interest over time",
"baltic_dry": "Baltic Dry Index today shipping",
"economic_surprise": "Citigroup Economic Surprise Index",
"credit_spreads": "US high yield credit spread OAS today",
"copper_gold_ratio": "copper gold ratio economic indicator",
"shipping_rates": "container shipping rates index",
"job_postings": "Indeed job postings trend {country}",
"restaurant_bookings": "OpenTable restaurant bookings trend",
"electricity_consumption": "electricity consumption {country} trend",
}
@staticmethod
def google_trends_signal(trend_data: pd.Series, asset: str) -> dict:
"""Process Google Trends data into trading signal.
Rising search interest often leads price moves by 1-4 weeks."""
if len(trend_data) < 10:
return {"error": "Need at least 10 data points"}
momentum = trend_data.pct_change(4).iloc[-1] # 4-week momentum
z_score = (trend_data.iloc[-1] - trend_data.rolling(52).mean().iloc[-1]) / (trend_data.rolling(52).std().iloc[-1] or 1)
return {
"asset": asset,
"current_interest": int(trend_data.iloc[-1]),
"4w_momentum": round(momentum * 100, 1),
"z_score": round(z_score, 2),
"signal": "ELEVATED ATTENTION — potential move incoming" if abs(z_score) > 2 else "NORMAL",
"note": "Google Trends leads retail flows by 1-4 weeks. Contrarian at extremes.",
}
@staticmethod
def economic_nowcast(indicators: dict) -> dict:
"""Combine real-time indicators for economic activity nowcast."""
scores = {
"baltic_dry_change": indicators.get("baltic_dry_mom", 0) * 0.15,
"credit_spread_change": -indicators.get("credit_spread_change", 0) * 0.20,
"copper_gold_ratio_change": indicators.get("copper_gold_mom", 0) * 0.20,
"job_postings_change": indicators.get("job_postings_mom", 0) * 0.15,
"electricity_change": indicators.get("electricity_mom", 0) * 0.10,
"shipping_rates_change": indicators.get("shipping_mom", 0) * 0.10,
"consumer_traffic_change": indicators.get("consumer_traffic_mom", 0) * 0.10,
}
composite = sum(scores.values())
return {
"nowcast_score": round(composite, 4),
"components": scores,
"regime": "EXPANSION" if composite > 0.02 else "CONTRACTION" if composite < -0.02 else "STABLE",
"fx_implication": "Risk-on currencies favored (AUD, NZD, CAD)" if composite > 0.02
else "Risk-off currencies favored (JPY, CHF, USD)" if composite < -0.02
else "Mixed — trade pair-specific fundamentals",
}
@staticmethod
def sentiment_from_search_volume(keywords: dict) -> dict:
"""Map search volume patterns to market sentiment."""
fear_keywords = ["recession", "market crash", "financial crisis", "bank run"]
greed_keywords = ["bull market", "stock tips", "get rich", "crypto moon"]
fear_score = sum(keywords.get(k, 0) for k in fear_keywords)
greed_score = sum(keywords.get(k, 0) for k in greed_keywords)
net = greed_score - fear_score
return {
"fear_index": fear_score,
"greed_index": greed_score,
"net_sentiment": round(net, 2),
"interpretation": "FEAR dominant — contrarian buy signal" if net < -50
else "GREED dominant — contrarian sell signal" if net > 50
else "BALANCED",
}
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mahmoud20138/tradecraft --plugin tradecraft169 skills in this plugin
/agent-developmentThis skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins./agentic-storageAgentic storage architecture — persistent memory for AI agents using MCP, immutable versioning, sandboxing, and intent validation. Covers the stateless problem in LLM agents, RAG limitations (read-only), MCP protocol (JSON-RPC, resources, tools), storage safety layers, and agent file system design. Source: IBM Technology (Martin Keen), March 2026. Use this skill for "agentic storage", "agent memory", "persistent agent state", "MCP storage", "agent file system", "agent hard drive", "stateless agent problem", "agent work product", "immutable versioning", "agent sandboxing", "intent validation", "agent safety layers", "agent context window limits", "storage for AI agents", "agent persistence", "autonomous agent storage", "agent audit trail". Works with mcp-integration, trading-brain, agents, trade-psychology-coach.
/ai-agent-builderExpert guide for building AI-powered coding agents that produce professional-quality output. Trigger whenever the user asks to build an AI agent, coding assistant, automation pipeline, tool-using LLM system, or says "agent", "agentic", "tool use", "function calling", "LLM pipeline", "AI workflow", "coding bot", or "autonomous AI". Covers agent architecture, tool design, skill loading, prompt engineering, context management, evaluation loops, and multi-step orchestration using the Claude API or any LLM API./ai-signal-aggregatorML-powered signal aggregation across ALL strategy skills — combines signals from every strategy using weighted voting, random forest meta-learner, and confidence calibration. THE MASTER SIGNAL COMBINER. Use for "combine all signals", "aggregate strategies", "meta strategy", "AI signal", "ensemble signal", "which signal to follow", "best signal now", "combine everything", "master signal", "AI recommendation", or any request to synthesize signals from multiple skills. This is the intelligence layer ABOVE trading-brain.
/ai-trading-crewAI Trading Crew — 50-agent AutoGen system for US stock analysis. 8 specialized teams (Technical, Fundamental, Macro, Sentiment, Quant, Risk, Execution, Strategy) reporting to a Head Coach supervisor. Risk team has veto power. Devil's Advocate agent f/analyzeInstant full trading analysis — just type a symbol. Auto-detects asset class, timeframe, and runs the complete 18-phase master workflow. Use for ANY ticker/symbol like "EURUSD", "AAPL", "BTCUSD", "XAUUSD", "SPY", "NQ", "ES". This is THE one-command entry point.Other plugins' skills for the same job