google-agents-cli-scaffold
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
clerk-token-ops
Automates Clerk JWT token generation, validation, and export for FastAPI integration tests. Use when an agent must refresh tokens, verify JWT templates, or unblock authentication workflows without breaking environment state.
Full skill instructions
This skill gives Claude Code agents a repeatable, zero-surprise playbook for generating Clerk JWTs, exporting them into the Windows PowerShell environment, and validating authentication against the FastAPI backend. It encodes the exact fixes from the November 2025 incidents (missing templates, parser errors, stale tokens) so future runs avoid the same failures.
Use this skill whenever the task involves:
.env.local and PowerShell sessions stay in sync (CLERK_SECRET_KEY, CLERK_TOKEN).server-token).scripts/get_clerk_token.py or Set-ClerkToken.ps1 safely.scripts/Set-ClerkToken.ps1.user_35KgiAcvIC0tdtFvJUN1vDkrNYc). Angle brackets or placeholders break PowerShell parsing..env.local exists and contains CLERK_SECRET_KEY, CLERK_ISSUER, CLERK_PEM_PUBLIC_KEY, and CLERK_ISSUER_ID..env.local; environment variables load only once per process.Test-Path .env.local and open the file if missing keys.CLERK_JWT_AUDIENCE stays commented out; session tokens lack aud.powershell -File .\scripts\Set-ClerkToken.ps1 -ListTemplatesserver-token exists; if missing, create it in the Clerk dashboard with RS256 signing.powershell -File .\scripts\Set-ClerkToken.ps1 -UserId <ACTUAL_USER_ID> -Template server-token [-Persist]echo $env:CLERK_TOKENpython scripts/get_clerk_token.py --env-file .env.local --user-id ... --template server-token --print-session for debugging.uv run python main/scripts/test_clerk_auth.py "$env:CLERK_TOKEN" fixtures/test_urs.txtcurl -H "Authorization: Bearer $env:CLERK_TOKEN" http://localhost:8000/jobs -d @payload.json -H "Content-Type: application/json"logs/audit/jobs/audit_*.jsonl to ensure the sub (user ID) and token_iat fields are captured (ALCOA+ compliance)..env.local contains correct Clerk keys and issuer URLs.scripts/get_clerk_token.py runs without HTTP errors and prints JWT.scripts/Set-ClerkToken.ps1 outputs success messages (no [System.Char] errors).$env:CLERK_TOKEN is non-empty and recent (token_iat within 60 seconds).user_id from JWT sub claim.| Symptom | Root Cause | Fix |
|---|---|---|
Method invocation failed because [System.Char] does not contain a method named 'Trim' | PowerShell treated helper output as char array | Use the patched Set-ClerkToken.ps1 (Nov 2025). If issue recurs, wrap extraction with [string] and ensure token line exists. |
Unable to parse JWT from helper output | Helper didnt emit token (HTTP error, wrong template, or env vars missing) | Re-run helper with --print-session and check .env.local secrets; confirm template name matches exactly. |
Token validation failed: Token is missing the "aud" claim | Audience verification enabled | Comment out CLERK_JWT_AUDIENCE and ensure JWT decode options set verify_aud=False. |
401 Unauthorized: Token expired | Delay between generation and use | Regenerate token and chain tests immediately (<60s). Automate generation/test pipeline if needed. |
500 Internal Server Error: Authentication system not configured | FastAPI didnt load .env.local | Load dotenv at the top of main/api/app.py before other imports; restart server. |
# 1. List templates (sanity check)
powershell -File .\scripts\Set-ClerkToken.ps1 -ListTemplates
# 2. Export fresh token for known test user
powershell -File .\scripts\Set-ClerkToken.ps1 -UserId user_35KgiAcvIC0tdtFvJUN1vDkrNYc -Template server-token -Persist
# 3. Verify environment
$env:CLERK_TOKEN
# 4. Exercise FastAPI endpoint (token expires fast!)
uv run python main/scripts/test_clerk_auth.py "$env:CLERK_TOKEN" fixtures/test_urs.txt
# 5. Tail audit logs for attribution
Get-Content logs/audit/jobs/audit_$(Get-Date -Format yyyyMMdd).jsonl -Tail 3
docker compose -f docker-compose.dev.yml up --build api worker after refreshing tokens.$env:CLERK_TOKEN is available to downstream pytest or uv run commands.main/docs/guides/CLERK_INTEGRATION_TESTING.md and note version in this skill.scripts/get_clerk_token.py - Python helper hitting Clerk Backend API.scripts/Set-ClerkToken.ps1 - PowerShell wrapper for Windows devs.main/docs/guides/CLERK_INTEGRATION_TESTING.md - Deep dive guide.Maintainer: Compliance/Test Enablement Team
Last Updated: 2025-11-16
Status: ✅ Ready for Claude Code agents
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.
Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.
Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.
Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.
Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.
Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.
Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.
Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".
Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.
Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Opus.ai: Revolutionize Your Web Experience
Build a no-code AI app in minutes.
An IDE for code migration from legacy to modern frameworks through coding agents.
Automate CGI animation in live-action scenes
Branded artistic QR-code concepts
Launch a website in seconds with AI.
Streamline Your Coding Experience with AI Code Helper
Convert any screenshot or design to clean code.