Agent Skills: python-complexity
Two censuses of Python complexity, no project install: per function (ruff's C901 cyclomatic and complexipy cognitive, read as a pair) and per call path — hops entered per public call, pass-through layers, a selector parameter compared in many places, intermediate types — for code where every function scores low and the path is still hard to follow. Use when asking which functions to refactor first, whether a function or a call path is too complex, over-layered, or too indirect, where the worst code in a package is, when every function is small but the code is hard to follow, when triaging a legacy codebase, when comparing an implementation against the path it replaces, when verifying a refactor reduced complexity rather than relocating it, or when reading C901 / mccabe / complexipy / cognitive-complexity scores. Teaches the two metrics as a pair — the gap between them is the signal — the silent-failure modes that make a clean run a lie, and layer-golf, the third golf a per-function threshold never flags.
Install this agent skill to your local
Skill Files
The files that make up python-complexity.
More agent skills
- openspec-onboardGuided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.
- cli-creatorBuild a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user wants Codex to create a command-line tool that can run from any repo, expose composable read/write commands, return stable JSON, manage auth, and pair with a companion skill.
- 1k-defi-module-integrationNavigate and implement OneKey App Earn, Borrow, Staking, and DeFi Portfolio flows. Use for protocol data, portfolio actions, transactions, pending/history, refresh, and Earn routes.
- economic-calendar-fetcherFetch upcoming economic events and data releases using FMP API. Retrieve scheduled central bank decisions, employment reports, inflation data, GDP releases, and other market-moving economic indicators for specified date ranges (default: next 7 days). The script outputs raw JSON or text; the assistant filters, assesses impact, and generates the Markdown report.
- git-commit-and-push通过 BK-CI 仓库约定安全执行本地提交与远端推送,例如根据当前变更生成一句简短提交内容、先展示给用户确认、确认后再 `git commit`,并默认推送到个人 fork 远端而不是主仓库。 当用户要求“帮我 commit / push / 提交并推送代码 / 发到远端”时优先使用。
- gh-fix-ciUse when a user asks to debug or fix failing GitHub PR checks that run in GitHub Actions; use `gh` to inspect checks and logs, summarize failure context, draft a fix plan, and implement only after explicit approval. Treat external providers (for example Buildkite) as out of scope and report only the details URL.