home/roleplay/user-prompt-2

User.prompt

GPTClaudeGemini··1,111 copies·updated 2026-07-14
user-prompt-2.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 or adapter concerns
- Contain HTTP or database-specific logic
- Contain persistence access

## Allowed dependencies
- crates/domain

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

## 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