evo-macro-cycle-correlation

evo-macro-cycle-correlation is a skill for Claude Code, Codex from OpenLAIR/OpenSkill. It costs 44 tokens per session (579 once invoked), scanned A, original, Apache-2.0.

A macroeconomic analysis pipeline that adjusts nominal values using the Consumer Price Index, separates long-term trends from shorter cycles, and calculates Pearson correlation between two cycles.

In plain words
What is it for?
Use it to compare cyclical movements in two annual economic measures from ERP tables and CPI data.
Why use it?
It automates several preparation steps needed before comparing economic series in real, inflation-adjusted terms.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to compare cyclical movements in two annual economic measures from ERP tables and CPI data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openlair/openskill/evo-macro-cycle-correlation
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 OpenLAIR/OpenSkill --skill evo-macro-cycle-correlation
Clone the repo
git clone --depth 1 https://github.com/OpenLAIR/OpenSkill

Made for: Claude Code, Codex.

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 evo-macro-cycle-correlation

README.md
[![agentmods](https://agentmods.dev/badge/skills/openlair/openskill/evo-macro-cycle-correlation/github.svg)](https://agentmods.dev/skills/openlair/openskill/evo-macro-cycle-correlation)
Your own site
<a href="https://agentmods.dev/skills/openlair/openskill/evo-macro-cycle-correlation"><img src="https://agentmods.dev/badge/skills/openlair/openskill/evo-macro-cycle-correlation/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 evo-macro-cycle-correlation

Your own site · 80×15
<a href="https://agentmods.dev/skills/openlair/openskill/evo-macro-cycle-correlation"><img src="https://agentmods.dev/badge/skills/openlair/openskill/evo-macro-cycle-correlation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 579 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.00044 $0.00579
Opus 5 $0.00022 $0.00290
Sonnet 5 $0.00009 $0.00116
Haiku 4.5 $0.00004 $0.00058

Measured today against content hash 967d5079e80b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

evo-macro-cycle-correlation 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 today.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/utils.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

tasks-evolved/econ-detrending-correlation/environment/skills/evo-macro-cycle-correlation/SKILL.md · 66 lines

How it starts

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

evo-macro-cycle-correlation

Deflates nominal macroeconomic series, applies HP filter for cycle extraction, and computes Pearson correlation between cyclical components.

Key Functions

deflate_nominal_to_real(nominal, cpi)

Converts nominal to real values: Real_t = (Nominal_t / CPI_t) * 100

extract_hp_cycle(real_series, lamb=100)

Applies np.log() then HP filter (statsmodels hpfilter) to extract cyclical component.

  • Uses natural log (np.log, NOT np.log10)
  • hpfilter returns (cycle, trend) - parameter name is lamb
  • lamb=100 for annual data (standard)

compute_cycle_pearson_correlation(cycle1, cycle2)

Computes Pearson r using scipy.stats.pearsonr (returns PearsonRResult.statistic)

run_full_pipeline(pce_file, pfi_file, cpi_file, ...)

Complete end-to-end pipeline: parse -> deflate -> HP filter -> correlate -> output. Depends on evo-macro-data-ingestion for data parsing.

Usage

import sys
sys.path.insert(0, '/app/environment/skills/evo-macro-cycle-correlation/scripts')
from utils import run_full_pipeline

correlation = run_full_pipeline(
    pce_file='/root/ERP-2025-table10.xls',
    pfi_file='/root/ERP-2025-table12.xls',
    cpi_file='/root/CPI.xlsx',
    start_year=1973,
    end_year=2024,
    hp_lambda=100,
    output_file='/root/answer.txt'
)

Technical Details

Deflation

  • Formula: Real = (Nominal / CPI) * 100
  • CPI base period doesn't matter for HP cycle analysis (log differences cancel it)

HP Filter

  • Import: from statsmodels.tsa.filters.hp_filter import hpfilter
  • Signature: hpfilter(x, lamb=1600) - use lamb=100 for annual data
  • Returns: (cycle, trend) tuple
  • Input must have NO NaN values

Pearson Correlation

  • scipy.stats.pearsonr returns PearsonRResult object (scipy 1.14.1)
  • Access correlation via .statistic attribute
  • Output formatted with f"{value:.5f}" for exactly 5 decimal places

Year Range

  • Use pandas .loc[1973:2024] for inclusive filtering
  • .loc is inclusive of both start and stop labels

Read the full file on GitHub · 66 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today First seen · 66 lines · 44 tokens per session scan A 967d5079e80b

Subscribe to this mod's changes

evo-macro-cycle-correlation is a skill published in the GitHub repository OpenLAIR/OpenSkill (88 stars, last pushed yesterday), licensed Apache-2.0. It adds 44 tokens to every session and 579 once invoked, about $0.0002 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-09-11.

Related

Other skills, from other repositories

fba-simulator

Run Flux Balance Analysis (FBA) and related constraint-based simulations using COBRApy. Covers standard FBA, parsimonious FBA (pFBA), Flux Variability Analysis (FVA), loopless FBA, gene/reaction knockouts, and carbon source swapping. Outputs flux distributions and CSV files.

aiming-lab/AutoResearchClaw · 69 tokens

gsmm-validator

Validate a COBRApy genome-scale metabolic model for mass/charge balance, stoichiometric consistency, biomass producibility, dead-end metabolites, thermodynamic loops, and GPR rule formatting. Outputs a structured validation report with errors and warnings.

aiming-lab/AutoResearchClaw · 52 tokens

gsmm-builder

Build or load a genome-scale metabolic model (GSMM) using COBRApy. Covers loading from BIGG, constructing minimal models from scratch, setting medium constraints, and exporting validated .json model files.

aiming-lab/AutoResearchClaw · 45 tokens

stat-result-validator

Validate statistical research outputs for formulation quality, method-to- problem alignment, theory presence, experimental evidence, fair comparison, artifact completeness, and final-claim consistency.

aiming-lab/AutoResearchClaw · 36 tokens

statistical-theory-analysis

Analyze theoretical properties of statistical methods under the formal formulation: identifiability, bias, variance, consistency, asymptotics, coverage, error bounds, robustness, and limitations.

aiming-lab/AutoResearchClaw · 41 tokens

mixed-precision

Use FP16/BF16 mixed precision to accelerate training and reduce memory. Use when optimizing GPU performance.

aiming-lab/AutoResearchClaw · 25 tokens