Skip to content

chore: add /deploy skill#66

Merged
timzatko merged 1 commit into
mainfrom
chore/deploy-skill
Jun 29, 2026
Merged

chore: add /deploy skill#66
timzatko merged 1 commit into
mainfrom
chore/deploy-skill

Conversation

@timzatko

Copy link
Copy Markdown
Member

Adds a /deploy Claude Code skill under .claude/skills/ for publishing the userscript to tw-calc.net from the local machine.

Why it exists: the CI Deploy curls the publish endpoint, but WEDOS Global Protection serves an anti-bot (ALTCHA) challenge to datacenter IPs — so GitHub-hosted runners get blocked. A residential IP reaches the endpoint, so running ci/deploy.sh locally publishes the update.

The skill captures the process and the gotchas we hit:

  • Rebuild so @version matches — the userscript version comes from package.json at build time, so a stale dist/ publishes the wrong script under the right label.
  • REF must be refs/tags/vX.Y.Z (the script parses the 3rd path segment).
  • The TW_CALC_API_KEY is the GitHub secret; the user runs the final command themselves (it's never echoed/committed/put in a transcript).
  • Verify the live @version afterwards.

It's framed as a workaround: once DNS-direct or a WGP bypass is in place, the normal CI deploy (via /new-version) handles it, and re-running the failed Deploy run is the CI equivalent.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@timzatko timzatko merged commit b8452fc into main Jun 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant