Metrics (Grade A) logo

Metrics (Grade A)Security-tested development skill for Claude AI. Grade A. Métricas por função (complexidade ciclomática McCabe + LOC + nesting + fan-out + params) — Universo 4 Feature B, v0.6.0+

(0)
Daniel NikulshynReviewed by Daniel Nikulshyn·Updated July 2026

Overview

Metrics (Grade A) is a security-tested development skill for Claude AI that calculates metrics for ADVPL/TLPP functions in Protheus Universo 4 Feature B, version 0.6.0 and later. It provides metrics such as cyclomatic complexity (McCabe), lines of code (LOC), nesting depth, fan-out, and number of parameters. The tool helps identify complex functions that may require refactoring and provides insights into code quality. It can be used to rank functions by complexity, detect large functions, and identify functions with high complexity and no documentation.

Key features

  • Cyclomatic complexity (McCabe) calculation
  • Lines of code (LOC) calculation
  • Nesting depth calculation
  • Fan-out calculation
  • Number of parameters calculation
  • Function documentation check

Pricing

Model
Free
Category
Skills
Rating
No reviews yet

Use cases

Top-10 most complex functions

Use /plugadvpl:metrics --sort cc to identify the top-10 most complex functions in a project

Identifying large functions

Use /plugadvpl:metrics --min-loc 300 --sort loc to detect functions with over 300 lines of code

High complexity and no documentation

Use /plugadvpl:metrics --min-cc 15 to identify functions with high complexity and no documentation

Pros & Cons

Pros

  • Helps identify complex functions that may require refactoring
  • Provides insights into code quality
  • Supports ranking functions by complexity
  • Detects large functions and functions with high complexity and no documentation

Cons

  • May have limitations with macro substitution
  • Cyclomatic complexity may be slightly high or low if macro expands to extra blocks
  • Requires re-ingestion when schema changes (e.g., from v9 to v10)

Reviews

Sign in to leave a review.

No reviews yet. Be the first!

Q&A

Are there any known limitations?

Macro substitution can affect accuracy of cyclomatic complexity, and the tool may need re‑ingestion after schema updates such as version changes.

Asked by Mireille Dupont · Jun 22, 2026

How can the tool help with code quality and refactoring?

By ranking functions by complexity, detecting large or highly nested functions, and flagging functions with no documentation, it highlights candidates that may need refactoring.

Asked by Lena Fischer · May 5, 2026

Which Protheus version does this skill support?

It works on Universo 4 Feature B, version 0.6.0 and later. If the schema changes (e.g., from v9 to v10), the tool must be re‑ingested.

Asked by Devin Walker · Mar 9, 2026

What metrics does Metrics (Grade A) calculate for ADVPL/TLPP functions?

It computes cyclomatic complexity (McCabe), lines of code (LOC), nesting depth, fan‑out, number of parameters, and checks for missing function documentation.

Asked by Robert Ainsworth · Mar 5, 2026

Ask a question

Skills alternatives

Using Git Worktrees (Grade A) logo
Using Git Worktrees (Grade A)Skills

Security-tested data-ai skill for Claude AI. Grade A. Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktre

(0)
Free
Ga4 Bigquery Schema (Grade A) logo
Ga4 Bigquery Schema (Grade A)Skills

Security-tested data-ai skill for Claude AI. Grade A. GA4 BigQuery Export Schema Reference — complete field reference, nested structures, query patterns, and performance tips

(0)
Free
Meta Capi (Grade A) logo
Meta Capi (Grade A)Skills

Security-tested data-ai skill for Claude AI. Grade A. Meta Conversions API (CAPI) Setup Reference — architecture, event types, customer information hashing, deduplication, implementation examples, AEM

(0)
Free
Callees (Grade A) logo
Callees (Grade A)Skills

Security-tested development skill for Claude AI. Grade A. Lista o que uma funcao/metodo chama (call graph direto)

(0)
Free
Test Module Name (Grade A) logo
Test Module Name (Grade A)Skills

Security-tested data-ai skill for Claude AI. Grade A. Name Haskell test modules after the module under test with a Spec suffix in the same namespace. Use when writing or reviewing Haskell test module

(0)
Free
Board Of Directors (Grade A) logo
Board Of Directors (Grade A)Skills

Security-tested data-ai skill for Claude AI. Grade A. Simulate a 5-member expert board deliberation for major decisions. Use when evaluating plans, architecture choices, feature designs, or any decisi

(0)
Free
Advpl Mvc Avancado (Grade A) logo
Advpl Mvc Avancado (Grade A)Skills

Security-tested development skill for Claude AI. Grade A. MVC avançado via PE (Pontos de Entrada) — adicionar grids customizadas em telas MVC padrão (CNTA300/MATA070/MATA440/MATA460/FINA040 via *STRU)

(0)
Free
D
Docs Writer (Grade A)Skills

Security-tested devops skill for Claude AI. Grade A. **WORKFLOW SKILL** — Maintains repository documentation accuracy and freshness across the docs site, agent files, and changelog. WHEN: "update docs

(0)
Free