Generates structured report folders with meta, tables, and figures after PyBondLab portfolio formation runs. Use after StrategyFormation, BatchStrategyFormation, or BatchWithinFirmSortFormation.
Ships in ai-asset-pricing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Automatically generates a structured report folder after every PyBondLab run.
After any call to StrategyFormation.fit(), BatchStrategyFormation.fit(), BatchWithinFirmSortFormation.fit(), or DataUncertaintyAnalysis.fit() — always invoke the reporter before presenting results.
from PyBondLab.report import ResultsReporter
reporter = ResultsReporter(
result=result, # FormationResults or BatchResults
mnemonic='cs_single_5', # short name
script_text=SCRIPT, # the Python code that produced result
output_dir='results', # root directory (or project scripts/tests/{test}/output/)
)
report_path = reporter.generate()
| Strategy | Pattern | Example |
|---|---|---|
| SingleSort | {signal}_single_{nport} | cs_single_5 |
| DoubleSort | {var1}_{var2}_double_{n1}x{n2} | rat_cs_double_3x5 |
| WithinFirmSort | {signal}_wfs | cs_wfs |
| Batch SingleSort | batch_{n_signals}s | batch_3s |
| Batch WithinFirm | batchwfs_{n_signals}s | batchwfs_3s |
| FF-style | ff_{var1}_{var2}_{n1}x{n2} | ff_sze_bbtm_2x3 |
Single strategy: results/{mnemonic}_{YYYY_mm_dd}/ with meta.json, script.py, tables/summary_stats.csv, figures/portfolio_premia.png, figures/factor_bars.png, figures/cumret_turnover.png.
Batch: adds per-signal subfolders + summary/factor_comparison.png, summary/summary_stats.csv, and summary/factor_panel.parquet (sign-corrected tidy panel via extract_panel with NamingConfig(sign_correct=True)).
SCRIPT variable at the top of your codeResultsReporter(result, mnemonic, script_text=SCRIPT).generate()scripts/tests/{test_name}/output/ when working within a projectWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/ai-asset-pricing:pybondlab-reportfrom ai-asset-pricing
ai-asset-pricing@fin-skills is listed by howard-lynn-ye/fin-rsi — review the source before installing
npx claudepluginhub howard-lynn-ye/fin-rsi --plugin ai-asset-pricing38 skills in this plugin
/bond-dataReference for the Dickerson corporate bond dataset: column mappings between WRDS and PyBondLab, rating encoding, return definitions, signal clusters, and data gotchas. Auto-apply when loading bond data for PyBondLab analysis.Other plugins' skills for the same job