lukephillips810

heavy-job-guard

Serialize an authorized expensive local command across cooperating terminals using a shared POSIX lock. Use when overlapping jobs would exhaust a workstation.

lukephillips810 0 Updated 5h ago

Resources

6
GitHub

Install

npx skillscat add lukephillips810/heavy-job-guard

Install via the SkillsCat registry.

SKILL.md

Confirm the command and shared state directory are within the requested scope. Use an explicit private directory shared by the cooperating callers, and a non-sensitive owner label. Run the command as an argument vector after --; never build a shell string from untrusted input.

Read README.md for command syntax and process limitations. Inspect --status when a job is waiting. Exit 75 means timeout: report the contention, do not kill the holder. Wrap only the actual heavy child; a parent waiting for another guarded process can deadlock. A nested acquisition failure is a reason to restructure the call, not bypass the lock.

Do not treat this skill as permission to launch a paid job, install a model or run an unrelated command. Return the actual child exit status and distinguish completion from artifact correctness.

Categories