xalpha: Skill for Claude Code

.agents/skills/question2report/SKILL.md

question2report is a skill for Claude Code from refraction-ray/xalpha. It costs 75 tokens per session (3,002 once invoked), scanned A, original, MIT.

A workflow that turns a natural-language financial question into a self-contained HTML report. It covers choosing the scope, obtaining and cleaning data, calculating results, and adding charts and tables.

In plain words
What is it for?
Use it for questions comparing investments, funds, indexes, or strategies when the result should be a polished HTML report.
Why use it?
It organizes the work needed to answer financial comparisons consistently instead of leaving data collection and analysis undefined.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: installed under .agents/ (shared by several agents).

This is refraction-ray/xalpha's own configuration. It tells Claude Code how to work on xalpha 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 xalpha configures →

About the project

xalpha is a Python toolkit for managing and analyzing fund investments, including market-data retrieval, portfolio records, visualization, and strategy backtesting. It is for investors and quantitative researchers who track recurring or grid-based investments across financial markets, including through supported quantitative platforms. The catalogue add-ons provide agent workflows for using xalpha.

refraction-ray/xalpha · 2,746 stars · on GitHub · xalpha.readthedocs.io

Reuse

Borrowing it

Nothing to install: this file belongs to refraction-ray/xalpha. 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/refraction-ray/xalpha/master/.agents/skills/question2report/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/refraction-ray/xalpha

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 question2report

README.md
[![agentmods](https://agentmods.dev/badge/skills/refraction-ray/xalpha/question2report/github.svg)](https://agentmods.dev/skills/refraction-ray/xalpha/question2report)
Your own site
<a href="https://agentmods.dev/skills/refraction-ray/xalpha/question2report"><img src="https://agentmods.dev/badge/skills/refraction-ray/xalpha/question2report/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 question2report

Your own site · 80×15
<a href="https://agentmods.dev/skills/refraction-ray/xalpha/question2report"><img src="https://agentmods.dev/badge/skills/refraction-ray/xalpha/question2report.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,002 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00075 $0.03002
Opus 5.5 $0.00030 $0.01201
Sonnet 5.5 $0.00015 $0.00600
Haiku 4.5 $0.00007 $0.00300

Measured 2mo ago against content hash 8644d4e6ed65, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

question2report 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 2mo 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.

.agents/skills/question2report/SKILL.md · 248 lines

How it starts

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

Question → Report Skill

Transform a user's free-form financial question into a production-quality, self-contained HTML report with embedded charts and tables.

Pipeline

User Question
     │
     ▼
┌──────────────────┐
│ 1. ANALYZE       │  Parse intent, identify assets, metrics, time range
└────────┬─────────┘
         │
         ▼
┌──────────────────┐
│ 2. CONFIRM       │  Present analysis plan to user; agree on scope
└────────┬─────────┘
         │
         ▼
┌──────────────────┐
│ 3. DISCOVER API  │  Explore the xalpha codebase to find suitable APIs
└────────┬─────────┘
         │
         ▼
┌──────────────────┐
│ 4. FETCH & CLEAN │  Write & run a Python script; handle errors & NaN
└────────┬─────────┘
         │
         ▼
┌──────────────────┐
│ 5. ANALYZE DATA  │  Compute metrics appropriate to the question
└────────┬─────────┘
         │
         ▼
┌──────────────────┐
│ 6. GENERATE HTML │  Build a beautiful, self-contained HTML report
└──────────────────┘

Step 1 — Analyze the Question

Parse the user's natural-language question and extract:

  • Subject: What assets, funds, indices, or strategies are being discussed?
  • Comparison / benchmark: Is there a reference to compare against?
  • Time range: Explicit dates, or implied ("last 3 years", "since inception"). Default to the most recent 3 full calendar years if unspecified.
  • Desired output: What kind of insights does the user want? (rankings, trend comparison, risk analysis, prediction accuracy, etc.)

If fund codes or asset identifiers are not given, research them via web search or by exploring the xalpha codebase for relevant list/search APIs.

Step 2 — Confirm Scope

Before any data work, present a concise plan to the user:

📋 Analysis Plan
─────────────────────────────────
Subject   : <what is being analyzed>
Assets    : <list of codes / tickers>
Period    : <start> → <end>
Analysis  : <what metrics / comparisons will be computed>
Charts    : <what visualizations will be included>
─────────────────────────────────
Shall I proceed, or would you like to adjust?

Read the full file on GitHub · 248 lines

Files

What ships with it

2 files 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. 2mo ago First seen · 248 lines · 75 tokens per session scan A 8644d4e6ed65

Subscribe to this mod's changes

question2report is a skill published in the GitHub repository refraction-ray/xalpha (2,746 stars, last pushed 3mo ago), licensed MIT. It adds 75 tokens to every session and 3,002 once invoked, about $0.0003 per session on Opus 5.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

question2report compared with skills from other repositories

question2report next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
question2reportrefraction-ray/xalphaSkill2.7k3mo agoMITA75Claude Code
dcf-modelginlix-ai/LangAlphaSkill2.2ktodayApache-2.0A56Claude Code, Codex
comps-analysisginlix-ai/LangAlphaSkill2.2ktodayApache-2.0A48Claude Code, Codex
company-profileginlix-ai/LangAlphaSkill2.2ktodayApache-2.0A68Claude Code, Codex
check-modelginlix-ai/LangAlphaSkill2.2ktodayApache-2.0A72Claude Code, Codex
ui-designginlix-ai/LangAlphaSkill2.2ktodayApache-2.0A24Claude Code, Codex
check-deckginlix-ai/LangAlphaSkill2.2ktodayApache-2.0A63Claude Code, Codex