Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
fix(hermes): describe all supported diagram modes in discovery
Rudy Celekli8e5c9b18f5d9
diff --git a/integrations/hermes-agent/__init__.py b/integrations/hermes-agent/__init__.pyindex b4e02372..f483025e 100644--- a/integrations/hermes-agent/__init__.py+++ b/integrations/hermes-agent/__init__.py@@ -13,9 +13,11 @@ from pathlib import Path_PLUGIN_DIR = Path(__file__).resolve().parent_SKILL_DESCRIPTION = ("Create polished, validated architecture, workflow, sequence, data-flow, "- "and lifecycle diagrams as standalone HTML. Use when the user asks to "+ "lifecycle, ERD, class, tree, timeline, and waterfall diagrams as standalone HTML. "+ "Use when the user asks to ""visualize system architecture, infrastructure, workflows, API sequences, "- "data pipelines, or state machines."+ "data pipelines, state machines, database schemas, class relationships, "+ "hierarchies, schedules, or timing breakdowns.")diff --git a/integrations/hermes-agent/test/type-discovery.test.mjs b/integrations/hermes-agent/test/type-discovery.test.mjsnew file mode 100644index 00000000..70c57dc4--- /dev/null+++ b/integrations/hermes-agent/test/type-discovery.test.mjs@@ -0,0 +1,12 @@+import assert from 'node:assert/strict';+import test from 'node:test';+import { spawnSync } from 'node:child_process';+import { fileURLToPath } from 'node:url';+test('Hermes discovery describes all ten supported diagram modes', () => {+ const plugin=fileURLToPath(new URL('../__init__.py',import.meta.url));+ const python=process.env.PYTHON || (process.platform==='win32'?'py':'python3');+ const args=!process.env.PYTHON && process.platform==='win32'?['-3']:[];+ const run=spawnSync(python,[...args,'-c',`import importlib.util\nfrom types import SimpleNamespace\nspec=importlib.util.spec_from_file_location('archify', ${JSON.stringify(plugin)})\nmod=importlib.util.module_from_spec(spec);spec.loader.exec_module(mod)\nmod.register(SimpleNamespace(register_skill=lambda *a, **kw: print(kw['description'])))`],{encoding:'utf8'});+ assert.equal(run.status,0,run.stderr);+ for(const mode of ['architecture','workflow','sequence','data-flow','lifecycle','ERD','class','tree','timeline','waterfall']) assert.match(run.stdout,new RegExp(`\\b${mode}\\b`,'i'),mode);+});