google-agents-cli-scaffold
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
cicd-pipeline
CI/CD pipeline guide covering GitHub Actions, Lefthook hooks, Dependabot, and deployment scripts. Use when asking about workflows, automation, or deployment.
Full skill instructions
Comprehensive guide to Ballee's CI/CD infrastructure including GitHub Actions, git hooks, scripts, and deployment processes.
Ballee uses a multi-layered CI/CD approach:
main → Production (protected, requires PR + Quality Gate)
dev → Development/Staging (Dependabot target)
feat/* → Feature branches (via git worktrees)
fix/* → Bug fix branches
Workflow: feat/branch → PR to dev → PR to main → Production
.github/workflows/| Workflow | Trigger | Purpose |
|---|---|---|
pr-quality-check.yml | PR to main/develop | Lint, typecheck, test, build |
deploy-migrations.yml | Push to main (*.sql) | Deploy migrations to production |
deploy-staging-migrations.yml | Push to dev (*.sql) | Deploy migrations to staging |
sync-db-types.yml | Push to dev (*.sql) | Auto-generate TypeScript types |
sentry-release.yml | Deployment success | Create Sentry release + sourcemaps |
codeql.yml | Push/PR + weekly schedule | Security vulnerability scanning |
dependabot-auto-merge.yml | Dependabot PRs | Auto-merge patch/minor updates |
sync-prod-data-to-staging.yml | Manual | Sync production data to staging |
pr-quality-check.yml)Runs on PRs targeting main or develop:
Jobs:
1. detect-changes # Smart change detection
2. oxlint # Fast lint (~1 min) - fail-fast
3. lint # Full ESLint
4. typecheck # TypeScript validation
5. test # Unit + integration tests
6. build # Production build verification
7. quality-gate # Final approval status
Key Features:
deploy-migrations.yml)Triggers on push to main with SQL changes:
Steps:
1. Validate migration files (no duplicates)
2. Check pending migrations
3. Apply via psql (supports complex SQL)
4. Generate TypeScript types
5. Create PR with type updates
Connection: Uses Supabase pooler (IPv4) for GitHub Actions compatibility
sync-db-types.yml)Auto-generates TypeScript types after migration changes:
Trigger: Push to dev with *.sql changes
Output:
- packages/supabase/src/database.types.ts
- apps/web/lib/database.types.ts
lefthook.yml| Hook | Files | Purpose |
|---|---|---|
format | *.ts,tsx,json,md... | Prettier auto-fix |
validate-wip | WIP_*.md | WIP document validation |
validate-migrations | *.sql | Migration syntax check |
validate-rls-policies | *.sql | RLS security validation |
check-version-suffixes | *.ts,tsx | Block -v2, -new naming |
validate-json-keys | *.json | Detect duplicate keys |
validate-db-local | *.ts,tsx,sql | DB contract validation |
| Hook | Purpose |
|---|---|
oxlint | Fast lint sanity check |
lint | Full ESLint (THOROUGH=1 only) |
typecheck | Full TypeScript (THOROUGH=1 only) |
validate-lockfile | pnpm-lock.yaml sync check |
validate-db-local | DB validation |
validate-db-types | Info about auto-sync |
# Normal push (fast, ~15s)
git push
# Thorough push (full checks, ~5min)
THOROUGH=1 git push
# Skip hooks (emergency only)
git push --no-verify
# Skip specific hook
LEFTHOOK_EXCLUDE=check-version-suffixes git commit -m "..."
.github/dependabot.ymlTarget Branch: dev
Schedule: Weekly (Monday 06:00 Europe/Zurich)
Ecosystems:
- npm (security updates only)
- github-actions (all updates)
# .github/workflows/dependabot-auto-merge.yml
Behavior:
- Patch/Minor: Auto-approve + auto-merge
- Major: Comment notification, manual review required
.github/actions/setup-node-pnpmComposite action for consistent Node.js setup:
uses: ./.github/actions/setup-node-pnpm
with:
node-version: '20' # Default
install-dependencies: 'true'
cache-turbo: 'false'
cache-nextjs: 'false'
Features:
scripts/| Script | Purpose |
|---|---|
validate-db-local.sh | Local DB contract validation |
validate-migrations.sh | Migration file validation |
validate-json-keys.sh | Detect duplicate JSON keys |
validate-wip.sh | WIP document validation |
check-version-suffixes.sh | Block forbidden naming patterns |
analyze-rls-policies.sh | RLS security analysis |
| Script | Purpose |
|---|---|
deploy-production.sh | Manual production deployment |
deploy-env-vars.sh | Deploy env vars to Vercel |
apply-staging-migrations.sh | Apply migrations to staging |
setup-staging-environment.sh | Full staging setup |
setup-complete-staging.sh | Complete staging rebuild |
| Script | Purpose |
|---|---|
git-worktree.sh | Git worktree management |
clean-env-vars.sh | Clean trailing newlines from env |
update-supabase-email-templates.sh | Deploy email templates |
| Secret | Description |
|---|---|
SUPABASE_PROJECT_ID | Production project ID |
SUPABASE_DB_PASSWORD | Production DB password |
SUPABASE_ACCESS_TOKEN | Supabase management token |
STAGING_SUPABASE_PROJECT_ID | Staging project ID |
STAGING_SUPABASE_DB_PASSWORD | Staging DB password |
SENTRY_AUTH_TOKEN | Sentry release token |
SENTRY_ORG | Sentry organization |
SENTRY_PROJECT | Sentry project name |
| Variable | Description |
|---|---|
ENABLE_DB_TYPE_SYNC | Enable/disable type sync (default: true) |
Handled automatically by Vercel GitHub integration:
Push to dev → Staging deployment (preview)
Push to main → Production deployment
Environment Variables: Managed via Vercel dashboard or vercel env CLI
# Deploy migrations to production
gh workflow run deploy-migrations.yml --ref main
# Deploy migrations to staging
gh workflow run deploy-staging-migrations.yml --ref dev
# Force regenerate DB types
gh workflow run sync-db-types.yml --ref dev -f force=true
# Create Sentry release
gh workflow run sentry-release.yml -f environment=production
# Sync prod data to staging
gh workflow run sync-prod-data-to-staging.yml
# List recent runs
gh run list
# View specific run
gh run view <run-id>
# Watch run in progress
gh run watch
IPv6 Connection Error:
aws-1-eu-central-1.pooler.supabase.com)Prepared Statement Error:
psql directly, not supabase db pushSASL Authentication Failed:
SUPABASE_DB_PASSWORD secret is correct# Use fast mode (default)
git push
# Only use thorough mode when needed
THOROUGH=1 git push
# Reinstall hooks
lefthook install
# Check installation
lefthook run pre-commit
gh repo view --json autoMergeAllowed.github/WORKFLOWS.md - Detailed workflow architecture.github/REPOSITORY_SAFEGUARDS.md - Branch protection setupCLAUDE.md - Overall project guidelinesProject 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.