ai-asset-pricing: Skill for Claude Code

.claude/skills/run/SKILL.md

run is a skill for Claude Code from Alexander-M-Dickerson/ai-asset-pricing. It costs 65 tokens per session (1,666 once invoked), scanned A, original, MIT.

A command-line runner for single or batch portfolio sorts using Dickerson bond data. A portfolio sort groups investments according to signals such as credit spread, yield to maturity, or bond characteristics.

In plain words
What is it for?
Use it to run single or batch sorts, optionally by rating or within firms, with settings for portfolio count and holding period.
Why use it?
It provides a direct way to run known sorting workflows without starting a separate coordinating agent.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is Alexander-M-Dickerson/ai-asset-pricing's own configuration. It tells Claude Code how to work on ai-asset-pricing itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-asset-pricing configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Alexander-M-Dickerson/ai-asset-pricing. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Alexander-M-Dickerson/ai-asset-pricing/main/.claude/skills/run/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Alexander-M-Dickerson/ai-asset-pricing

Made for: Claude Code.

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 run

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexander-m-dickerson/ai-asset-pricing/run/github.svg)](https://agentmods.dev/skills/alexander-m-dickerson/ai-asset-pricing/run)
Your own site
<a href="https://agentmods.dev/skills/alexander-m-dickerson/ai-asset-pricing/run"><img src="https://agentmods.dev/badge/skills/alexander-m-dickerson/ai-asset-pricing/run/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 run

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexander-m-dickerson/ai-asset-pricing/run"><img src="https://agentmods.dev/badge/skills/alexander-m-dickerson/ai-asset-pricing/run.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,666 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.00065 $0.01666
Opus 5 $0.00032 $0.00833
Sonnet 5 $0.00013 $0.00333
Haiku 4.5 $0.00006 $0.00167

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

Security

Grade A, and why

run 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 11d 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.

.claude/skills/run/SKILL.md · 157 lines

How it starts

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

/run — Fast Portfolio Sort Execution

Executes batch or single portfolio sorts on the Dickerson bond dataset without spawning an agent. One Bash call, results saved automatically.

Arguments

/run <mode> <signals...> [options]
Argument Values Default
mode batch, single required
signals space-separated signal names (e.g., cs ytm bbtm) required
--wfs Use WithinFirmSort instead of SingleSort off
--rating IG, NIG, or omit for all all
--nport Number of portfolios (SingleSort only) 5
--hp Holding period 1

Execution Steps

  1. Parse arguments from the user's /run command
  2. Determine the bond data path — look for Dickerson bond parquet in data/ (check metadata.json for datasets from bonds-wrds-expert), or use the path from canonical local state reported by tools/bootstrap.py audit
  3. Generate the Python script from the template below (fill in signals, options, data path)
  4. Execute via single Bash call using the Python path from canonical local state reported by tools/bootstrap.py audit
  5. Print the mandatory summary table:
| Signal | Weight | Mean(%) | t-stat | SR | Turn(%) |

All values annualized (%). Turnover = avg monthly two-way (%).

  1. Follow with 2-3 sentences interpreting the results. Always state the sample period (first and last date in the returns).

Date Filtering

The TRACE-aligned sample filter (2002-08 to 2024-12) should only be applied when:

  • The data is corporate bond / bond data, AND
  • The user explicitly requests a TRACE-aligned sample

Otherwise, use the full date range in the data as-is. Do NOT hardcode the TRACE filter by default.

Template: Batch SingleSort

import warnings; warnings.filterwarnings('ignore')
import pandas as pd
import numpy as np
import PyBondLab as pbl
from PyBondLab.report import ResultsReporter
from PyBondLab.describe.utils import compute_nw_tstat

SIGNALS = {signals}          # e.g., ['cs', 'ytm', 'bbtm']
RATING = {rating}            # None, 'IG', or 'NIG'
NPORT = {nport}              # e.g., 5
HP = {hp}                    # e.g., 1
MNEMONIC = '{mnemonic}'      # e.g., 'batch_3s'

SCRIPT = '<generated by /run skill>'

data = pd.read_parquet('{data_path}')
# TRACE-aligned filter: ONLY apply if corporate bond data AND user requests TRACE-aligned sample
# data = data[(data['date'] >= '2002-08-01') & (data['date'] <= '2024-12-31')]
data['spc_rat'] = data['spc_rat'].astype('float64')

batch = pbl.BatchStrategyFormation(
    data=data, signals=SIGNALS,
    holding_period=HP, num_portfolios=NPORT,
    turnover=True, rating=RATING,
    columns={'ID': 'cusip', 'ret': 'ret_vw', 'VW': 'mcap_e', 'RATING_NUM': 'spc_rat'},
    n_jobs=-2, verbose=False,
)
results = batch.fit()

report_path = ResultsReporter(results, mnemonic=MNEMONIC, script_text=SCRIPT).generate()

# Print summary table
rows = []
for sig in SIGNALS:
    r = results[sig]
    ew_ls, vw_ls = r.get_long_short()
    for label, ls in [('EW', ew_ls), ('VW', vw_ls)]:
        valid = ls.dropna()
        ann_mean = valid.mean() * 12 * 100
        sr = valid.mean() / valid.std() * np.sqrt(12) if valid.std() > 0 else 0
        nw_lag = int(len(valid) ** 0.25)
        t = compute_nw_tstat(valid, nw_lag=nw_lag)[0]
        turn = '—'
        try:
            ew_t, vw_t = r.get_turnover()
            td = ew_t if label == 'EW' else vw_t
            if td is not None and not td.empty:
                turn = f'{td.mean().mean() * 100:.1f}'
        except: pass
        rows.append((sig, label, ann_mean, t, sr, turn))

print('|Signal|Weight|Mean(%)|t-stat|SR|Turn(%)|')
print('|---|---|---|---|---|---|')
for sig, wt, m, t, sr, turn in rows:
    print(f'|{sig}|{wt}|{m:.2f}|{t:.2f}|{sr:.3f}|{turn}|')
first_sig = SIGNALS[0]
r0 = results[first_sig]
ew0, _ = r0.get_long_short()
print(f'Sample: {ew0.dropna().index[0].strftime("%Y-%m")} to {ew0.dropna().index[-1].strftime("%Y-%m")}')
print(f'Report: {report_path}')

Read the full file on GitHub · 157 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. 11d ago First seen · 157 lines · 65 tokens per session scan A 28fed4c6d587

Subscribe to this mod's changes

run is a skill published in the GitHub repository Alexander-M-Dickerson/ai-asset-pricing (59 stars, last pushed 4mo ago), licensed MIT. It adds 65 tokens to every session and 1,666 once invoked, about $0.0003 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

sector-rotation

An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.

HKUDS/Vibe-Trading · 39 tokens

strategy-pivot-designer

Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.

tradermonty/claude-trading-skills · 28 tokens

twitter-reader

Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…

himself65/finance-skills · 161 tokens

chenhao-limit-up

A framework for judging Chinese A-share stocks that have reached the daily price-rise limit, using market mood, sector leadership, and trading momentum.

questflowai/investorskills · 44 tokens

trading-risk-gate

Unified pre-trade safety gate: Ruin check (Law #1), ergodicity audit, and win-rate dominance validation. Absorbs: ergodicity-check, law-of-ruin, win-rate-dominance.

winstonkoh87/Athena-Public · 53 tokens

furusato

A Japanese hometown-tax donation manager for furusato nozei, a system where donations to municipalities can qualify for an income-tax or local-tax deduction. It reads donation receipts, stores donation records, and calculates deduction limits.

kazukinagata/shinkoku · 102 tokens