weather-data-lifecycle-management
Has your agent manage weather data. It controls what is stored, when it is cleaned up, and how it is used.
What it does
Manages the lifespan and ownership of downloaded weather data files. This ensures files are deleted when no longer needed, preventing them from unnecessarily taking up space.
When to use it
- ✓When a job finishes and leaves temporary files behind.
- ✓When a program crashes because the data it was using was deleted too early.
- ✓When a program is canceled and leaves incomplete files.
Example of what to ask your AI
“Delete temporary data that is no longer needed after my job is complete.”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
It defines who 'owns' each file and how long it should be kept. This way, the program knows exactly when it can delete a file without breaking anything.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add sickn33/agentic-awesome-skills --skill weather-data-lifecycle-managementOr download just the file:
curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/weather-data-lifecycle-management/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from 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.
…
FAQ
Why is managing data lifespan important?
To prevent unnecessary files from taking up space on your computer and to ensure that needed files are not deleted prematurely.
What happens if I don't use this tool?
You might end up with many accumulated temporary files, or worse, programs that stop working because the data they need was deleted.
Does this tool delete my personal files?
No, it's designed to manage temporary data for specific jobs and caches. Personal files or user exports are not automatically deleted.
Details
Original description by the author
Manage ownership, retention, and cleanup of downloaded weather data across one-shot jobs, interactive viewers, caches, failures, and cancellation.
Popularity
- GitHub stars
- 48k
- Ranking position
- #4530
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
00-andruia-consultant
Helps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
sickn33/agentic-awesome-skills
007
Lets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
sickn33/agentic-awesome-skills
10-andruia-skill-smith
Helps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
sickn33/agentic-awesome-skills
20-andruia-niche-intelligence
Lets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
sickn33/agentic-awesome-skills
Similar skills
clickhouse-io
Helps your agent optimize queries and schemas in ClickHouse databases. It applies best practices for high-performance analytical workloads. Use when analytical queries are too slow.
affaan-m/ECC
scientific-db-pubmed-database
Helps your agent search for scientific articles in the biomedical field. It's useful for research needing specific medical information.
affaan-m/ECC
scientific-db-uspto-database
Allows the agent to look up official US patent and trademark data. It's useful for intellectual property research.
affaan-m/ECC