marx

marx is a command for Claude Code from Xiaoyun-0922/openmarx. It costs 67 tokens per session (614 once invoked), scanned A, original, MIT.

A command router for Marx-based analysis modes, including diagnosis, contradictions, practice design, history, and review. It can inspect project evidence before answering concrete questions about code, repositories, launches, or adoption.

In plain words
What is it for?
Use it to diagnose project problems, investigate stalled work or low adoption, plan experiments, examine team and process issues, or review a launch, failure, or postmortem.
Why use it?
It gives different kinds of project problems a defined way to examine evidence, causes, actions, and verification. Required labels and evidence rules make the resulting analysis more consistent.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the marx plugin — 1 skill, 16 commands, 3 hooks shipped together

Good fit Use it to diagnose project problems, investigate stalled work or low adoption…

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/xiaoyun-0922/openmarx/marx
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.

Clone the repo
git clone --depth 1 https://github.com/Xiaoyun-0922/openmarx

Made for: Claude Code.

Or install marx, the plugin that ships this one along with the rest of its 1 skill, 16 commands, 3 hooks.

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 marx

README.md
[![agentmods](https://agentmods.dev/badge/commands/xiaoyun-0922/openmarx/marx.svg)](https://agentmods.dev/commands/xiaoyun-0922/openmarx/marx)
Your own site
<a href="https://agentmods.dev/commands/xiaoyun-0922/openmarx/marx"><img src="https://agentmods.dev/badge/commands/xiaoyun-0922/openmarx/marx.svg" alt="Measured on agentmods" height="20"></a>
Per session 67 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 614 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00067 $0.00614
Opus 5 $0.00034 $0.00307
Sonnet 5 $0.00013 $0.00123
Haiku 4.5 $0.00007 $0.00061

Measured 7d ago against content hash 0e98506913af, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

marx 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 7d ago.

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.

commands/marx.md · 41 lines

What it actually says

Use the marx skill as the default analysis engine. If an argument names a specialized mode, follow that mode. Otherwise use the full default frame.

Response language policy:

  • Match the user's language.
  • Keep required contract labels exactly: 已检查证据:, 未检查项目证据:, 实践方案, and 验证标准.
  • Provide bilingual output only when explicitly requested.

Evidence pass:

  • For concrete project/repository/code/GitHub/adoption questions, inspect available project evidence before analysis.
  • Start with 已检查证据 if evidence was inspected.
  • Start with 未检查项目证据 if no project evidence was inspected.
  • First visible output line must be either 已检查证据: or 未检查项目证据: before any title, table, horizontal rule, or summary. Use an ASCII colon :, not a full-width Chinese colon . Do not use variants such as 已检查项目证据:.
  • Do not start with a horizontal rule, generic title, or 证据表; the evidence line comes first.
  • Do not lead with abstract macro-theory.

Evidence freshness:

  • Mark prior-turn facts as reused evidence, not freshly inspected evidence.
  • If a concrete implementation target matters, inspect it this turn or label it as an assumption.

Methodology mapping:

  • If the user asks for philosophy, methodology, 核心理念, 理解, 分析方法, or why the diagnosis works, include a short 方法论映射 section.
  • Keep 方法论映射 to 3-5 bullets: 客观实际, 现象与本质, 主要矛盾, 联系与发展, 实践检验.
  • Translate Marxist philosophy into concrete project language; do not expand into abstract macro-theory.

Project acceleration:

  • If the user asks to continue, push toward open source, improve packaging, or test whether the skill helps, move from diagnosis to implementation-ready action.
  • Include the concrete file/release surface to change only when inspected or provided, a feedback loop, and a verification command.

Required final sections:

  • Include 实践方案 and 验证标准 exactly in every project-grounded answer.
  • Do not rename these sections to "next steps", "建议", "接下来的路", or "最小下一步验证".
  • 验证标准 must contain an observable pass/fail rule or measurable metric.

User request: $ARGUMENTS

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. 7d ago First seen · 41 lines · 67 tokens per session scan A 0e98506913af

Subscribe to this mod's changes

marx is a command published in the GitHub repository Xiaoyun-0922/openmarx (5 stars, last pushed 4mo ago), licensed MIT. It adds 67 tokens to every session and 614 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.