Skip to content

konglong87/superPM / skills/super-pm-upgrade

super-pm-upgrade

Verified

Use when: 用户要求检查 super-pm 更新、升级完整 Git 安装或回退 Do NOT use when: 正在执行普通 PM 任务、仅需安装健康检查或用户没有要求升级

FileKindSize
SKILL.mdskill md2.8 KB
scripts/package-root.shscript638 B

scripts/package-root.sh

View on GitHub
#!/usr/bin/env bash
# Only report the Git clone containing this installed skill, never the caller's CWD.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
PACK_ROOT="$(cd "$SCRIPT_DIR/../../.." && pwd -P)"
if [[ ! -f "$PACK_ROOT/VERSION" || ! -f "$PACK_ROOT/skills/INDEX.md" ]]; then
  echo "super-pm-upgrade: not a full Git clone; use your skill manager to update copied skills" >&2
  exit 2
fi
if [[ "$(git -C "$PACK_ROOT" rev-parse --show-toplevel 2>/dev/null)" != "$PACK_ROOT" ]]; then
  echo "super-pm-upgrade: installed package is not its own Git repository" >&2
  exit 2
fi
printf '%s\n' "$PACK_ROOT"
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall