alternative-data-integrator

alternative-data-integrator is a skill for Claude Code from mahmoud20138/Tradecraft. It costs 128 tokens per session (1,179 once invoked), scanned A, original, MIT.

A framework for turning non-traditional information into trading signals. Examples include Google search interest, web traffic, shipping data, satellite imagery proxies, and economic indicators.

In plain words
What is it for?
Use it to process sources such as Google Trends, shipping rates, job postings, restaurant bookings, electricity use, credit spreads, and copper-to-gold ratios.
Why use it?
It helps traders examine clues about demand, supply chains, or economic activity that may not appear in price charts alone. The description says web searches are used to fetch some of this data.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the tradecraft plugin — 58 skills shipped together

Good fit Use it to process sources such as Google Trends, shipping rates, job postings, restaurant bookings, electricity use, credit spreads, and copper-to-gold ratios.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mahmoud20138/tradecraft/alternative-data-integrator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mahmoud20138/Tradecraft --skill alternative-data-integrator
Clone the repo
git clone --depth 1 https://github.com/mahmoud20138/Tradecraft

Made for: Claude Code.

Or install tradecraft, the plugin that ships this one along with the rest of its 58 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for alternative-data-integrator

README.md
[![agentmods](https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/alternative-data-integrator/github.svg)](https://agentmods.dev/skills/mahmoud20138/tradecraft/alternative-data-integrator)
Your own site
<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/alternative-data-integrator"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/alternative-data-integrator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for alternative-data-integrator

Your own site · 80×15
<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/alternative-data-integrator"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/alternative-data-integrator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,179 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00128 $0.01179
Opus 5 $0.00064 $0.00589
Sonnet 5 $0.00026 $0.00236
Haiku 4.5 $0.00013 $0.00118

Measured 10d ago against content hash 3256c584333d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

alternative-data-integrator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/tradecraft/skills/alternative-data-integrator/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Alternative Data Integrator

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",
        }

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 100 lines · 128 tokens per session scan A 3256c584333d

Subscribe to this mod's changes

alternative-data-integrator is a skill published in the GitHub repository mahmoud20138/Tradecraft (15 stars, last pushed 4mo ago), licensed MIT. It adds 128 tokens to every session and 1,179 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

lonestaroracle-data

Live pay-per-call data for crypto and DeFi protocol risk, funding rates, open interest, liquidations, stablecoin health, macro, equities, and on-chain intelligence — settled per query in USDC on Base via x402, no signup or API key.

BankrBot/skills · 58 tokens

etf-premium

Calculate ETF premium/discount vs NAV via Yahoo Finance, and decompose single-day surges into NAV-driven vs structural components (gamma squeeze, dealer hedging, blocked AP arbitrage). Use whenever the user asks about an ETF's premium or discount, NAV comparison, why an ETF diverged from its holdings, or how much of a…

himself65/finance-skills · 223 tokens

stock-liquidity

Analyze stock liquidity using bid-ask spreads, volume profiles, order book depth, market impact estimates, and turnover ratios via Yahoo Finance data. Use this skill whenever the user asks about liquidity, trading costs, bid-ask spread, market depth, volume analysis, slippage, market impact, turnover ratio, or how…

himself65/finance-skills · 188 tokens

tradingview-reader

Read TradingView desktop app for market data, news, alerts, watchlists, and screener results using opencli (read-only). Use this skill whenever the user wants quotes, options chains, options expiries, screener results across stocks/crypto/forex/futures/bonds, gainers/losers/movers, news headlines or full story bodies…

himself65/finance-skills · 247 tokens

company-valuation

Estimate the intrinsic value of a public company using DCF, relative (peer multiple) and sum-of-parts (SOTP) methods, then triangulate to an implied share price with upside/downside versus the current market price. Use this skill whenever the user asks: "what is AAPL worth", "valuation of NVDA", "fair value of TSLA"…

himself65/finance-skills · 234 tokens

sepa-strategy

Analyze stocks using Mark Minervini's SEPA (Specific Entry Point Analysis) methodology. Use this skill whenever the user mentions SEPA, Minervini, superperformance, trend template, VCP (Volatility Contraction Pattern), Stage 2 uptrend, stage analysis, pivot point breakout, or asks about growth stock screening…

himself65/finance-skills · 194 tokens