home/roleplay/user-repository-prompt

User Repository.prompt

GPTClaudeGemini··565 copies·updated 2026-07-14
user-repository-prompt.prompt
# Artifact Prompt: user_repository

Implement the `user_repository` artifact.

## Role
repository_interface

## Module
user

## Responsibilities
- Define an abstraction for persistence access
- Provide a repository boundary for user persistence
- Hide infrastructure details from the application layer

## Must not
- Contain persistence implementation details
- Contain transport-specific logic

## Allowed dependencies
- src/domain
- src/application

## Forbidden dependencies
- src/interfaces
- src/infrastructure

## Outputs
- UserRepository

## Completion criteria
- The artifact focuses exclusively on its defined responsibilities.
- The implementation respects forbidden dependencies and architectural rules.

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