organized-ai/plugin-marketplace/google-worker-scaffold
Claude Code and agent skill by organized-ai/plugin-marketplace
- community
Checking that the SKILL.md file is still in the repository.
Generates a deployable Cloudflare Worker wired to one or more Google APIs, with the encrypted token vault, OAuth consent flow, and fan-out already built. Use when the user says "scaffold a Worker for the GA4 API", "start a new Google integration", "spin up a Worker for Sheets", "create a project that talks to Google Ads", "give me the starter", or asks for a template to build a Google-backed personal app quickly.
Install
npx vskill@latest install organized-ai/plugin-marketplace/google-worker-scaffoldSKILL.md
The same SKILL.md was published earlier as organized-ai/plugin-marketplace/google-worker-scaffold.
Scaffold a Google-backed Worker
Produce a working deployment first, then extend. Never hand over a scaffold that has not been deployed and health-checked.
Sequence
- Decide the auth model. Call
google_auth_decision. If it returnsservice-account, do not scaffold the vault — build a much smaller Worker that signs a JWT and calls the API. Say so rather than over-building.
- Resolve scopes. Call
google_scope_planwith the API ids andmode: minimalfirst. Show the user the verification cost before they commit to a scope set.
- Get the code.
template/ships the parts you edit —schema.sql,wrangler.jsonc,src/config.ts— complete and correct. For the runtime, clonehttps://github.com/organized-ai/google-worker-template, or rebuild fromgoogle-api-wiring/references/code-modules.mdif offline. Then edit onlysrc/config.ts: worker name, capability-to-scope map, and any extra headers an API demands.
- Provision. Run
scripts/gcp-provision.shwith the project and worker name. It creates the GCP project, enables the services, creates D1/KV, applies the schema, and generatesVAULT_MASTER_KEYandSESSION_SECRET.
- Deploy before OAuth exists.
wrangler deploy, then confirm/healthreports every binding bound and lists the two missing Google secrets. A green health check with known gaps beats a half-built local project.
- Preflight. Hand the user the three Console links from
google-oauth-preflight. Wait for the client. Runscripts/set-google-secrets.sh.
- Connect and verify. After the first account connects, prove three things rather than assuming them: the D1 refresh token is ciphertext and does not begin with
1//; a fan-out call returns attributed results; a deliberately broken account yields a 207 rather than a failure.
Waiting for rollout
Cloudflare takes roughly 20–30 seconds to roll a new version to all edge locations. Tests run immediately after wrangler deploy will hit the old version and produce confusing results. Sleep before testing — and when a test fails twice in a row after a deploy, stop blaming propagation and read the logs with wrangler tail.
What the template already contains
Encrypted token vault with per-account HKDF keys, PKCE plus single-use DB-verified OAuth state, rotation-safe refresh, account registry, fan-out engine with partial-success semantics and KV-backed rate limiting, dry-run-by-default write guards, role-based access with per-account scoping, an audit log, and a dark-theme GSAP dashboard served from Worker Assets.
Delete what a given project does not need. It is easier to remove the sweeps and roles from a working system than to retrofit encryption into one.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingorganized-google-wiring/skills/google-worker-scaffold/SKILL.md
Popularity
- Repository stars
- 7
- Repository forks
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/organized-ai/plugin-marketplace/google-worker-scaffold)