CtrlK
BlogDocsLog inGet started
Tessl Logo

correlation-analysis

Correlation and cointegration analysis — co-movement discovery, deep return-correlation analysis, sector clustering, realized correlation, Engle-Granger / Johansen cointegration, half-life, Kalman dynamic hedge ratio, cross-market linkage analysis, and pair-trading signal generation

57

Quality

72%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./a_全网优秀资源/10_大模型/07_skill包/vibe_trading_skills/correlation-analysis/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

63%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

Highly actionable content with excellent executable code, decision tables, and a coherent pair-trading workflow. Its two structural weaknesses are token efficiency — most of the code re-derives standard statistics Claude already knows — and the total absence of progressive disclosure, with everything inlined in one ~1,100-line file instead of split into scripts/ and references/ bundles.

Suggestions

Move the 14 analysis functions into a scripts/ (or references/) bundle and keep SKILL.md as a thin overview with well-signaled pointers, per the progressive-disclosure rationale.

Delete or compress boilerplate Claude can write unaided (OLS/pearsonr plumbing, the Kalman filter loop) and retain only the non-obvious parts: delta tuning guidance, threshold tables, empirical market patterns, and pitfall notes.

Add a short 'Choosing a mode' decision table at the top so the four modes and the cointegration framework share one explicit entry point.

DimensionReasoningScore

Conciseness

The ~1,100-line body inlines complete textbook implementations Claude already knows (OLS regression, scipy pearsonr/spearmanr calls, a hand-rolled Kalman filter, Engle-Granger via statsmodels.coint), so a large fraction of the 39 KB is boilerplate rather than non-obvious knowledge. The empirical pattern tables (regime correlations, A-share sector pairs, cross-market lags) do add genuine value, keeping this above a 1.

2 / 5

Actionability

Every section ships fully executable, copy-paste-ready functions with typed signatures and docstrings, plus concrete decision tables (entry_z 2.5/2.0/1.5, half-life bands, correlation screening bands), a pip install line, and a worked signal state machine — comprehensive coverage of the common cases.

5 / 5

Workflow Clarity

The 5-step workflow (screening → spread quality → hedge-ratio selection → signals → monitoring) is clearly sequenced and includes validation steps (cointegration p-values, out-of-sample checks, spread-health warnings). It falls short of a 5 because mode selection is left to one-line 'Use case' notes and the checkpoints are distributed across sections rather than forming one coherent checklist.

4 / 5

Progressive Disclosure

In-file sectioning and headers are good, but no references/, scripts/, or assets/ bundles exist — all 14 complete functions, visualization templates, and reference tables are inlined in a single monolithic SKILL.md where the bulk of the code clearly belongs in separate bundle files.

3 / 5

Total

14

/

20

Passed

Description

71%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A highly specific, well-scoped description that comprehensively names the skill's capabilities in third person. Its main weakness is the complete absence of 'when to use' trigger guidance, which caps completeness and limits natural-phrase matching.

Suggestions

Append a trigger clause such as 'Use when the user asks about correlation between assets, cointegration or pairs-trading candidates, mean reversion, or hedge ratios.'

Add natural synonyms users actually say: 'pairs trading', 'statistical arbitrage', 'mean reversion', 'stat-arb'.

Optionally mention input context (price/return series) so the when-clause is concrete rather than generic.

DimensionReasoningScore

Specificity

The description enumerates the skill's full capability set with concrete named actions ('co-movement discovery, deep return-correlation analysis, sector clustering, realized correlation, Engle-Granger / Johansen cointegration, half-life, Kalman dynamic hedge ratio, cross-market linkage analysis, and pair-trading signal generation'), matching the comprehensive-coverage anchor with no gaps.

5 / 5

Completeness

The 'what' is explicit and detailed, but there is no 'Use when...' clause or any equivalent trigger guidance, which caps completeness at 3 per the rubric guideline.

3 / 5

Trigger Term Quality

Good natural keywords ('correlation', 'cointegration', 'clustering', 'pair-trading signal') but common user phrasings like 'pairs trading', 'mean reversion', and 'statistical arbitration' are missing, so coverage is good but not comprehensive.

4 / 5

Distinctiveness Conflict Risk

It occupies a clear niche (co-movement and cointegration analytics for pairs trading) with distinct technical triggers; only minor overlap risk with a broad 'quantitative analysis' skill.

4 / 5

Total

16

/

20

Passed

Validation

87%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (1103 lines); consider splitting into references/ and linking

Warning

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

14

/

16

Passed

Repository
charliedream1/ai_quant_trade
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.