Relative Valuation
Yijia-Xiao/FinanceHarness
Value an equity against its peers — peer-median trading multiples applied to the company's metrics for an implied range, cross-read against its own valuation ratios.
Measures spreads, order-flow toxicity (VPIN, Kyle's lambda) and liquidity (Amihud, Roll) to improve cost estimates and execution, including China A-share auction and block trade mechanics.
$ npx skills add HKUDS/Vibe-Trading --skill market-microstructure -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install HKUDS/Vibe-Trading market-microstructure --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/HKUDS/Vibe-Trading.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agent/src/skills/market-microstructure .claude/skills/market-microstructure && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "market-microstructure" agent skill from https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/market-microstructure into .claude/skills/market-microstructure/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "market-microstructure", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/market-microstructureType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add HKUDS/Vibe-Trading --skill market-microstructure -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install HKUDS/Vibe-Trading market-microstructure --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HKUDS/Vibe-Trading.git skills-src && mkdir -p .agents/skills && cp -r skills-src/agent/src/skills/market-microstructure .agents/skills/market-microstructure && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "market-microstructure" agent skill from https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/market-microstructure into .agents/skills/market-microstructure/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "market-microstructure", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add HKUDS/Vibe-Trading --skill market-microstructure -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install HKUDS/Vibe-Trading market-microstructure --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HKUDS/Vibe-Trading.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/agent/src/skills/market-microstructure .cursor/skills/market-microstructure && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "market-microstructure" agent skill from https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/market-microstructure into .cursor/skills/market-microstructure/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "market-microstructure", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/HKUDS/Vibe-Trading.git --path agent/src/skills/market-microstructure--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add HKUDS/Vibe-Trading --skill market-microstructure -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install HKUDS/Vibe-Trading market-microstructure --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HKUDS/Vibe-Trading.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/agent/src/skills/market-microstructure .gemini/skills/market-microstructure && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "market-microstructure" agent skill from https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/market-microstructure into .gemini/skills/market-microstructure/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "market-microstructure", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install HKUDS/Vibe-Trading market-microstructureInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add HKUDS/Vibe-Trading --skill market-microstructure -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/HKUDS/Vibe-Trading.git skills-src && mkdir -p .github/skills && cp -r skills-src/agent/src/skills/market-microstructure .github/skills/market-microstructure && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "market-microstructure" agent skill from https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/market-microstructure into .github/skills/market-microstructure/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "market-microstructure", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add HKUDS/Vibe-Trading --skill market-microstructure -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install HKUDS/Vibe-Trading market-microstructure --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HKUDS/Vibe-Trading.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/agent/src/skills/market-microstructure .opencode/skills/market-microstructure && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "market-microstructure" agent skill from https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/market-microstructure into .opencode/skills/market-microstructure/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "market-microstructure", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
market-microstructureMeasures spreads, order-flow toxicity (VPIN, Kyle's lambda) and liquidity (Amihud, Roll) to improve cost estimates and execution, including China A-share auction and block trade mechanics.
The skill studies how trades form prices: who is trading, how, and what effect they have. For quantitative strategies it supports more precise transaction-cost estimates than a flat fee assumption, large-order execution design with TWAP, VWAP and IS, detection of windows dominated by informed traders and liquidity risk warnings. Spreads are measured three ways: quoted, effective and realized.
Order-flow toxicity is covered through VPIN, which swaps clock time for volume time, and Kyle's lambda, a regression of price change on net order flow. Liquidity measures include Amihud illiquidity, the Roll implied spread, the zero-return ratio, turnover and traded value, each with a formula and trade-offs. The skill also covers China A-share features such as call auctions, closing auctions and block trades.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit e532650. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pipFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Market Microstructure Analysis loads about 3.1k tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 435 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from HKUDS/Vibe-Trading at commit e532650, republished under its MIT licence (© HKUDS). 435 words, ~3,101 tokens.
.claude/skills/market-microstructure/SKILL.md (or your agent's skills folder).Study the micro-level mechanisms of price formation: who is trading, how they are trading, and how trades affect prices. For quantitative strategies, this matters because it improves transaction-cost estimation, identifies informed trading, and optimizes execution.
Applicable scenarios:
TWAP / VWAP / IS)Three measurements:
| Metric | Formula | Meaning |
|---|---|---|
| Quoted spread | Ask - Bid | Best spread shown in the limit order book |
| Effective spread | `2 × | trade price - mid price |
| Realized spread | 2 × direction × (trade price - mid price 5min later) | True market-maker profit |
China A-share example:
Instrument: 600519.SH Kweichow Moutai
Best bid: 1680.00 Best ask: 1680.50
Quoted spread: 0.50 RMB = 0.03%
Instrument: 000001.SZ Ping An Bank
Best bid: 11.05 Best ask: 11.06
Quoted spread: 0.01 RMB = 0.09%
Spread decomposition (Roll):
Spread = adverse-selection cost + inventory cost + order-processing cost
In China A-shares: adverse selection accounts for 60-70% (mixture of retail and informed traders)
Spread drivers:
- Larger market cap -> smaller spread (Moutai 0.03% vs small-cap 0.5%)
- Higher volatility -> wider spread (market-maker risk premium)
- Higher volume -> narrower spread (greater competition)
- Higher information asymmetry -> wider spread (adverse selection)VPIN (Volume-Synchronized Probability of Informed Trading):
Principle: replace clock time with volume time to measure the probability of informed trading
Calculation steps:
1. Bucket trades by fixed volume (Volume Bucket)
Bucket size V = average daily volume / 50 (about 5-10 minutes per bucket)
2. Classify buy and sell volume in each bucket (Bulk Volume Classification):
buy_volume = V × Φ(ΔP / σ) (standard normal CDF)
sell_volume = V - buy_volume
3. Compute order-flow imbalance:
OI_i = |buy_volume_i - sell_volume_i|
4. VPIN = Σ(OI_i) / (n × V) (n=50-bucket rolling window)
Interpretation:
VPIN < 0.3 -> normal, low informed-trading share
VPIN 0.3-0.5 -> caution, informed trading rising
VPIN > 0.5 -> dangerous, high probability that major information is about to be released
China A-share usage:
A sudden VPIN spike in a stock may foreshadow:
- insider trading ahead of a major announcement
- institutional position building / distribution
Before the 2015 China A-share flash crashes, VPIN stayed above 0.6 for a prolonged periodKyle's Lambda (price impact coefficient):
Model: ΔP = λ × OrderFlow + ε
where OrderFlow = buy volume - sell volume
Estimation method:
1. Compute ΔP and OrderFlow in 5-minute windows
2. Regress ΔP = α + λ × OrderFlow
3. λ = price change caused by one unit of order flow
Interpretation:
Large λ -> poor liquidity, high impact
Small λ -> good liquidity, large orders can be executed cheaply
Typical China A-share values:
Large cap (CSI 300): λ ≈ 0.001-0.005
Mid cap (CSI 500): λ ≈ 0.005-0.02
Small cap (CSI 1000): λ ≈ 0.02-0.1| Metric | Formula | Advantages | Disadvantages |
|---|---|---|---|
| Amihud illiquidity | ` | R_t | / Volume_t` |
| Roll implied spread | 2√(-Cov(R_t, R_{t-1})) | Requires only daily data | Fails when covariance is positive |
| LOT zero-return ratio | zero-return days / total days | Intuitive | Too coarse |
| Turnover ratio | volume / free float | Simple and intuitive | Does not reflect price impact |
| Traded value | average daily notional | Absolute liquidity | Does not reflect relative impact |
Amihud calculation (China A-shares):
ILLIQ = (1/D) × Σ(|R_d| / VOL_d) (D=trading days, monthly)
Normalization: ILLIQ × 10^6 (for readability)
Screening rules:
ILLIQ < 0.5 -> high liquidity (large-cap blue chips)
ILLIQ 0.5-5 -> medium liquidity
ILLIQ > 5 -> low liquidity (trade cautiously)
Strategy application:
- Liquidity factor: low-liquidity stocks tend to earn long-run excess return (liquidity premium)
- Liquidity monitor: sudden rise in ILLIQ -> warning of liquidity drying upPower-law impact:
Naming. This is the concave impact term from the Almgren-Chriss literature, and it is neither linear (the exponent is 0.6, not 1) nor Almgren-Chriss optimal execution — no trading trajectory, no permanent/temporary split and no risk-aversion parameter is computed here or anywhere in this repo. The tested implementation is
src.quantlib.impact.sqrt_impact; call it rather than retyping the formula.
Model: impact = η × σ × (Q / V)^0.6
η: impact coefficient, about 0.5-1.5 for China A-shares
σ: daily volatility
Q: traded quantity (shares)
V: average daily volume (shares)
Example:
Sell 100,000 shares of Kweichow Moutai
Average daily volume 5,000,000 shares, daily volatility 1.8%
impact = 1.0 × 0.018 × (100000/5000000)^0.6
= 0.018 × 0.0085
= 0.015% (1.5bp, acceptable)
Sell 100,000 shares of a small-cap stock
Average daily volume 500,000 shares, daily volatility 3.0%
impact = 1.0 × 0.03 × (100000/500000)^0.6
= 0.03 × 0.076
= 0.23% (23bp, should be executed in slices)
Execution-splitting methods:
TWAP: uniform in clock time -> simple but ignores market state
VWAP: volume-profile execution -> better matches market rhythm
IS: minimize Implementation Shortfall -> optimal but requires real-time optimizationNonlinear impact (square-root model):
impact = σ × √(Q / (ADV × T))
σ: daily volatility
Q: total trade size
ADV: average daily traded value
T: execution days
Applicable to: large trades (Q/ADV > 5%)Depth metrics:
Level 1 depth: queue size at the best bid and best ask
Level 5 depth: total queue size across the first 5 levels
Depth asymmetry: (Bid depth - Ask depth) / (Bid depth + Ask depth)
> 0 -> stronger bid side, price tends to rise
< 0 -> stronger ask side, price tends to fall
Resilience:
The speed at which the book recovers after a large-order impact
Fast recovery -> good liquidity, temporary impact
Slow recovery -> poor liquidity, persistent impact
China A-share LOB characteristics:
- The shallowest depth is in the 15 minutes before the open (highest information asymmetry)
- Depth improves from 10:00-10:30 (institutions begin participating)
- Best depth is from 14:00-14:57 (most intraday information has been digested)
- During the 14:57-15:00 closing auction, depth changes sharply (late-day grabbing / dumping)
Order-book imbalance signal:
OIR = (Bid_vol - Ask_vol) / (Bid_vol + Ask_vol)
Rolling 5-minute OIR > 0.3 -> short-term bullish signal (accuracy about 55-60%)
Note: in China A-shares, large orders are often rapidly added and canceled (icebergs / spoofing), so OIR signals need filteringFlash-crash characteristics:
1. Price drops more than 5% within minutes
2. Volume first expands, then collapses (liquidity evaporates)
3. Bid-ask spread widens sharply (market makers pull quotes)
4. Followed by a V-shaped rebound (not always fully recovered)
Triggers:
- Large market order + thin liquidity -> punches through multiple levels instantly
- Stop-loss chain -> initial selloff triggers more stop orders
- Algo resonance -> multiple trend-following algos sell simultaneously
- ETF discount arbitrage -> ETF redemption and constituent selling intensify the drop
Preventive measures:
1. Use limit orders instead of market orders: specify the maximum acceptable price
2. Monitor VPIN: if VPIN breaks above 0.5 -> stop trading
3. Liquidity threshold: exclude instruments with Amihud > 10
4. Spread monitor: if spread widens suddenly to >5x normal -> pause orders
5. Time avoidance: do not execute large orders in the first 15 minutes after open or the last 5 minutes before close
China A-share flash-crash cases:
2015 Jun-Jul: thousands of stocks hit limit-down, with VPIN staying elevated
2020-07-13: Shanghai Composite plunged and then rebounded in a V-shape
Pattern: liquidity dries up -> limit-down locking (China-specific) -> next-day panic sellingCall-auction strategy:
9:15-9:20: orders can be entered and canceled, mostly probing quotes (low reference value)
9:20-9:25: orders can be entered but not canceled, so real intent is revealed
Signal: after 9:20, buy orders far exceed sell orders -> likely gap-up open
Execution: place orders at 9:24:50 (last 10 seconds of the call auction)
Risk: cannot cancel, and the final execution price may deviate from expectation
Closing call auction (14:57-15:00):
Feature: closing price is decided within 3 minutes, with concentrated institutional rebalancing and index-fund flows
Signal: closing-auction volume > 10% of the whole day -> institutions are rebalancing
Strategy application:
- VWAP algos should finish most of execution before 14:50, leaving a small residual for the close
- Avoid placing large orders after 14:57 (high price uncertainty)
Block-trade discount signal:
Discount = (block-trade price - closing price) / closing price
Discount < -5%: seller is eager to exit -> short-term bearish
Discount > -2%: traded near market price -> may be turnover rather than reduction
Buyer identity:
Well-known institutional seat buys -> positive signal
Same broker on both sides -> may be wash trading (neutral)Microstructure analysis report:
=== Liquidity Diagnosis ===
Instrument: 000858.SZ Wuliangye
Date: 2026-03-28
Average daily traded value: 2.8 billion RMB Turnover ratio: 0.85%
Amihud: 0.32 (high liquidity)
Effective spread: 0.05% (2.5bp)
Kyle Lambda: 0.003
=== Order-Flow Analysis ===
VPIN: 0.28 (normal)
Order-book imbalance (OIR): +0.12 (mild bid-side bias)
Net large-order buying: +230 million RMB (institutional buying bias)
=== Trading-Cost Estimate ===
Planned trade size: 500,000 shares (about 40 million RMB)
Estimated impact cost: 0.08% (32k RMB)
Commission: 0.025% (10k RMB)
Stamp duty: 0.05% (20k RMB, sell side)
Total one-way transaction cost: about 0.16%
=== Execution Suggestion ===
Recommended strategy: VWAP
Execution window: 10:00-14:50 (avoid the open and the close)
Number of slices: 5-8 (about 60k-100k shares per slice)
Time sensitivity: low (VPIN is normal, no urgency to execute)spoofing), so microstructure signals are for analysis only, not for HFT strategiesT+1 settlement and daily price limits make its microstructure significantly different from textbook US-equity modelspip install pandas numpy scipy© HKUDS, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in agent/src/skills/market-microstructure of HKUDS/Vibe-Trading.
Open the folder on GitHubat commit e532650
Market Microstructure Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Market Microstructure Analysis this skillHKUDS/Vibe-Trading | 35k | — | ~3.1k | Automated safety check: Pass | MIT | |
| Relative ValuationYijia-Xiao/FinanceHarness | 195 | — | ~446 | Automated safety check: Pass | Apache-2.0 | |
| Forecastingericrisco/rsc-harness | 174 | — | ~2.8k | Automated safety check: Pass | MIT | |
| Multi-Symbol Market Scannertradesdontlie/tradingview-mcp | 6.8k | 2 repos | ~447 | Automated safety check: Pass | Custom licence | |
| Pine Script Development Looptradesdontlie/tradingview-mcp | 6.8k | 2 repos | ~617 | Automated safety check: Pass | Custom licence | |
| Creating Financial ModelsChen-zexi/open-ptc-agent | 729 | 3 repos | ~1.3k | Automated safety check: Pass | MIT |
Yijia-Xiao/FinanceHarness
Value an equity against its peers — peer-median trading multiples applied to the company's metrics for an implied range, cross-read against its own valuation ratios.
ericrisco/rsc-harness
A skill your agent uses when projecting history forward — sales, demand, units, revenue, signups, traffic — into a defensible number with an error band: method by data shape, rolling-origin…
tradesdontlie/tradingview-mcp
Scans a list of trading symbols in TradingView for setups, patterns or strategy results and reports them as a ranked comparison table.
tradesdontlie/tradingview-mcp
Runs a write, compile, fix and verify loop for TradingView Pine Script indicators and strategies, pushing code into the Pine Editor and checking it on the chart.
Chen-zexi/open-ptc-agent
This skill provides an advanced financial modeling suite with DCF analysis, sensitivity testing, Monte Carlo simulations, and scenario planning for investment decisions
2025Emma/vibe-coding-cn
Reference help for the CCXT library covering crypto exchange APIs, market data, trading and order management across 150+ exchanges in JavaScript, Python and PHP.
HKUDS/Vibe-Trading
Index of Eastmoney's free, no-token market data interfaces for China A-shares and Hong Kong stocks: fund flows, dragon-tiger lists, margin trading, reports and news.
HKUDS/Vibe-Trading
Retrieves public OKX cryptocurrency market data such as spot prices, candlesticks, funding rates and open interest through the OKX V5 REST API, with no authentication.
HKUDS/Vibe-Trading
Fetches U.S. SEC EDGAR data: resolves tickers to CIK numbers, lists recent 10-K, 10-Q and 8-K filings with document URLs, and pulls XBRL financial series.
HKUDS/Vibe-Trading
Predicts whether a mainland China A-share company risks an ST or *ST warning after its next annual report, using financial thresholds and Sina penalty records.
HKUDS/Vibe-Trading
Breaks a structural trend such as AI infrastructure into its physical supply chain and ranks lesser-known listed companies sitting on each bottleneck.
HKUDS/Vibe-Trading
Plans and drafts an eight-part, roughly 120k-word investigative series on one company, built around a strict fact-check pass rather than fast drafting.
Categories
Measures spreads, order-flow toxicity (VPIN, Kyle's lambda) and liquidity (Amihud, Roll) to improve cost estimates and execution, including China A-share auction and block trade mechanics. The skill studies how trades form prices: who is trading, how, and what effect they have. For quantitative strategies it supports more precise transaction-cost estimates than a flat fee assumption, large-order execution design with TWAP, VWAP and IS, detection of windows dominated by informed traders and liquidity risk warnings.
Market Microstructure Analysis fits situations like: estimating realistic trading costs for a strategy beyond a flat fee; computing VPIN or Kyle's lambda to spot informed trading; measuring liquidity with Amihud or Roll estimators from daily data; designing TWAP or VWAP execution for a large order.
Run `npx skills add HKUDS/Vibe-Trading --skill market-microstructure -a claude-code`. Or copy the skill folder (agent/src/skills/market-microstructure in HKUDS/Vibe-Trading) into .claude/skills/market-microstructure in your project. Claude Code loads it when a task matches its description.
Run `npx skills add HKUDS/Vibe-Trading --skill market-microstructure -a codex`. Or copy the skill folder (agent/src/skills/market-microstructure in HKUDS/Vibe-Trading) into .agents/skills/market-microstructure in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HKUDS/Vibe-Trading --skill market-microstructure -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/market-microstructure, .gemini/skills/market-microstructure, .github/skills/market-microstructure and .opencode/skills/market-microstructure in your project.
Going by SKILL.md and its folder, Market Microstructure Analysis needs the command-line tools its instructions call (pip).
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Market Microstructure Analysis is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.1k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Market Microstructure Analysis: Relative Valuation (Yijia-Xiao/FinanceHarness, 195 stars), Forecasting (ericrisco/rsc-harness, 174 stars), Multi-Symbol Market Scanner (tradesdontlie/tradingview-mcp, 6.8k stars) and Pine Script Development Loop (tradesdontlie/tradingview-mcp, 6.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
HKUDS (a GitHub organization) maintains it in HKUDS/Vibe-Trading, which has 35,043 GitHub stars. The repository holds 89 skills in this directory. The repository was last updated on October 8, 2026.
Source: HKUDS/Vibe-Trading on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.