Token导航 LogoToken导航TokenDH.com
开发只读github未标认证来源可访问许可证需确认审计提醒

update-dataset更新数据集

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

1,188

周安装

49

GitHub Stars

145

下载量

388
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:update-dataset(更新数据集)
来源仓库:https://github.com/owid/etl
仓库路径:skills/update-dataset
安装命令:
npx skills add https://github.com/owid/etl --skill update-dataset
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/owid/etl --skill update-dataset

简介

辅助数据清洗、表格处理和统计分析,支持 CSV/Excel 分析。

  • 适合汇总数据、发现异常或生成统计口径说明。
  • 通过 GitHub 安装并使用 npx skills add 命令集成。
  • 需确认数据来源和时间范围,避免将样本当作全量事实。
  • update-dataset 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Update Dataset (PR → snapshot → steps → grapher)

Use this skill to run a complete dataset update with Claude Code subagents, keep a live progress checklist, and pause for approval at a checkpoint after every numbered workflow step before continuing.

Inputs

  • <namespace>/<old_version>/<name>
  • Get <new_version> as today's date by running date -u +"%Y-%m-%d"

Optional trailing args:

  • branch: The working branch name (defaults to current branch)

Assumptions:

  • All artifacts are written to workbench/<short_name>/.
  • Persist progress to workbench/<short_name>/progress.md and update it after each step.

Progress checklist (maintain, tick live, and persist to progress.md)

(Checkpoint rule: After you finish each item below that represents a workflow step, immediately run the CHECKPOINT procedure. Do not batch multiple steps before a checkpoint.)

  • Parse inputs and resolve: channel, namespace, version, short_name, old_version, branch
  • Clean workbench directory: delete workbench/<short_name> unless continuing existing update
  • Run ETL update workflow via etl-update subagent (help → dry run → approval → real run)
  • Create or reuse draft PR and work branch
  • Update snapshot and compare to previous version; capture summary
  • Meadow step: run + fix + diff + summarize
  • Garden step: run + fix + diff + summarize
  • Grapher step: run + verify (skip diffs), or explicitly mark N/A
  • CHECKPOINT — present consolidated summary and request approval
  • If approved, commit, push, and update PR description
  • Optional: run indicator upgrade on staging and persist report
  • Draft Slack announcement and notify user to post it to #data-updates-comms

Persistence:

  • After ticking each item, update workbench/<short_name>/progress.md with the current checklist state and a timestamp.

CHECKPOINT (mandatory user approval)

Always performed immediately after completing each numbered workflow step (1–6). Never start the next step until approval is granted.

Procedure (each time):

  1. Present a concise summary of what just changed, key diffs/issues resolved, and what the next step will do.
  2. Ask exactly: Proceed? reply: yes/no
  3. Only continue if the user replies exactly yes (case-insensitive). Any other reply = no; stop and wait.
  4. On approval:

- Update progress checklist (tick the completed item) and write workbench/<short_name>/progress.md with timestamp. - Commit related changes (if any), push. - Update (or append to) the PR description: add a collapsed section titled with the step name (e.g., "Snapshot Update", "Meadow Update") containing the summary.

Mandatory per-step checkpoints (rule)

You MUST:

  • Stop after each workflow step (1–6) and run CHECKPOINT before starting the next (step 7 is optional and still requires a checkpoint if executed).
  • Never chain multiple steps inside a single approval.
  • Treat missing or ambiguous replies as no.

Workflow orchestration

  1. Initial setup

- Check if workbench/<short_name>/progress.md exists to determine if continuing existing update - If starting fresh: delete workbench/<short_name> directory if it exists - Create fresh workbench/<short_name> directory for artifacts

  1. Run ETL update command (etl-update subagent)

