{
  "schemaVersion": "1.0",
  "item": {
    "slug": "timescaledb",
    "name": "TimescaleDB",
    "source": "tencent",
    "type": "skill",
    "category": "其他",
    "sourceUrl": "https://clawhub.ai/ivangdavila/timescaledb",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/timescaledb",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/timescaledb",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=timescaledb",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "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",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/timescaledb"
    },
    "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/timescaledb",
    "agentPageUrl": "https://openagent3.xyz/skills/timescaledb/agent",
    "manifestUrl": "https://openagent3.xyz/skills/timescaledb/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/timescaledb/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": "Hypertables",
        "body": "Convert table to hypertable: SELECT create_hypertable('metrics', 'time')\nMust have time column (TIMESTAMPTZ recommended)—partition key for chunks\nCall BEFORE inserting data—converting large tables is expensive\nCan't undo easily—plan schema before converting"
      },
      {
        "title": "Chunk Interval",
        "body": "Default 7 days per chunk—tune based on data volume\nSELECT set_chunk_time_interval('metrics', INTERVAL '1 day') for high-volume\nChunks should be 25% of memory—too small = overhead, too large = slow queries\nCheck chunk sizes: SELECT * FROM chunks_detailed_size('metrics')"
      },
      {
        "title": "time_bucket",
        "body": "time_bucket('1 hour', time) groups timestamps—like date_trunc but with arbitrary intervals\nUse in GROUP BY for aggregation: GROUP BY time_bucket('5 minutes', time)\nOrigin parameter for offset: time_bucket('1 day', time, '2024-01-01'::timestamptz)\nBeats date_trunc for non-standard intervals—15min, 4h, etc."
      },
      {
        "title": "Continuous Aggregates",
        "body": "Materialized views that auto-refresh—pre-compute expensive aggregations\nCREATE MATERIALIZED VIEW hourly_stats WITH (timescaledb.continuous) AS SELECT ...\nAdd refresh policy: SELECT add_continuous_aggregate_policy('hourly_stats', ...)\nQuery aggregate view instead of raw hypertable—orders of magnitude faster"
      },
      {
        "title": "Real-Time Aggregates",
        "body": "Continuous aggregates include recent data automatically—no stale reads\nWITH (timescaledb.continuous, timescaledb.materialized_only = false) for real-time\nCombines materialized historical + live recent—transparent to queries\nSmall performance cost for real-time—disable if batch-only acceptable"
      },
      {
        "title": "Compression",
        "body": "Compress old chunks to save 90%+ storage: ALTER TABLE metrics SET (timescaledb.compress)\nAdd compression policy: SELECT add_compression_policy('metrics', INTERVAL '7 days')\nCompressed chunks are read-only—can't update/delete individual rows\nDecompress for modifications: SELECT decompress_chunk('chunk_name')"
      },
      {
        "title": "Retention",
        "body": "Auto-delete old data: SELECT add_retention_policy('metrics', INTERVAL '90 days')\nDrops entire chunks—efficient, no row-by-row delete\nRetention runs on scheduler—data persists slightly past interval\nCombine with compression: compress at 7d, drop at 90d"
      },
      {
        "title": "Indexing",
        "body": "Time column auto-indexed in hypertable—don't add redundant index\nAdd indexes on filter columns: CREATE INDEX ON metrics (device_id, time DESC)\nComposite indexes with time last—enables chunk exclusion\nSkip indexes on rarely-filtered columns—each index slows writes"
      },
      {
        "title": "Insert Performance",
        "body": "Batch inserts critical—single-row inserts are slow\nUse COPY or multi-value INSERT: INSERT INTO metrics VALUES (...), (...), ...\nParallel COPY with timescaledb-parallel-copy tool—saturates I/O\nOut-of-order inserts work but slower—prefer time-ordered writes"
      },
      {
        "title": "Query Patterns",
        "body": "Always include time range in WHERE—enables chunk exclusion\nWHERE time > now() - INTERVAL '1 day' skips old chunks entirely\nORDER BY time DESC with LIMIT for \"latest N\"—index scan, fast\nAvoid SELECT * on wide tables—fetch only needed columns"
      },
      {
        "title": "Distributed Hypertables",
        "body": "Multi-node for horizontal scale—data sharded across nodes\nCreate access node + data nodes—access node coordinates queries\nMore operational complexity—start single-node, distribute when needed\nNot needed for most workloads—single node handles millions of rows/sec"
      }
    ],
    "body": "Hypertables\nConvert table to hypertable: SELECT create_hypertable('metrics', 'time')\nMust have time column (TIMESTAMPTZ recommended)—partition key for chunks\nCall BEFORE inserting data—converting large tables is expensive\nCan't undo easily—plan schema before converting\nChunk Interval\nDefault 7 days per chunk—tune based on data volume\nSELECT set_chunk_time_interval('metrics', INTERVAL '1 day') for high-volume\nChunks should be 25% of memory—too small = overhead, too large = slow queries\nCheck chunk sizes: SELECT * FROM chunks_detailed_size('metrics')\ntime_bucket\ntime_bucket('1 hour', time) groups timestamps—like date_trunc but with arbitrary intervals\nUse in GROUP BY for aggregation: GROUP BY time_bucket('5 minutes', time)\nOrigin parameter for offset: time_bucket('1 day', time, '2024-01-01'::timestamptz)\nBeats date_trunc for non-standard intervals—15min, 4h, etc.\nContinuous Aggregates\nMaterialized views that auto-refresh—pre-compute expensive aggregations\nCREATE MATERIALIZED VIEW hourly_stats WITH (timescaledb.continuous) AS SELECT ...\nAdd refresh policy: SELECT add_continuous_aggregate_policy('hourly_stats', ...)\nQuery aggregate view instead of raw hypertable—orders of magnitude faster\nReal-Time Aggregates\nContinuous aggregates include recent data automatically—no stale reads\nWITH (timescaledb.continuous, timescaledb.materialized_only = false) for real-time\nCombines materialized historical + live recent—transparent to queries\nSmall performance cost for real-time—disable if batch-only acceptable\nCompression\nCompress old chunks to save 90%+ storage: ALTER TABLE metrics SET (timescaledb.compress)\nAdd compression policy: SELECT add_compression_policy('metrics', INTERVAL '7 days')\nCompressed chunks are read-only—can't update/delete individual rows\nDecompress for modifications: SELECT decompress_chunk('chunk_name')\nRetention\nAuto-delete old data: SELECT add_retention_policy('metrics', INTERVAL '90 days')\nDrops entire chunks—efficient, no row-by-row delete\nRetention runs on scheduler—data persists slightly past interval\nCombine with compression: compress at 7d, drop at 90d\nIndexing\nTime column auto-indexed in hypertable—don't add redundant index\nAdd indexes on filter columns: CREATE INDEX ON metrics (device_id, time DESC)\nComposite indexes with time last—enables chunk exclusion\nSkip indexes on rarely-filtered columns—each index slows writes\nInsert Performance\nBatch inserts critical—single-row inserts are slow\nUse COPY or multi-value INSERT: INSERT INTO metrics VALUES (...), (...), ...\nParallel COPY with timescaledb-parallel-copy tool—saturates I/O\nOut-of-order inserts work but slower—prefer time-ordered writes\nQuery Patterns\nAlways include time range in WHERE—enables chunk exclusion\nWHERE time > now() - INTERVAL '1 day' skips old chunks entirely\nORDER BY time DESC with LIMIT for \"latest N\"—index scan, fast\nAvoid SELECT * on wide tables—fetch only needed columns\nDistributed Hypertables\nMulti-node for horizontal scale—data sharded across nodes\nCreate access node + data nodes—access node coordinates queries\nMore operational complexity—start single-node, distribute when needed\nNot needed for most workloads—single node handles millions of rows/sec"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ivangdavila/timescaledb",
    "publisherUrl": "https://clawhub.ai/ivangdavila/timescaledb",
    "owner": "ivangdavila",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/timescaledb",
    "downloadUrl": "https://openagent3.xyz/downloads/timescaledb",
    "agentUrl": "https://openagent3.xyz/skills/timescaledb/agent",
    "manifestUrl": "https://openagent3.xyz/skills/timescaledb/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/timescaledb/agent.md"
  }
}