market-microstructure

Analyze matching systems to diagnose fairness, starvation, and latency arbitrage.

2|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/NlightNFotis/skills --skill market-microstructure-nlightnfotis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: market-microstructure
Source: https://github.com/NlightNFotis/skills/tree/main/market-microstructure
Command: npx skills add https://github.com/NlightNFotis/skills --skill market-microstructure-nlightnfotis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you analyze and improve systems that match demand to supply, such as schedulers, load balancers, autoscalers, and queue-based resource allocation. It is especially useful when fairness, latency, starvation, batching, or gaming of priority rules are causing confusing or unstable behavior.

Core Features & Use Cases

  • Matching-rule analysis: Examine FIFO, strict priority, weighted fairness, deadline-based, shortest-job-first, and random matching to understand who benefits and who starves.
  • Latency and fairness diagnostics: Detect latency arbitrage, hidden queue effects, slippage, retry storms, and idle-capacity-with-waiting-demand mismatches.
  • Batch vs continuous design review: Evaluate whether real-time matching, scheduled batch matching, or hybrid micro-batches better fit your throughput and latency goals.
  • Use case: Review a multi-tenant GPU scheduler where premium jobs jump ahead, standard jobs are timing out, and clients in one region consistently get better placement than equally prioritized clients elsewhere.

Quick Start

Ask the market-microstructure skill to review your scheduler or queueing system by mapping the demand side, supply side, priority rules, and likely starvation or latency-arbitrage failure modes.

Frequently Asked Questions about market-microstructure

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I diagnose job starvation and latency arbitrage in a multi-tenant scheduler?

To diagnose job starvation and latency arbitrage in a multi-tenant scheduler, you must explicitly model the bid and ask sides, order-book depth, priority rules, and queue visibility to identify mismatches and adversarial behaviors causing unstable placement.

What is the best way to analyze batching tradeoffs in load balancing and queueing systems?

Analyzing batching tradeoffs in load balancing requires evaluating real-time matching, scheduled batch matching, and hybrid micro-batches against your specific throughput and latency goals to determine which microstructure design minimizes slippage and idle capacity.

Why does strict priority matching cause standard jobs to time out while premium jobs jump ahead?

Strict priority matching causes standard jobs to time out because premium jobs continuously jump ahead in the queue, creating a demand-supply allocation mismatch where lower-priority requests starve indefinitely while waiting for idle capacity.

Can I use matching-rule analysis to fix unfair resource allocation in GPU accelerator scheduling?

Yes, you can use matching-rule analysis to fix unfair resource allocation in GPU accelerator scheduling by examining FIFO, strict priority, and weighted fairness rules to understand who benefits, who starves, and how to restructure contention.

How do I detect hidden queue effects and retry storms in ad serving platforms?

To detect hidden queue effects and retry storms in ad serving platforms, map the demand side, supply side, and priority rules to expose latency arbitrage and slippage caused by inefficient supply-demand allocation under stress scenarios.

When should I not use FIFO queueing for rate limiters and autoscalers?

You should not use FIFO queueing for rate limiters and autoscalers when deadline-based, shortest-job-first, or weighted fairness matching is required to prevent starvation, mitigate adversarial behavior, and ensure equitable resource allocation under contention.