code-health
/code-health
Ocenia kondycję kodu w repozytorium z indeksem Repowise: jakość, złożoność, dług techniczny, trudne w utrzymaniu pliki, hotspoty bez testów, luki w pokryciu oraz odczyt przed i po refaktoryzacji.
- Autor
- repowise-dev ↗
- Repozytorium
- repowise ↗
- Licencja
- AGPL-3.0
- Ostatnia zmiana repozytorium
- 27.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.
AGPL-3.0, copyleft: przeróbki udostępniane innym muszą mieć tę samą licencję.
Co robi i kiedy
Ocenia kondycję kodu w repozytorium z indeksem Repowise: jakość, złożoność, dług techniczny, trudne w utrzymaniu pliki, hotspoty bez testów, luki w pokryciu oraz odczyt przed i po refaktoryzacji.
Oryginalny opis (EN)
Use when the user asks about code health, code quality, complexity, technical debt, risky or hard-to-maintain files, what to refactor next, untested hotspots, or coverage gaps in a Repowise-indexed codebase (.repowise/ directory exists). Also use for before/after health reads when planning or finishing a refactor.
Jak działa
- Pick the mode by what you pass
- Useful include flags
- How to use the results
- CLI equivalents
- Error handling
Podgląd SKILL.md
--- name: code-health description: Use when the user asks about code health, code quality, complexity, technical debt, risky or hard-to-maintain files, what to refactor next, untested hotspots, or coverage gaps in a Repowise-indexed codebase (.repowise/ directory exists). Also use for before/after health reads when planning or finishing a refactor. --- # Code Health with Repowise Repowise scores **every file 1–10** from deterministic markers — McCabe complexity, deep nesting, brain methods, class cohesion (LCOM4), god classes, clone detection, untested hotspots, function-level churn, ownership dispersion, and more. Zero LLM calls; pure local analysis. The weights are calibrated against a real defect corpus, so a low score means *more likely to harbour bugs*, not just *bigger*. ## Pick the mode by what you pass - **Dashboard**: `get_health()` (no targets): `fix_first`, the ranked list of what to fix first, then repo-level KPIs and the lowest-scoring files. Start here for "how healthy is this codebase?" or "what should we clean up?". - **Targeted** — `get_health(targets=["src/x.py", "src/y.py"])`: per-file score and the specific marker findings driving it. Use before/after a refactor, or to explain *why* a file is flagged. ## Useful `include` flags `get_health(targets=[...], include=[...])`: - `"biomarkers"` — always return the findings list (what's wrong, where). - `"refactoring"` — deterministic, ranked refactoring suggestions (by impact/effort). - `"coverage"` — surface coverage data when it's been ingested. - `"trend"` — recent health snapshots + declining / predicted-decline signal. `include` adds blocks; `only=[...]` subtracts them. ## How to use the results 1. For "what should I refactor?" → dashboard mode, lead with `fix_first`; open an item with `get_health(fix_id=...)` for its steps and the tests to run, and present the plan, not just the scores. 2. Rank by `weighted_deficit`, not `score` — the score floors at 1.0. 3. For a specific file → report the score, the top 2–3 marker findings, and what each one means in plain language. Avoid dumping the raw payload. 4. Check `unresolved` before calling a file clean: a target listed there matched nothing, and `not_indexed` means run `repowise update`. 5. Before editing a flagged file → cross-check `get_risk(targets=[...])`; a file that is both low-health *and* a churn hotspot deserves the most care. 6. Untested-hotspot / coverage questions → tell the user coverage markers light up once they ingest a report: `repowise coverage add cov.lcov` (LCOV / Cobertura / Clover; a coverage.py `.coverage` also builds the per-test map), then `repowise health --recompute` to fold it into the scores. ## CLI equivalents - `repowise health` — KPIs + lowest-scoring files - `repowise health --refactoring-targets` — ranked by impact / effort - `repowise health --trend` — snapshots + declining alerts - `repowise coverage add <file>` — ingest coverage, light up untested-hotspot ## Error handling If `get_health` reports no repository, suggest `/prompts:repowise-init`. Code health is computed even with a template-rendered wiki (no LLM needed), so it should be available whenever the repo is indexed.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · repowise-dev/repowise | 100 | AGPL-3.0 |
| repowise-dev/repowise | 100 | AGPL-3.0 |
| ramboz/jig | 100 | MIT |
| ramboz/jig | 100 | MIT |
| ramboz/jig | 100 | MIT |
Migawka bazy z 28.10.2026 · wersja paczki e58b5f1de73e (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
- 90dead-code-cleanup
Porządkuje nieużywany kod w repozytorium z indeksem Repowise, ograniczając dług techniczny i zbędne pliki. - 100quality-check
Ocenia jakość kodu, wskazuje hotspoty, priorytety refaktoryzacji i dług techniczny przez CodeDNA, uwzględniając utrzymywalność, złożoność, modularność, testy i dokumentację. - 90architectural-decisions
Wyjaśnia powody budowy kodu i czyta znaczniki WHY, DECISION i ADR w repozytorium Repowise przed zmianami architektury. - 100project-health-auditor
Analizuje zdrowie bazy kodu: ocenia jakość kodu, wskazuje dług techniczny, sprawdza zależności i strukturę projektu. - 100tech-debt
Identyfikuje, kategoryzuje i priorytetyzuje dług techniczny, także przy pytaniach o jakość kodu, priorytety refaktoryzacji i backlog utrzymaniowy. - 95autopsy
Ocenia kondycję całej bazy kodu: złożoność, zależności, martwy kod, dług techniczny i gorące punkty w git, z planem ratunkowym.