Reap Orphans banner
tanweai tanweai

Reap Orphans

Development community

Description

--- description: "扫描并清理本地过期的 PUA agent/state。" allowed-tools: ["Bash(find:*)", "Bash(stat:*)", "Bash(rm:*)", "Bash(ls:*)", "Bash(date:*)", "Bash(mkdir:*)"] --- # PUA Reap Orphans — 孤儿回收 Keeper Test 的工程版:打完就退场,拖着不走的一律清理。 ## 执行步骤 1. 确保目录存在: ```bash mkdir -p "$HOME/.claude/pua" ``` 2. 扫描 30 分钟未更新的 loop state(orphan 判定线): ```bash find "$HOME/.claude/pua/" -name "loop-*.md" -type f -mmin +30 2>/dev/null ``` 3. 同步扫 legacy 相对路径: ```bash find .claude/ -maxdepth 1 -name "pua

Installation

Installs to ~/.claude/skills/tanweai-pua-reap-orphans/SKILL.md

Terminal
mkdir -p ~/.claude/skills/tanweai-pua-reap-orphans && curl -fsSL https://raw.githubusercontent.com/tanweai/pua/HEAD/commands/reap-orphans.md -o ~/.claude/skills/tanweai-pua-reap-orphans/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository