mm-sim-desk

mm-sim-desk is a skill for Claude Code, Codex from comisai/comis. It costs 61 tokens per session (778 once invoked), scanned A, original, Apache-2.0.

A guide for running a simulated algorithmic market-making desk, where you continuously quote prices to buy and sell an asset.

In plain words
What is it for?
Use it to read market data, set a quoting strategy, manage filled orders and inventory, monitor profit and risk, and settle the session.
Why use it?
It makes inventory, incoming trades, price movement, volatility, and risk part of one trading-session workflow.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/comisai/comis/market-making
Any agent
npx skills add comisai/comis --skill market-making
Clone the repo
git clone --depth 1 https://github.com/comisai/comis

Made for: Claude Code, Codex.

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 mm-sim-desk

README.md
[![agentmods](https://agentmods.dev/badge/skills/comisai/comis/market-making.svg)](https://agentmods.dev/skills/comisai/comis/market-making)
Your own site
<a href="https://agentmods.dev/skills/comisai/comis/market-making"><img src="https://agentmods.dev/badge/skills/comisai/comis/market-making.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 778 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00061 $0.00778
Opus 5 $0.00030 $0.00389
Sonnet 5 $0.00012 $0.00156
Haiku 4.5 $0.00006 $0.00078

Measured 4d ago against content hash 7e5f88f87075, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mm-sim-desk 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (handlers.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

test/live/self-driving/sim/market-making/SKILL.md · 50 lines

How it starts

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

You are running an algorithmic market-making desk in a simulated market. You quote two-sided prices, take fills, manage your net inventory, and finally settle the session for a graded result. This skill explains how to use the toolshow to actually trade well is your job.

Your tools (mcp:mm-sim/*)

Observe (read-only — read the market and your book):

  • get_quote — current mid/bid/ask for the symbol and the current episode step.
  • get_orderbook { levels } — order-book depth (bid/ask sizes) around the mid.
  • get_position — your net inventory, the stated max inventory limit, and your live quote.
  • get_pnl — running PnL plus a risk-adjusted figure (PnL penalized for inventory risk).
  • regime_signals — microstructure diagnostics for the latest window: return autocorrelation, realized volatility (and its trend), and order-flow imbalance. These describe behavior; they do not name a regime.
  • get_fills — the fills you have received so far (each fill moves your inventory).
  • volatility — the realized-volatility series so far (one value per elapsed step).

Act (consequential):

  • set_strategy { mode } — set your active strategy (a free-text mode). Recorded with the step.
  • post_quote { bid, ask, size } — post a two-sided quote. Advances the market one step; you may receive a fill that changes your inventory.
  • cancel_quote — stand aside. Advances one step with no new fill for you.
  • hedge { qty } — trade qty units (signed) at the current mid to reduce net inventory; a small slippage cost applies. Does not advance the market.
  • settle — close the session and book the result. This returns the graded outcome.

How to run a session

  1. Read the market first — get_quote, regime_signals, volatility — and your book with get_position / get_pnl.
  2. Choose and set_strategy, then work the book with post_quote (and cancel_quote to pause). Each of those advances the episode one step; the episode has a fixed number of steps (get_quote reports step / totalSteps).
  3. Keep re-reading regime_signals as the episode progresses — the market's behavior is not guaranteed to stay the same for the whole episode.
  4. Use hedge to keep your net inventory inside the stated limit (get_position.maxInventory).
  5. settle when you're done to get the graded result.

Read the full file on GitHub · 50 lines

Files

What ships with it

3 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. 4d ago First seen · 50 lines · 61 tokens per session scan A 7e5f88f87075

Subscribe to this mod's changes

mm-sim-desk is a skill published in the GitHub repository comisai/comis (5 stars, last pushed 4d ago), licensed Apache-2.0. It adds 61 tokens to every session and 778 once invoked, about $0.0003 per session on Opus 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-31.

Related

Other skills, from other repositories

loop-orchestration

Reference loop-orchestration example; a local loop host chains governed runx turns through receipts, budgets, context, and stop policy.

runxhq/runx · 32 tokens

org-sync

Use when the CEO wants an organization-wide sync across PuPu's agent teams — running each org's internal sync, then a cross-org sync where departments challenge each other, converging into one decision list. Triggers: "跑一次 org sync", "全局同步", "组织盘点", "/org-sync", "各部门现在什么情况", "有什么要我拍板的".

haoxiang-xu/PuPu · 82 tokens

release-feature-audit

Use when a new PuPu feature finishes implementation and needs its consistency audit before its ticket is marked done — "audit #123", "审计这个功能", "这个 feature 过一遍检查" — or when release-close-sprint roll-call finds a new feature that was never audited. Also covers standalone i18n checks ("漏翻了吗", "检查 i18n"), which used to be…

haoxiang-xu/PuPu · 94 tokens

growth-analyst

Use when analyzing PuPu's open-source growth or health for the founder — GitHub traffic, downloads/installs, releases, community, or contributor activity — or when producing a growth report or weekly COO report. Repo is haoxiang-xu/PuPu. Triggers: "how is PuPu growing?", "are people installing PuPu?", "which release…

haoxiang-xu/PuPu · 102 tokens

test-api

Use when running QA / regression tests against PuPu, when verifying a code change actually works in the running app, or when reading PuPu UI/state without screenshotting manually. Triggers on tasks like "test that PuPu still creates chats correctly", "verify the new model selector works end-to-end", "send a message…

haoxiang-xu/PuPu · 110 tokens

gitnexus-debugging

Use when the user is debugging a bug, tracing an error, or asking why something fails. Examples: "Why is X failing?", "Where does this error come from?", "Trace this bug".

haoxiang-xu/PuPu · 46 tokens