Agent Skills: Sync Content to S3

Sync gallery images and content to S3. Use after adding new photos to the portfolio.

UncategorizedID: forever-efficient/pitfal-solutions-website/sync-content

Install this agent skill to your local

pnpm dlx add-skill https://github.com/forever-efficient/pitfal-solutions-website/tree/HEAD/.claude/skills/sync-content

Skill Files

Browse the full folder contents for sync-content.

Download Skill

Loading file tree…

.claude/skills/sync-content/SKILL.md

Skill Metadata

Name
sync-content
Description
Sync gallery images and content to S3. Use after adding new photos to the portfolio.

Sync Content to S3

Sync local gallery content to AWS S3 bucket.

Arguments

  • $ARGUMENTS - Optional: specific gallery folder to sync

Steps

  1. Verify AWS credentials:

    aws sts get-caller-identity --profile pitfal
    
  2. Sync all media files:

    aws s3 sync ./content/galleries/ s3://pitfal-media/galleries/ \
      --profile pitfal \
      --exclude "*.DS_Store" \
      --exclude "*.tmp" \
      --exclude ".git/*"
    
  3. Report files uploaded and total size

For Specific Gallery

If $ARGUMENTS is provided:

aws s3 sync ./content/galleries/$ARGUMENTS/ s3://pitfal-media/galleries/$ARGUMENTS/ \
  --profile pitfal \
  --exclude "*.DS_Store"

Dry Run (Preview Only)

To see what would be synced without uploading:

aws s3 sync ./content/galleries/ s3://pitfal-media/galleries/ \
  --profile pitfal \
  --dryrun

Output

Report:

  • Number of files uploaded
  • Number of files deleted (if --delete used)
  • Total data transferred
  • S3 bucket URL