weather-data-lifecycle-management
하는 일
내려받은 날씨 데이터 파일의 수명과 소유권을 관리합니다. 더 이상 필요하지 않은 파일은 삭제되도록 하여 불필요하게 공간을 차지하지 않게 합니다.
사용하는 경우
- ✓작업이 끝나고 임시 파일이 남았을 때.
- ✓사용하던 데이터가 너무 일찍 삭제되어 프로그램이 멈춘 경우.
- ✓프로그램이 취소되어 불완전한 파일이 남았을 때.
스킬 링크
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/weather-data-lifecycle-management/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“작업이 끝난 후 더 이상 필요 없는 임시 데이터를 삭제해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
각 파일을 누가 ‘소유’하는지, 얼마나 오래 보관해야 하는지 정의합니다. 이렇게 하면 프로그램이 아무것도 망가뜨리지 않고 언제 파일을 지워도 되는지 정확히 알 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Weather Data Lifecycle Management
Overview
Keep downloaded and derived weather data for exactly as long as its consumer needs it. Make ownership explicit so one-shot jobs clean promptly, interactive views retain their inputs until close, and shared caches are never deleted as request cleanup.
This skill governs lifetime and ownership. It does not choose a provider, decode scientific data, or define a cache eviction policy by itself.
When to Use This Skill
- A completed render leaves large temporary files behind.
- An interactive view fails because its backing data was deleted too early.
- Cancellation or exceptions leak partial downloads and derived files.
- Request-owned files and a shared user cache are mixed together.
- Background workers transfer ownership of data to a UI or later processing stage.
Classify Every Path
Assign each file or directory one owner and one lifetime:
| Class | Owner | Delete when |
|---|---|---|
| Request workspace | One operation | Operation finishes or fails after durable outputs are saved |
| Interactive-session data | Viewer or session | Final consumer closes or display creation fails |
| Shared cache | Cache manager | Explicit eviction policy permits it |
| User export | User | Never as automatic request cleanup |
| Partial file | Active writer | Failure, cancellation, or successful atomic promotion |
If ownership cannot be stated, do not delete the path. Resolve ownership first.
One-Shot Workflow
Use a request-specific temporary directory, keep all transient downloads and intermediate products inside it, and copy or atomically move only the requested artifact to its durable destination.
from pathlib import Path
from tempfile import TemporaryDirectory
def render_once(destination):
destination = Path(destination)
destination.parent.mkdir(parents=True, exist_ok=True)
with TemporaryDirectory(prefix="weather-job-") as workspace:
workspace = Path(workspace)
source = fetch_into(workspace)
temporary_output = render(source, workspace / "result.png")
temporary_output.replace(destination)
return destination
The final artifact must live outside the temporary directory. If replacement across filesystems is not atomic, copy to a temporary file beside the final destination, verify it, then replace locally.
Interactive Workflow
An interactive consumer outlives the worker that created its data. Transfer ownership only after the viewer or session is successfully created:
- The worker owns the request workspace during acquisition.
- If acquisition or display creation fails, the worker cleans it immediately.
- On successful display, attach one idempotent cleanup callback to the real consumer close or destroyed event.
- The consumer becomes the owner; the worker must not also delete the data in
its ordinary
finallypath. - If multiple consumers share the same data, release it only after the final lease closes.
Do not tie cleanup to a temporary dialog, local variable, or signal that can fire before the actual consumer is finished.
Failure and Cancellation Rules
- Keep incomplete downloads under a distinct suffix or directory so they cannot be mistaken for valid data.
- Close datasets, file handles, and memory maps before removing their paths.
- Put request-owned cleanup in
finally, but exclude resources whose ownership was successfully transferred. - Make cleanup idempotent; a cancellation signal and a close event may race.
- Preserve a durable partial-result manifest when the user can retry remaining work.
- On cleanup failure, report the exact owned path without deleting broader parent directories.
Shared Cache Boundary
- A request may read or populate a shared cache but does not own the cache root.
- Promote validated entries atomically; never expose a partial file as a hit.
- Use cache identity and eviction metadata rather than deleting files by age or filename guesswork inside request code.
- Do not place user exports inside a directory that normal cache cleanup owns.
- Test that two concurrent consumers do not remove data still leased by the other.
Verification Checklist
- Every created path has a named owner and deletion event.
- One-shot operations retain only requested durable outputs.
- Interactive data remains available until the final consumer closes.
- Display-creation failure cleans immediately.
…
자주 묻는 질문
데이터 수명 관리가 왜 중요한가요?
불필요한 파일이 컴퓨터 공간을 차지하지 않게 하고, 필요한 파일이 너무 일찍 지워지지 않게 하기 위해서입니다.
이 도구를 쓰지 않으면 어떻게 되나요?
임시 파일이 많이 쌓이거나, 더 나쁘게는 필요한 데이터가 삭제되어 프로그램이 작동하지 않을 수 있습니다.
이 도구가 제 개인 파일을 삭제하나요?
아니요. 특정 작업과 캐시를 위한 임시 데이터를 관리하도록 설계되었습니다. 개인 파일이나 사용자 내보내기 파일은 자동으로 삭제되지 않습니다.
상세 정보
작성자의 원본 설명
Manage ownership, retention, and cleanup of downloaded weather data across one-shot jobs, interactive viewers, caches, failures, and cancellation.
인기도
- GitHub 스타
- 48k
- 순위
- #6144
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
00-andruia-consultant
48k에이전트가 AI 프로젝트를 시작하거나 개선할 수 있도록 코드를 분석하고 스페인어로 실행 계획을 세워 줍니다.
007
48k에이전트가 보안 감사와 위협 모델링을 수행해 공격과 취약점으로부터 프로젝트를 보호하도록 돕습니다.
10-andruia-skill-smith
48k에이전트가 AI 도구의 작동 방식을 정의하고 문서를 쓰며 구조를 검증하도록 돕습니다.
20-andruia-niche-intelligence
48k에이전트가 신뢰할 수 있는 자료를 바탕으로 특정 산업의 맥락, 규칙, 사용 패턴, 위험을 정리한 요약을 만들도록 돕습니다.
비슷한 스킬
discrawl
394k에이전트가 저장된 로컬 Discord 메시지 보관본을 검색하고 요약하며, 최신 상태를 확인하고 다이렉트 메시지를 읽도록 돕습니다.
clickhouse-io
280k에이전트가 ClickHouse 데이터베이스의 쿼리와 스키마를 최적화하도록 돕습니다. 고성능 분석 작업의 모범 사례를 적용합니다. 분석 쿼리가 느릴 때 씁니다.
scientific-db-pubmed-database
280k생의학 분야의 과학 논문을 에이전트가 검색하도록 돕습니다. 특정 의학 정보가 필요한 연구에 유용합니다.