dimensional-analysis-check
/dimensional-analysis-check
Sprawdza jednostki, skale, precyzję i zakresy liczb, gdy wartości przechodzą przez obliczenia, API lub zapis.
- Autor
- mtarcure ↗
- Repozytorium
- claude-vibe-squad ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 20.09.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 20.09.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Sprawdza jednostki, skale, precyzję i zakresy liczb, gdy wartości przechodzą przez obliczenia, API lub zapis.
Oryginalny opis (EN)
Use when numeric values cross arithmetic, API, storage, or time boundaries and a unit, scale, precision, rounding, signedness, or range mismatch could make the result wrong.
Jak działa
- Steps
- Acceptance
Podgląd SKILL.md
--- name: dimensional-analysis-check audience: specialist description: "Use when numeric values cross arithmetic, API, storage, or time boundaries and a unit, scale, precision, rounding, signedness, or range mismatch could make the result wrong." --- # Dimensional Analysis Check Catch unit, scale, base, and precision errors by checking that every quantity's dimensions agree across an expression, an API boundary, and a storage round-trip. ## Steps 1. Inventory every numeric quantity the change touches and annotate each with its unit and scale: seconds vs milliseconds, bytes vs KiB, basis points vs percent vs fraction, token decimals, wei vs ether. 2. Check each arithmetic expression for dimensional consistency — added terms must share a unit, and a ratio's unit must be what the consumer expects. 3. Check every boundary crossing: function parameters, JSON fields, database columns, environment variables, and RPC payloads are where units silently change identity. 4. Verify conversion factors against the authoritative definition rather than an inline literal, and flag every magic constant that encodes a unit conversion. 5. Check precision and rounding: integer division truncation, float accumulation in loops, and fixed-point scaling applied twice or not at all. 6. Check signedness and range: values that can go negative, counters that can wrap, and durations that can exceed the field's width. 7. Check time explicitly — epoch vs monotonic, UTC vs local, inclusive vs exclusive interval bounds — as it is the most common dimensional defect. 8. Where a unit is only documented in a name, treat the name as an assertion to verify, not as evidence. ## Acceptance - Every quantity in the reviewed change has a stated unit and scale. - Each expression and each boundary crossing is dimensionally consistent, or the mismatch is reported. - Conversion constants are traced to an authoritative definition. - Rounding, truncation, overflow, and sign behavior are checked at the extremes, not just at typical values. - Time values state their epoch, zone, and interval bound convention.
Wersje
W bazie nie ma innych skilli o nazwie dimensional-analysis-check.
Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.
Migawka bazy z 13.11.2026 · wersja paczki cc3608d32c31 (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
- 100dimensional-analysis
Sprawdza kod pod kątem błędów jednostek i skalowania dziesiętnego, dopisując komentarze z jednostkami wartości, np. przy WAD i RAY. - 100dimensional-analysis
Dodaje do kodu komentarze z analizą wymiarową (jednostki, wymiary, skalowanie dziesiętne), żeby wychwycić błędy formuł i niezgodności wymiarów, m.in. w protokołach DeFi. - 100dimensional-analysis
Sprawdza kod, w którym mieszają się jednostki, precyzje stałoprzecinkowe, współczynniki skalowania, stawki, ceny, udziały i przeliczenia, szukając błędów wymiarowych. - 90modbus-register-map-unit-and-endian-audit
Sprawdza, czy wartości Modbus są wiarygodne przy błędnych przesunięciach rejestrów, skalowaniu, znaku i kolejności słów, z dowodami.