post-deploy-cleanup

Remove post-deploy output/ and Flow/ temporary files after user confirmation.

10|7|Updated Sep 24, 2025
One-click install
npx skills add https://github.com/matsuni-kk/agent_template_public --skill post-deploy-cleanup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: post-deploy-cleanup
Source: https://github.com/matsuni-kk/agent_template_public/tree/main/.cursor/skills/post-deploy-cleanup
Command: npx skills add https://github.com/matsuni-kk/agent_template_public --skill post-deploy-cleanup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

This skill automates the safe removal of post-deploy artifacts such as output/ and Flow/ temporary files after deployment, ensuring a clean working environment and reducing manual cleanup effort.

Core Features & Use Cases

  • Preflight checks confirm deployment completion and repository status before deletion.
  • Targeted deletion of output/{agent_name}/ and optional cleanup of Flow/{year_month}/{date}/{agent_name}/ drafts once work is done.
  • User-confirmation workflow and QC steps to prevent accidental data loss and protect other agents.

Quick Start

After deployment completes and the user confirms, run the Post Deploy Cleanup workflow to remove obsolete output and Flow artifacts.

Frequently Asked Questions about post-deploy-cleanup

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

FAQPage Schema
How do I automate post-deploy cleanup of temporary artifacts?

Post-deploy cleanup automation safely removes temporary artifacts like output/ and Flow/ draft files after deployment. It uses preflight checks, user confirmation workflows, and safe deletion reconciliation to prevent unintended data loss and protect other agents.

When should I clean up output and Flow temporary files after a deployment?

You should clean up output and Flow temporary files once deployment completes and all agent work is finished. Preflight checks confirm repository status and deployment completion, ensuring obsolete artifacts are only removed when no longer needed by other agents.

What is the best way to safely delete post-deploy artifacts without affecting other agents?

The safest way to delete post-deploy artifacts is using a workflow with preflight checks, mandatory user confirmation, and deletion reconciliation. This targeted approach removes only output/{agent_name}/ and optional Flow drafts, ensuring no impact on other active agents.

Can I selectively clean up Flow drafts while keeping output files after deployment?

Yes, you can selectively clean up Flow drafts while keeping output files. The cleanup workflow supports targeted deletion of output/{agent_name}/ separately from the optional cleanup of Flow/{year_month}/{date}/{agent_name}/ drafts, giving you precise control over what is removed.

Does post-deploy artifact cleanup require user confirmation before deleting files?

Yes, post-deploy artifact cleanup requires user confirmation before deleting files. The workflow implements a mandatory confirmation step and QC checks alongside preflight validation to prevent accidental data loss during the removal of temporary deployment artifacts.