ade-bench-cross-db-tasks
Skill by dbt-labs
Guides authors and debuggers of ade-bench tasks that must run on both DuckDB and Snowflake. It covers shared project migrations, setup patches and solution patches.
Install ade-bench-cross-db-tasks
Built from the published package, never by AI.
git clone --depth 1 https://github.com/dbt-labs/ade-bench /tmp/ade-bench && mkdir -p ~/.claude/skills && cp -r /tmp/ade-bench/skills/ade-bench-cross-db-tasks ~/.claude/skills/ade-bench-cross-db-tasksRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install ade-bench-cross-db-tasks in Claude Code
git clone --depth 1 https://github.com/dbt-labs/ade-bench /tmp/ade-bench && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ade-bench/skills/ade-bench-cross-db-tasks ~/.gemini/antigravity-cli/skills/ade-bench-cross-db-tasksAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install ade-bench-cross-db-tasks in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a guide for authoring and debugging ade-bench tasks that must run on both DuckDB (the default) and Snowflake. It describes a four-stage lifecycle: migration of shared project files, task setup, the agent's work, and the solution. Migration converts DuckDB syntax to Snowflake equivalents, such as schema names and date functions.
Task patches follow a fixed pattern. A base patch always applies, and a changes.snowflake.patch is applied only as an additive delta when the Snowflake flag is set. The skill also covers context and removed-line mismatches, the use of yq instead of patch for dbt_project.yml, and a table that maps common patch errors to causes and fixes. It is aimed at developers writing ade-bench tasks for dbt-based projects.
Written from the project's SKILL.md and checked against it.
What it can do
- Four-stage task lifecycleExplains the order of migration, setup, agent work and solution, and why patches must follow it.
- Migration guidanceShows how to convert DuckDB syntax such as schema names and STRPTIME to Snowflake equivalents.
- Setup patch handlingDescribes a base setup patch plus an optional Snowflake delta, using --batch and --forward.
- Solution patch fixesShows how to handle context line and removed line mismatches caused by migration changes.
- dbt_project.yml edits with yqUses yq for semantic YAML edits that still work after migration reformats the file.
- Failure diagnosis tableMaps symptoms such as failed hunks and reversed patch prompts to likely causes and fixes.
What you need
- An ade-bench task repository
- yq for editing dbt_project.yml
- DuckDB as the default target
- Snowflake for the optional target
Try asking
- Write a setup patch for an ade-bench task that must run on DuckDB and Snowflake.
- Why does my solution patch show Hunk FAILED after migration ran?
- Show me how to change dbt_project.yml in solution.sh using yq.
Good to know
- The Snowflake patch must be a delta and must not repeat changes migration already made.
- Using patch on dbt_project.yml fails after migration because the file is reformatted.
- Patches that ignore the four-stage order can block execution.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/ade-bench-cross-db-tasks/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to ade-bench-cross-db-tasks
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
ade-bench-cross-db-tasks: common questions
What is the difference between DuckDB and Snowflake in ade-bench tasks?
DuckDB is the default target. Snowflake tasks use migration and optional changes.snowflake.patch files to convert syntax and apply extra changes.
Why should I use yq instead of patch for dbt_project.yml?
The migration process calls yaml.safe_load and yaml.safe_dump on dbt_project.yml, which reformats the file. yq performs semantic edits, so key order and formatting do not matter.
What does the --batch and --forward option do in a setup patch?
--batch prevents the interactive Apply anyway prompt, and --forward skips reversed or already applied hunks without prompting.
How do I install ade-bench-cross-db-tasks?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is ade-bench-cross-db-tasks free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is ade-bench-cross-db-tasks safe to use?
It scores 68 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to ade-bench-cross-db-tasks?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
