google-agents-cli-scaffold
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
How secrets are stored, decrypted, and used on the devbox. Use when adding, removing, or debugging secrets.
Full skill instructions
Secrets are managed with sops-nix using age encryption. They're encrypted in the repo and auto-decrypted at boot.
| Secret | Usage | How it's consumed |
|---|---|---|
github_ssh_key | Git operations | Deployed to ~/.ssh/id_ed25519_github |
cloudflared_tunnel_token | Cloudflare tunnel | Systemd service reads from /run/secrets/ |
cloudflare_api_token | Wrangler CLI | Exported as CLOUDFLARE_API_TOKEN in bash |
op_service_account_token | 1Password bootstrap | Available at /run/secrets/ for scripts |
claude_personal_oauth_token | Headless Claude Code | Exported as CLAUDE_CODE_OAUTH_TOKEN in bash |
secrets/devbox.yaml (encrypted in git)
↓
sops-nix decrypts at boot using /persist/sops-age-key.txt
↓
/run/secrets/<secret_name> (plaintext, mode 0400)
↓
Consumed by: systemd services, bash exports, or file deployment
# Edit encrypted file (requires age key access)
sudo nix-shell -p sops --run "SOPS_AGE_KEY_FILE=/persist/sops-age-key.txt sops secrets/devbox.yaml"
# Or use sops set for non-interactive:
sudo nix-shell -p sops --run "SOPS_AGE_KEY_FILE=/persist/sops-age-key.txt sops set secrets/devbox.yaml '[\"my_new_secret\"]' '\"secret-value\"'"
Edit hosts/devbox/configuration.nix, add to sops.secrets:
sops.secrets = {
# ... existing secrets ...
my_new_secret = {
owner = "dev";
group = "dev";
mode = "0400";
# Optional: deploy to specific path instead of /run/secrets/
# path = "/home/dev/.config/app/secret";
};
};
Option A: Export as env var (for CLI tools)
Edit users/dev/home.linux.nix:
programs.bash.initExtra = lib.mkAfter ''
if [ -r /run/secrets/my_new_secret ]; then
export MY_ENV_VAR="$(cat /run/secrets/my_new_secret)"
fi
'';
Option B: Use in systemd service (for daemons)
systemd.services.my-service = {
serviceConfig = {
ExecStart = "${pkgs.writeShellScript "run" ''
exec my-command --token "$(cat /run/secrets/my_new_secret)"
''}";
};
};
Option C: Deploy as file (for apps expecting file path)
Set path in the secret declaration (Step 2).
git add secrets/devbox.yaml hosts/devbox/configuration.nix
git commit -m "feat: add my_new_secret"
sudo nixos-rebuild switch --flake .#devbox
home-manager switch --flake .#dev # if you added bash export
users/dev/home.linux.nixhosts/devbox/configuration.nixsudo nix-shell -p sops -p yq-go --run "
cd /home/dev/projects/workstation
SOPS_AGE_KEY_FILE=/persist/sops-age-key.txt sops -d secrets/devbox.yaml > /tmp/secrets-plain.yaml
yq -i 'del(.secret_to_remove)' /tmp/secrets-plain.yaml
SOPS_AGE_KEY_FILE=/persist/sops-age-key.txt sops encrypt --age age1kyd7dzxtgte0rcd0nj3chfvcfvammhywe63f25tlsrf8knhf3u8sxp8z9n --input-type yaml --output-type yaml /tmp/secrets-plain.yaml > secrets/devbox.yaml
rm /tmp/secrets-plain.yaml
"
git add -A && git commit -m "chore: remove secret_to_remove"
sudo nixos-rebuild switch --flake .#devbox
| File | Purpose |
|---|---|
secrets/devbox.yaml | Encrypted secrets (committed to git) |
secrets/.sops.yaml | sops config (which keys can decrypt) |
/persist/sops-age-key.txt | Age private key (never in git, root-only) |
hosts/devbox/configuration.nix | Secret declarations for sops-nix |
users/dev/home.linux.nix | Bash exports for env vars |
The age key is root-only. Use sudo with nix-shell:
sudo nix-shell -p sops --run "SOPS_AGE_KEY_FILE=/persist/sops-age-key.txt sops secrets/devbox.yaml"
sops.secrets in configuration.nixsudo nixos-rebuild switch (not just home-manager)ls -la /run/secrets/home.linux.nix (not home.nix - that's shared with Darwin)home-manager switch/persist/ which survives rebuilds but not re-provisioninghome.linux.nix so they only apply on devbox, not DarwinProject 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.