Architect Service.prompt
# Service Architecture Spec
This document defines the canonical layer architecture for this service. AI agents making code changes **must follow these rules** and **must not introduce violations**.
---
## Two Patterns — Choose Based on Complexity
### Pattern A: Simple CRUD (no pipeline)
Use when the operation is a straightforward create, read, update, or delete with no multi-step pipeline logic.
**Decision criteria:** Does the operation require loading external data, validating against business rules across multiple entities, syncing state, AND persisting atomically? **No** → use Pattern A.when to use it
Community prompt sourced from the open-source GitHub repo rvarbanov/ai-lab (no explicit license). A "Architect Service.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
productivitycommunitydeveloper
source
rvarbanov/ai-lab · no explicit license
more in Productivity
Productivity✓ tested
Summarize a doc into decisions & actions
chief of staff who extracts what to DO, not just what was said
Productivity✓ tested
Draft a reply to a hard email
calm, direct communicator who de-escalates without caving
Productivity✓ tested
Turn a brain-dump into a weekly plan
planning coach who protects your focus, not just your calendar