airkorea-forecast-alert-mcp: Instructions file for Claude Code

CLAUDE.md

airkorea-forecast-alert-mcp CLAUDE.md is an instructions file for Claude Code from hlucent/airkorea-forecast-alert-mcp. It costs 3,030 tokens per session, scanned A, original, MIT.

A set of project-specific instructions for Claude Code, covering how to read the plan, test an air-quality forecast service, handle unusual API data, and stop before deployment.

In plain words
What is it for?
It guides implementation and local testing for AirKorea air-quality forecasts, fine-dust alerts, and ozone-related operations.
Why use it?
It prevents the coding agent from searching in the wrong places, guessing about unclear API behavior, or running deployment commands without approval.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

This is hlucent/airkorea-forecast-alert-mcp's own configuration. It tells Claude Code how to work on airkorea-forecast-alert-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything airkorea-forecast-alert-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hlucent/airkorea-forecast-alert-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/hlucent/airkorea-forecast-alert-mcp/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/hlucent/airkorea-forecast-alert-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for airkorea-forecast-alert-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/hlucent/airkorea-forecast-alert-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/hlucent/airkorea-forecast-alert-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/hlucent/airkorea-forecast-alert-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/hlucent/airkorea-forecast-alert-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for airkorea-forecast-alert-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/hlucent/airkorea-forecast-alert-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/hlucent/airkorea-forecast-alert-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,030 This file is loaded in full into every session.
When invoked 3,030 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.03030 $0.03030
Opus 5 $0.01515 $0.01515
Sonnet 5 $0.00606 $0.00606
Haiku 4.5 $0.00303 $0.00303

Measured 9d ago against content hash d3d07c50e263, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

airkorea-forecast-alert-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 247 lines

How it starts

The opening of the file, as written. The whole thing — 247 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md — airkorea-forecast-alert-mcp

절대 규칙

  • DEVPLAN.md 하나만 먼저 읽고 시작한다. 다른 문서 재탐색 금지.
  • 웹서치 금지 (API 스펙은 DEVPLAN.md에 이미 있음). 단, getMinuDustFrcstDspth50Over는 예외적으로 명세서 자체에 스펙 표가 없으므로, 실제 API를 호출해 raw 응답을 받아보는 것으로 스펙을 확정한다 — 이것은 "웹서치"가 아니라 "실측"이므로 금지 대상이 아니다.
  • 불확실하면 추측성 재설계 대신 기본값 1개로 구현 후 DEVLOG.md에 "확인 필요"로 기록.
  • 동일 오류 최대 3회까지만 재시도. 3회 실패 시 기록하고 사용자에게 보고.
  • 역할은 "코드 구현 + 로컬 실측 테스트"까지다. fly launch, fly secrets set, flyctl deploy, fly logs 등 fly.io 관련 명령은 절대 스스로 실행하지 않는다.
  • 배포 준비(코드 구현, 로컬 테스트, git commit/push)가 끝나면 아래 "작업 순서"의 정지 시점에서 멈추고, "사용자 안내 문구"를 그대로 출력한다.

이 프로젝트만의 특이사항 (먼저 숙지)

  1. getMinuDustFrcstDspth50Over(고농도 초미세먼지 예보)는 명세서에 요청/응답 스펙 표가 없다. 구현 순서를 다른 4개 오퍼레이션과 다르게 잡는다:

    • 먼저 informCode, searchDate 없이(또는 최소 파라미터로) 실제 호출해 raw 응답을 확인
    • 19개 권역별 {지역}50Over 필드명 전체 목록을 실제 응답에서 추출
    • 그 결과를 바탕으로 파싱 코드 작성
    • 확정된 스펙을 DEVLOG.md와 README.md에 기록 (다음에 이 코드를 보는 사람이 명세서를 다시 뒤질 필요 없도록)
  2. getUlfptcaAlarmInfo(미세먼지 경보)는 해제 전 데이터의 결측 표기가 다른 오퍼레이션과 다르다. clearDate는 문자열 "--", clearTime은 문자열 ":00", clearVal은 문자열 "공람"으로 올 수 있다(정상적인 상황). 이 값들을 숫자로 강제 변환하려 하면 에러가 나므로, 이 오퍼레이션 전용 안전 변환 로직이 필요하다(아래 "숫자/결측 필드" 절 참고).

  3. 오존 관련 오퍼레이션은 계절성이 있다. 오존 예보/주의보는 4월~10월에만 발표된다. 비시즌에 호출했을 때 정상적으로 빈 목록이 오는지, 에러가 나는지 반드시 확인하고 README.md에 이 계절성을 명시한다.


기술적으로 반드시 적용할 것

.env

BOM 없는 UTF-8로 저장한다.

server.pymcp.run()은 항상 stateless_http=True 포함

mcp.run(transport="streamable-http", host="0.0.0.0", port=port, stateless_http=True)

응답 파싱: JSON 우선, XML 폴백 필수

import re

def parse_response(text: str) -> dict:
    try:
        return json.loads(text)
    except ValueError:
        code_match = re.search(r"<resultCode>(.*?)</resultCode>", text)
        msg_match = re.search(r"<resultMsg>(.*?)</resultMsg>", text)
        return {
            "response": {
                "header": {
                    "resultCode": code_match.group(1) if code_match else "99",
                    "resultMsg": msg_match.group(1) if msg_match else "UNKNOWN_XML_RESPONSE",
                }
            }
        }

Read the full file on GitHub · 247 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 247 lines · 3,030 tokens per session scan A d3d07c50e263

Subscribe to this mod's changes

airkorea-forecast-alert-mcp CLAUDE.md is an instructions file published in the GitHub repository hlucent/airkorea-forecast-alert-mcp (0 stars, last pushed 18d ago), licensed MIT. It adds 3,030 tokens to every session, about $0.0152 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens