Spotiarr architecture

From mralexsaavedra/spotiarr · View interactive version

Spotiarr architecture is an AI agent skill from the GitHub repository mralexsaavedra/spotiarr. Trigger: architecture, layer, placement, where does X go, new feature, repo structure. spotiarr layer rules: backend DDD-lite, frontend hooks/store/views.

How to use this skill

Skill file

Activation Contract

Load when deciding where new code belongs across backend, frontend, or shared.

Hard Rules

Decision Gates

Backend — where does it go?
  Business rule / invariant?         → domain/
  Use-case orchestration?            → application/
  DB, queues, APIs, filesystem?      → infrastructure/
  HTTP routes, controllers, SSE?     → presentation/
  Cross-cutting request guards?      → presentation/middleware/

Frontend — where does it go?
  UI rendering / composition?        → components/
  Page-level screens?                → views/
  View logic / orchestration?        → hooks/
  Remote fetch / mutate?             → services/ + hooks/queries|mutations
  App-wide client state?             → store/
  Ephemeral gate/overlay state?      → local useState in the controller hook (NOT a Zustand store; see useTokenGate)

Cross-cutting types / utils?         → packages/shared/

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.