Repository navigation
Releases
Archistry 1.3: the automation map
Archistry 1.3: the automation map
A 50th diagram type for the question every inherited org raises: what fires when a record is saved, in what order, and where is the order not guaranteed?
⚡ automation-map
- One object per diagram. One zone for each step of the Salesforce order of execution, numbered as in the Apex Developer Guide: before-save flows, before triggers, validation rules, duplicate rules, after triggers, assignment and auto-response rules, workflow rules, escalation rules, Process Builder, after-save flows, roll-up summaries, asynchronous paths after commit, and a separate zone for delete.
- Conflicts are flagged.
- Two or more active Apex triggers on the same event run in no guaranteed order.
- Two or more Process Builder processes run in no guaranteed order.
- Two flows without a run order that share an event follow their activation dates, which are not in the source.
- A flow without a run order next to ordered flows is not flagged: Salesforce runs it after those ordered 1 to 1,000 and before those ordered 1,001 to 2,000. Cards are sorted into run order.
- Legacy and inactive items are grey. Workflow rules and Process Builder are marked "migrate to flows"; inactive items are counted but not drawn.
- Based on Salesforce's own documentation: the Apex Developer Guide page "Triggers and Order of Execution" and the Help page on run order for record-triggered flows. Salesforce renumbers the steps between releases, so the reference says when the numbers were checked.
🧩 Start from your repo
archistry automation-from-sfdx ./ --object Account -o diagrams/account-automation.json
archistry automation-from-sfdx ./ # lists the objects that have automationIt reads Apex triggers, record-triggered flows with their run order, Process Builder, validation, duplicate, assignment, auto-response and escalation rules, workflow rules, roll-up summary fields and asynchronous flow paths from SFDX source. It shows only what is in the repository: automation from installed managed packages is not included.
🛠️ Smaller changes
- README gallery refresh.
node scripts/build-examples.mjs --galleryupdates only the gallery, without rebuilding any example. - Skill description. The word "agenda" is back in the discovery list: without it, "draft the agenda for our 3-day discovery workshop" was answered without loading the skill (0 of 4); with it, 4 of 4.
- 50 types in the README, the banner image and the website.
🎯 Evals
- Behaviour: 12 of 12 cases pass, with three runs per case on Sonnet. The new case runs the generator on a project with seeded conflicts and decoys. Cases 1 to 11 were last run before this release.
- Trigger: 37 of 37 prompts. Both runners now give each session coding-agent tools only. Newer Claude Code versions also expose a signed-in account's connectors, which made some prompts look like misses of the skill;
ACCOUNT_TOOLS=1turns the isolation off. These results are not comparable with earlier runs that used the full tool set. - Regression snapshot now pins the generator's output on a fixed test project.
✅ Compatibility
- Existing types and specs are unchanged. No new requirements: the skill still needs only Node.js 18+.
🔁 Update
npx skills updateArchistry 1.2.1: more reliable agents
Archistry 1.2.1: more reliable agents
Agents now pick the right diagrams, use the generators, and say when content is made up. All 11 behaviour cases pass, up from 6 of 11 in 1.2.0.
🏷️ Illustrative content is flagged
- New spec field
"illustrative": true | false.- With
true, the header ends with "(illustrative, confirm with the org)". - With
false, every fact came from you or your org.
- With
- The build asks until it's set, so placeholder owners, counts and fields no longer pass as real.
- Generators set it to
false, because they read real metadata.
🧭 Right diagrams, first time
- A process on a record with statuses (lead, case, opportunity, order handling) gets two diagrams: a business process for who does what, and a state lifecycle for the statuses. The build reminds you if the lifecycle is missing.
- Discovery produces personas and a process hierarchy, with each process marked in scope, later phase or out of scope.
- ERDs from a repo always run
erd-from-sfdx, instead of the agent reading object XML by hand. - Omni-Channel routing names the skills each agent group needs ("billing specialists" become
Skill: Billing).
🎯 Evals
- Behaviour: 11 of 11 cases pass, on Sonnet with three runs per case. The cases re-run with
archistry setupalso pass, 3 of 3. - New runner options:
--repeat 3runs each case several times; a case passes on a majority.--setupruns each case in a project witharchistry setupapplied.--modelpicks the model.
- Isolated sessions. Each session gets only coding-agent tools. Newer Claude Code versions otherwise bring in claude.ai connectors and Artifact tools, which compete with the skill.
--account-toolsturns this off. - More accurate scoring:
- the generator check reads the session's command log;
- the ERD check verifies the actual object list;
- scope accepts "in scope" and "out of scope" markings.
✅ Compatibility
- Existing specs build unchanged. A spec without
illustrativegets a NOTE asking for it, nothing more. - Example specs now set
"illustrative": true.
🔁 Update
npx skills updateArchistry 1.2: Salesforce Architects standards
Archistry 1.2: Salesforce Architects standards
Diagrams now follow the Salesforce Architects reference diagram guide, and one command makes Archistry the default for diagrams in a project.
🏛️ Salesforce Architects header card
- Every diagram gets a header card by default: a full-width band at least 10% of the diagram's height, the title and a one-line description (
subtitle) on a white panel, and the key on the right in even rows. It follows the kit of parts. - The build prints a note when the title or the description is missing.
"header": "banner"(navy band with status, version and date) and"header": "title"(plain text, key underneath) still work."header": truenow means the card.- The skill's instructions now include the guide's rules: one message per diagram, reading left to right and top to bottom, and a key whenever colours or lines carry meaning.
🗂️ Data model notation
- Fields:
#for the logical unique key,•for every other attribute (+and-still accepted). - New optional entity fields from the data model notation:
license:other(white, dark border) orextended(light grey).modeled:record-type(dashed border),virtual(no border) orvirtual-subtype(dotted border).
- Each style used appears in the key automatically.
🧭 archistry setup
- Adds a short "always use Archistry for diagrams" block to each agent's project instructions file:
CLAUDE.md(Claude Code).github/copilot-instructions.md(GitHub Copilot)AGENTS.md(Codex, Cursor, Copilot agent and others)GEMINI.md(Gemini CLI)- Cursor and Windsurf rule files
- It detects which agents the project uses.
--harnesspicks the files,--dry-runpreviews the changes and--removetakes the block out again. Your own text in those files is never touched. - The skill offers to run it the first time it diagrams in a project, and only runs it if you agree.
📅 Timelines
- Milestone labels near the right edge now sit left of the diamond instead of running off the grid.
- A bar label that doesn't fit wraps onto two lines inside the bar before it moves outside, and dependency lines route around outside labels.
🛠️ Fixes from real projects
- The command line works when the skill is installed through a symlink or Windows junction. Before, it ran without printing anything.
- The skill description is under the 1,024-character limit. It was over, which stopped the skill loading in some agents. It now also covers "document a process" style requests and lead or case handling.
🎯 Evals
- Trigger: 34 of 35 prompts (all 25 that should load the skill did, and 9 of 10 that shouldn't didn't). The one false positive is a generic AWS architecture prompt.
- Behaviour: 6 of 11 cases passed every automatic check. The misses are listed in
evals/README.md.
✅ Compatibility
- Diagram output: existing specs build and validate unchanged, apart from the new default header. Set
"header": "title"for the 1.1 look. - Gallery: the examples and the gallery still use the title header.
- Requirements: no new ones; the skill still needs only Node.js 18+. Prettier is a dev-only formatter for contributors.
🔁 Update
npx skills add abhishakec/archistryThen, once per project:
node <path-to-skill>/scripts/archistry.mjs setupArchistry 1.1.1: discovery polish
Archistry 1.1.1: discovery polish
Fixes and refinements to the discovery diagrams added in 1.1.
🔎 Discovery diagrams
- Vertical mind map.
discovery-mind-mapnow draws top-down: the programme on top, the branches across, and each branch's points stacked in a column underneath. It reads on a slide without scrolling sideways. Set"direction": "LR"for the old left-to-right layout. - Clearer current vs future legend.
current-future-statenow labels its arrows Replaces / changes to in the key, instead of "Real-time / API call".
🛠️ Fixes
- Unknown icons are reported. A card whose
iconkey does not exist now gets anicon not foundnote in the build output, instead of silently losing its icon. The Field Service icon in the current vs future example is fixed. - Legend labels for lines.
legendLabelscan now rename line-style entries in the key (for example{"sync": "Replaces"}), not just colours.
🎯 Triggering
- Discovery requests. The skill description now names value stream maps (cycle and wait times, hand-offs, bottlenecks) and workshop agendas (sessions, attendees, outputs). It also tells the agent to load the skill before exploring the repo or asking questions, because the starter specs show which facts are needed.
✅ Compatibility
- Existing diagrams unchanged. All other types build exactly as in 1.1.0.
🔁 Update
npx skills add abhishakec/archistryArchistry 1.1: discovery workshop diagrams
Archistry 1.1: discovery workshop diagrams
This release adds the diagrams a Salesforce discovery workshop produces, makes the HTML viewer calmer by default, and adds animated flow.
🔎 Six new Discover diagram types (46 in total)
persona-map: personas side by side with goals, pains, key tasks, channels and what Salesforce must do for them.process-hierarchy: L0 → L1 → L2 process decomposition, with each process marked in scope, a later phase or out of scope.value-stream-map: the end-to-end value stream with cycle time, wait time, hand-offs and bottlenecks.current-future-state: as-is vs to-be side by side, with what replaces, retires or adds what.discovery-mind-map: the workshop context on one page: objectives, stakeholders, current state, pain points, scope, constraints and open questions.workshop-plan: the workshop agenda by day and session, with attendees and outputs.
SKILL.md now suggests a typical discovery set, from framing (mind map, stakeholders, agenda) to closing (capability map, fit-gap, prioritisation).
✨ HTML viewer
- Highlight is now optional. Fading everything except the hovered or clicked box is a toolbar toggle (H) and starts off.
- Wireframe fix. Hovering a Lightning page wireframe no longer fades the whole page. Containers keep their contents visible, and a box with nothing to trace no longer dims the page.
- Animate. The toolbar toggle (L) runs dashes along every connector from source to target, like draw.io flow animation.
- Choose the defaults when you build. Add
"viewer": { "highlight": true, "animate": true }to the spec, or pass--highlight/--animatetobuildorconvert.--animatealso turns on draw.io's own flow animation (flowAnimation=1) on the connectors in the.drawio.
🖼️ Image export
- PNG/JPG fallback. On machines where the headless browser hands off to a background process (Edge on Windows), PNG and JPG export now falls back to a headless screenshot. It no longer fails with "headless browser did not finish rendering". Scale, JPG and
--transparentall work.
✅ Compatibility
- Nothing existing changes by default. All 40 existing types and their examples build to byte-identical
.drawioand.svgfiles. The new viewer options and the draw.io animation are opt-in.
🔁 Update
npx skills add abhishakec/archistryOr git pull in your skill folder.
Archistry 1.0: Salesforce diagrams, crafted from a sentence
Archistry 1.0: Salesforce diagrams, crafted from a sentence
The first release of Archistry, an AI-agent skill for Salesforce architects, business analysts
and consultants. Ask your agent in plain language. You get an editable draw.io file, an
interactive HTML page you can edit in the browser, and PNG, JPG or SVG images for your
documents.
✨ Highlights
- 40 diagram types across the whole project lifecycle: Discover (11), Architect (12),
Design (4), Agentforce (2), Build (4), Test (3) and Release (4). The types run from stakeholder
maps and swimlane processes to ERDs, Data Cloud mappings, sharing models, CI/CD pipelines and
cutover plans. - Agentforce design diagrams: an Agent Interaction Map and an Agent Instruction Diagram. On the
map, you can click a topic to open its instruction diagram. Both are inspired by the
Elements.cloud method. - The model describes, the engine draws. The agent writes a short JSON spec. Eleven layout
engines and an orthogonal router place the boxes and route the lines, so nothing overlaps and no
line runs through a box. - Salesforce notation: Salesforce ERD notation (crow's foot, master-detail), Diagramming
Framework cards and zones, and BPMN-style swimlanes. - About 200 embedded icons: Salesforce cloud, product, platform, industry and SLDS icons are
stored inside the file, so the diagram looks the same on any machine. - Every build is checked: overlaps, clipped labels, low contrast and crossings. A failed check
fails the build.
✏️ Edit anywhere
.drawio: open it in draw.io desktop, app.diagrams.net or VS Code. It is uncompressed XML, so it
diffs cleanly in git..html: one offline file. You can pan, zoom, search, follow connections and present. Press
E to move, resize, retext, recolour, add and connect boxes, with undo.- Lossless round trip:
archistry convertturns either format into the other without losing
anything.
🖼️ Images for documents
archistry export writes PNG, JPG or SVG with options for scale, dark theme, a transparent
background and single pages. SVG needs only Node; PNG and JPG use your local Chrome, Edge or
Chromium.
🧩 Start from real metadata
erd-from-sfdx: build an ERD from an SFDX projectmapping-from-csv: build a Data Cloud DLO → DMO mapping from a CSVflow-from-metadata: build a flow logic diagram from a.flow-meta.xml
🚀 Install
git clone https://github.com/abhishakec/archistry.git ~/.claude/skills/archistry
node ~/.claude/skills/archistry/scripts/archistry.mjs doctorYou need Node.js 18 or later. There are no dependencies to install. It works with Claude Code and
Claude desktop, and with GitHub Copilot, Cursor, Gemini CLI, Codex or any agent that can read files
and run node. See the README.
🔁 Coming from sf-drawio-diagrams?
Archistry replaces it; the old repository is archived.
- Install from this repository. You can remove the old skill folder.
- The scripts are now Node.js. Python is no longer needed.
- The command line is now
node scripts/archistry.mjs.
📄 License
The code and documentation are MIT. The bundled icons and fonts keep their own terms; see
THIRD-PARTY-NOTICES.md.
Archistry is an unofficial community project, not affiliated with Salesforce or Elements.cloud.
