Analysis & Assessment: Using Market Data to Verify Financial Views (CSV)

Preface

Investment-related content often contains natural language judgments such as “bullish on a certain asset” or “the sector will continue to fluctuate.” It is difficult to review these against a unified standard after the fact: whether the asset was parsed correctly, whether the direction was realized, and whether there was excess return compared to the CSI 300 often require manual chart review. If you have a batch of prediction records organized by person and day, and you want an Agent to fetch market data, calculate scores, and generate reports according to fixed rules, you can check out the SkillHub community Skill “Analyse & Judge” (coordinate @user_9894ba11/analyse, package name financial-prediction-verifier).

What is this

“Analyse & Judge” is a community Skill on SkillHub categorized under data-analysis, published by user_9894ba11. The current version is 1.0.0, and the source is marked as community. The SkillHub page summary field is empty; however, the SKILL.md / README.md inside the installation package define it as: Reads financial opinions from a 3-column CSV, parses assets, directions, time windows, and target prices via the Kimi API, fetches data from free market sources like Eastmoney and Sina, calculates scores based on five weighted dimensions, and generates a Markdown report and a detailed CSV.

Unlike “asking the model to verbally comment on whether a prediction was correct,” this Skill solidifies the process in scripts/verify.mjs: parsing, data fetching, and scoring formulas are detailed in the package’s reference.md, facilitating re-runs and comparisons.

Core Features

The following capabilities are derived from the installed package’s SKILL.md, README.md, and reference.md (verified via skillhub install on 2026-10-22).

  1. Input: Requires only a CSV with three columns: predictor, predict_date (YYYY-MM-DD), and prediction_text.
  2. Parsing: Calls the Kimi Open Platform API to extract assets, direction, time range, and target price from Chinese prediction text; a multi-asset prediction can be split into multiple independent scores.
  3. Market Data: Fetches stock market data (documentation specifies sources include Eastmoney / Sina); benchmark comparison uses the CSI 300 return for the same period.
  4. Scoring: Full score is 100. If the direction is incorrect, the total score is 0; if correct, points are accumulated for Direction (50), Excess Return/Alpha (20), Timing (15), Drawdown (10), and Actionability (5). If the window has not expired, the latest closing price is used for a tentative estimate, marked as “Not Expired - Tentative Estimate”.
  5. Output: Generates {input}_report.md and {input}_scores.csv in the same directory as the input CSV.
  6. Runtime Environment: Node.js >= 18, no npm install required (the script bundles the necessary code to run).

SkillHub metadata tags include requires_api_key=true, consistent with the runtime dependency on a Kimi / LLM API Key.

Installation and Activation

Below is the method for installing to the Cursor skills directory locally using the SkillHub CLI; for other Agents, simply change --dir to their respective skills path (see SkillHub Installation Instructions).

  1. Confirm that the skillhub CLI is installed; if not, execute the installation script according to the official documentation.
  2. Install this Skill to the default Cursor directory:
skillhub install analyse --namespace user_9894ba11 --dir ~/.cursor/skills

The general instruction provided on the official page is: Install @user_9894ba11/analyse according to https://skillhub.cn/install/skillhub.md. Upon success, it will land in a path like ~/.cursor/skills/@user_9894ba11/analyse.

  1. Configure API Key (choose one):
  • Environment variables: KIMI_API_KEY, or LLM_API_KEY / MOONSHOT_API_KEY; optional LLM_BASE_URL, LLM_MODEL to override default Kimi endpoints and models.
  • Local file: Copy scripts/.env.local.example to scripts/.env.local and fill in the Key (do not commit real Keys to the repository).

After enabling the Agent Skill in Cursor, you can hand the workflow in SKILL.md to the Agent for execution; for local batch processing, simply navigate to the installation directory and run the script.

Typical Usage

The package provides examples/sample_predictions.csv, which can be used for a trial run first.

Method 1: Command line with Key directly

cd ~/.cursor/skills/@user_9894ba11/analyse
KIMI_API_KEY=sk-xxx node scripts/verify.mjs examples/sample_predictions.csv

Method 2: Using local .env.local

cd ~/.cursor/skills/@user_9894ba11/analyse
cp scripts/.env.local.example scripts/.env.local
# Edit scripts/.env.local to fill in the Key
node scripts/verify.mjs examples/sample_predictions.csv

Input CSV example (consistent with documentation):

predictor,predict_date,prediction_text
Xiao Ming,2025-12-15,Gold can still rise for a while
Xiao Hong,2026-01-10,Can pay attention to LONGi Green Energy later

After the above steps, you should see sample_predictions_report.md and sample_predictions_scores.csv in the same directory (filenames vary with the input basename).

Use Cases and Notes

Who is it for

  • Data analysis or quantitative support roles that need to organize historical opinions from bloggers, researchers, or colleagues into a quantifiable review table.
  • Users already using Agents like Cursor who want to constrain “Parsing + Data Fetching + Scoring” via a Skill rather than improvising in a single conversation.

Limitations and Notes

  • Must provide your own KIMI_API_KEY (or equivalent LLM variables listed in the README); the NLP parsing step cannot be completed without a Key.
  • The SkillHub page summary is empty; details are subject to the documents within the installation package. The internal engineering name is inconsistent with the SkillHub display name “Analyse & Judge”; using the coordinate @user_9894ba11/analyse for searching or troubleshooting is the safest approach.
  • Edge cases such as unmatched assets or parsing errors in direction are explained in reference.md (e.g., if unrecognizable, that entry is not scored).
  • Market data comes from public free sources; rules regarding frequency, trading halts, and using the latest trading day for holidays depend on the implementation; scoring results are for review and comparison and do not constitute investment advice.
  • SkillHub statistics (scraped page): Rating 100000, Downloads 723, Installs 0 (statistics change with platform updates).

Conclusion

“Analyse & Judge” consolidates “Natural Language Financial Prediction → Structured Asset & Direction → Market Backtesting → Weighted Reporting” into a repeatable Skill pipeline, suitable for scenarios with existing CSV archives that require a unified scoring standard. See SkillHub Installation Documentation for installation and priority source configuration; Skill details page: https://www.skillhub.cn/skills/user_9894ba11/analyse.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye