Install
openclaw skills install @agenticweb4/architect-4rModel systems with 4R and diagram each R in Mermaid.
openclaw skills install @agenticweb4/architect-4r4R is an ontological framework for describing a system. At a defined observation level, roles, relations, and rules form an explicit specification of its structure and behavior.
| Dimension | Definition | Diagram reference |
|---|---|---|
| Rank | The model's observation scope and granularity, determining which objects and details belong at the current level. | Hierarchy and expansion |
| Role | A part at the current level with explicit responsibilities and state ownership. | Composition and responsibilities |
| Relation | Calls, dependencies, information transfers, or shared resources between roles, including direction and exchanged content. | Role relationships |
| Rule | The conditions, order, and constraints of collaboration, including state changes and failure handling. | Sequence, flow, and state |
Relation describes static connections. Rule explains when and under what conditions those connections operate.
Business, system, application, and deployment are perspectives. Rank determines the granularity of each view. Systems or services fulfill business capabilities. The application perspective describes internal modules and dependencies. The deployment perspective maps runtime units to infrastructure.
A complete 4R architecture description includes separate diagrams for Rank, Role, Relation, and Rule. A dimension may need several diagrams. Keep names consistent and identify level and object mappings. Apply 4R within each selected perspective.
Use Mermaid for every diagram and the shared diagram design reference for visual parameters. The table links to drawing guidance, templates, and checks for each R.