shep-ai/shep/shep-port-extractor
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
AI agent · version 1.253.1 · from shep-ai/shep
Install
npx yarkr-cli add agent:shep-ai/shep/shep-port-extractorWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add agent:shep-ai/shep/shep-port-extractor
wget -qO- https://yarkr.com/install.sh | sh -s -- add agent:shep-ai/shep/shep-port-extractorOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add agent:shep-ai/shep/shep-port-extractorWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.