decompose-mcp

decompose-mcp is a skill for Claude Code, Codex from echology-io/decompose. It costs 30 tokens per session (1,546 once invoked), scanned A, original, MIT.

A local, rule-based tool that splits text or web pages into meaningful parts and labels them by authority, risk, importance, and extracted entities. It does not use a language model, so its results are deterministic.

In plain words
What is it for?
Break down text or a URL, identify required or prohibited sections, extract entities, and return the results as JSON.
Why use it?
It makes long specifications and other documents easier to inspect by showing which parts are mandatory, risky, important, or conditional.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

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/echology-io/decompose/decompose-mcp
Any agent
npx skills add echology-io/decompose --skill decompose-mcp
Clone the repo
git clone --depth 1 https://github.com/echology-io/decompose

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 decompose-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/echology-io/decompose/decompose-mcp.svg)](https://agentmods.dev/skills/echology-io/decompose/decompose-mcp)
Your own site
<a href="https://agentmods.dev/skills/echology-io/decompose/decompose-mcp"><img src="https://agentmods.dev/badge/skills/echology-io/decompose/decompose-mcp.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,546 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.1 $0.00030 $0.01546
Opus 5 $0.00015 $0.00773
Sonnet 5 $0.00006 $0.00309
Haiku 4.5 $0.00003 $0.00155

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

Security

Grade A, and why

decompose-mcp 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 6d 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.

skills/decompose-mcp/SKILL.md · 133 lines

How it starts

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

Decompose

Decompose any text or URL into classified semantic units. Each unit gets authority level, risk category, attention score, entity extraction, and irreducibility flags. No LLM required. Deterministic. Runs locally.

Setup

1. Install

pip install decompose-mcp

2. Configure MCP Server

Add to your OpenClaw MCP config:

{
  "mcpServers": {
    "decompose": {
      "command": "python3",
      "args": ["-m", "decompose", "--serve"]
    }
  }
}

3. Verify

python3 -m decompose --text "The contractor shall provide all materials per ASTM C150-20."

Available Tools

decompose_text

Decompose any text into classified semantic units.

Parameters:

  • text (required) — The text to decompose
  • compact (optional, default: false) — Omit zero-value fields for smaller output
  • chunk_size (optional, default: 2000) — Max characters per unit

Example prompt: "Decompose this spec and tell me which sections are mandatory"

Returns: JSON with units array. Each unit contains:

  • authority — mandatory, prohibitive, directive, permissive, conditional, informational
  • risk — safety_critical, security, compliance, financial, contractual, advisory, informational
  • attention — 0.0 to 10.0 priority score
  • actionable — whether someone needs to act on this
  • irreducible — whether content must be preserved verbatim
  • entities — referenced standards and codes (ASTM, ASCE, IBC, OSHA, etc.)
  • dates — extracted date references
  • financial — extracted dollar amounts and percentages
  • heading_path — document structure hierarchy

decompose_url

Fetch a URL and decompose its content. Handles HTML, Markdown, and plain text.

Parameters:

  • url (required) — URL to fetch and decompose
  • compact (optional, default: false) — Omit zero-value fields

Example prompt: "Decompose https://spec.example.com/transport and show me the security requirements"

What It Detects

  • Authority levels — RFC 2119 keywords: "shall" = mandatory, "should" = directive, "may" = permissive
  • Risk categories — safety-critical, security, compliance, financial, contractual
  • Attention scoring — authority weight x risk multiplier, 0-10 scale
  • Standards references — ASTM, ASCE, IBC, OSHA, ACI, AISC, AWS, ISO, EN
  • Financial values — dollar amounts, percentages, retainage, liquidated damages
  • Dates — deadlines, milestones, notice periods
  • Irreducibility — legal mandates, threshold values, formulas that cannot be paraphrased

Read the full file on GitHub · 133 lines

Files

What ships with it

1 file 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. 6d ago First seen · 133 lines · 30 tokens per session scan A c1bc1982e4e9

Subscribe to this mod's changes

decompose-mcp is a skill published in the GitHub repository echology-io/decompose (10 stars, last pushed 3mo ago), licensed MIT. It adds 30 tokens to every session and 1,546 once invoked, about $0.0002 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

model-evaluation

Systematic ML model evaluation — metrics, benchmarks, and error analysis.

furkangonel/cowrangler · 18 tokens

ml-for-aec

Computer vision for buildings, image-to-floorplan, generative ML models, performance prediction, structural analysis ML, energy prediction, natural language to design, and point cloud ML for AEC computational design.

Abhinavbwj/Claude-skills-for-Computational-Designers · 39 tokens

ml-for-aec

Computer vision for buildings, image-to-floorplan, generative ML models, performance prediction, structural analysis ML, energy prediction, natural language to design, and point cloud ML for AEC computational design.

marcinfinitesimal533/Claude-skills-for-Computational-Designers · 39 tokens

compromise-nlp

Write correct code with the compromise JavaScript NLP library (the npm package compromise, imported as nlp). Use this whenever you are writing or editing JS/TS that imports compromise, calls nlp(...), or chains methods like .match(), .tag(), .people(), .verbs(), .nouns(), .numbers(), .normalize(), or .replace() — and…

spencermountain/compromise · 172 tokens

plugin-architecture-patterns

Design, implement, or diagnose Xberg plugin traits, typed registries, priority collisions, lifecycle, native extractors, and Alef-generated Python plugin bridges. Load for plugin-system work, not ordinary extractor parsing.

xberg-io/xberg · 49 tokens

extracting-keywords

Use when extracting keywords (YAKE/RAKE) from documents — and, secondarily, when detecting document language or generating embeddings for RAG and search. Covers the keyword config (and its feature gating), --detect-language, and the standalone embed command with real flags.

xberg-io/xberg · 63 tokens