{
  "schemaVersion": "1.0",
  "item": {
    "slug": "postgres-db",
    "name": "PostgreSQL Database",
    "source": "tencent",
    "type": "skill",
    "category": "数据分析",
    "sourceUrl": "https://clawhub.ai/limoxt/postgres-db",
    "canonicalUrl": "https://clawhub.ai/limoxt/postgres-db",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/postgres-db",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=postgres-db",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/postgres_commands.md",
      "scripts/backup.py",
      "scripts/query.py",
      "scripts/schema_export.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "postgres-db",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T00:26:24.898Z",
      "expiresAt": "2026-05-07T00:26:24.898Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=postgres-db",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=postgres-db",
        "contentDisposition": "attachment; filename=\"postgres-db-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "postgres-db"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/postgres-db"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/postgres-db",
    "agentPageUrl": "https://openagent3.xyz/skills/postgres-db/agent",
    "manifestUrl": "https://openagent3.xyz/skills/postgres-db/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/postgres-db/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Overview",
        "body": "This skill provides comprehensive PostgreSQL database operations including query execution, schema management, backup/restore, and performance monitoring."
      },
      {
        "title": "1. SQL Query Execution (scripts/query.py)",
        "body": "Execute SQL queries against PostgreSQL databases with support for:\n\nSELECT queries with result formatting\nINSERT/UPDATE/DELETE operations\nTransaction support\nQuery result export (JSON, CSV)"
      },
      {
        "title": "2. Schema Export (scripts/schema_export.py)",
        "body": "Export database schema information:\n\nTable structures (columns, types, constraints)\nIndexes and foreign keys\nViews and triggers\nExport to JSON/Markdown format"
      },
      {
        "title": "3. Database Backup (scripts/backup.py)",
        "body": "Database backup and restore operations:\n\nFull database backup using pg_dump\nTable-specific backup\nPoint-in-time recovery support\nBackup rotation management"
      },
      {
        "title": "4. Performance Monitoring",
        "body": "Monitor database performance:\n\nQuery execution plans (EXPLAIN ANALYZE)\nIndex usage statistics\nTable size and row counts\nConnection pool status"
      },
      {
        "title": "Query Database",
        "body": "python scripts/query.py --dbname mydb --query \"SELECT * FROM users LIMIT 10\""
      },
      {
        "title": "Export Schema",
        "body": "python scripts/schema_export.py --dbname mydb --output schema.json"
      },
      {
        "title": "Backup Database",
        "body": "python scripts/backup.py --dbname mydb --backup-dir /backups"
      },
      {
        "title": "Requirements",
        "body": "PostgreSQL client tools (psql, pg_dump)\nPython 3.7+\npsycopg2 or asyncpg library"
      },
      {
        "title": "Configuration",
        "body": "Set environment variables:\n\nPGHOST - Database host\nPGPORT - Database port (default: 5432)\nPGDATABASE - Database name\nPGUSER - Database user\nPGPASSWORD - Database password"
      }
    ],
    "body": "PostgreSQL Database Skill\nOverview\n\nThis skill provides comprehensive PostgreSQL database operations including query execution, schema management, backup/restore, and performance monitoring.\n\nCapabilities\n1. SQL Query Execution (scripts/query.py)\n\nExecute SQL queries against PostgreSQL databases with support for:\n\nSELECT queries with result formatting\nINSERT/UPDATE/DELETE operations\nTransaction support\nQuery result export (JSON, CSV)\n2. Schema Export (scripts/schema_export.py)\n\nExport database schema information:\n\nTable structures (columns, types, constraints)\nIndexes and foreign keys\nViews and triggers\nExport to JSON/Markdown format\n3. Database Backup (scripts/backup.py)\n\nDatabase backup and restore operations:\n\nFull database backup using pg_dump\nTable-specific backup\nPoint-in-time recovery support\nBackup rotation management\n4. Performance Monitoring\n\nMonitor database performance:\n\nQuery execution plans (EXPLAIN ANALYZE)\nIndex usage statistics\nTable size and row counts\nConnection pool status\nUsage\nQuery Database\npython scripts/query.py --dbname mydb --query \"SELECT * FROM users LIMIT 10\"\n\nExport Schema\npython scripts/schema_export.py --dbname mydb --output schema.json\n\nBackup Database\npython scripts/backup.py --dbname mydb --backup-dir /backups\n\nRequirements\nPostgreSQL client tools (psql, pg_dump)\nPython 3.7+\npsycopg2 or asyncpg library\nConfiguration\n\nSet environment variables:\n\nPGHOST - Database host\nPGPORT - Database port (default: 5432)\nPGDATABASE - Database name\nPGUSER - Database user\nPGPASSWORD - Database password"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/limoxt/postgres-db",
    "publisherUrl": "https://clawhub.ai/limoxt/postgres-db",
    "owner": "limoxt",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/postgres-db",
    "downloadUrl": "https://openagent3.xyz/downloads/postgres-db",
    "agentUrl": "https://openagent3.xyz/skills/postgres-db/agent",
    "manifestUrl": "https://openagent3.xyz/skills/postgres-db/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/postgres-db/agent.md"
  }
}