Agent skill
auto-import-rules
Enforces dlt import conventions and ordering. Use when writing or modifying Python imports in dlt/ or tests/.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/auto-import-rules-thanhhuong0209-dlt-normalization
SKILL.md
Import rules
Import order
Groups separated by blank line:
- stdlib (
import os,from typing import ...) - third-party (
import pendulum,import semver) - local dlt (
from dlt.common import ...) - (tests only) test utilities (
from tests.utils import ...)
- Stdlib imports are ALWAYS at module level -- never inline in functions. This includes
contextlib,io,warnings,sys,os,re, etc. - No relative imports.
Logging
from dlt.common import logger, then logger.info(...) -- never import logging directly (except in logger.py itself or runtime infrastructure).
TYPE_CHECKING imports
- Optional deps for annotations only:
if TYPE_CHECKING: from X import Ywithelse: Y = Any - Destination factories: client class under
TYPE_CHECKING, actual import deferred to runtime method
Optional dependencies
When importing pyarrow, pandas, numpy, pydantic, sqlalchemy, ibis, deltalake, pyiceberg: See common-libs.md
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?