Code Quality Analysis with PMAT

Official

Analyze and improve code quality with PMAT.

Authorpaiml
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill analyzes code quality, complexity, and technical debt using PMAT to help engineers understand hotspots and plan improvements.

Core Features & Use Cases

  • Quick Quality Overview: High-level health score and language-agnostic metrics.
  • Detailed Complexity: Cyclomatic and cognitive complexity per function.
  • SATD & Dead Code: Detect technical debt annotations and unused code.
  • Contextual Guidance: Use results to guide refactoring and quality gates.

Quick Start

  1. Quick quality snapshot: pmat analyze quality --path <file_or_directory>
  2. Detailed complexity: pmat analyze complexity --path <file_or_directory>
  3. Dead code detection: pmat analyze dead-code --path <file_or_directory>
  4. SATD detection: pmat analyze satd --path <file_or_directory>
  5. Deep context (LLM-optimized): pmat context --output context.md --format llm-optimized

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Code Quality Analysis with PMAT
Download link: https://github.com/paiml/paiml-mcp-agent-toolkit/archive/main.zip#code-quality-analysis-with-pmat

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository