home/productivity/architect-service-prompt

Architect Service.prompt

GPTClaudeDeepSeek··1,196 copies·updated 2026-07-14
architect-service-prompt.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