Skip to content

xinetzone/SpecWeave / .agents/skills/byted-bp-cdn-pagesdeploy

byted-bp-cdn-pagesdeploy

Verified

One-click deployment of static websites to BytePlus Edge Pages platform, supporting auto project creation, update deployment, custom domain binding, and CDN acceleration. Includes guided onboarding for new users without a BytePlus account. Use when the user asks to deploy a static site, bind a custom domain, or set up CDN acceleration on BytePlus Edge Pages.

FileKindSize
SKILL.mdskill md8.0 KB
scripts/deploy.shscript9.3 KB
scripts/manage.shscript3.4 KB
scripts/onboard.shscript3.5 KB
scripts/setup.shscript1.3 KB
scripts/subscribe_cdn.pyscript4.7 KB

scripts/manage.sh

View on GitHub
#!/usr/bin/env bash
# pages-deploy: Manage Pages projects (view, preview, domains, offline, etc.)

set -euo pipefail

# Auto-find nest CLI
find_nest() {
    if command -v nest &>/dev/null; then echo "nest"; return; fi
    local paths=(
        "$HOME/.nest-cli/node_modules/.bin/nest"
        "~/tmp/nest-cli/node_modules/.bin/nest"
    )
    for p in "${paths[@]}"; do
        [[ -x "$p" ]] && echo "$p" && return
    done
    echo "Error: nest CLI not found. Run deploy.sh first to install." >&2
    exit 1
}

NEST=$(find_nest)

usage() {
    cat <<EOF
Usage: bash manage.sh <command> [options]

Commands:
  list                      List all Pages projects
  get       --pages p-xxx   Show project details
  deployments --pages p-xxx Show deployment history
  serve     --dir ./dist    Start local preview server
  domain-list   --pages p-xxx   List domains
  domain-add    --pages p-xxx --domain xxx   Bind domain
  domain-verify --pages p-xxx --domain xxx   Verify domain
  domain-del    --pages p-xxx --domain xxx   Unbind domain
  offline   --pages p-xxx   Offline project
  delete    --pages p-xxx   Delete project
EOF
    exit 0
}

[[ $# -eq 0 ]] && usage

CMD="$1"; shift
PAGES=""
DIR=""
DOMAIN=""
PORT="8080"

while [[ $# -gt 0 ]]; do
    case "$1" in
        --pages|-p)  PAGES="$2"; shift 2;;
        --dir)       DIR="$2"; shift 2;;
        --domain)    DOMAIN="$2"; shift 2;;
        --port)      PORT="$2"; shift 2;;
        -h|--help)   usage;;
        *)           echo "Unknown: $1"; shift;;
    esac
done

case "$CMD" in
    list)
        $NEST pages list
        ;;
    get)
        [[ -z "$PAGES" ]] && { echo "Error: --pages required"; exit 1; }
        $NEST pages get -p "$PAGES"
        ;;
    deployments)
        [[ -z "$PAGES" ]] && { echo "Error: --pages required"; exit 1; }
        $NEST pages list deployment --pages "$PAGES"
        ;;
    serve)
        [[ -z "$DIR" ]] && { echo "Error: --dir required"; exit 1; }
        echo "Starting local server at http://localhost:$PORT"
        $NEST pages serve "$DIR" --addr ":$PORT"
        ;;
    domain-list)
        [[ -z "$PAGES" ]] && { echo "Error: --pages required"; exit 1; }
        $NEST pages domain list --pages "$PAGES"
        ;;
    domain-add)
        [[ -z "$PAGES" || -z "$DOMAIN" ]] && { echo "Error: --pages and --domain required"; exit 1; }
        $NEST pages domain add --pages "$PAGES" --domain "$DOMAIN"
        echo "Domain added. Please configure CNAME at your DNS provider, then run:"
        echo "  bash manage.sh domain-verify --pages $PAGES --domain $DOMAIN"
        ;;
    domain-verify)
        [[ -z "$PAGES" || -z "$DOMAIN" ]] && { echo "Error: --pages and --domain required"; exit 1; }
        $NEST pages domain verify --pages "$PAGES" --domain "$DOMAIN"
        ;;
    domain-del)
        [[ -z "$PAGES" || -z "$DOMAIN" ]] && { echo "Error: --pages and --domain required"; exit 1; }
        $NEST pages domain delete --pages "$PAGES" --domain "$DOMAIN"
        ;;
    offline)
        [[ -z "$PAGES" ]] && { echo "Error: --pages required"; exit 1; }
        $NEST pages offline --pages "$PAGES"
        ;;
    delete)
        [[ -z "$PAGES" ]] && { echo "Error: --pages required"; exit 1; }
        read -p "Are you sure you want to delete $PAGES? [y/N] " confirm
        [[ "$confirm" =~ ^[yY] ]] && $NEST pages delete --pages "$PAGES" || echo "Cancelled"
        ;;
    *)
        echo "Unknown command: $CMD"
        usage
        ;;
esac
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall