home/roleplay/user-repository-prompt-2

User Repository.prompt

GPTClaudeGemini··1,338 copies·updated 2026-07-14
user-repository-prompt-2.prompt
# Artifact Prompt: user_repository

Implement the `user_repository` artifact.

## Role
repository_port

## Module
user

## Responsibilities
- Define an outbound persistence boundary
- Provide an abstraction for user persistence
- Hide infrastructure-specific details behind an abstraction

## Must not
- Contain database-specific implementation
- Contain HTTP-specific logic

## Allowed dependencies
- crates/domain
- crates/application

## Forbidden dependencies
- crates/adapters/http
- crates/adapters/db

## Outputs
- UserRepository

## Completion criteria
- The abstraction focuses purely on the repository intent (e.g., retrieving aggregates).
- It is fully decoupled from specific SQL, ORM, or database terminology.

when to use it

Community prompt sourced from the open-source GitHub repo Arcflect/batonel (Apache-2.0). A "User Repository.prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

roleplaycommunitygeneral

source

Arcflect/batonel · Apache-2.0