Multi-Language Project Analysis with PMAT

Analyze polyglot codebases to detect languages, assess distribution, and generate per-language reports.

161|27|Updated May 25, 2025
One-click install
npx skills add https://github.com/paiml/paiml-mcp-agent-toolkit --skill multi-language-project-analysis-with-pmat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Multi-Language Project Analysis with PMAT
Source: https://github.com/paiml/paiml-mcp-agent-toolkit/tree/main/.claude/skills/pmat-multi-lang
Command: npx skills add https://github.com/paiml/paiml-mcp-agent-toolkit --skill multi-language-project-analysis-with-pmat

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill analyzes polyglot codebases and assesses cross-language architecture, helping teams understand language distribution, measure quality across languages, and visualize polyglot patterns.

Core Features & Use Cases

  • Language detection and distribution
  • Multi-language quality analysis
  • Cross-language complexity comparison
  • Language-specific deep context
  • Polyglot architecture visualization

Quick Start

  1. Language discovery: pmat analyze languages --path . --output language_stats.json
  2. Multi-language quality: pmat analyze quality --path . --multi-language --output quality_by_lang.json
  3. Complexity by language: pmat analyze complexity --path . --group-by language --output complexity_by_lang.json
  4. Language-specific context: pmat context --path . --language rust --output rust_context.md
  5. Architecture visualization: pmat visualize-architecture --path . --output architecture_map.svg

Frequently Asked Questions about Multi-Language Project Analysis with PMAT

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

FAQPage Schema
How do I analyze code quality across multiple programming languages in one project?

Multi-language quality analysis compares metrics like complexity, maintainability, and dependencies across each language in your polyglot codebase. Use `pmat analyze quality --path . --multi-language` to generate per-language quality reports and identify gaps between language implementations.

Can I detect which programming languages are used in my repository and see their distribution?

Language detection identifies all programming languages present and quantifies their proportion of the codebase. Run `pmat analyze languages --path . --output language_stats.json` to get language discovery and distribution metrics showing code volume by language.

What's the best way to map architecture boundaries across different languages in a polyglot project?

Cross-language architecture mapping visualizes integration points and patterns between language components. Use `pmat visualize-architecture --path . --output architecture_map.svg` to generate architectural diagrams showing how different languages interact within your system.

How do I compare code complexity between languages in my codebase?

Complexity comparison groups metrics by language to reveal which implementations have higher cyclomatic or structural complexity. Execute `pmat analyze complexity --path . --group-by language --output complexity_by_lang.json` to benchmark complexity across each language.

Can I get language-specific context and metrics for a particular programming language?

Language-specific context extraction retrieves detailed analysis focused on one language, including framework patterns, dependencies, and quality indicators. Run `pmat context --path . --language [language] --output context.md` to generate targeted insights for that language.

Do I need any prerequisites or dependencies to analyze a polyglot codebase?

Multi-language analysis requires only the codebase source directory as input; no language-specific runtimes or compilers are needed. The tool detects languages automatically and generates architecture and quality reports without additional configuration.