Agent skill
import-fixer
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/import-fixer
SKILL.md
Import Fixer
Fix imports to follow clean architecture principles.
Common Issues
Deprecated Core Imports
# WRONG (deprecated):
from casare_rpa.core.types import DataType
# CORRECT:
from casare_rpa.domain.value_objects.types import DataType
Layer Violations
# WRONG: Presentation importing Infrastructure
from casare_rpa.infrastructure.resources import BrowserResourceManager
# CORRECT: Presentation imports from Application
from casare_rpa.application.use_cases import ExecuteWorkflowUseCase
Circular Dependencies
# Use TYPE_CHECKING for type hints only
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from module_b import ClassB
class ClassA:
def use_b(self) -> 'ClassB':
from module_b import ClassB # Import at runtime
return ClassB()
Import Order
- Standard library
- Third-party
- Local application
# 1. Standard library
import os
from typing import Any
# 2. Third-party
from loguru import logger
from PySide6.QtCore import Qt
# 3. Local
from casare_rpa.domain.value_objects import ExecutionResult
Layer Rules
Presentation → Application → Domain ← Infrastructure
Forbidden:
- Domain → Infrastructure
- Domain → Application
- Domain → Presentation
- Infrastructure → Presentation
Verification
# Check for deprecated imports
grep -r "from casare_rpa.core" src/ tests/
# Check domain violations
grep -r "from casare_rpa.infrastructure" src/casare_rpa/domain/
# Check for circular dependencies
pydeps src/casare_rpa --show-cycles
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?