Skip to content
Development
Skill

/memtrace-quality

Find dead code, complexity hotspots, and refactoring candidates in indexed source code. Use when the user asks about source-code quality, dead code, unused functions, zero callers, complexity, cyclomatic complexity, hotspots, refactoring candidates, or code smell questions. Do

From plugin
memtrace-public
51627 skills4 commands

Claude Code

$ npx -y skills add syncable-dev/memtrace-public --skill memtrace-quality --agent claude-code

SKILL.md

memtrace-quality.SKILL.md
name: memtrace-quality
description: "Find dead code, complexity hotspots, and refactoring candidates in indexed source code. Use when the user asks about source-code quality, dead code, unused functions, zero callers, complexity, cyclomatic complexity, hotspots, refactoring candidates, or code smell questions. Do not use Grep, Glob, rg, or manual reference search for unused code; Memtrace uses graph reachability and complexity metrics."

Overview

Code quality via graph analysis — dead code, complexity hotspots, repository stats.

Quick Reference

| Tool | Purpose | Required | Key optional | |------|---------|----------|--------------| | `find_dead_code` | Zero-caller symbols | `repo_id` | `include_tests`, `limit`, `kinds[]` | | `find_most_complex_functions` | Ranked complexity hotspots | `repo_id` | **`top_n`** (def 20) — not `limit` | | `calculate_cyclomatic_complexity` | Score one symbol | `repo_id`, **`target`** | — | | `get_repository_stats` | Repository overview | `repo_id` | `branch` |

> **Parameter types:** numbers must be JSON numbers — `limit: 20`, never `"20"` (MCP error -32602).

Full parameter spec for every Memtrace tool: `references/mcp-parameters.md` (bundled at the memtrace-skills plugin root).

Steps

1. Repository overview

{ "repo_id": "memdb" }

2. Dead code

{ "repo_id": "memdb", "include_tests": false, "limit": 50 }

Exported symbols and entry points excluded by default. Results are candidates, not proof — callers via dynamic dispatch or reflection are invisible to the graph; verify before deleting.

3. Complexity hotspots

{ "repo_id": "memdb", "top_n": 10 }

Ordered by call-graph out-degree.

| Score | Rating | Action | |-------|--------|--------| | <5 | Low | Fine | | 5-10 | Medium | Consider simplifying | | 10-20 | High | Refactor candidate | | >20 | Critical | Refactor priority |

4. Single symbol complexity

{ "repo_id": "memdb", "target": "processOrder" }

Output

| Result | Carries | |--------|---------| | Dead-code entry (`find_dead_code`) | Symbol name + kind with zero graph callers — e.g. `format_legacy` (Function) | | Complexity row (`find_most_complex_functions`) | Symbol, complexity score, risk level — e.g. `processOrder` — 27, Critical | | Single score (`calculate_cyclomatic_complexity`) | Cyclomatic complexity for `target` | | Stats (`get_repository_stats`) | Node counts by kind, edge counts, community and process counts for `repo_id`/`branch` |

Common Mistakes

| Mistake | Reality | |---------|---------| | `find_most_complex_functions(limit: 10)` | Param is **`top_n`** | | `calculate_cyclomatic_complexity(symbol_id=...)` | Required param is **`target`** | | Only looking at the highest complexity | Medium-complexity functions that are growing (check `get_evolution`) are often more urgent |

Read more
@syncable-dev
Ships withmemtrace-public

Structural memory for AI coding agents. Bi-temporal graph, MCP-native, zero LLM calls. Cursor · Claude Code · Codex · DeepSeek Harness · Hermes · VS Code · Windsurf.

Stars on GitHub

Momentum

stars in total
516
Star history of syncable-dev/memtrace-public on GitHub, a chart by star-history.com

Other skills on memtrace-public.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about memtrace-quality.

Which coding agents can use memtrace-quality?
memtrace-quality installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.