From a044dbc9ebb23bce3cd009b70c8285673f37761b Mon Sep 17 00:00:00 2001 From: yaowenc2 Date: Tue, 14 Jul 2026 09:01:33 +0800 Subject: [PATCH] docs: agents.instacloud.com is the canonical onboarding one-liner CloudFront edge cache of agents.sh (rate-limit-proof vs raw.github); raw URL stays documented as the transparent fallback. Repo skill gains the cache-invalidation note per its keep-true rule. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01GMbAe5K1RfwaAcge5inX7P --- .claude/skills/developing-insta-cli/SKILL.md | 7 +++++++ agents.sh | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.claude/skills/developing-insta-cli/SKILL.md b/.claude/skills/developing-insta-cli/SKILL.md index 0f9375b..df14b85 100644 --- a/.claude/skills/developing-insta-cli/SKILL.md +++ b/.claude/skills/developing-insta-cli/SKILL.md @@ -52,6 +52,13 @@ npx tsx src/index.ts --help # run the CLI from source | `npx insta@latest` behind the GH release | `publish-npm` job failed (OIDC trust/config?) — see step 4 | | CLI hits the wrong server in tests | Persisted `~/.insta/config.json` apiUrl; set `INSTA_API_URL` (≥0.0.7) or move the config aside | +## agents.instacloud.com + +The onboarding domain is a CloudFront distribution edge-caching `agents.sh` from this repo's +main branch (origin `raw.githubusercontent.com`, path rewrite → `/agents.sh`). After editing +`agents.sh`, the edge can serve the old copy for up to ~24h — invalidate it: +`aws cloudfront create-invalidation --distribution-id --paths '/*'`. + ## Keep this skill true Before you finish work in this repo: if anything you did or discovered changed the flows above — diff --git a/agents.sh b/agents.sh index 08df04d..f896581 100755 --- a/agents.sh +++ b/agents.sh @@ -2,7 +2,10 @@ # # InstaCloud agent setup installer — the one-liner for coding agents: # -# curl -fsSL https://raw.githubusercontent.com/InsForge/insta-cli/main/agents.sh | sh +# curl -fsSL agents.instacloud.com | sh +# +# (agents.instacloud.com is a CloudFront edge cache of this file — same bytes, rate-limit-proof. +# The raw fallback also works: curl -fsSL https://raw.githubusercontent.com/InsForge/insta-cli/main/agents.sh | sh) # # Thin shim (the Railway agents.sh pattern): exactly equivalent to #