agentleFS
robritacca-dotcomrobritacca-dotcom/rift-ds/.claude/skills/send/SKILL.md

send

Skill10 starsChanged 5 days agoMITView on GitHub

Make finished work live on the deployed site (SITE_URL in scripts/brand.mjs is the authority). Triage the change, run the verify its tier needs (the full one unless the change is confined to the site or to labs and plainly safe), commit, merge branch work into main when needed, push, watch CI go green, then prove the deployed site actually renders with the live hydration smoke. Use when asked to send it, ship it, make it live, push to main, or deploy this. If asked to "merge and push" (a retired skill name), confirm the intended end state — send, checkpoint, or land — before acting.

  • Reads credentials
  • Commits and pushes

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    On main: follow steps 1–9 directly.

    line 25
  2. Distinctive:

    Survey the tree before touching anything: run git status --short and classify every entry:

    line 28
  3. Distinctive:

    Confirm CI went green: after the push, watch the GitHub Actions run to completion:

    line 96
  4. Very specific:

    Branch case, after CI is green: delete the merged branch — git branch -d <branch>, and git push origin --delete <branch> if it was pushed.

    line 102
  5. Distinctive:

    If it hasn't changed from before the push, wait a moment and re-check — Vercel usually finishes before CI does.

    line 109
  6. Distinctive:

    Every file deliberately left out and why

    line 117
  7. Distinctive:

    Never force-push, never rewrite pushed history

    line 123
  8. Very specific:

    Never commit .env* or anything credential-shaped — even if explicitly staged by mistake

    line 124
  9. Distinctive:

    If there is nothing in scope to commit and nothing unmerged on the branch, say so and stop — don't invent a commit

    line 125

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

send

Make finished work live on the live site (SITE_URL in scripts/brand.mjs is the authority for where that is) — triaged and verified green first, no unrelated files swept in, a clear report after. The end state is always the same: the work is on main, pushed, and deployed.

When invoked

Use this skill when asked to make completed work live — phrases like "send it", "ship it", "make it live", "push to main", "deploy this". This skill always ends with a deploy; to save progress without deploying, that's checkpoint (or park to also return to main).

If asked to "merge and push": that's the retired ambiguous skill name, and it now maps onto more than one verb. Confirm the intended end state before doing anything: send (merge into main, push, deploy), checkpoint (push the branch, keep working), or land (combine several pieces of pending work into a local main, pushing nothing).

Instructions

  1. Check the branch: git branch --show-current.
    • On main: follow steps 1–9 directly. A push to main deploys the live site (SITE_URL in scripts/brand.mjs is the authority).
    • On any other branch: the work rides the branch into main. Follow steps 1–4 on the branch (commit there), then merge in step 5. Never cherry-pick or copy files across branches to avoid a merge.
  2. Survey the tree before touching anything: run git status --short and classify every entry:

    • In scope — files created or modified as part of the work just completed in this session
    • Out of scope — anything untracked or modified that predates the session, or that wasn't part of the requested work

    Never run git add -A, git add ., or git add on a directory — always add explicit file paths. Out-of-scope files are excluded by default and named in the final report; if it's genuinely unclear whether something belongs, ask before including it.

  3. Triage the change, then run the verify its tier needs, before committing.

    a. Read the ceiling. The script sets the lightest tier the changed paths allow, and nothing may go below it:

    node scripts/site-only-change.mjs --triage

    It prints labs, site or full, with every changed file. scripts/site-only-change.mjs and scripts/labs-only-change.mjs own the allowlists and the reasoning for what each tier can skip; never restate or second-guess them here. A ceiling of full ends the triage: run the full verify and say nothing more about it.

    b. Read the diff, and only ever raise the tier. On a site or labs ceiling, read the actual diff and ask whether anything in it could break what the lighter run skips. Go to full when any of these holds, or when there is any doubt at all:

    • It adds or changes a drag grip, a pointer or keyboard handler, or anything in scripts/gestures.json's reach (the gesture sweep is skipped).
    • It changes markup that page-level axe would judge: landmarks, headings, the shared chrome (header, sidebar, footer, the root layout), a control's name or role (the axe sweep is skipped).
    • It changes logic rather than presentation: state, effects, data flow, anything a page computes.
    • It is large, or spread across unrelated parts of the site, or you cannot say in one sentence what it does.
    • The session's work also touched something the diff does not show as site (a decision, a doc claim, a registry the pages print).

    A change that stays at the lighter tier is one like a retuned value in a site registry, a spacing or position tweak in a page's CSS, a copy edit, or a swapped image: presentational, small, and readable in full.

    c. Say the verdict in two or three lines before running anything: what changed, the tier, and for a lighter tier what is skipped and why this change cannot reach it. Then proceed without asking. The owner can stop it, and any ask for the full verify forces full whatever the triage says.

    d. Run that tier's verify:

    npm run verify        # full: the single local mirror of CI
    npm run verify:site   # site: the quick run
    npm run verify:labs   # labs: CI's lighter labs path

    verify is the single source of truth for local checks and mirrors the CI jobs in .github/workflows/ci.yml — if CI gains a check (tests, a11y), it gets added to verify, never listed here separately, except the CI-only checks CLAUDE.md's CI & Local Verify section records as deliberate exceptions (its list is authoritative). The registry validators run in every tier.

    Each lighter run opens with its allowlist check and fails if anything outside it changed, so neither can stand in for a change that needs the full verify. The quick run is not a mirror of CI: it also drops the served-site gesture and axe sweeps, which CI still runs after the push, beside the deploy. A break only they catch is therefore found minutes after it is live, which is the trade step b exists to judge, and step 7's CI watch is where it would show.

    Run it plainly and let its own exit status be the verdict. Never pipe verify through tail, head, or grep — a pipeline reports the last command's exit code, not verify's, and that exact mistake masked two red builds on 2026-07-26. If any step fails, stop — fix the failure if it was caused by this session's work, otherwise report it. Never push red.

    Reading a failure. Name the step that failed (lint, the library build, the API compatibility gate, the package checks over dist/, the story tests, the Storybook build, the website lint or build, or one of the checks after it; the tail of the verify entry in the root package.json is the authoritative list), quote the exact error with its file and line, and give a likely cause. The failures do not share a family resemblance, so read the failing script's own doc block for what it guards. Three kinds recur:

    • A validator in the chain: registry drift, a stale generated file, or a prose edit that removed a fact a check depends on. It surfaces from a prebuild hook before the compiles start.
    • The website build: "use client" missing on a component that uses hooks or browser APIs; SSR-unsafe code outside a client guard (watch the inline themeScript in website/src/app/layout.tsx); a portal or modal that reads document at module or render scope; a page that fails static generation (Error occurred prerendering page).
    • The story tests: say whether it was a render error, an a11y violation, a play-function assertion or a unit assertion, because they surface identically and are fixed differently. An axe failure names the rule and the offending markup (contrast is deliberately outside the gate, so a contrast complaint means someone re-enabled color-contrast in .storybook/preview.ts). A play-function failure is a behaviour regression: for an overlay, look at the shared hooks in src/behaviors/ before the component. A unit assertion is fixed in the pure module it tests, never in a story.

    A gesture failure is a stale selector or setup, a drag that took nothing, or a real per-move render regression (the commit budget).

    Note: the build regenerates the derived surfaces owned by the validate-registry chain — the generator scripts at the front of scripts/chain.mjs are the authoritative list of what gets rewritten. If a generated file changed after the builds, it changed because this session's work made it stale — treat it as in scope and commit it in the same push, either alongside the edits that caused it or as its own chore(generated): commit when the regeneration is large enough to bury the real change (both are sanctioned; the 0.19.0 and 0.20.0 component drops used the split). CI's drift guard is a git diff --exit-code step and an untracked-file check after the generators run in .github/workflows/ci.yml, so what it cares about is that no regeneration is left uncommitted, a newly generated file included, not which commit carries it.

  4. Delta-scoped prose check — the step that keeps drift audits boring. For the identifiers this session's diff touched (component names, prop names, script names, moved/deleted paths), grep the prose surfaces — .claude/skills/, README.md, every root spec (the doc list in scripts/validate-doc-refs.mjs is the authoritative set; it includes tracked specs that are not published to /blueprints, which the FILES array in scripts/sync-blueprints.mjs deliberately omits), and the data registries whose text fields ship verbatim as prose (CLAUDE.md's Registries table names them; the component and widget description fields in src/components/registry.json and src/chat/registry.json are the ones most often missed, and they reach the MCP endpoint, the site chat's corpus, the consumer agent skill and page metadata word for word) — and judge whether any claim just became false (README.md ships in the npm tarball, so a false claim there reaches every consumer). Any prose the session wrote or rewrote also follows content-design.md (run its Self-Review Tests on anything longer than a sentence). Fix what did in the same push; validate-doc-refs catches dead references mechanically, but only a reader catches a sentence that is now wrong.

    When the diff touches a *Props or *OwnProps type under src/components/, src/chat/ or src/markdown/, two more checks. Run the api-consistency skill scoped to those components (its scoped mode reports only on them and their family). Then sweep internal callers (src/, website/src/, the stories) for every deprecated spelling of that component's API, older aliases included, not only the one this session retired: a caller still on a spelling two renames old renders today and fails the day the alias goes.

  5. Group changes into logical commits — one commit per concern, not one giant commit. Match the repo's conventional style (feat(scope):, fix(scope):, chore(scope):), with a 1–3 sentence body explaining the why. Check git log --oneline -5 if unsure of the voice.
  6. Merge (branch case only): with the branch committed and verify green:
    git checkout main
    git pull --ff-only
    git merge <branch>
    A fast-forward or a merge commit are both fine. If the merge conflicts, stop and report — never resolve conflicts silently as part of a ship. Never force-push to make a merge "work".
  7. Push: git push on main. Remember: a push to main deploys the live site via Vercel (SITE_URL in scripts/brand.mjs is the authority) — pushing is publishing.

    If the pushed work changed component CSS (the chat widget's under src/chat/ included), anything under src/tokens/, or .storybook/, offer to dispatch Chromatic (gh workflow run chromatic.yml) — once a Chromatic project is provisioned for this repo (none exists yet) — verify proves nothing about pixels, and this is the one decision point for it. It bills cloud snapshots, so it's an offer, not an automatic step.

    Chromatic only snapshots Storybook, so it says nothing about the website. If the pushed work touched a site-wide background surface — the config (website/src/data/shader-background.json), the site's composition of it (website/src/components/BlurBackground/, and the .blur-container rules in website/src/app/globals.css that place, mask and fade it), the renderer itself (src/components/ShaderField/), the background pick that can put a scene in the field's place, or nothing at all, on every page (SITE_BACKGROUNDS in website/src/lib/shaders/background-storage.ts, its hooks in background.ts and lazy-scene.ts, the header's website/src/components/BackgroundSwitcher/), the scene renderer (src/components/ShaderScene/, in the library, so Chromatic sees it only as a story, never as a site background), the shaded-chat recipe (website/src/components/StagedShader/ShadedChat.module.css, which grounds the chat home template, the playground's chat card and the home reel's shaded mode at once), or the dotted ground (website/src/components/DotBackground/) under the immersive stages and inside the home page's chat frame — offer a visual-review pass instead (one page under each SITE_BACKGROUNDS row, plus /templates/chat-home and the playground's Chat view when the shaded-chat recipe changed): all but the last change the background on all of the site's pages at once, the last is the whole ground under the stage pages and the home page's chat frame (review / too), and no automated gate covers any of them. verify proves the config validated and the shader compiled, not that the result looks right. The renderer is the easiest to miss, because it lives in the library rather than the website and Chromatic's Storybook snapshots do not cover a full-viewport site background.

    Same pattern for the chat: if the pushed work changed what the site chat answers from or how it answers — the corpus sources (page prose feeds site-corpus.generated.ts by construction), the persona or guardrail configuration in website/src/app/api/chat/, the handlers and guardrails the package ships in src/chat/server.ts and src/chat/upstash.ts (the site's routes are thin callers of them), the route itself, or the shared lookup implementations in website/src/lib/site-tools.ts (which also serve /api/mcp, so the same edit deserves an MCP spot-check) — offer to run the answer-quality eval (npm run eval:chat, ritual in evals/chat/README.md). verify proves the corpus regenerated, not that the answers stayed good, and the eval costs real API spend — an offer, not an automatic step.

  8. Confirm CI went green: after the push, watch the GitHub Actions run to completion:

    gh run watch $(gh run list --workflow=ci.yml --branch main --limit 1 --json databaseId --jq '.[0].databaseId') --exit-status

    The --workflow=ci.yml filter is load-bearing: a push to main can trigger other workflows within the same second (CodeQL, if it is enabled for this repo — check rather than assume), and an unfiltered --limit 1 can hand you one of those runs instead. --exit-status makes a red run exit non-zero rather than reporting and returning 0. CI runs in parallel with the Vercel deploy — it gates nothing, but a red run on main means something the local verify missed (or an environment difference) and must be investigated, not left as a red X.

    Branch case, after CI is green: delete the merged branch — git branch -d <branch>, and git push origin --delete <branch> if it was pushed. Its commits are on main; the repo stays main-only by default. Name the deletion in the report.

  9. Prove the deployed site renders — the step the 2026-09-06 outage was missing. A green verify, a green CI run, and an HTTP 200 all held that morning while every JS browser showed a blank page: the failure lived in Vercel's runtime rendering (the root route's ISR regeneration sees an internal pathname no local run can reproduce), so only the live site can prove itself. Read the URL from scripts/brand.mjs (the authority), never from memory. First confirm the new deployment is what's serving — the data-dpl-id in the homepage HTML changes with every deploy:
    SITE_URL="$(node -e "import('./scripts/brand.mjs').then(b=>console.log(b.SITE_URL))")"
    curl -s "$SITE_URL/" | grep -o 'data-dpl-id="[^"]*"'
    If it hasn't changed from before the push, wait a moment and re-check — Vercel usually finishes before CI does. Then run the live hydration smoke:
    node scripts/smoke-hydration.mjs "$(node -e "import('./scripts/brand.mjs').then(b=>console.log(b.SITE_URL))")"
    The script's doc block owns what it asserts, and its passes are labelled in the output, so a red line names which one failed. A red result means the deploy may have taken the site down — treat it as an active outage, not a report line: diagnose immediately, and if the cause isn't quickly fixable, revert the deploy (git revert the pushed commits and push again) rather than leaving the site dark while investigating. Never skip this step because verify and CI were green — they were green during the outage too.
  10. Report in the final message:
    • Each pushed commit (hash + subject), the triage tier and which verify passed locally (for a lighter tier, what it skipped), the CI run result, and the live smoke result (step 8)
    • Every file deliberately left out and why
    • Anything the deploy will visibly change on the live site
    • Branch case: the merge and the branch deletion

Guardrails

  • Never force-push, never rewrite pushed history
  • Never commit .env* or anything credential-shaped — even if explicitly staged by mistake
  • If there is nothing in scope to commit and nothing unmerged on the branch, say so and stop — don't invent a commit
  • Shipping is the owner's call: only invoke this flow when asked to ship, and never chain into it automatically from other work

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.