← ClaudeAtlas

pm-updatelisted

Re-scan the current repo and update `.claude/pm-config.md` with fresh infrastructure and architecture detection while preserving user-edited sections (Role, OKRs, Team, Notes, Dependency Rules, Workflow Rules), then run a stale-cleanup pass to prune long-abandoned worktrees and branches. Use this after major milestones, new service integrations, or significant directory restructuring. Triggers on "pm update", "update pm config", "refresh pm config", "rescan repo".
auerbachb/claude-code-config · ★ 5 · Code & Development · score 70
Install: claude install-skill auerbachb/claude-code-config
Re-scan the current repo and update `.claude/pm-config.md`, then sweep stale worktrees and branches. Auto-generated config sections (Infrastructure, Architecture) are regenerated from the repo's current state; user-edited sections are preserved verbatim. After the config write, the stale-cleanup pass surfaces (and optionally removes) worktrees and branches that have aged past the threshold. Resolve the parser and cleanup helper before Step 1: ```bash resolve_script() { local name="$1" candidate for candidate in \ "$HOME/.claude/skills-worktree/.claude/scripts/$name" \ "$HOME/.claude/scripts/$name" \ ".claude/scripts/$name"; do if [[ -x "$candidate" ]]; then echo "$candidate"; return 0; fi done return 1 } PM_CONFIG_GET_SH=$(resolve_script pm-config-get.sh || true) STALE_CLEANUP_SH=$(resolve_script stale-cleanup.sh || true) [[ -n "$PM_CONFIG_GET_SH" ]] || { echo "ERROR: pm-config-get.sh not found (checked all three paths) — PM config preservation unavailable" >&2; exit 1; } [[ -n "$STALE_CLEANUP_SH" ]] || { echo "ERROR: stale-cleanup.sh not found (checked all three paths) — workspace cleanup unavailable" >&2; exit 1; } ``` ## Section classification | Section | Type | Behavior on update | |---------|------|--------------------| | Role | User-edited | Preserved verbatim | | OKRs | User-edited | Preserved verbatim | | Workflow Rules | User-edited | Preserved verbatim | | Dependency Rules | User-edited | Preserved verbatim | | Team | User-edited | Preser