PromptBase
PromptBase SelectGet Select
Close icon
General
Home
Marketplace
Create
Hire
Login
Chat
Sell
Explore

Skill Details

Runtime
(claude-4-8-opus)
Example user message
[userMessage]: A Python service writes exports to temporary files and renames them into place. Cancelled jobs and worker crashes leave files behind, and two workers can occasionally collide on names. Repair the lifecycle without moving temp data outside the approved directory.
Example agent response
The lifecycle should treat a temporary artifact as an owned resource with one publisher and one cleanup path. I would use a secure OS/application-approved temp directory, create a unique file atomically with restrictive permissions, write/flush as required, and publish with an atomic rename only after validation. Cancellation and exceptions close handles and remove unpublished artifacts; crash leftovers are identified by scoped naming/metadata and scavenged only when ownership/age rules prove they are stale. Tests: simultaneous workers, forced name collision, cancellation during write, crash leftover, failed rename, permission check, symlink/race attempt, disk-full/ENOSPC, normal publish, and cleanup idempotency. Do not move sensitive temp data outside the approved root.
Cursor Skill

Repair Temporary File Lifecycle Bugs

Add to Cart
PromptBase Select
Get this skill + 9 more with Select$14 your first month, then $19/mo$14 first month, then $19/mo
View Select
Instant accessInstant access
Usage rightsCommercial use
Money-back guaranteeMoney‑back
By purchasing this skill, you agree to our terms of service
CLAUDE-4-8-OPUS
Tested icon
Guide icon
Free credits icon
Repair temporary-file lifecycle failures across secure creation, naming, permissions, atomic replacement, cancellation, crashes, concurrent workers, cleanup, disk pressure, and cross-platform behavior. Works from repositories or partial helper/log evidence. Produces bounded repairs and deterministic tests while preserving sandbox and data-handling rules.
...more
Updated 3 weeks ago
Report
Browse Marketplace