Archestra Dev Investigate
archestra-ai/archestra
A skill your agent uses when investigating Archestra bugs or incidents — staging issues, backend 50x errors, Drizzle failed queries, DB connection pressure, deploy regressions, or Kubernetes/runtime…
Fix PostgreSQL deadlock errors caused by concurrent schema initialization in worker processes.
$ npx skills add divinevideo/divine-mobile --skill postgres-concurrent-schema-init-deadlock -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install divinevideo/divine-mobile postgres-concurrent-schema-init-deadlock --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/postgres-concurrent-schema-init-deadlock .claude/skills/postgres-concurrent-schema-init-deadlock && 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 "postgres-concurrent-schema-init-deadlock" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/postgres-concurrent-schema-init-deadlock into .claude/skills/postgres-concurrent-schema-init-deadlock/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "postgres-concurrent-schema-init-deadlock", 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/postgres-concurrent-schema-init-deadlockType 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 postgres-concurrent-schema-init-deadlock -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install divinevideo/divine-mobile postgres-concurrent-schema-init-deadlock --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/postgres-concurrent-schema-init-deadlock .agents/skills/postgres-concurrent-schema-init-deadlock && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "postgres-concurrent-schema-init-deadlock" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/postgres-concurrent-schema-init-deadlock into .agents/skills/postgres-concurrent-schema-init-deadlock/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "postgres-concurrent-schema-init-deadlock", 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 postgres-concurrent-schema-init-deadlock -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install divinevideo/divine-mobile postgres-concurrent-schema-init-deadlock --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/postgres-concurrent-schema-init-deadlock .cursor/skills/postgres-concurrent-schema-init-deadlock && 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 "postgres-concurrent-schema-init-deadlock" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/postgres-concurrent-schema-init-deadlock into .cursor/skills/postgres-concurrent-schema-init-deadlock/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "postgres-concurrent-schema-init-deadlock", 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/postgres-concurrent-schema-init-deadlock--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 postgres-concurrent-schema-init-deadlock -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install divinevideo/divine-mobile postgres-concurrent-schema-init-deadlock --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/postgres-concurrent-schema-init-deadlock .gemini/skills/postgres-concurrent-schema-init-deadlock && 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 "postgres-concurrent-schema-init-deadlock" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/postgres-concurrent-schema-init-deadlock into .gemini/skills/postgres-concurrent-schema-init-deadlock/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "postgres-concurrent-schema-init-deadlock", 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 postgres-concurrent-schema-init-deadlockInstalls 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 postgres-concurrent-schema-init-deadlock -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/postgres-concurrent-schema-init-deadlock .github/skills/postgres-concurrent-schema-init-deadlock && 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 "postgres-concurrent-schema-init-deadlock" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/postgres-concurrent-schema-init-deadlock into .github/skills/postgres-concurrent-schema-init-deadlock/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "postgres-concurrent-schema-init-deadlock", 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 postgres-concurrent-schema-init-deadlock -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 postgres-concurrent-schema-init-deadlock --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/postgres-concurrent-schema-init-deadlock .opencode/skills/postgres-concurrent-schema-init-deadlock && 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 "postgres-concurrent-schema-init-deadlock" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/postgres-concurrent-schema-init-deadlock into .opencode/skills/postgres-concurrent-schema-init-deadlock/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "postgres-concurrent-schema-init-deadlock", 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.
postgres-concurrent-schema-init-deadlockFix PostgreSQL deadlock errors caused by concurrent schema initialization in worker processes.
Postgres Concurrent Schema Init Deadlock is an agent skill from divinevideo/divine-mobile. Fix PostgreSQL deadlock errors caused by concurrent schema initialization in worker processes. Use when: (1) psycopg2.errors.DeadlockDetected during CREATE INDEX/TABLE IF NOT EXISTS, (2) Multiple Cloud Run jobs, Kubernetes pods, or worker processes start simultaneously, (3) Error shows "Process X waits for RowExclusiveLock... blocked by process Y", (4) initschema() or migration code runs at worker startup. The key insight: "IF NOT EXISTS" is NOT truly concurrent-safe - PostgreSQL still acquires locks that can…
Its SKILL.md is about 1.1k 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 Container orchestration. It works with PostgreSQL, Cloud Run and Kubernetes. The licence is MPL-2.0.
3 steps, taken from the first numbered list 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:
pythongcloudFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
postgresql.orgFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Postgres Concurrent Schema Init Deadlock loads about 1.1k tokens when it runs. Until then it costs about 142 tokens; SKILL.md has 281 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). 281 words, ~1,067 tokens.
.claude/skills/postgres-concurrent-schema-init-deadlock/SKILL.md (or your agent's skills folder).Multiple worker processes (Cloud Run jobs, K8s pods, serverless functions) starting simultaneously all try to run schema initialization code, causing PostgreSQL deadlocks even when using "IF NOT EXISTS" clauses.
psycopg2.errors.DeadlockDetected: deadlock detectedProcess X waits for RowExclusiveLock on relation... blocked by process Yinit_schema() or runs migrations at startupCREATE TABLE IF NOT EXISTS or CREATE INDEX IF NOT EXISTSPostgreSQL's IF NOT EXISTS is not concurrent-safe:
CREATE INDEX IF NOT EXISTS still acquires locks before checking existenceSchema already exists - don't run init_schema() in workers:
with Database() as db:
# Schema already exists in production - skip to avoid deadlocks
# db.init_schema()
# ... worker codeSerialize schema init with PostgreSQL advisory locks:
def init_schema_safe(self):
cursor = self._cursor()
# Acquire advisory lock (blocks other processes)
cursor.execute("SELECT pg_advisory_lock(12345)")
try:
self.init_schema()
finally:
cursor.execute("SELECT pg_advisory_unlock(12345)")
self.conn.commit()Run migrations as a separate job before starting workers:
# In deployment pipeline
python -m src.migrate # Single process, runs first
# Then start workers
gcloud run jobs execute worker-jobSet lock timeout and retry on deadlock:
def init_schema_with_retry(self, max_retries=3):
for attempt in range(max_retries):
try:
cursor = self._cursor()
cursor.execute("SET lock_timeout = '5s'")
self.init_schema()
return
except psycopg2.errors.DeadlockDetected:
self.conn.rollback()
if attempt == max_retries - 1:
raise
time.sleep(random.uniform(1, 3))After applying fix:
Before (deadlocks with 6 concurrent Cloud Run jobs):
# src/download.py
with VineDatabase() as db:
db.init_schema() # DEADLOCK when multiple jobs start!
# ... download logicAfter (no deadlocks):
# src/download.py
with VineDatabase() as db:
# Schema already exists in production - skip to avoid deadlocks
# db.init_schema()
# ... download logicCREATE TABLE IF NOT EXISTS is generally safer than CREATE INDEX IF NOT EXISTS© 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/postgres-concurrent-schema-init-deadlock of divinevideo/divine-mobile.
Open the folder on GitHubat commit 8d5fbf2
Postgres Concurrent Schema Init Deadlock 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 |
|---|---|---|---|---|---|---|
| Postgres Concurrent Schema Init Deadlock this skilldivinevideo/divine-mobile | 265 | — | ~1.1k | Automated safety check: Pass | MPL-2.0 | |
| Archestra Dev Investigatearchestra-ai/archestra | 4.3k | — | ~831 | Automated safety check: Pass | Custom licence | |
| Devopsnicepkg/auto-company | 192 | 2 repos | ~814 | Automated safety check: Pass | MIT | |
| Opensourcefaqdigoal/blog | 8.6k | — | ~966 | Automated safety check: Pass | GPL-2.0 | |
| Google Cloud Solution Guided Gke AI Migrationgoogle/skills | 21k | — | ~8.3k | Automated safety check: Pass | Apache-2.0 | |
| Azure Cloud Migratemicrosoft/GitHub-Copilot-for-Azure | 255 | 1 repos | ~1.1k | Automated safety check: Pass | MIT |
archestra-ai/archestra
A skill your agent uses when investigating Archestra bugs or incidents — staging issues, backend 50x errors, Drizzle failed queries, DB connection pressure, deploy regressions, or Kubernetes/runtime…
nicepkg/auto-company
Deploy to Cloudflare (Workers, R2, D1), Docker, GCP (Cloud Run, GKE), Kubernetes (kubectl, Helm).
digoal/blog
解答与开源产品有关的深度技术问题,输出图文并茂的 Markdown 技术文章。触发条件:用户提出与开源项目(如 PostgreSQL、Redis、Kafka、Kubernetes、ClickHouse、Flink 等)相关的技术问题,并提供源码目录或 URL、deepwiki repo 名称。即使用户只说"帮我解答这个开源问题"或"分析一下这个项目的某个机制",也应使用本…
google/skills
Guides the migration of existing AI workloads (Cloud Run, Gemini API, Gemini Enterprise Agent Platform) to self-hosted GKE inference using gcloud and kubectl.
microsoft/GitHub-Copilot-for-Azure
Assess and migrate cross-cloud workloads to Azure with reports and code conversion.
Dynatrace/dynatrace-for-ai
GCP cloud resources including Compute Engine, GKE, Cloud Run, Pub/Sub, VPC networking, DNS, IAM, Secret Manager, and monitoring.
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
Fix PostgreSQL deadlock errors caused by concurrent schema initialization in worker processes. Postgres Concurrent Schema Init Deadlock is an agent skill from divinevideo/divine-mobile. Fix PostgreSQL deadlock errors caused by concurrent schema initialization in worker processes.
Postgres Concurrent Schema Init Deadlock fits situations like: psycopg2.errors.DeadlockDetected during CREATE INDEX/TABLE IF NOT EXISTS; multiple Cloud Run jobs; Kubernetes pods; worker processes start simultaneously.
Run `npx skills add divinevideo/divine-mobile --skill postgres-concurrent-schema-init-deadlock -a claude-code`. Or copy the skill folder (.agents/skills/postgres-concurrent-schema-init-deadlock in divinevideo/divine-mobile) into .claude/skills/postgres-concurrent-schema-init-deadlock in your project. Claude Code loads it when a task matches its description.
Run `npx skills add divinevideo/divine-mobile --skill postgres-concurrent-schema-init-deadlock -a codex`. Or copy the skill folder (.agents/skills/postgres-concurrent-schema-init-deadlock in divinevideo/divine-mobile) into .agents/skills/postgres-concurrent-schema-init-deadlock 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 postgres-concurrent-schema-init-deadlock -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/postgres-concurrent-schema-init-deadlock, .gemini/skills/postgres-concurrent-schema-init-deadlock, .github/skills/postgres-concurrent-schema-init-deadlock and .opencode/skills/postgres-concurrent-schema-init-deadlock in your project.
Going by SKILL.md and its folder, Postgres Concurrent Schema Init Deadlock needs the command-line tools its instructions call (python and gcloud). Our summary lists: Python 3.
SKILL.md names 1 domain. As links in the text: postgresql.org. 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.
Postgres Concurrent Schema Init Deadlock 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.1k tokens (SKILL.md is roughly 4.3k 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 Postgres Concurrent Schema Init Deadlock: Archestra Dev Investigate (archestra-ai/archestra, 4.3k stars), Devops (nicepkg/auto-company, 192 stars), Opensourcefaq (digoal/blog, 8.6k stars) and Google Cloud Solution Guided Gke AI Migration (google/skills, 21k 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.