smithery/matsuni-kk

post-deploy-cleanup

デプロイ完了後に不要になったoutput/やFlow/の一時ファイルを削除する。「クリーンアップ」「デプロイ後削除」「output削除」を依頼されたときに使用する。

Installation

$ npx skills add smithery/matsuni-kk --skill post-deploy-cleanup

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/matsuni-kk · top by installs.

npx skills add smithery/matsuni-kk

Browse all from smithery/matsuni-kk

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,263 B
  • docs SUMMARY.md 237 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Post Deploy Cleanup Workflow

デプロイ完了後に不要になった一時ファイル・ディレクトリを削除する。主成果物はクリーンな作業環境。

Instructions

1. Preflight(事前確認)

  • ./assets/cleanup_checklist.md を先に読み、削除対象を確認する。
  • デプロイが完了していることを確認する:

- GitHubリポジトリが作成されている - リポジトリURLが記録されている

  • 削除前に必ずユーザー確認を取る

2. 削除対象の特定

以下のディレクトリ・ファイルが削除対象:

対象 理由 確認事項
output/{agent_name}/ デプロイ済み GitHubリポジトリに存在
Flow/{yearmonth}/{date}/{agentname}/ 作業完了 成果物がStockに移動済み

3. 削除前確認

以下を確認してから削除を実行する:

# デプロイ済みリポジトリの確認
gh repo view {owner}/{agent_name} --json url

# output内のファイル確認
ls -la output/{agent_name}/

# Flow内の関連ファイル確認
ls -la Flow/{year_month}/{date}/{agent_name}/ 2>/dev/null || echo "Flow directory not found"

4. 削除実行

ユーザー確認後、以下を実行:

# outputディレクトリ削除
rm -rf output/{agent_name}/

# Flowディレクトリ削除(存在する場合)
rm -rf Flow/{year_month}/{date}/{agent_name}/

# 空のFlowディレクトリを削除
find Flow/ -type d -empty -delete 2>/dev/null || true

5. 確認

削除完了を確認:

  • output/ に対象ディレクトリが存在しないこと
  • Flow/ に関連ファイルが存在しないこと

6. QC(必須)

  • recommended_subagents のQC Subagent(qa-skill-qc)に評価を委譲する。
  • Subagentは ./evaluation/cleanup_criteria.md をReadし、QCを実施する。
  • チェック項目:

- ユーザー許可が取得されている - 削除対象が指定どおり - 想定外の削除が発生していない

  • 指摘を最小差分で反映する(最大3回)。
  • 指摘に対し「修正した/しない」と理由を成果物に残す。

7. バックログ反映

  • 削除完了をタスクリストに記録する。
  • cleanup_done=true を記録する。

subagent_policy: - 品質ループ(QC/チェック/フィードバック)は必ずサブエージェントへ委譲する - サブエージェントの指摘を反映し、反映結果(修正有無/理由)を成果物に残す

recommended_subagents: - qa-skill-qc: ユーザー許可、削除対象の妥当性、想定外削除の有無を検査

Resources

  • assets: ./assets/cleanup_checklist.md
  • assets: ./assets/cleanup_targets.md
  • evaluation: ./evaluation/cleanup_criteria.md
  • triggers: ./triggers/nextactiontriggers.md

Next Action

  • triggers: ./triggers/nextactiontriggers.md

起動条件に従い、条件を満たすSkillを自動実行する。