Pattern Matcher

by sakettamrakar

data

A skill to search historical data for price, volume, or event patterns similar to the current context.

Skill Details

Repository Files

2 files in this skill directory


name: pattern-matcher description: A skill to search historical data for price, volume, or event patterns similar to the current context.

Pattern Matcher Skill

Status: Operational
Skill Category: Analysis (Informational)

1. Skill Purpose

The pattern-matcher identifies historical precedents for the current market state. It answers the question: "When have we seen this before?" by connecting live signals to the historical replay database.

2. Invocation Contract

Standard Grammar

Invoke pattern-matcher
Mode: <REAL_RUN | VERIFY>
Target: <symbol | market_id>
ExecutionScope:
  mode: <price | event | hybrid>
  [lookback: <n>]
Options:
  metric: <correlation | dtw>
  threshold: <0.0-1.0>

3. Supported Modes & Selectors

  • REAL_RUN: Search historical data and return a list of similarity-scored "Similar Epochs."
  • VERIFY: Check the integrity of the pattern database for the target symbol.
  • Selectors:
    • price: Match based on OHLCV sequences.
    • event: Match based on Narrative event sequences.
    • hybrid: Match based on concurrent price and event alignment.

4. Hook & Skill Chaining

  • Chained From: Invoked by the Narrative Engine or during Strategy Mapping.
  • Chained To: Results are used to populate signal conviction in the Belief Layer.

5. Metadata & State

  • Inputs: Live OHLCV, historical database, Regime_Taxonomy.md.
  • Outputs: Similarity report with outcome distributions.

6. Invariants & Prohibitions

  1. Read-Only: NEVER modifies historical data or live signals.
  2. No Prediction: Does NOT predict future outcomes; only reports historical base rates.
  3. Context Before Signal: Matches MUST be filtered by the active Regime.

7. Example Invocation

Invoke pattern-matcher
Mode: REAL_RUN
Target: SPY
ExecutionScope:
  mode: price
  lookback: 5
Options:
  metric: dtw
  threshold: 0.85

Related Skills

Xlsx

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas

data

Clickhouse Io

ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.

datacli

Clickhouse Io

ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.

datacli

Analyzing Financial Statements

This skill calculates key financial ratios and metrics from financial statement data for investment analysis

data

Data Storytelling

Transform data into compelling narratives using visualization, context, and persuasive structure. Use when presenting analytics to stakeholders, creating data reports, or building executive presentations.

data

Kpi Dashboard Design

Design effective KPI dashboards with metrics selection, visualization best practices, and real-time monitoring patterns. Use when building business dashboards, selecting metrics, or designing data visualization layouts.

designdata

Dbt Transformation Patterns

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

testingdocumenttool

Sql Optimization Patterns

Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.

designdata

Anndata

This skill should be used when working with annotated data matrices in Python, particularly for single-cell genomics analysis, managing experimental measurements with metadata, or handling large-scale biological datasets. Use when tasks involve AnnData objects, h5ad files, single-cell RNA-seq data, or integration with scanpy/scverse tools.

arttooldata

Xlsx

Spreadsheet toolkit (.xlsx/.csv). Create/edit with formulas/formatting, analyze data, visualization, recalculate formulas, for spreadsheet processing and analysis.

tooldata

Skill Information

Category:Data
Last Updated:1/25/2026