Skip to content
SEO
Skill

/socai-site-deployment

Deploy, configure, troubleshoot, and verify the socai marketing/download website on Vercel. Use for socai.io deployments, Vercel project settings, domain/redirect checks, Git preview setup, /download and /github redirect validation, and deployment runbooks for the site/ Astro

BOOST
From plugin
socai
24710 skills1 agent
Install
$ npx -y skills add socai-io/socai --skill socai-site-deployment --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/socai-site-deployment

Context preview

The summary Claude sees to decide when to auto-load this skill.

Deploy, configure, troubleshoot, and verify the socai marketing/download website on Vercel. Use for socai.io deployments, Vercel project settings, domain/redirect checks, Git preview setup, /download and /github redirect validation, and deployment runbooks for the site/ Astro

SKILL.md

socai-site-deployment.SKILL.md
name: socai-site-deployment
description: Deploy, configure, troubleshoot, and verify the socai marketing/download website on Vercel. Use for socai.io deployments, Vercel project settings, domain/redirect checks, Git preview setup, /download and /github redirect validation, and deployment runbooks for the site/ Astro app.

socai site deployment

Use this skill whenever the task involves the socai website deployment, Vercel configuration, `socai.io`, `www.socai.io`, `/download`, `/github`, or PR preview deployments.

This skill is the source-of-truth deployment runbook. [`../../../docs/website-deployment.md`](../../../docs/website-deployment.md) intentionally stays brief and points back here to avoid duplicate instructions drifting.

Project context

  • Website source: `site/`
  • Framework: Astro static site
  • Vercel team/scope: `socai-d83824c8` (`socai`)
  • Vercel project: `socai-site`
  • Production domain: `https://socai.io`
  • Documentation route: `https://socai.io/docs/` (Starlight pages built with the Astro site)
  • Canonical host: `socai.io`
  • `www` behavior: `https://www.socai.io/*` should 308/redirect to `https://socai.io/*`
  • Download route: `https://socai.io/download` redirects to the latest universal macOS DMG on the socai OSS release mirror
  • GitHub route: `https://socai.io/github` redirects to `https://github.com/socai-io/socai`

Expected Vercel project settings:

| Setting | Value | | --- | --- | | Framework preset | Astro | | Root directory | `site` | | Install command | `pnpm install` | | Build command | `pnpm build` | | Output directory | `dist` | | Node.js version | 24.x |

Safety rules

  • Use the `socai-d83824c8` scope for all Vercel project/domain commands.
  • Do not deploy from the wrong Vercel team or a personal project.
  • Do not commit `site/.vercel/`, `site/dist/`, `site/.astro/`, or `site/node_modules/`.
  • Do not enable analytics unless the user explicitly approves it.
  • Do not edit app release assets while doing website deployment work.
  • Keep issue work on a dedicated branch and open/update a PR for repo changes.
  • If you temporarily change Vercel project settings for a manual deploy, restore them before finishing.

Local validation

Before deploying or opening a PR for deployment-related code/config:

cd site
pnpm install
pnpm build

Validate JSON/XML config when touched:

python3 -m json.tool site/vercel.json >/dev/null
python3 -m json.tool site/public/site.webmanifest >/dev/null
python3 - <<'PY'
import xml.etree.ElementTree as ET
ET.parse('site/dist/sitemap-index.xml')
ET.parse('site/dist/sitemap-0.xml')
PY

Inspect Vercel state

vercel whoami
vercel teams ls
vercel projects ls --scope socai-d83824c8
vercel project inspect socai-site --scope socai-d83824c8 --yes
vercel domains inspect socai.io --scope socai-d83824c8
vercel domains inspect www.socai.io --scope socai-d83824c8

Confirm project settings show root directory `site`, framework `Astro`, build command `pnpm build`, output `dist`, install `pnpm install`.

Preferred production deployment

Preferred path after Git integration is enabled:

1. Merge website changes to `main`. 2. Let Vercel build the `socai-site` project from root directory `site`. 3. Verify production URLs with the commands below.

