python-complexity

python-complexity is a skill for Claude Code from dashed/claude-marketplace. It costs 222 tokens per session (5,733 once invoked), scanned A, original, no licence file.

A Python code-analysis guide that measures how complicated each function is, using two complexity measures without installing anything in the project.

In plain words
What is it for?
Use it to find the most complex functions in a file, module, or package and decide what to clean up first.
Why use it?
It helps identify functions that are hardest to understand or maintain, so you can choose refactoring work based on evidence.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Good fit Use it to find the most complex functions in a file, module, or package and decide what to clean up first.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dashed/claude-marketplace/python-complexity
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.

Any agent
npx skills add dashed/claude-marketplace --skill python-complexity
Clone the repo
git clone --depth 1 https://github.com/dashed/claude-marketplace

Made for: Claude Code.

Its marketplace also offers this one on its own, as the plugin python-complexity — /plugin install python-complexity after adding the marketplace above.

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 python-complexity

README.md
[![agentmods](https://agentmods.dev/badge/skills/dashed/claude-marketplace/python-complexity/github.svg)](https://agentmods.dev/skills/dashed/claude-marketplace/python-complexity)
Your own site
<a href="https://agentmods.dev/skills/dashed/claude-marketplace/python-complexity"><img src="https://agentmods.dev/badge/skills/dashed/claude-marketplace/python-complexity/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for python-complexity

Your own site · 80×15
<a href="https://agentmods.dev/skills/dashed/claude-marketplace/python-complexity"><img src="https://agentmods.dev/badge/skills/dashed/claude-marketplace/python-complexity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 222 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,733 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 unknown 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.00222 $0.05733
Opus 5.5 $0.00089 $0.02293
Sonnet 5.5 $0.00044 $0.01147
Haiku 4.5 $0.00022 $0.00573

Measured 23d ago against content hash 9199e73a54ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python-complexity 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 23d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/arg_threading.py, scripts/hops_dyn.py, scripts/hops.py, …), 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.

plugins/python-complexity/skills/python-complexity/SKILL.md · 220 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 23d ago Changed · -5 lines · +76 tokens per session 9199e73a54ee
  2. 1mo ago Changed 6d6cf62a30ae
  3. 1mo ago Changed · +5 lines · -76 tokens per session 68847821e681
  4. 1mo ago Changed · +46 lines · +10 tokens per session c634525511cd
  5. 1mo ago Changed · +36 lines · +78 tokens per session cfa285917857
  6. 2mo ago First seen · 138 lines · 134 tokens per session scan A 55399e6b86b5

Subscribe to this mod's changes

python-complexity is a skill published in the GitHub repository dashed/claude-marketplace (25 stars, last pushed 16d ago), with no licence file. It adds 222 tokens to every session and 5,733 once invoked, about $0.0009 per session on Opus 5.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-30.

Related

python-complexity compared with skills from other repositories

python-complexity next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
python-complexitydashed/claude-marketplaceSkill2516d agononeA222Claude Code
python-code-qualitymicrosoft/agent-frameworkSkill15kyesterdayMITA40Claude Code, Codex
plugin-architecture-patternsxberg-io/xbergSkill9.5kyesterdayMITA15Claude Code
test-corpusxberg-io/xbergSkill9.5kyesterdayMITA15Claude Code, Codex
stack-trace-python-probeopensquilla/opensquillaSkill7.1k6d agoApache-2.0A40Claude Code
idapythonmrexodia/ida-pro-mcpSkill13k1mo agoMITA77Claude Code
memory-optimizationbenchflow-ai/skillsbenchSkill1.9k3d agoApache-2.0A60Claude Code, Codex