Authoring maps
This is the contract the skill gives the agent. It is also the guide if you write maps by hand.
How to model a system as a schemap map. Field rules are in the schema.
Principles
Section titled “Principles”- One question per map. “How does a checkout reach the database?” makes a better map than “everything”. Several focused maps beat one crowded map.
- Facts only. Every node and edge is something you read in code or config, or something the user told you. Unavoidable glue (a client, the internet) is fine; invented components are not.
- Ids are stable. Lower-case, short, meaningful (
orders-db, notnode7). Rename withcard.title. - Cards say what a thing is. Titles are names (
shop-api), subtitles say what it is (REST API,PostgreSQL 16). Detail goes inrows,descriptionor evidence notes. Long text wraps; nothing is cut off.
See Map kinds for when to use each.
Node types
Section titled “Node types”Infra types, used by every kind except lifecycle. The type sets the colour and icon:
| type | for |
|---|---|
client |
browsers, mobile apps, CLIs, people starting a step |
gateway |
load balancers, CDNs, API gateways, ingress, routers |
service |
your own services, workers, functions, jobs |
database |
relational and document stores |
cache |
Redis, Memcached, in-memory caches |
queue |
queues, topics, streams, event buses |
storage |
object storage, file systems, data lakes |
external |
third-party APIs and SaaS |
security |
auth, identity, secrets, WAF, approval gates |
Lifecycle state types: start (initial state), active, waiting, decision, success, failure, neutral.
title(required) andsubtitle.rows(label/value,monofor code-like values), as many as the node needs: a table’s columns, a service’s settings.stats: numbers such as120/req/s, three per line, as many as needed.link: one URL shown on the card.tag: a pill for a short qualifier (human gate,after 5 tries).description: a sentence or two shown in the inspector, never on the card.evidence:{ file, line?, note? }entries shown in the inspector. Set top-levelsource.url(e.g.https://github.com/acme/shop/blob/main) to make them links.
from→tois the direction of the call, the data or the transition.kind:sync(default, solid),async(dashed: queues, events, fire-and-forget),return(dotted: replies, webhooks back, rollbacks).tone:mainmarks the happy path (use it on one path, not everywhere),securityfor auth and trust crossings,errorfor failure paths.label: a few words (order.placed,charge,on 5xx). Skip labels that only repeat the target’s name.
Structure
Section titled “Structure”groups(architecture, dataflow): boxes around related nodes: tiers, VPCs, bounded contexts. Nest withparent."tone": "security"marks a trust boundary.lanes(workflow, lifecycle): one per owner or path."tone": "exception"for failure and recovery lanes. Every node needs alane.phases: workflow and lifecycle{ nodes }head the columns those nodes occupy, in order; sequence{ edges }band consecutive messages (Read cart,Pay).views: guided tabs that focus part of the map:{ id, label, caption?, nodes }. Good views answer one question each (“Checkout path”, “State”, “Auth”).notes: takeaways listed in the inspector:{ title, items }.
There is no limit. Include every node, row and detail the question needs: a table with 40 columns gets 40 rows, a system with 200 services gets 200 nodes. Cards wrap and grow; the viewer pans and zooms. Split into several maps only when the user asks for separate questions, not to save space.