Programming · Review & audit
complexity-management
/complexity-management
Use when the complexity gate fails or a function approaches a limit.
For whom
- Author
- VilnaCRM-Org ↗
- Repository
- rust-service-template ↗
- Licence
- CC0-1.0
- Last repository change
- 12.11.2026
Assessment and security
96/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability21 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
Deprecation
No signals detected. Repository changed on 12.11.2026, without references to retired models or APIs.
Licence
CC0-1.0, otwarta.
What it does and when to use it
Use when the complexity gate fails or a function approaches a limit.
Original author description
Use when the complexity gate fails or a function approaches a limit.
How it works
- Use This Skill When
- Commands
- Rules
- Verification
Original SKILL.md headings · 34 lines, 263 words
SKILL.md preview
--- name: complexity-management description: Use when the complexity gate fails or a function approaches a limit. --- # Complexity Management ## Use This Skill When - `make complexity` reports a function over a limit. - A function grows towards a limit and should be split before it fails. ## Commands - `make complexity` runs the complexity lints alone and prints only complexity findings. - `make static-analysis` runs the full strict lint, which includes the same four lints. ## Rules - The limits live in `clippy.toml` and are quoted in `quality-standards` only; never copy a number into another file and never raise a limit to pass. - Never add `#[allow]` or `#[expect]` to silence a complexity lint; refactor. - Too long: extract a named function for each step of the body, keeping the call order readable. - Too complex: replace nested `if` chains with early returns, guard clauses or a `match` on one value; move each branch into a small function. - Too deeply nested: return early, use `?` instead of `match` on `Result`, flatten with iterator adaptors. - Too many arguments: group related arguments into a struct or a value object of the domain, and pass the struct. - Handlers follow the pattern of the architecture document: the trait method only delegates to an inherent `async fn`, and each step of the logic is its own function. - Keep a refactor behaviour-preserving: run the unit tests before and after. - Test code is relaxed for two of the lints, production code is not. ## Verification ```bash make complexity make unit-tests ``` Continue with `testing-workflow` when a test breaks after the refactor and with `architecture-boundary-fixer` when code must move between layers.
Versions
The database has no other skills named complexity-management.
Database snapshot: 13.11.2026 · package version 3384b2247d88 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100code-complexity
Analyze code complexity metrics (cyclomatic, cognitive, function length, coupling). Use when identifying refactoring targets, tracking codebase health, or reviewing large changes. - 91timeline-site-build
Use when the site build fails, or a built page must be proven. - 90complexity-grill
Use when a user wants to identify the true sources of complexity qualitatively before counting metrics. Not for source or remote mutation. - 100lizard-complexity
Run Lizard against production source to enforce per-function cyclomatic complexity (CCN), NLOC, and parameter-count thresholds - language-agnostic (30+ languages). Scoped to production code via `-x\"./tests/*\"`; test complexity is reviewed separately. Use when a codebase spans… - 100time-complexity
Estimate Big-O time complexity of code via static analysis (tree-sitter MCP). Use when: complexity, big-o, performance, hotspot, time complexity, analyze complexity. - 100find-complexity
Find functions and methods with high cyclomatic complexity, excessive length, or too many parameters. Use when the user asks to find complex code, complexity hotspots, refactoring candidates, or wants to improve code maintainability.