§ Methodology
Every project passes through all four layers in strict order. Skipping layers means failures in production.
§ Overview
Most agent failures come from rushing to implementation. We solve this by forcing every project through four sequential layers: visual architecture, operational contracts, technical diagrams, and only then — implementation.
Layer I
Miro
Layer II
Notion
Layer III
Mermaid
Layer IV
Hermes
§ The Four Layers
Layer I
› Miro
Every agent begins as a visual system on a Miro board. 10 standardized frames cover identity, triggers, workflow, tools, permissions, retrieval logic, failure handling, approval gates, metrics, and Hermes file mapping. Nothing moves forward until the flow is absolutely clear.
Produces ◆ Agent identity, workflow flow, decision points, approval gates, tool overview, permission boundaries
── Contents ──
Layer II
› Notion
Once the visual architecture is locked, we translate it into precise operational rules. Four databases work together: Agent Registry (command table), Agent Spec Database with Master Template (full specification), Tool Contract Library (standardized tool rules), and Test & Incident Database (quality history).
Produces ◆ Detailed agent specification, tool contracts, permission matrices, test scenarios, incident tracking
── Contents ──
Layer III
› Mermaid
Mermaid diagrams formalize and verify consistency between visual architecture and operational documentation. Three mandatory diagrams for every agent ensure no logical gaps survive into implementation.
Produces ◆ Workflow diagram, sequence diagram, state diagram, consistency verification
── Contents ──
Layer IV
› Hermes
Only after three layers of design, documentation, and verification do we write implementation files. Nothing is invented from scratch — every file is derived from the previous three layers.
Produces ◆ SOUL.md, AGENTS.md, USER.md, MEMORY.md, skill files, prompt files, .env, config.yaml
── Contents ──
§ Disciplines
Every design must satisfy all seven. If one is weak — the design is not ready.
№ 01
Is the architecture clear and scalable?
№ 02
Are inputs and outputs explicit?
№ 03
How does the agent find information?
№ 04
What happens when something fails?
№ 05
Does it have only the permissions it needs?
№ 06
Can behavior be measured and diagnosed?
№ 07
Does it solve a real problem?
§ Next Step