PR previews also require Git integration to be connected in the Vercel dashboard.

Emergency/manual CLI production deployment

Because the Vercel project is configured with root directory `site`, a direct local deploy from `site/` can fail with `site/site` root-directory errors. If Git integration is not available and a CLI deploy is required, use this temporary-root workaround and restore root directory afterward.

set -euo pipefail

cat > /tmp/vercel-root-null.json <<'EOF'
{
  "rootDirectory": null
}
EOF
cat > /tmp/vercel-root-site.json <<'EOF'
{
  "rootDirectory": "site"
}
EOF

restore_root() {
  vercel api /v10/projects/socai-site \
    --scope socai-d83824c8 \
    -X PATCH \
    --input /tmp/vercel-root-site.json \
    --silent || true
}
trap restore_root EXIT

vercel api /v10/projects/socai-site \
  --scope socai-d83824c8 \
  -X PATCH \
  --input /tmp/vercel-root-null.json \
  --silent

cd site
vercel deploy --prod --scope socai-d83824c8 --project socai-site --yes

After the deploy, confirm the root directory was restored:

vercel project inspect socai-site --scope socai-d83824c8 --yes

Do not leave the project with `Root Directory .` or `null`; Git previews depend on `site`.

URL verification

Use HEAD checks first:

curl -I https://socai.io/
curl -I https://socai.io/docs/
curl -I https://socai.io/docs/quickstart/
curl -I https://www.socai.io/
curl -I https://socai.io/sitemap.xml
curl -I https://socai.io/sitemap-index.xml
curl -I https://socai.io/download
curl -I https://socai.io/github

Expected first-hop behavior:

  • `https://socai.io/` returns `200`.
  • `https://socai.io/docs/` returns `200`, and a nested page such as `/docs/quickstart/` returns `200`.
  • `https://www.socai.io/` returns `308` with `location: https://socai.io/`.
  • `https://socai.io/sitemap.xml` permanently redirects to `/sitemap-index.xml`, which returns `200`.
  • `https://socai.io/download` returns a Vercel redirect (`307`) to the latest universal macOS DMG on the configured OSS release mirror.
  • `https://socai.io/github` returns a Vercel redirect (`307`) to `https://github.com/socai-io/socai`.

Use `-L` only when you want to follow the chain:

curl -I -L --max-time 30 -o /dev/null -w 'code=%{http_code}\nfinal=%{url_effective}\n' https://socai.io/download

Git preview setup

Try:

cd site
vercel link --yes --scope socai-d83824c8 --project socai-site
vercel git connect https://github.com/socai-io/socai --scope socai-d83824c8

If Vercel returns:

Failed to link socai-io/socai. You need to add a Login Connection to your GitHub account first.

then a Vercel/GitHub account owner must connect the GitHub login/int

Read more
Ships withsocai

Agent that actually understands social platforms. Fast. Precise. Deep.

Get the whole plugin

Other skills on socai.

clean-targets
Skill

clean-targets

Reclaim disk space by deleting cargo target/ build directories across the main checkout and every git worktree of this repo. Use…

@socai-io@socai-ioInstall Skill
socai-model-sync
Skill

socai-model-sync

Refresh, inspect, and validate socai's generated desktop/CLI LLM model catalog. Use when adding or updating model versions such…

@socai-io@socai-ioInstall Skill
socai-release
Skill

socai-release

Create, monitor, troubleshoot, and verify socai desktop GitHub releases from the command line with gh. Use when publishing a new…

@socai-io@socai-ioInstall Skill
research
Skill

research

Explore social-platform topics and discover people, projects and adjacent leads; retain a broad map, selective depth and durable…

@socai-io@socai-ioInstall Skill
self-healing
Skill

self-healing

Diagnose failed or incomplete agent actions, apply the smallest safe recovery, verify the result, and retain only reusable…

@socai-io@socai-ioInstall Skill
vc-research
Skill

vc-research

Find startup opportunities, connect people and projects, and prepare focused VC follow-ups without turning discovery into…

@socai-io@socai-ioInstall Skill