shep: Agent for Claude Code

.claude/agents/shep-file-relocator.md

shep-file-relocator is an agent for Claude Code from shep-ai/shep. It costs 75 tokens per session (1,187 once invoked), scanned A, original, MIT.

A code-migration tool for moving one file between layers of a clean-architecture project and updating all imports that refer to it. Clean architecture layers separate responsibilities and limit allowed dependencies between them.

In plain words
What is it for?
Use it to relocate one helper, error, or other file between domain, application, infrastructure, or presentation layers. Provide the source path, destination path, and destination layer.
Why use it?
It checks whether the file's imports are legal in the destination layer before moving it, then keeps references working throughout the repository. It does not split, merge, or broadly refactor files.

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-file-relocator.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-file-relocator

README.md
[![agentmods](https://agentmods.dev/badge/agents/shep-ai/shep/shep-file-relocator/github.svg)](https://agentmods.dev/agents/shep-ai/shep/shep-file-relocator)
Your own site
<a href="https://agentmods.dev/agents/shep-ai/shep/shep-file-relocator"><img src="https://agentmods.dev/badge/agents/shep-ai/shep/shep-file-relocator/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-file-relocator

Your own site · 80×15
<a href="https://agentmods.dev/agents/shep-ai/shep/shep-file-relocator"><img src="https://agentmods.dev/badge/agents/shep-ai/shep/shep-file-relocator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 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,187 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.00075 $0.01187
Opus 5 $0.00037 $0.00593
Sonnet 5 $0.00015 $0.00237
Haiku 4.5 $0.00007 $0.00119

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

Security

Grade A, and why

shep-file-relocator 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-file-relocator.md · 90 lines

How it starts

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

You move one file across layer boundaries. You do not split files, merge files, or refactor. You only move + update imports.

Inputs (required)

  1. source_path — absolute path of the file to move.
  2. dest_path — absolute path where it should end up (new filename may differ).
  3. dest_layer — one of domain, application-ports, application-use-cases, infrastructure, presentation. Used to validate dependency rules after the move.

Process

Step 1 — Read and validate the source

  • Read source_path in full.
  • Enumerate its imports:
    • External packages (e.g. node:path) — always fine.
    • Project-relative imports — for each, classify by layer.
  • Validate that every import the file currently makes is allowed from dest_layer per the dependency rule:
    • domain → can only import from domain/ + standard library. If the file imports from application/, infrastructure/, or presentation/, refuse the move and return a report listing disallowed imports.
    • application-ports → can import from domain/ only. Type-only imports from other ports are allowed.
    • application-use-cases → can import from domain/ + application/ports/. Not from infrastructure/.
    • infrastructure → can import from application/ports/ + domain/.
    • presentation → can import from application/ + domain/.
  • If refused, STOP before writing anything. Return a report: Cannot move: <reason>. Disallowed imports: [list]. Suggested fix: <what the caller should do first — usually extract dependencies to a port or move the helper's own deps first>.

Step 2 — Find every importer

Run Grep pattern="from '[^']*<basename-without-ext>" path=./ output_mode=files_with_matches to catch every file that imports from the source file's path. Also search for @/ path-alias variants.

Build a list of { importer_path, old_import_specifier }. Read each importer to confirm the import is the one you expect (not a collision with a similarly-named file).

Read the full file on GitHub · 90 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 · 90 lines · 75 tokens per session scan A 0221d13b6f9b

Subscribe to this mod's changes

shep-file-relocator is an agent published in the GitHub repository shep-ai/shep (248 stars, last pushed today), licensed MIT. It adds 75 tokens to every session and 1,187 once invoked, about $0.0004 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

team-reviewer

Multi-dimensional code reviewer that operates on one assigned review dimension (security, performance, architecture, testing, or accessibility) with structured finding format. Use when performing parallel code reviews across multiple quality dimensions.

wshobson/agents · 43 tokens

database-cloud-optimization-database-architect

Expert database architect specializing in data layer design from scratch, technology selection, schema modeling, and scalable database architectures. Masters SQL/NoSQL/TimeSeries database selection, normalization strategies, migration planning, and performance-first design. Handles both greenfield architectures and…

wshobson/agents · 83 tokens

application-performance-performance-engineer

Expert performance engineer specializing in modern observability, application optimization, and scalable system performance. Masters OpenTelemetry, distributed tracing, load testing, multi-tier caching, Core Web Vitals, and performance monitoring. Handles end-to-end optimization, real user monitoring, and scalability…

wshobson/agents · 76 tokens

backend-development-tdd-orchestrator

Master TDD orchestrator specializing in red-green-refactor discipline, multi-agent workflow coordination, and comprehensive test-driven development practices. Enforces TDD best practices across teams with AI-assisted testing and modern frameworks. Use PROACTIVELY for TDD implementation and governance.

wshobson/agents · 61 tokens

data-engineer

Build scalable data pipelines, modern data warehouses, and real-time streaming architectures. Implements Apache Spark, dbt, Airflow, and cloud-native data platforms. Use PROACTIVELY for data pipeline design, analytics infrastructure, or modern data stack implementation.

wshobson/agents · 54 tokens

agent-orchestration-context-manager

Elite AI context engineering specialist mastering dynamic context management, vector databases, knowledge graphs, and intelligent memory systems. Orchestrates context across multi-agent workflows, enterprise AI systems, and long-running projects with 2024/2025 best practices. Use PROACTIVELY for complex AI…

wshobson/agents · 66 tokens