For AI agents installing this pack into a user's PAI infrastructure.
Use Claude Code's native tools (AskUserQuestion, TodoWrite, Bash, Read, Write) to walk the user through this wizard.
"I'm installing the Loop skill from the PAI v5.0.0 release.
Iterative improvement loop — revisit and refine a target across multiple Algorithm cycles toward an ideal state.
Let me check your system and install."
CLAUDE_DIR="$HOME/.claude"
SKILL_DIR="$CLAUDE_DIR/skills/Loop"
if [ -d "$SKILL_DIR" ]; then
echo "EXISTING Loop skill found at $SKILL_DIR — will back up before install"
else
echo "Clean install — no existing Loop skill"
fiAsk the user (use AskUserQuestion):
- "Install
Loopinto~/.claude/skills/Loop/? (yes/no)" - If existing skill found: "Back up the existing
Loopto~/.claude/skills/Loop.backup-{timestamp}/first? (yes/no — recommend yes)"
if [ -d "$SKILL_DIR" ]; then
BACKUP="$SKILL_DIR.backup-$(date +%Y%m%d-%H%M%S)"
mv "$SKILL_DIR" "$BACKUP"
echo "Backed up to $BACKUP"
fimkdir -p "$CLAUDE_DIR/skills"
cp -R src/ "$SKILL_DIR/"
echo "Installed to $SKILL_DIR"Run the file and functional checks in VERIFY.md. Confirm to the user when all checks pass.