cqs-dead

Identify uncalled functions and methods in indexed codebases.

13|3|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/jamie8johnson/cqs --skill cqs-dead
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cqs-dead
Source: https://github.com/jamie8johnson/cqs/tree/main/.claude/skills/cqs-dead
Command: npx skills add https://github.com/jamie8johnson/cqs --skill cqs-dead

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams identify functions and methods that are never called in the indexed codebase, enabling safer cleanup and maintenance.

Core Features & Use Cases

  • Dead-code detection: surfaces uncalled functions and methods.
  • Default exclusions: ignores main, test functions, and trait implementations by default.
  • Optional visibility: can include public API surfaces with the --include-pub flag.

Quick Start

Run cqs_dead on your indexed project to surface dead code.

Frequently Asked Questions about cqs-dead

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find unused functions in my codebase?

Dead code detection identifies functions and methods with no callers in your indexed codebase. This tool surfaces unused code by analyzing call graphs to help you safely clean up and maintain your project.

Does dead code detection ignore test functions and main methods?

Default filtering excludes main, test functions, and trait implementations from dead code analysis. You can optionally include public API surfaces by applying the --include-pub flag to surface unused exported functions.

Can I use static analysis to find dead code during refactoring?

Static analysis uncalled function detection is designed for maintenance and refactoring. It scans large indexed codebases and libraries to surface dead code, enabling safer cleanup across supported languages.

How do I include public APIs when searching for dead code?

Public API surfaces are excluded by default to avoid false positives. Run the tool with the --include-pub flag to include exported public functions in the dead code detection results.

What is the best way to clean up dead code in large libraries?

Using call graph static analysis is the best way to clean up dead code in large libraries. It identifies uncalled functions and methods, excluding tests and trait implementations by default for accurate results.