User.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 transport or persistence details
- Contain HTTP-specific logic
- Contain direct database access
## Allowed dependencies
- domain
## Forbidden dependencies
- interfaces
- infrastructure
- application
## 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