Data & AI
plx-pull-sync-claude-clean - Claude MCP Skill
Clean pull and sync with backup/restore functionality - backs up current .pew, pulls latest framework, syncs, and cleans up or restores on failure.
SEO Guide: Enhance your AI agent with the plx-pull-sync-claude-clean tool. This Model Context Protocol (MCP) server allows Claude Desktop and other LLMs to clean pull and sync with backup/restore functionality - backs up current .pew, pulls latest framewor... Download and configure this skill to unlock new capabilities for your AI workflow.
Documentation
SKILL.mdYou are about to perform a clean framework update with full backup and restore capability.
This command will:
1. **Backup Current Framework**: Create a backup of your current `.pew` directory
2. **Pull and Sync**: Execute the standard pull-sync workflow
3. **Success Cleanup**: Remove backup directory if all operations succeed
4. **Failure Restore**: Restore from backup if any operation fails
## Safety Features
- **Automatic Backup**: Your current `.pew` directory is preserved before any changes
- **Rollback on Failure**: If pull or sync fails, your original `.pew` is automatically restored
- **Clean Success**: Backup is removed only after successful completion
## Core Operations
The core pull and sync operations follow the standard workflow:
![[pull-sync-claude]]
## Safe Execution with Backup/Restore
Run the following commands from the project root:
```bash
# 1. Create timestamp for unique backup
BACKUP_TIMESTAMP=$(date +%Y%m%d_%H%M%S)
BACKUP_DIR=".pew_backup_${BACKUP_TIMESTAMP}"
echo "๐ Creating backup of current .pew directory..."
if [ -d ".pew" ]; then
cp -r .pew "$BACKUP_DIR"
echo "โ
Backup created: $BACKUP_DIR"
else
echo "โ ๏ธ No .pew directory found to backup"
fi
# 2. Execute standard pull-sync operations
echo "๐ฅ Executing pull-sync operations..."
PULL_SUCCESS=false
SYNC_SUCCESS=false
# Pull latest framework updates
echo "๐ฅ Pulling latest framework updates..."
if make -f .pew/Makefile pull main; then
echo "โ
Framework pull successful"
PULL_SUCCESS=true
# Sync with Claude (only if pull succeeded)
echo "๐ Syncing with Claude Code..."
if make -f .pew/Makefile sync claude; then
echo "โ
Claude sync successful"
SYNC_SUCCESS=true
else
echo "โ Claude sync failed"
fi
else
echo "โ Framework pull failed"
fi
# 3. Cleanup or restore based on success
if [ "$PULL_SUCCESS" = true ] && [ "$SYNC_SUCCESS" = true ]; then
# Success - remove backup
echo "๐งน Operations successful, cleaning up backup..."
if [ -d "$BACKUP_DIR" ]; then
rm -rf "$BACKUP_DIR"
echo "โ
Backup removed: $BACKUP_DIR"
fi
echo "๐ Clean sync completed successfully!"
else
# Failure - restore from backup
echo "๐ฅ Operations failed, restoring from backup..."
if [ -d "$BACKUP_DIR" ]; then
rm -rf .pew
mv "$BACKUP_DIR" .pew
echo "โ
Original .pew directory restored"
echo "๐ You can try the operation again or investigate the issue"
else
echo "โ ๏ธ No backup found to restore"
fi
echo "โ Clean sync failed - original state restored"
exit 1
fi
```
## Alternative One-Liner Version
For advanced users, you can run this as a single command:
```bash
BACKUP_TIMESTAMP=$(date +%Y%m%d_%H%M%S); BACKUP_DIR=".pew_backup_${BACKUP_TIMESTAMP}"; echo "๐ Creating backup..."; [ -d ".pew" ] && cp -r .pew "$BACKUP_DIR" && echo "โ
Backup: $BACKUP_DIR" || echo "โ ๏ธ No .pew to backup"; echo "๐ฅ Pulling updates..."; if make -f .pew/Makefile pull main && echo "โ
Pull OK" && echo "๐ Syncing..." && make -f .pew/Makefile sync claude && echo "โ
Sync OK"; then echo "๐งน Cleaning backup..."; [ -d "$BACKUP_DIR" ] && rm -rf "$BACKUP_DIR" && echo "โ
Backup removed"; echo "๐ Clean sync success!"; else echo "๐ฅ Failed, restoring..."; [ -d "$BACKUP_DIR" ] && rm -rf .pew && mv "$BACKUP_DIR" .pew && echo "โ
Restored from backup" || echo "โ ๏ธ No backup to restore"; echo "โ Clean sync failed"; exit 1; fi
```
## When to Use This Command
- **Major Framework Updates**: When you want to ensure you can rollback if something breaks
- **Experimental Pulls**: Testing new framework versions with safety net
- **Critical Projects**: When you can't afford downtime from broken framework updates
- **Team Environments**: Ensuring consistent framework state across team members
## Recovery Notes
If something goes wrong during execution:
- Backup directories are named `.pew_backup_YYYYMMDD_HHMMSS`
- Manually restore: `rm -rf .pew && mv .pew_backup_* .pew`
- Check logs for specific pull or sync failure reasons
- Contact framework maintainers if persistent issues occur
The backup and restore system ensures you can always return to a working state, making framework updates safer and more reliable.Signals
Information
- Repository
- appboypov/pew-pew-plaza-packs
- Author
- appboypov
- Last Sync
- 3/12/2026
- Repo Updated
- 3/4/2026
- Created
- 1/16/2026
Reviews (0)
No reviews yet. Be the first to review this skill!
Related Skills
upgrade-nodejs
Upgrading Bun's Self-Reported Node.js Version
cursorrules
CrewAI Development Rules
Confidence Check
Pre-implementation confidence assessment (โฅ90% required). Use before starting any implementation to verify readiness with duplicate check, architecture compliance, official docs verification, OSS references, and root cause identification.
browser-use
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, or extract information from web pages.
Related Guides
Mastering the Oracle CLI: A Complete Guide to the Claude Skill for Database Professionals
Learn how to use the oracle Claude skill. Complete guide with installation instructions and examples.
Python Django Best Practices: A Comprehensive Guide to the Claude Skill
Learn how to use the python django best practices Claude skill. Complete guide with installation instructions and examples.
Mastering Python Development with Claude: A Complete Guide to the Python Skill
Learn how to use the python Claude skill. Complete guide with installation instructions and examples.