Skip to content
Back to skills

Longbridge Quant

ASecurity

Curated upstream guidance for Longbridge Quant; use when the workflow matches the user goal.

  • 8 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agentsgobashtesting

Works with

  • terminal
  • cli
  • mcp

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 14 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add huytran1120/vietnam-agentic-skills --skill longbridge-quant --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Longbridge Quant?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Longbridge Quant
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/huytran1120-longbridge-quant/badge)](https://www.skillsdirectory.com/skills/huytran1120-longbridge-quant)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Curated upstream guidance for Longbridge Quant; use when the workflow matches the user goal.
name: longbridge-quant
license: MIT
metadata:
  author: longbridge
  version: 1.0.0
  risk_level: read_only
  requires_login: false
  default_install: true
  requires_mcp: false
  tier: read
source_repo: longbridge/skills
source_type: official
source: longbridge
date_added: '2026-09-21'
risk: critical
---
## When to Use
- Use when this upstream workflow matches the user's stated goal.
- Use when the task requires the procedures documented in this skill.

# Longbridge Quant

Quantitative analysis frameworks and CLI indicator scripting via Longbridge.

> **Response language**: match the user's input language — English / Simplified Chinese / Traditional Chinese.
> **RULE: Response language priority**: English is the default when language is ambiguous. If the user input is only a slash command, command name, ticker / symbol, or contains no natural-language language signal, you MUST respond in English. Do not infer Chinese from trigger keywords, skill metadata, or examples.

> **Data-source scope**: this skill documents Longbridge. If its data is unavailable or insufficient, report the gap rather than inventing data or asserting that other sources are disallowed.

> **Connector availability**: discover the tools actually available in the host; do not assume a Longbridge plugin or parity with CLI capabilities.

## When to Use
Trigger when user asks about: quantitative indicator scripts (running against K-line data), pairs trading / cointegration, volatility regime strategies, seasonality / calendar effects, multi-factor stock selection, factor research (IC/IR analysis), factor screening, correlation and cointegration analysis, statistical methods (ADF/GARCH/bootstrap), strategy optimization, execution cost modeling, hedging strategies, or ML-based prediction.

## Sub-topic Routing

| User intent | Load references file |
|---|---|
| Run indicator scripts on kline | references/quant-cli.md |
| Pairs trading / cointegration | references/pairs-trading.md |
| Volatility regime strategy | references/volatility-strategy.md |
| Seasonality / calendar effects | references/seasonality.md |
| Multi-factor model | references/multifactor.md |
| Factor research (IC/IR analysis) | references/factor-research.md |
| Factor screening | references/factor-screen.md |
| Correlation / cointegration | references/correlation.md |
| Statistical methods (ADF/GARCH) | references/quant-stats.md |
| Strategy optimization | references/strategy-optimizer.md |
| Execution cost modeling | references/execution-model.md |
| Hedging strategy design | references/hedging.md |
| ML-based prediction | references/ml-strategy.md |

## CLI: quant

The `quant` command runs user-defined indicator scripts against K-line data.

```bash
longbridge quant --help
```

Use `longbridge kline <SYMBOL> --format json` (from longbridge-market-data) to obtain OHLCV input data.

## Quantitative Frameworks

### Pairs Trading / Statistical Arbitrage
Engle-Granger cointegration, hedge ratio via OLS, Z-score, half-life of mean reversion, entry/exit signals. See [references/pairs-trading.md].

### Volatility Strategy
20-day / 60-day HV, percentile rank, long-vol (buy straddle) vs short-vol (iron condor) regime signals. See [references/volatility-strategy.md].

### Seasonality / Calendar Effects
Month-of-year returns (January Effect), day-of-week effects, pre/post-holiday drift, earnings season effect. See [references/seasonality.md].

### Multi-Factor Model
Value (1/PE, 1/PB), momentum (60-day), quality (ROE), low-vol (60-day HV) — Z-score composite, TopN portfolio. See [references/multifactor.md].

### Factor Research
IC, IR, factor decay, layer backtest, IC-weighted combination. See [references/factor-research.md].

### Factor Screening
Batch screening with PE, PB, ROE, revenue growth, dividend yield filters. See [references/factor-screen.md].

### Correlation & Cointegration
Pairwise return correlation, rolling correlation, Johansen test. See [references/correlation.md].

### Quantitative Statistics
ADF unit-root test, GARCH volatility modeling, regression diagnostics, bootstrap. See [references/quant-stats.md].

### Strategy Optimizer
Parameter sweep, walk-forward optimization, out-of-sample validation. See [references/strategy-optimizer.md].

### Execution Model (Backtest)
Slippage formulas (linear / square-root), VWAP/TWAP logic, market impact estimation. See [references/execution-model.md].

### Hedging Strategy
Beta hedging, options protection, tail-risk hedging, cross-asset hedging. See [references/hedging.md].

### ML Strategy (sklearn)
Rolling walk-forward Random Forest / Gradient Boosting, feature engineering, signal generation. See [references/ml-strategy.md].

## Auth requirements

`quant` execution is analytical but sends the supplied script to a remote service. Market-data access can require login/entitlements; positions require explicit account-access scope. Verify installed CLI capabilities and current permissions. Do not submit proprietary strategy code without authorization.

## Error handling

| Situation | Response |
|---|---|
| `command not found: longbridge` | Install longbridge-terminal |
| `ModuleNotFoundError: sklearn` | Run `pip install scikit-learn` |
| Insufficient data for ADF test | Need at least 50 observations; increase kline history |

## MCP fallback

Use MCP server for kline data if CLI unavailable. Discover tools at runtime.

## Related skills

| User wants | Use |
|---|---|
| Raw K-line data | `longbridge-market-data` |
| Technical analysis | `longbridge-technical` |
| Options volatility | `longbridge-derivatives` |

## File layout

```
longbridge-quant/
├── SKILL.md
└── references/
    ├── quant-cli.md
    ├── pairs-trading.md · volatility-strategy.md · seasonality.md
    ├── multifactor.md · factor-research.md · factor-screen.md · correlation.md
    ├── quant-stats.md · strategy-optimizer.md · execution-model.md
    └── hedging.md · ml-strategy.md
```


## Examples

```text
User: Apply this skill to my current task.
Assistant: Follow the workflow in this skill, cite limitations, and ask before risky steps.
```

## Limitations

- This skill performs analysis, not order execution. Strategy descriptions are hypotheses requiring realistic costs, liquidity, borrow/margin and out-of-sample validation. Do not invent recommendations from missing data.
- For historical research, require point-in-time constituents and fundamentals with publication timestamps; current values cannot support a historical factor backtest. Adjust prices for corporate actions and align currency, timestamps and trading calendars.
- Cite Longbridge only when data was actually retrieved there; report its timestamp, coverage and adjustments. Redact credentials/private account data from errors and reports.

- Imported upstream skill; verify credentials, permissions, and safety boundaries before execution.
- Does not replace environment-specific validation, testing, or maintainer review.

Files in this skill

  • SKILL.md7 KB
  • references/correlation.md3.9 KB
  • references/execution-model.md3.2 KB
  • references/factor-research.md5.1 KB
  • references/factor-screen.md6.1 KB
  • references/hedging.md6.3 KB
  • references/ml-strategy.md5.2 KB
  • references/multifactor.md4.6 KB
  • references/pairs-trading.md4.6 KB
  • references/quant-cli.md5.1 KB
  • references/quant-stats.md6.9 KB
  • references/seasonality.md3.8 KB
  • references/strategy-optimizer.md3.3 KB
  • references/volatility-strategy.md4.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.