smog — скилл для Claude Code: данные о качестве воздуха
Скилл smog для Claude Code получает данные GIOŚ о качестве воздуха в Польше. По городу или координатам он находит станцию и показывает измерения загрязнителей и польский индекс качества воздуха.
MIT ★ 60 обновлён 2026-11-15
/plugin marketplace add b44x/ai-polish-skills
/plugin install smog@polskie-skilleЧто делает smog
Скилл запрашивает официальные измерения GIOŚ и находит станции по городу или координатам. Он выводит название станции, значения загрязнителей с единицами и временем измерения, а также категорию индекса, которую рассчитал GIOŚ. Данные разных датчиков могут относиться к разным часам.
Для запроса нужны Python 3.8+ и доступ в интернет; используются только стандартные библиотеки Python, ключ API не требуется. Если последнее измерение отсутствует, скилл помечает пропуск и не подменяет его нулём. Прогнозов, медицинских рекомендаций и непрерывного мониторинга нет; ближайшая станция может не отражать воздух по конкретному адресу.
Какие задачи решает
- найти станции GIOŚ в городе
- определить ближайшую станцию по координатам
- получить последние измерения загрязнителей
- показать польский индекс качества воздуха и время измерений
Примеры запросов агенту
- Покажи качество воздуха и станции GIOŚ в Кракове.
- Найди ближайшую станцию GIOŚ для координат 50.06 19.94.
- Покажи последние измерения PM2.5 и PM10 на станции 400.
Как установить smog
1Через маркетплейс плагинов
/plugin marketplace add b44x/ai-polish-skills/plugin install smog@polskie-skilleКоманда ставит плагин smog целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add b44x/ai-polish-skills --skill smog -a claude-code3Вручную: положить файлы
~/.claude/skills/smog/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/smog/
1Через Skills CLI (Vercel)
npx skills add b44x/ai-polish-skills --skill smog -a codex2Вручную: положить файлы
.agents/skills/smog/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add b44x/ai-polish-skills --skill smog -a cursor2Вручную: положить файлы
.cursor/skills/smog/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install b44x/ai-polish-skills skills/smog2Вручную: положить файлы
.github/skills/smog/SKILL.md1Через Skills CLI (Vercel)
npx skills add b44x/ai-polish-skills --skill smog -a gemini-cli2Командой платформы
gemini skills install https://github.com/b44x/ai-polish-skills --path skills/smogВручную: положить файлы
.devin/skills/smog/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о smog
Как установить smog в Claude Code?
Добавь маркетплейс командой /plugin marketplace add b44x/ai-polish-skills, затем установи скилл: /plugin install smog@polskie-skille.
Что делает smog?
Он получает официальные измерения GIOŚ, ищет станции по городу или координатам и показывает загрязнители, время измерений и категорию польского индекса качества воздуха.
Что нужно для работы smog?
Нужны Python 3.8+ и доступ в интернет. Скилл использует стандартную библиотеку Python и не требует ключа API.
Исходный текст
SKILL.md · MIT
--- name: smog display_name: Smog — jakość powietrza GIOŚ version: 1.0.0 description: >- Read official GIOŚ air quality measurements and the Polish air quality index. Find stations by city or the nearest station by GPS. Use for "smog", "jakość powietrza", "PM2.5", "PM10", "najbliższa stacja GIOŚ". Shows measurement times and missing data; does not provide forecasts or medical advice. category: public_data language: pl country: PL license: MIT author: Michell Hoduń (https://github.com/b44x) repository: https://github.com/b44x/ai-polish-skills network: true authentication: none source: Główny Inspektorat Ochrony Środowiska (GIOŚ) source_type: official_api official: true homepage: https://powietrze.gios.gov.pl/ documentation: https://powietrze.gios.gov.pl/pjp/content/api rate_limit: Endpoint-specific limits; see GIOŚ documentation last_verified: 2026-11-04 tags: - smog - powietrze - pm10 - pm25 - gios - jakosc-powietrza compatibility: Python 3.8+ (standard library only); internet access required. --- # GIOŚ air quality ## Running the script Run from this skill's directory: | OS | Command | |---|---| | Linux / macOS | `python3 scripts/smog.py <command> ...` | | Windows | `py scripts/smog.py <command> ...` | | Command | Purpose | |---|---| | `stations --city Kraków` | All stations in the city; `Krakow` also works | | `stations` | GIOŚ station catalogue | | `near 50.06 19.94` | Nearest station, straight-line distance, index and measurements | | `station 400` | Index and latest available measurements for a station | ## Choosing a station and reporting results 1. For a city, call `stations --city` first. If several stations match, present the options; do not describe one station as the city-wide average. Use `near` for supplied coordinates. 2. Report the station name, **GIOŚ** attribution, value, unit and measurement time for each pollutant. All concentrations from this API, including CO, are in µg/m³. Measurement and index times are local Europe/Warsaw times; `fetched_at` is UTC. 3. `latest_slot_missing` means the latest time slot has no measurement and the result comes from an earlier slot. `no_current_data` and `null` mean missing data, never zero. Different sensors may report measurements from different hours. 4. Show the index category supplied by GIOŚ; do not calculate a separate index or substitute US AQI. Report missing or incomplete index status. The data is provisional and may be corrected later. 5. This skill does not provide forecasts, health advice or continuous monitoring. The nearest station may not reflect conditions at the user's exact address. ## API and exit codes Use `https://api.gios.gov.pl/pjp-api/v1/rest/`. The script supports JSON-LD pagination without pip dependencies or API keys. Do not use the retired `/pjp-api/rest/` endpoint. Success: JSON on stdout, exit `0`. Errors: JSON on stderr, exit `2` for a missing station, `64` for validation or `69` for API/network failures. Missing measurements at an existing station are a valid result with `null` fields. A sensor-fetch network failure stops the lookup instead of masquerading as a missing measurement. `--help` and `-h` return `0`. Read [references/output.md](references/output.md) for field details. Source: [GIOŚ API documentation](https://powietrze.gios.gov.pl/pjp/content/api).
© Michell Hoduń (https://github.com/b44x) · MIT · b44x/ai-polish-skills