worksafe-nz
Query WorkSafe New Zealand aggregated workplace incidents, concerns, serious harm notifications and fatalities. Use for construction-sector safety context…
от thecolab-ai★ 41 звезда на GitHub
Установить worksafe-nz в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
WorkSafe NZ
Use the keyless scripts/cli.py to fetch public workplace harm exports. All
filters run locally. Every data command supports --json with a meta/results
provenance envelope. Python 3.10+ standard library only.
python3 skills/worksafe-nz/scripts/cli.py sources --json
python3 skills/worksafe-nz/scripts/cli.py datasets --json
python3 skills/worksafe-nz/scripts/cli.py incidents --industry Construction --region Auckland --from 2025-01 --to 2025-12 --json
python3 skills/worksafe-nz/scripts/cli.py incidents --dataset concerns --industry Construction --limit 5 --json
python3 skills/worksafe-nz/scripts/cli.py incidents --dataset injuries_serious_harm --json
python3 skills/worksafe-nz/scripts/cli.py incidents --dataset serious_harm --json
python3 skills/worksafe-nz/scripts/cli.py fatalities --year 2025 --industry Construction --json
python3 skills/worksafe-nz/scripts/cli.py fatalities --industry Construction --industry-match any-level --json
python3 skills/worksafe-nz/scripts/cli.py summary --by industry --region Auckland --json
python3 skills/worksafe-nz/scripts/cli.py summary --dataset fatalities --by year --json
sources: discover current CSV URLs and page update dates, including the separate historical HSE serious-harm file.datasets: download all five exports and report row counts, summed counts, first and latest CSV months. These counts may differ from dashboard labels.incidents: grouped notification rows, defaulting to notifiable incidents.--datasetalso selectsconcerns,injuries_serious_harm(HSWA), orserious_harm(historical HSE). Default--limit 100;--limit 0returns all. Metadata gives matched rows, summed count and truncation explicitly.fatalities: counts grouped by year, top-level industry and region. Optional--yearand--industryfilters. No individual fatality records are returned.summary --by industry|region|year: sums notification counts or fatality rows for one--dataset(defaultincidents), with optional industry, region and inclusive--from YYYY-MM --to YYYY-MMfilters.
Industry filters match the exact top-level industry name without case sensitivity
by default (--industry-match top-level). Use --industry-match any-level on
incidents, fatalities or summary to search substrings across all industry
levels and AFF2017 groups. This broader search can include other sectors, such
as Mining's Construction Material Mining, in a search for Construction.
Region filters use local government regions, not
WorkSafe operational zones. Construction provides W1 C&D sector safety context;
these exports contain no material inventories or building locations.
Every command accepts --max-age SECONDS (default 86400, 0 forces a refresh).
Downloads are cached in the skill's .cache/ directory; expired caches are not
used on upstream failure. Cache writes are internal and optional. Each HTTP
request has a 10-second timeout. JSON failures use stable exit codes 2, 4, 5 or 6.
Treat notifications as reported events, not a census of harm or near misses. Notification dates can differ from occurrence dates. Read references/source-notes.md for endpoint details, fatality lag, licence uncertainty and breaks in comparability. Region labels do not include coordinates, so bounding boxes and GeoJSON are not supported.
Run scripts/test_contract.py for offline parser, cache and output checks;
scripts/smoke_test.py checks synthetic fixtures and bounded live commands.
tests/fixtures/ contains synthetic values in the source CSV and HTML shapes.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- .gitignore
- references/source-notes.md
- scripts/cli.py
- scripts/provenance.py
- scripts/smoke_test.py
- scripts/test_contract.py
FAQ
Что делает скилл worksafe-nz?
Query WorkSafe New Zealand aggregated workplace incidents, concerns, serious harm notifications and fatalities. Use for construction-sector safety context, regional notification trends and industry comparisons.
Как установить скилл worksafe-nz?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл worksafe-nz запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…