audit
/audit
Mierzy kod w zmienionych plikach, wskazanych ścieżkach lub całym drzewie: rozmiar, złożoność i dług typów, z wartościami referencyjnymi, bez blokowania zmian.
- Autor
- melodic-software ↗
- Repozytorium
- claude-code-plugins ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 13.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 11
- Skrypty
- 6
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 1
Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 6 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/audit-complexity.sh, scripts/audit-complexity.test.sh, scripts/audit-size.sh, scripts/audit-size.test.sh, scripts/audit-type-debt.sh, scripts/audit-type-debt.test.sh
Co robi i kiedy
Mierzy kod w zmienionych plikach, wskazanych ścieżkach lub całym drzewie: rozmiar, złożoność i dług typów, z wartościami referencyjnymi, bez blokowania zmian.
Wyzwalacze z opisu
Argumenty
/audit <size|complexity|type-debt> [--json] [--all] [--base <ref>] [<path>...]
Oryginalny opis (EN)
Measure code for the changed files (the default), explicit paths, or the whole tree (`--all`), each number beside a configurable reference with its provenance. Reports, never gates. Actions: size (lines per file, every text file), complexity (per-function cyclomatic, cognitive and Halstead from collectors already installed), type-debt (typed-code percentage from type-coverage and mypy). Use when: 'how long are these files', 'lines per file', 'which files are too big', 'is this file over 1000 lines', 'how complex is this code', 'cyclomatic complexity', 'cognitive complexity', 'Halstead difficul
Jak działa
- Pre-computed context
- Variables
- Actions
- Standing rules
- Spoke paths
- What this skill does not do
- Next
- Gotchas
Podgląd SKILL.md
---
description: "Measure code for the changed files (the default), explicit paths, or the whole tree (`--all`), each number beside a configurable reference with its provenance. Reports, never gates. Actions: size (lines per file, every text file), complexity (per-function cyclomatic, cognitive and Halstead from collectors already installed), type-debt (typed-code percentage from type-coverage and mypy). Use when: 'how long are these files', 'lines per file', 'which files are too big', 'is this file over 1000 lines', 'how complex is this code', 'cyclomatic complexity', 'cognitive complexity', 'Halstead difficulty', 'how much of this is typed', 'type coverage', 'how many anys are in this', 'type debt'. Coverage and CRAP: /code-metrics:audit-coverage."
argument-hint: "<size|complexity|type-debt> [--json] [--all] [--base <ref>] [<path>...]"
user-invocable: true
disable-model-invocation: false
allowed-tools: ["Bash(${CLAUDE_SKILL_DIR}/scripts/audit-size.sh:*)", "Bash(${CLAUDE_SKILL_DIR}/scripts/audit-complexity.sh:*)", "Bash(${CLAUDE_SKILL_DIR}/scripts/audit-type-debt.sh:*)", "Bash(git branch --show-current:*)"]
shell: bash
metadata:
workflow-stage: anytime
summary: Lines, complexity and typed-code numbers beside cited references, no verdict
---
## Pre-computed context
Current branch: !`git branch --show-current 2>/dev/null || echo "unknown"`
## Variables
Arguments: `$ARGUMENTS`
The first word names the action; the rest passes to its script unchanged.
## Actions
| Argument | Measures | Script | Full process |
|---|---|---|---|
| `size` | Lines per file, every text file in every lane | `${CLAUDE_SKILL_DIR}/scripts/audit-size.sh` | `actions/size.md` |
| `complexity` | Per-function cyclomatic and cognitive complexity and Halstead difficulty | `${CLAUDE_SKILL_DIR}/scripts/audit-complexity.sh` | `actions/complexity.md` |
| `type-debt` | Typed-code percentage per file and per lane (TypeScript, Python) | `${CLAUDE_SKILL_DIR}/scripts/audit-type-debt.sh` | `actions/type-debt.md` |
With no action word, take the action from the request: file length or lines is `size`,
complexity is `complexity`, typing or `any` is `type-debt`. When the request names none of them,
list the three actions and ask which to run. Read the action's file before running its script; one
action per invocation.
## Standing rules
- Every action reports and never gates: each number sits beside a reference with its provenance,
and nothing here is a pass, a fail, a finding or a severity.
- Run the action's bundled script; never count, estimate or grep the measure by hand.
- Scope is the change by default (the merge-base diff plus uncommitted files); explicit paths or
`--all` widen it, and `--json` prints the `code-metrics/v2` document instead of markdown.
- Present the markdown report as printed. Keep the `--json` document when the numbers feed a
comparison: `/verification:measure metrics` consumes it when the `verification` plugin is
installed (treat `status: empty` on either side as INCONCLUSIVE); otherwise keep it beside your
notes and compare by hand.
- A `null` value is a number the collector did not produce, never zero.
- Nothing is installed; a missing collector is a row in the run table with its install hint.
## Spoke paths
The `actions/` files write this skill's directory as `<skill-dir>`, which is `${CLAUDE_SKILL_DIR}`,
and the plugin's root directory as `<plugin-root>`, which is `${CLAUDE_PLUGIN_ROOT}`. Put those
paths in place of the placeholders before running a command: a `${…}` token in a supporting file
is not one this plugin can rely on being expanded, either in the file or in the Bash tool. Where
each plugin variable resolves, and where it is exported: the plugins reference,
<https://code.claude.com/docs/en/plugins/manifest-reference#where-each-variable-resolves>.
## What this skill does not do
- It does not run tests, edit files, or install a collector.
- It does not judge: no reference is a bar, and no `check` gate exists in this version.
- It does not measure duplication, coverage or suppressions; those are the sibling `audit-*`
skills in this plugin, and `/code-metrics:principles` explains what each number can and cannot
tell you.
## Next
- The numbers feed a before-and-after comparison: `/verification:measure metrics`.
- A complex function's coverage and CRAP score are the real question:
`/code-metrics:audit-coverage`.
- A number is about to be quoted or read as a bar: `/code-metrics:principles`.
## Gotchas
- Change scope needs a merge-base with the default branch; outside a git repository, or on a
branch with no default-branch ancestor, pass paths or `--all` (the usage error says which).
- The report `skill` field and the dispatcher id stay `audit-size`, `audit-complexity` and
`audit-type-debt`: they name the producer, so reports taken before and after the move still
compare.
- Each action's own gotchas are in its file under `actions/`.
Pliki w paczce (11)
- SKILL.md 5 KB
- actions/complexity.md 9 KB
- actions/size.md 5 KB
- actions/type-debt.md 9 KB
- evals/evals.json 5 KB
- scripts/audit-complexity.sh 2 KB
- scripts/audit-complexity.test.sh 8 KB
- scripts/audit-size.sh 2 KB
- scripts/audit-size.test.sh 5 KB
- scripts/audit-type-debt.sh 2 KB
- scripts/audit-type-debt.test.sh 13 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · melodic-software/claude-code-plugins | 84 | MIT |
| marcel-bich/marcel-bich-claude-marketplace | 100 | MIT |
| jeremylongshore/tons-of-skills-marketplace | 100 | MIT |
| friendlyinternet/nuxt-crouton | 100 | MIT |
| userKael/rastro | 100 | MIT |
| Archont561/qgis-agent-harness | 100 | MIT |
| lilly-logic-labs/lll-skills | 100 | MIT |
| Come-In-Labs/agent-skills | 100 | MIT |
| minanyang/10x-agent | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki d59528098341 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 84audit-complexity
Mierzy złożoność cyklomatyczną, poznawczą i trudność Halsteada dla każdej funkcji w zmianie, ścieżce lub całym drzewie, podając obok liczb źródła odniesienia. - 84audit-size
Mierzy liczbę linii w plikach zmiany, wskazanych ścieżkach lub całym drzewie i zestawia każdy z konfigurowalnym punktem odniesienia, od najdłuższego. - 100code-complexity-scanner
Mierzy złożoność cyklomatyczną i kognitywną oraz długość funkcji w bazie kodu, by wskazać hotspoty utrzymaniowe. - 90cyclomatic-complexity
Mierzy złożoność rozgałęzień funkcji i zmniejsza ją, by logika pozostała testowalna, gdy funkcja ma wiele ścieżek, głębokie zagnieżdżenia lub długi łańcuch if albo switch. - 95gnarl
Mierzy złożoność funkcji w kodzie Zig: cykliczną, poznawczą, głębokość zagnieżdżeń i liczbę parametrów, od najgorszych, i pilnuje jej w CI. - 100low-complexity
Wymusza niską złożoność kognitywną (SonarSource) i cyklomatyczną w każdym pisanym lub zmienianym kodzie, w dowolnym języku, frameworku i na dowolnej platformie.