# Enforce architectural import boundaries in Python codebases with Import Linter

> Check whether a Python codebase still respects declared layered, independence, or forbidden import contracts.

- Skill: `agentskillexchange/enforce-architectural-import-boundaries-in-python-codebases-` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/enforce-architectural-import-boundaries-in-python-codebases-`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/enforce-architectural-import-boundaries-in-python-codebases-/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/enforce-architectural-import-boundaries-in-python-codebases-

---


# Enforce architectural import boundaries in Python codebases with Import Linter

Check whether a Python codebase still respects declared layered, independence, or forbidden import contracts.

## Prerequisites

Python project, pip or Poetry environment

## Installation

Requirements and caveats from upstream:
- **Lint your Python architecture.**
- [![Python versions](https://img.shields.io/pypi/pyversions/import-linter.svg)](https://pypi.org/project/import-linter)
- **Import Linter** allows you to impose constraints on the imports between your Python modules.

- Source: https://github.com/seddonym/import-linter
- Extracted from upstream docs: https://raw.githubusercontent.com/seddonym/import-linter/HEAD/README.md

## Documentation

- https://import-linter.readthedocs.io/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/enforce-architectural-import-boundaries-in-python-codebases-with-import-linter/)

