home/roleplay/user-prompt-3

User.prompt

GPTClaudeGemini··1,112 copies·updated 2026-07-14
user-prompt-3.prompt
# Artifact Prompt: user

Implement the `user` artifact.

## Role
entity

## Module
user

## Responsibilities
- Represent a core business concept
- Protect domain invariants
- Model the user entity

## Must not
- Depend on application, interface, or infrastructure concerns
- Contain transport or persistence logic
- Contain direct external access

## Allowed dependencies
- src/domain

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

## Outputs
- User

## Completion criteria
- The entity strictly protects its domain invariants.
- Methods represent business rules, not just generic getters/setters.
- No application, transport, or persistence details leak into this layer.

when to use it

Community prompt sourced from the open-source GitHub repo Arcflect/batonel (Apache-2.0). A "User.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