Shep Port Extractor banner
shep-ai shep-ai

Shep Port Extractor

DevOps & Infrastructure community

Description

--- name: shep-port-extractor description: Fixes the 'application layer imports from infrastructure' violation. Given ONE concrete infrastructure symbol (class, function, or constant) and the list of application-layer files that import it, creates a port interface in application/ports/output/, moves (or keeps) the concrete behind it in infrastructure/, rewires the DI container, migrates every caller to inject the port by token, and runs targeted tests. Use when violation #17 (or similar) names a

Installation

Installs to ~/.claude/agents/shep-ai-shep-shep-port-extractor.md

Terminal
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/shep-ai/shep/HEAD/.claude/agents/shep-port-extractor.md -o ~/.claude/agents/shep-ai-shep-shep-port-extractor.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository