A curated collection of Agent Skills for working with dbt, to help AI agents understand and execute dbt workflows more effectively.
91
91%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Advisory
Suggest reviewing before use
"""Logging configuration for skill-eval."""
import sys
import threading
from typing import Any
from loguru import logger
# Custom format function to include context when available
def _format_record(record: Any) -> str:
"""Format log record with optional context (scenario, skill_set, thread)."""
extra = record.get("extra", {})
# Build context prefix
context_parts = []
if "scenario" in extra:
context_parts.append(extra["scenario"])
if "skill_set" in extra:
context_parts.append(extra["skill_set"])
# Add thread number for parallel runs
thread_id = threading.current_thread().name
if thread_id != "MainThread":
# Extract thread number from ThreadPoolExecutor naming (e.g., "ThreadPoolExecutor-0_1")
if "_" in thread_id:
thread_num = thread_id.split("_")[-1]
context_parts.insert(0, f"T{thread_num}")
context = "/".join(context_parts)
context_str = f"<cyan>[{context}]</cyan> " if context else ""
return (
"<dim>{time:HH:mm:ss}</dim> | "
"<level>{level: <7}</level> | "
f"{context_str}"
"{message}\n"
)
# Remove default handler
logger.remove()
# Add custom handler
logger.add(
sys.stderr,
format=_format_record,
level="INFO",
colorize=True,
)
def set_level(level: str) -> None:
"""Set the logging level."""
logger.remove()
logger.add(
sys.stderr,
format=_format_record,
level=level.upper(),
colorize=True,
)
__all__ = ["logger", "set_level"]evals
scenarios
dbt-docs-arguments
dbt-docs-unit-test-fixtures
dbt-job-failure
dbt-unit-test-format-choice
example-yaml-error
fusion-migration-triage-basic
fusion-migration-triage-blocked
fusion-triage-cat-a-static-analysis
fusion-triage-cat-b-dict-meta-get
fusion-triage-cat-b-unexpected-config
fusion-triage-cat-b-unused-schema
fusion-triage-cat-b-yaml-syntax
fusion-triage-cat-c-hardcoded-fqn
src
tests
scripts
skills
dbt
skills
adding-dbt-unit-test
references
answering-natural-language-questions-with-dbt
building-dbt-semantic-layer
configuring-dbt-mcp-server
fetching-dbt-docs
scripts
running-dbt-commands
troubleshooting-dbt-job-errors
references
using-dbt-for-analytics-engineering
working-with-dbt-mesh
dbt-extras
skills
creating-mermaid-dbt-dag
dbt-migration
skills
migrating-dbt-core-to-fusion
migrating-dbt-project-across-platforms