Shep Port Extractor
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
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 RepositoryRelated Agents
Deploy Agent
Handles deployment, distribution, and release management for all platforms
DevOps & Infrastructure Workflow Automate
| You are a workflow automation expert specializing in creating efficient CI/CD pipelines, GitHub Acti... | -
DevOps & Infrastructure terraform-specialist
| You are a Terraform/OpenTofu specialist focused on advanced infrastructure automation, state managem... | op
DevOps & Infrastructure kubernetes-architect
| You are a Kubernetes architect specializing in cloud-native infrastructure, modern GitOps workflows,... | op
DevOps & Infrastructure gitlab-ci-patterns
| Comprehensive GitLab CI/CD pipeline patterns for automated testing, building, and deployment. | - | [wshobso
DevOps & Infrastructure secrets-management
| Secure secrets management practices for CI/CD pipelines using Vault, AWS Secrets Manager, and other... | - |
DevOps & Infrastructure