cleanup-stale-executions

Mark stale running executions as failed and remove old completed ones from skill_execution.json.

2|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/dmzoneill/skills --skill cleanup-stale-executions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup-stale-executions
Source: https://github.com/dmzoneill/skills/tree/main/cleanup-stale-executions
Command: npx skills add https://github.com/dmzoneill/skills --skill cleanup-stale-executions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the cleanup of old and stuck skill executions, ensuring the execution log remains manageable and accurate.

Core Features & Use Cases

  • Stale Execution Management: Identifies and marks running executions that have exceeded a time limit or have been inactive for too long as failed.
  • Old Execution Removal: Automatically removes completed (successful or failed) executions that are older than a specified time.
  • Use Case: Regularly run this skill to prevent the execution log from growing too large and to identify any skills that may have unexpectedly failed or hung.

Quick Start

Run the cleanup stale executions skill now.

Frequently Asked Questions about cleanup-stale-executions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I clean up stale executions from my skill execution log?

To clean up stale executions, you can run an automated maintenance process that marks long-running or inactive executions as failed and removes old completed entries from the `skill_execution.json` file. This prevents the log from growing too large and identifies hung processes.

What causes a skill execution to be marked as failed?

A skill execution is marked as failed when it exceeds a specified time limit or has been inactive for too long. This stale execution management identifies running processes that have unexpectedly hung and updates their status to failed in the execution log.

Why do I need to remove old completed executions from the log?

You need to remove old completed executions to ensure the execution log remains manageable and accurate. Regularly clearing successful or failed entries from the `skill_execution.json` file prevents unbounded log growth and maintains system visibility.

Can I automate log management for inactive skill processes?

Yes, you can automate log management by regularly running a cleanup process that identifies inactive executions. This automated maintenance evaluates process age and status within the `skill_execution.json` file to clear stale records without manual intervention.

Does cleaning up stale executions require any external dependencies?

No, cleaning up stale executions requires no external dependencies or components. The process operates directly on the `skill_execution.json` file to process entries based on their age and status, functioning independently within your software engineering environment.