SQL Database Support for pREST
prest/prest
Guides classifying, gap-analyzing and scaffolding support for a new SQL database in pREST, from Postgres-compatible variants to entirely new dialects.
Set up Cloud Run Jobs with CloudSQL connection. An agent skill from divinevideo/divine-mobile.
$ npx skills add divinevideo/divine-mobile --skill cloud-run-job-cloudsql-setup -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install divinevideo/divine-mobile cloud-run-job-cloudsql-setup --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/cloud-run-job-cloudsql-setup .claude/skills/cloud-run-job-cloudsql-setup && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "cloud-run-job-cloudsql-setup" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/cloud-run-job-cloudsql-setup into .claude/skills/cloud-run-job-cloudsql-setup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloud-run-job-cloudsql-setup", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/cloud-run-job-cloudsql-setupType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add divinevideo/divine-mobile --skill cloud-run-job-cloudsql-setup -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install divinevideo/divine-mobile cloud-run-job-cloudsql-setup --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/cloud-run-job-cloudsql-setup .agents/skills/cloud-run-job-cloudsql-setup && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "cloud-run-job-cloudsql-setup" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/cloud-run-job-cloudsql-setup into .agents/skills/cloud-run-job-cloudsql-setup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloud-run-job-cloudsql-setup", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add divinevideo/divine-mobile --skill cloud-run-job-cloudsql-setup -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install divinevideo/divine-mobile cloud-run-job-cloudsql-setup --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/cloud-run-job-cloudsql-setup .cursor/skills/cloud-run-job-cloudsql-setup && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "cloud-run-job-cloudsql-setup" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/cloud-run-job-cloudsql-setup into .cursor/skills/cloud-run-job-cloudsql-setup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloud-run-job-cloudsql-setup", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/divinevideo/divine-mobile.git --path .agents/skills/cloud-run-job-cloudsql-setup--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add divinevideo/divine-mobile --skill cloud-run-job-cloudsql-setup -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install divinevideo/divine-mobile cloud-run-job-cloudsql-setup --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/cloud-run-job-cloudsql-setup .gemini/skills/cloud-run-job-cloudsql-setup && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "cloud-run-job-cloudsql-setup" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/cloud-run-job-cloudsql-setup into .gemini/skills/cloud-run-job-cloudsql-setup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloud-run-job-cloudsql-setup", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install divinevideo/divine-mobile cloud-run-job-cloudsql-setupInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add divinevideo/divine-mobile --skill cloud-run-job-cloudsql-setup -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/cloud-run-job-cloudsql-setup .github/skills/cloud-run-job-cloudsql-setup && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "cloud-run-job-cloudsql-setup" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/cloud-run-job-cloudsql-setup into .github/skills/cloud-run-job-cloudsql-setup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloud-run-job-cloudsql-setup", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add divinevideo/divine-mobile --skill cloud-run-job-cloudsql-setup -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install divinevideo/divine-mobile cloud-run-job-cloudsql-setup --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/cloud-run-job-cloudsql-setup .opencode/skills/cloud-run-job-cloudsql-setup && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "cloud-run-job-cloudsql-setup" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/cloud-run-job-cloudsql-setup into .opencode/skills/cloud-run-job-cloudsql-setup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloud-run-job-cloudsql-setup", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
cloud-run-job-cloudsql-setupSet up Cloud Run Jobs with CloudSQL connection. An agent skill from divinevideo/divine-mobile.
Cloud Run Job Cloudsql Setup is an agent skill from divinevideo/divine-mobile. Set up Cloud Run Jobs with CloudSQL connection. Use when: (1) Deploying long-running batch jobs that need database access, (2) Errors like "Cloud SQL Proxy not found" in container, (3) "password authentication failed" despite correct credentials, (4) Job creation fails with permission errors. Covers socket path configuration, IAM permissions, and common gotchas.
Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Databases, covering Background jobs and SQL. It works with Cloud Run, SQL and PostgreSQL. The licence is MPL-2.0.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 8d5fbf2. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gcloudFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
cloud.google.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
POSTGRES_PASSWORDFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Cloud Run Job Cloudsql Setup loads about 1.4k tokens when it runs. Until then it costs about 98 tokens; SKILL.md has 317 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from divinevideo/divine-mobile at commit 8d5fbf2, republished under its MPL-2.0 licence (© divinevideo). 317 words, ~1,370 tokens.
.claude/skills/cloud-run-job-cloudsql-setup/SKILL.md (or your agent's skills folder).Setting up Cloud Run Jobs to connect to CloudSQL involves multiple non-obvious steps and gotchas that cause confusing errors. The main issues are:
gcloud run jobs create my-job \
--region=us-central1 \
--image=gcr.io/PROJECT/IMAGE:latest \
--set-cloudsql-instances=PROJECT:REGION:INSTANCE \ # NOT --add-cloudsql-instances
--set-env-vars="POSTGRES_SOCKET_PATH=/cloudsql/PROJECT:REGION:INSTANCE,POSTGRES_DATABASE=mydb,POSTGRES_USER=myuser" \
--set-secrets="POSTGRES_PASSWORD=my-secret:latest"Key: Use --set-cloudsql-instances NOT --add-cloudsql-instances
For Node.js with pg library:
// Use socketPath for unix socket, not host
if (config.socketPath) {
pool = new Pool({
host: config.socketPath, // e.g., "/cloudsql/project:region:instance"
database: config.database,
user: config.user,
password: config.password,
});
}Environment variable: POSTGRES_SOCKET_PATH=/cloudsql/PROJECT:REGION:INSTANCE
# Secret access
gcloud secrets add-iam-policy-binding my-secret \
--member="serviceAccount:PROJECT_NUMBER-compute@developer.gserviceaccount.com" \
--role="roles/secretmanager.secretAccessor"
# CloudSQL connection
gcloud projects add-iam-policy-binding PROJECT_ID \
--member="serviceAccount:PROJECT_NUMBER-compute@developer.gserviceaccount.com" \
--role="roles/cloudsql.client"Cloud Run automatically provides the CloudSQL proxy socket. If your app has logic to start the proxy, skip it when a socket path is configured:
// Skip proxy start if socketPath provided (Cloud Run handles it)
if (!config.socketPath && config.host === "localhost") {
await ensureCloudSqlProxy(); // Only for local development
}# WRONG - adds trailing newline
gcloud secrets create my-secret --data-file=- <<< "password"
# CORRECT - no trailing newline
echo -n "password" | gcloud secrets create my-secret --data-file=-# Check job config
gcloud run jobs describe my-job --region=us-central1
# Execute and check logs
gcloud run jobs execute my-job --region=us-central1
gcloud run jobs logs read my-job --region=us-central1 --limit=50# 1. Create secrets (no newlines!)
echo -n "dbpassword123" | gcloud secrets create db-password --data-file=-
# 2. Grant permissions
gcloud secrets add-iam-policy-binding db-password \
--member="serviceAccount:123456789-compute@developer.gserviceaccount.com" \
--role="roles/secretmanager.secretAccessor"
# 3. Create job
gcloud run jobs create my-processor \
--region=us-central1 \
--image=gcr.io/my-project/processor:latest \
--memory=4Gi \
--cpu=2 \
--task-timeout=86400s \
--max-retries=3 \
--set-cloudsql-instances=my-project:us-central1:my-instance \
--set-env-vars="POSTGRES_SOCKET_PATH=/cloudsql/my-project:us-central1:my-instance,POSTGRES_DATABASE=mydb,POSTGRES_USER=myuser" \
--set-secrets="POSTGRES_PASSWORD=db-password:latest"
# 4. Execute
gcloud run jobs execute my-processor --region=us-central1/cloudsql/PROJECT:REGION:INSTANCE--host='%'. That flag is MySQL-specific and creates a separate user entry in PostgreSQL, causing intermittent password auth failures (some jobs connect, others don't, despite identical DATABASE_URL). Use: gcloud sql users set-password USERNAME --instance=INSTANCE --password=PASSWORD (no --host flag)© divinevideo, MPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/cloud-run-job-cloudsql-setup of divinevideo/divine-mobile.
Open the folder on GitHubat commit 8d5fbf2
Cloud Run Job Cloudsql Setup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Cloud Run Job Cloudsql Setup this skilldivinevideo/divine-mobile | 265 | — | ~1.4k | Automated safety check: Pass | MPL-2.0 | |
| SQL Database Support for pRESTprest/prest | 4.6k | — | ~1.6k | Automated safety check: Pass | MIT | |
| NpgsqlrestNpgsqlRest/NpgsqlRest | 132 | — | ~7k | Automated safety check: Notes | MIT | |
| Ops Telemetry Queryboundless-xyz/boundless | 193 | — | ~3.8k | Automated safety check: Pass | Apache-2.0 | |
| Dsqlawslabs/agent-plugins | 912 | — | ~6.9k | Automated safety check: Pass | Apache-2.0 | |
| Redshift Guideaws/agent-toolkit-for-aws | 2.8k | — | ~2.6k | Automated safety check: Pass | Apache-2.0 |
prest/prest
Guides classifying, gap-analyzing and scaffolding support for a new SQL database in pREST, from Postgres-compatible variants to entirely new dialects.
NpgsqlRest/NpgsqlRest
Build and modify REST APIs with NpgsqlRest — exposing PostgreSQL as HTTP endpoints from two sources (database functions/procedures/tables/views, and plain .sql files), driven by SQL comment…
boundless-xyz/boundless
Internal — for Boundless team members only. An agent skill from boundless-xyz/boundless.
awslabs/agent-plugins
Build with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, diagnose cluster performance, load data, and develop applications with a serverless, distributed…
aws/agent-toolkit-for-aws
Amazon Redshift is NOT PostgreSQL — corrects PostgreSQL-derived LLM mistakes; covers Redshift-specific SQL, DDL, COPY/UNLOAD, system views, metadata discovery, and operational patterns.
ericrisco/rsc-harness
A skill your agent uses when running a small product on core Google Cloud via the gcloud CLI: a project, Cloud Run deploys, a locked-down Cloud Storage bucket, managed Cloud SQL, and least-privilege…
divinevideo/divine-mobile
Fix ArgoCD ExternalSecret deployment failing with "namespace X is not permitted in project Y".
divinevideo/divine-mobile
Art direction for any content — reads text, PDF, Word, HTML, PPT, then proposes 2-3 creative directions with photography style, mood, and visual language.
divinevideo/divine-mobile
Fix "Null check operator used on a null value" errors when an object is set to null during an async await.
divinevideo/divine-mobile
Add custom metadata headers (x-amz-meta-) to AWS v4 signed requests for GCS S3-compatible API.
divinevideo/divine-mobile
Fix password/secret authentication failures caused by trailing newlines when creating Google Cloud secrets (or similar) with bash here-strings.
divinevideo/divine-mobile
Fix silent video/media processing failures caused by URL extraction code that filters on file extensions (.mp4, .webm, .webp).
Works with
Categories
Set up Cloud Run Jobs with CloudSQL connection. An agent skill from divinevideo/divine-mobile. Cloud Run Job Cloudsql Setup is an agent skill from divinevideo/divine-mobile. Set up Cloud Run Jobs with CloudSQL connection.
Cloud Run Job Cloudsql Setup fits situations like: deploying long-running batch jobs that need database access; errors like Cloud SQL Proxy not found in container; password authentication failed despite correct credentials; job creation fails with permission errors.
Run `npx skills add divinevideo/divine-mobile --skill cloud-run-job-cloudsql-setup -a claude-code`. Or copy the skill folder (.agents/skills/cloud-run-job-cloudsql-setup in divinevideo/divine-mobile) into .claude/skills/cloud-run-job-cloudsql-setup in your project. Claude Code loads it when a task matches its description.
Run `npx skills add divinevideo/divine-mobile --skill cloud-run-job-cloudsql-setup -a codex`. Or copy the skill folder (.agents/skills/cloud-run-job-cloudsql-setup in divinevideo/divine-mobile) into .agents/skills/cloud-run-job-cloudsql-setup in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add divinevideo/divine-mobile --skill cloud-run-job-cloudsql-setup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cloud-run-job-cloudsql-setup, .gemini/skills/cloud-run-job-cloudsql-setup, .github/skills/cloud-run-job-cloudsql-setup and .opencode/skills/cloud-run-job-cloudsql-setup in your project.
Going by SKILL.md and its folder, Cloud Run Job Cloudsql Setup needs the command-line tools its instructions call (gcloud) and credentials named POSTGRES_PASSWORD. Our summary lists: Node.js.
SKILL.md names 1 domain. As links in the text: cloud.google.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Cloud Run Job Cloudsql Setup is published under the MPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Cloud Run Job Cloudsql Setup: SQL Database Support for pREST (prest/prest, 4.6k stars), Npgsqlrest (NpgsqlRest/NpgsqlRest, 132 stars), Ops Telemetry Query (boundless-xyz/boundless, 193 stars) and Dsql (awslabs/agent-plugins, 912 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
divinevideo (a GitHub organization) maintains it in divinevideo/divine-mobile, which has 265 GitHub stars. The repository holds 103 skills in this directory. The repository was last updated on October 7, 2026.
Source: divinevideo/divine-mobile on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.