From parallel-task
Create a parallel workspace by duplicating the entire directory. Perfect for Laravel Herd environments where you need to run and test the app in parallel.
How this skill is triggered — by the user, by Claude, or both
Slash command
/parallel-task:parallel-taskThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
You're creating a complete duplicate of the current directory so you can work on a separate task and test it in a parallel environment (e.g., Laravel Herd will auto-serve it at a new URL).
You're creating a complete duplicate of the current directory so you can work on a separate task and test it in a parallel environment (e.g., Laravel Herd will auto-serve it at a new URL).
Current directory: !pwd
Repository name: !basename $(pwd)
Current branch: !git branch --show-current 2>/dev/null || echo "unknown"
$ARGUMENTS
Run these commands to create a complete copy in your Code directory:
# Get current directory info
CURRENT_DIR=$(pwd)
REPO_NAME=$(basename "$CURRENT_DIR")
TIMESTAMP=$(date +%s)
PARENT_DIR=$(dirname "$CURRENT_DIR")
WORKSPACE_PATH="${PARENT_DIR}/${REPO_NAME}-parallel-${TIMESTAMP}"
# Duplicate the entire directory (excluding .git at first, then init fresh repo)
echo "Creating duplicate at: $WORKSPACE_PATH"
rsync -a --exclude='.git' "$CURRENT_DIR/" "$WORKSPACE_PATH/"
# Update .env to use the new parallel workspace URL
WORKSPACE_NAME=$(basename "$WORKSPACE_PATH")
if [ -f "$WORKSPACE_PATH/.env" ]; then
sed -i '' "s|APP_URL=.*|APP_URL=https://${WORKSPACE_NAME}.test|g" "$WORKSPACE_PATH/.env"
echo "✓ Updated APP_URL in .env to https://${WORKSPACE_NAME}.test"
fi
# Initialize fresh git repo in the duplicate
cd "$WORKSPACE_PATH"
git init
git add .
git commit -m "Initial commit for parallel task: $ARGUMENTS"
# Clear Laravel caches to ensure clean state
if [ -f "artisan" ]; then
php artisan config:clear
php artisan cache:clear
echo "✓ Cleared Laravel caches"
fi
# Store the workspace path for cleanup later
mkdir -p "$CURRENT_DIR/.claude"
echo "$WORKSPACE_PATH" > "$CURRENT_DIR/.claude/current-parallel-workspace.txt"
echo ""
echo "✓ Parallel workspace created at: $WORKSPACE_PATH"
# If using Laravel Herd, link the site and show the URL
if command -v herd &> /dev/null; then
WORKSPACE_NAME=$(basename "$WORKSPACE_PATH")
# Link and secure the site in Laravel Herd
echo "Linking and securing site in Laravel Herd..."
cd "$WORKSPACE_PATH"
herd link
herd secure
HERD_URL="https://${WORKSPACE_NAME}.test"
echo "✓ Laravel Herd URL: ${HERD_URL}"
# Ensure Herd services are running
herd restart "$WORKSPACE_NAME"
echo "✓ Herd services restarted"
echo ""
echo " Opening in browser..."
# Open the URL in default browser
open "${HERD_URL}"
echo "✓ Browser opened to parallel workspace!"
else
echo "✓ Ready to use!"
fi
Open a new terminal window and run:
WORKSPACE_PATH=$(cat .claude/current-parallel-workspace.txt)
cd "$WORKSPACE_PATH"
claude
This launches a fresh Claude Code session in your parallel workspace.
In the new session:
Example workflow:
# Create feature branch
git checkout -b fix/parallel-task
# Make your changes...
# Commit
git commit -am "Fix: $ARGUMENTS"
# Add remote (use your actual repo URL)
git remote add origin <your-repo-url>
# Push and create PR
git push -u origin fix/parallel-task
gh pr create --title "Fix: $ARGUMENTS" --body "Fixes issue in parallel workspace"
IMPORTANT: Once you're happy with the PR and ready to clean up, remember to run:
/parallel-task:cleanup-parallel
This will remove the parallel workspace directory and free up disk space.
Note: This is a complete duplicate with its own git repository. Changes here are isolated until you push and create a PR. If using Laravel Herd, the site will be automatically available at the URL shown above.
Provides a checklist for code reviews covering functionality, security, performance, maintainability, tests, and quality. Use for pull requests, audits, team standards, and developer training.
npx claudepluginhub elliot-putt/claude-parallel-task --plugin parallel-task