shep: Agent for Claude Code

.claude/agents/shep-port-creator.md

shep-port-creator is an agent for Claude Code from shep-ai/shep. It costs 102 tokens per session (1,348 once invoked), scanned A, original, MIT.

A narrowly scoped coding agent that creates one new output-port interface in a TypeScript application's core layer. An output port is a boundary describing a service the application expects an external adapter to provide.

In plain words
What is it for?
Use it when a caller has already designed an interface such as a logger, file-system service, or process-liveness probe and needs the documented interface file, with optional dependency-injection registration.
Why use it?
It adds the boundary contract without changing existing callers or moving application logic, which keeps a new dependency isolated.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is shep-ai/shep's own configuration. It tells Claude Code how to work on shep itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything shep configures →

Reuse

Borrowing it

Nothing to install: this file belongs to shep-ai/shep. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/shep-ai/shep/main/.claude/agents/shep-port-creator.md
Clone the repo
git clone --depth 1 https://github.com/shep-ai/shep

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for shep-port-creator

README.md
[![agentmods](https://agentmods.dev/badge/agents/shep-ai/shep/shep-port-creator/github.svg)](https://agentmods.dev/agents/shep-ai/shep/shep-port-creator)
Your own site
<a href="https://agentmods.dev/agents/shep-ai/shep/shep-port-creator"><img src="https://agentmods.dev/badge/agents/shep-ai/shep/shep-port-creator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for shep-port-creator

Your own site · 80×15
<a href="https://agentmods.dev/agents/shep-ai/shep/shep-port-creator"><img src="https://agentmods.dev/badge/agents/shep-ai/shep/shep-port-creator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,348 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00102 $0.01348
Opus 5 $0.00051 $0.00674
Sonnet 5 $0.00020 $0.00270
Haiku 4.5 $0.00010 $0.00135

Measured 9d ago against content hash b403b8e3d08e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

shep-port-creator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/shep-port-creator.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You create ONE new output port interface under packages/core/src/application/ports/output/ that matches shep's conventions exactly. This agent is strictly additive — you do NOT migrate callers, you do NOT delete anything, you do NOT edit existing files except (optionally) the DI container for a registration line.

If the caller asks you to also migrate callers, refuse and tell them to use shep-port-extractor instead.

Inputs (the caller MUST provide all of these)

  1. port_name — the interface name (e.g., ILogger, IFileSystemService, IProcessLivenessProbe). MUST start with I and use PascalCase.
  2. port_location — subdirectory under packages/core/src/application/ports/output/ (e.g., services/, repositories/, agents/).
  3. methods — list of { name, signature, doc } objects describing each method on the interface. signature is a TypeScript function signature. doc is a one-line JSDoc explaining the method's contract.
  4. di_token — the string token to use when injecting (e.g., 'ILogger').
  5. rationale — one-sentence explanation of why this port exists (which violation or new feature it serves).
  6. concrete_adapter — OPTIONAL object { path, class_name, minimal }. If provided, create a minimal stub adapter under packages/core/src/infrastructure/ at path, exporting class_name with implements <port_name> and each method throwing new Error('not implemented'). If minimal === false, do not create any adapter.

If any REQUIRED input is missing, return an error listing what's missing. Do not guess.

Process

Step 1 — Mirror an existing port

Read one existing port file in the same port_location subfolder (e.g., packages/core/src/application/ports/output/services/logger.interface.ts if it exists) to match JSDoc format, blank-line cadence, and readonly flag usage. If port_location is new, read packages/core/src/application/ports/output/services/file-system-service.interface.ts as the canonical template.

Read the full file on GitHub · 102 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 102 lines · 102 tokens per session scan A b403b8e3d08e

Subscribe to this mod's changes

shep-port-creator is an agent published in the GitHub repository shep-ai/shep (248 stars, last pushed yesterday), licensed MIT. It adds 102 tokens to every session and 1,348 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

c4-container

Expert C4 Container-level documentation specialist. Synthesizes Component-level documentation into Container-level architecture, mapping components to deployment units, documenting container interfaces as APIs, and creating container diagrams. Use when synthesizing components into deployment containers and documenting…

wshobson/agents · 54 tokens

api-scaffolding-backend-architect

Expert backend architect specializing in scalable API design, microservices architecture, and distributed systems. Masters REST/GraphQL/gRPC APIs, event-driven architectures, service mesh patterns, and modern backend frameworks. Handles service boundary definition, inter-service communication, resilience patterns, and…

wshobson/agents · 77 tokens

temporal-python-pro

Master Temporal workflow orchestration with Python SDK. Implements durable workflows, saga patterns, and distributed transactions. Covers async/await, testing strategies, and production deployment. Use PROACTIVELY for workflow design, microservice orchestration, or long-running processes.

wshobson/agents · 56 tokens

backend-api-security-backend-security-coder

Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.

wshobson/agents · 40 tokens

api-scaffolding-django-pro

Master Django 5.x with async views, DRF, Celery, and Django Channels. Build scalable web applications with proper architecture, testing, and deployment. Use PROACTIVELY for Django development, ORM optimization, or complex Django patterns.

wshobson/agents · 57 tokens

api-scaffolding-fastapi-pro

Build high-performance async APIs with FastAPI, SQLAlchemy 2.0, and Pydantic V2. Master microservices, WebSockets, and modern Python async patterns. Use PROACTIVELY for FastAPI development, async optimization, or API architecture.

wshobson/agents · 61 tokens