vertical-slice-architecture
Vertical Slice Architecture
Overview
Use Vertical Slice as the default architecture bias for AI-assisted development. Optimize for change isolation, clear ownership, and deterministic implementation boundaries. Apply DDD and Hexagonal ideas where they add clarity, not ceremony.
Treat this as a default, not a law. Choose simpler structure when scope is tiny or short-lived.
Policy source of truth:
adr/2026-04-21-default-to-vertical-slice-architecture.md
Default Position
Prefer Vertical Slice first because:
- Reduce blast radius by localizing changes per feature/use case.
- Reduce ambiguity by mapping code to business behavior.
- Improve review quality by keeping request flow in one slice.
More from iyaki/opencode-base-template
shell-command
Execute shell commands with strict adherence to non-interactive flags and environment variables to prevent hanging in OpenCode's headless environment.
18code-search
Use when you need to locate definitions of classes, functions, constants, types, or symbols in the application code. Before searching individual files, run Repomix with stdout output to capture a snapshot and base the search on that content.
11dev-browser
Browser automation. This skill enables agents to research, test web UIs, and interact with web applications using a headless browser.
6reddit
Search and retrieve content from Reddit. Get posts, comments, subreddit info, and user profiles via the public JSON API. Use when user mentions Reddit, a subreddit, or r/ links.
2frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
2spec-creator
Generate comprehensive technical specifications for usage with Ralph.
2