memtrace-quality

Solid

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.

AI & Automation 469 stars 41 forks Updated 5 days ago NOASSERTION

Install

View on GitHub

Quality Score: 81/100

Stars 20%
89
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

## 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 ```json { "repo_id": "memdb" } ``` ### 2. Dead code ```json { "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 ```json { "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 ```json { "...

Details

Author
syncable-dev
Repository
syncable-dev/memtrace-public
Created
5 months ago
Last Updated
5 days ago
Language
Python
License
NOASSERTION

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

memtrace-graph

Map source-code architecture with graph algorithms — PageRank centrality, bridge symbols, Louvain communities, dependency paths, and execution flows over the AST graph. Use when the user asks about source-code architecture, important symbols, centrality, PageRank, bridge functions, communities, logical modules, chokepoints, service boundaries, or dependency path questions. Do not use Glob, find, tree, or directory browsing to infer architecture; Memtrace runs graph algorithms over the AST graph.

469 Updated 5 days ago
syncable-dev
AI & Automation Solid

memtrace-relationships

Map source-code relationships between symbols. Use when the user asks about callers, callees, references, imports, exports, type usages, class hierarchy, inheritance, implementations, overrides, or dependencies between symbols. Do not use Grep, Glob, rg, find, or manual text search for references; Memtrace traverses typed AST graph edges.

469 Updated 5 days ago
syncable-dev
AI & Automation Solid

memtrace-codebase-exploration

Map an indexed source-code repo into a structured overview — scale, communities, central symbols, execution flows, API surface, recent activity. Use when the user wants to explore, understand, onboard to, map, or get an overview of an indexed source-code repo, architecture, modules, or major flows. Do not use Glob, find, tree, rg, or manual file browsing as the first exploration path; Memtrace provides structured graph briefing. Do NOT use for change history / what-changed questions — use memtrace-evolution.

469 Updated 5 days ago
syncable-dev