- Inputs: <namespace>/<old_version>/<short_name> plus any required flags - CRITICAL: Run etl update ONCE for the full step URI (e.g., data://garden/namespace/old_version/short_name). Do NOT run it separately per channel (snapshot, meadow, garden, grapher). Running it once ensures all cross-step DAG dependencies are updated together. Running it per-channel leaves stale version references in dag/main.yml (e.g., garden pointing to old meadow version). - Perform help check, dry run, approval, then real execution; capture summary for later PR notes - After running, always verify dag/main.yml: grep for the old version and confirm all internal references between the new steps point to the new version (e.g., garden depends on new meadow, not old meadow). - CHECKPOINT (stop → summarize → ask → require yes)

  1. Create PR and integrate update via subagent (etl-pr)

- Inputs: <namespace>/<old_version>/<short_name> - Create or reuse draft PR, set up work branch, and incorporate the ETL update outputs - CHECKPOINT

  1. Snapshot run & compare (snapshot-runner subagent)

- Inputs: <namespace>/<new_version>/<short_name> and <old_version> - CHECKPOINT

  1. Meadow step repair/verify (step-fixer subagent, channel=meadow)

- Run, fix, re-run; produce diffs - Save diffs and summaries - CHECKPOINT

  1. Garden step repair/verify (step-fixer subagent, channel=garden)

- Run, fix, re-run; produce diffs - Save diffs and summaries - CHECKPOINT

  1. Grapher step run/verify (step-fixer subagent, channel=grapher, add --grapher)

- Skip diff - CHECKPOINT

  1. Indicator upgrade (optional, staging only)

- Use indicator-upgrader subagent with <short_name> <branch> - CRITICAL: After the upgrader finishes, always verify it actually worked by querying staging: make query SQL="SELECT COUNT(*) FROM chart_dimensions cd JOIN variables v ON cd.variableId = v.id WHERE v.catalogPath LIKE '%<namespace>/<new_version>%'". If the count is 0, the upgrade did not run — re-run it. - CHECKPOINT (if executed)

  1. Slack announcement

- Fill out the template at .claude/skills/update-dataset/slack-announcement-template.md using facts gathered during the update (coverage, chart count, key changes, etc.) - Ask user if unsure about any details - Save the draft to workbench/<short_name>/slack-announcement.md - Tell the user: "Slack announcement drafted at workbench/<short_name>/slack-announcement.md. Please review and post it to #data-updates-comms."

Guardrails and tips

  • DAG consistency: After etl update, always verify that all new steps in dag/main.yml reference each other with the new version. A common bug is garden depending on old meadow or old snapshot — this silently loads stale data.
  • Never return empty tables or comment out logic as a workaround — fix the parsing/transformations instead.
  • Column name changes: update garden processing code and metadata YAMLs (garden/grapher) to match schema changes.
  • Indexing: avoid leaking index columns from reset_index(); format tables with tb.format(["country", "year"]) as appropriate.
  • Metadata validation errors are guidance — update YAML to add/remove variables as indicated.

Artifacts (expected)

  • workbench/<short_name>/snapshot-runner.md
  • workbench/<short_name>/progress.md
  • workbench/<short_name>/meadow_diff_raw.txt and meadow_diff.md
  • workbench/<short_name>/garden_diff_raw.txt and garden_diff.md
  • workbench/<short_name>/indicator_upgrade.json (if indicator-upgrader was used)

Example usage

  • Minimal catalog URI with explicit old version:

- update-dataset data://snapshot/irena/2024-11-15/renewable_power_generation_costs 2023-11-15 update-irena-costs


Common issues when data structure changes

  • SILENT FAILURES WARNING: Never return empty tables or comment code as workarounds!
  • Column name changes: If columns are renamed/split (e.g., single cost → local currency + PPP), update:

- Python code references in the garden step - Garden metadata YAML (e.g., food_prices_for_nutrition.meta.yml) - Grapher metadata YAML (if it exists)

  • Index issues: Check for unwanted index columns from reset_index() — ensure proper indexing with tb.format(["country", "year"]).
  • Metadata validation: Use error messages as a guide — they show exactly which variables to add/remove from YAML files.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.37%
按下载量换算145

Claude

27.66%
按下载量换算107

Cursor

19.91%
按下载量换算77

Gemini CLI

10.47%
按下载量换算41

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills