Skills Plugins MCP Prompt Model 博客 我的中心

clean-vm

Safely clean the local loop VM by reporting and removing stale loop runs, inactive Next.js or Storybook servers, optional browser windows, and unused loop-created worktrees without disturbing active tmux-backed sessions.

DeepseekModel キュレーション済みスキル 品質 優秀 · 78 v1.0.0

取得

https://deepseekmodel.com/api/download.php?id=axeldelafosse-loop-agents-skills-clean-vm-skill-md&format=skill
ダウンロード .skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能
.skill ファイルの system_prompt フィールドの実際の内容。
name clean-vm description Safely clean the local loop VM by reporting and removing stale loop runs, inactive Next.js or Storybook servers, optional browser windows, and unused loop-created worktrees without disturbing active tmux-backed sessions. Clean VM Use this skill when repeated loop, Claude, or Codex runs leave the machine in a bad state. Start with the bundled script. It does a dry run by default and only mutates the machine with --apply . Default Workflow Run a dry run first: python3 .agents/skills/clean-vm/scripts/clean_vm.py Review the report. The script only targets: loop manifests under ~/.loop/runs/<repoId> direct loop __bridge-mcp <runDir> <claude|codex> processes for stale runs loop helper processes tied to stale run dirs Next.js and Storybook servers running inside stale loop worktrees loop-created worktrees from git worktree list --porcelain Apply the cleanup once the plan looks safe: python3 .agents/skills/clean-vm/scripts/clean_vm.py --apply Only close browser windows when the user explicitly wants browser cleanup: python3 .agents/skills/clean-vm/scripts/clean_vm.py --apply --browsers Safety Rules Always inspect the dry run before using --apply . Treat loop manifests in ~/.loop/runs as the source of truth for paired runs. Keep any run whose manifest state is submitted , working , reviewing , or input-required and whose pid or tmuxSession is still live. Never mass-kill claude , codex , or node . Kill only per PID after the script proves the process belongs to stale loop state. Never remove the main worktree, the worktree containing the current pwd , or a dirty worktree. The script does not auto-force worktree removal. If a plain git worktree remove fails, it reports the failure and leaves escalation to a manual follow-up. Treat any live tmux session as in use even if the manifest looks stale. Browser cleanup is opt-in and macOS-only. What the Script Checks repo identity via git rev-parse --git-common-dir , using the same repo id scheme as loop run manifests under ~/.loop/runs tmux liveness with exact session targets like tmux has-session -t =<name> plus a live-pane check from tmux list-panes helper processes whose command line references a stale run dir direct loop bridge MCP server processes whose run dir is stale or orphaned dev servers matching next dev , next-server , storybook , or start-storybook worktrees from git worktree list --porcelain Manual Fallback If the script cannot classify something safely, leave it alone and inspect it manually: tmux ls 2>/dev/null tmux list-panes -a -F '#{session_name} #{pane_dead} #{pane_current_command} #{pane_current_path}' 2>/dev/null git worktree list --porcelain lsof -nP -iTCP -sTCP:LISTEN | grep -E 'next|storybook|node' ps -axo pid=, tty =, command = | grep -E 'claude|codex|next dev|storybook' Useful loop states: active: submitted , working , reviewing , input-required inactive: completed , failed , stopped If a manifest claims to be active but its pid is gone and its exact tmux session is missing or every pane in that exact session is dead, treat it as stale. Report End with a short cleanup report that includes: processes killed, with PID and reason dev servers stopped, with cwd and reason browser actions taken or skipped worktrees pruned or removed anything suspicious you left alone because it was active, dirty, or ambiguous If any item is ambiguous, prefer skipped over cleaned .
このスキルを起動するキーワード。クリックでコピーできます。

このスキルにはトリガーワードがありません。

ダウンロードした .skill に含まれるフィールド。
フィールド 説明
formatフォーマット識別子(skill/v1)
skill_idスキル固有 ID
nameスキル名
versionバージョン
description説明
categoryカテゴリ(配列)
trigger_wordsトリガーワード
tagsタグ
sourceソース
source_urlソース URL(本ページ)
exported_atエクスポート日時(ダウンロード毎)
system_promptシステムプロンプト本文
model_configモデル設定:provider / model / temperature / max_tokens / top_p
examplesサンプル
install_guide各プラットフォームの導入説明(Coze / Dify / Claude / カスタム)
同じスキルを各プラットフォーム形式で出力できます。
.skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能 ダウンロード
.skillpro 拡張形式。scripts / tools / dependencies / hooks を含む ダウンロード
.json 純粋な JSON 出力。system_prompt とモデル設定のみ ダウンロード
Coze frontmatter 付き Markdown。Coze へのインポート用 ダウンロード
Dify Dify DSL。アプリ作成後にそのままインポート ダウンロード

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。