diff --git a/README.md b/README.md index f9b808c..df88de8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# drawio-main +# diagrams-drawio TypeScript tools for deterministic Diagram IR-to-Draw.io generation, loss-aware round trips, transactional editing, semantic analysis, synchronization, offline publishing, and visual verification. diff --git a/SKILL.md b/SKILL.md index 695c130..ede552f 100644 --- a/SKILL.md +++ b/SKILL.md @@ -1,5 +1,5 @@ --- -name: drawio-main +name: diagrams-drawio description: Always use when user asks to create, generate, draw, or design a diagram, flowchart, architecture diagram, ER diagram, sequence diagram, class diagram, network diagram, mockup, wireframe, or UI sketch, or mentions draw.io, drawio, drawoi, .drawio files, or diagram export to PNG/SVG/PDF. license: Proprietary metadata: @@ -8,6 +8,7 @@ metadata: spec: agentskills.io/specification origin-repository: git@github.ibm.com:CTOTools-skills-code-agent/drawio-main.git origin-path: $HOME/projects-ibm/cognitive-architect/workspace-skills-code-agent/drawio-main + repository: https://gitea.lego-cloud.eu/home-v1-skills-code-agent/diagrams-drawio compatibility: Designed for Cline, Claude Code, GitHub Copilot, OpenAI Codex, and other compatible agent environments --- diff --git a/examples/platform-v2.yaml b/examples/platform-v2.yaml index f61e114..c59f427 100644 --- a/examples/platform-v2.yaml +++ b/examples/platform-v2.yaml @@ -1,7 +1,7 @@ version: 2 title: Platform views provenance: - source: drawio-main example + source: diagrams-drawio example pages: - id: system title: System diff --git a/references/capabilities.md b/references/capabilities.md index 1730259..c5ede4d 100644 --- a/references/capabilities.md +++ b/references/capabilities.md @@ -1,4 +1,4 @@ -# drawio-main — Capabilities +# diagrams-drawio — Capabilities This file lists all capabilities an agent can use from this skill. diff --git a/references/maintenance.md b/references/maintenance.md index b6c425d..97fab3b 100644 --- a/references/maintenance.md +++ b/references/maintenance.md @@ -1,4 +1,4 @@ -# drawio-main — Maintenance Guide +# diagrams-drawio — Maintenance Guide This document is for **developers** maintaining or extending the `drawio-tools` CLI. For agent usage instructions, see [SKILL.md](../SKILL.md). @@ -45,7 +45,7 @@ and `$HOME/.claude/skills`, so the repo working copy stays the single source of ```bash cd /scripts -task deploy -- --skill-dir="/absolute/path/to/drawio-main" +task deploy -- --skill-dir="/absolute/path/to/diagrams-drawio" ``` Verify the CLI works after installation: diff --git a/references/routing-best-practices.md b/references/routing-best-practices.md index a5e1c1f..41e99df 100644 --- a/references/routing-best-practices.md +++ b/references/routing-best-practices.md @@ -1,4 +1,4 @@ -# drawio-main — Connector Routing Best Practices +# diagrams-drawio — Connector Routing Best Practices ## Connector Routing Best Practices (Zero-Overlap Guarantee) diff --git a/references/rules-layout.md b/references/rules-layout.md index 3ca998f..efc9633 100644 --- a/references/rules-layout.md +++ b/references/rules-layout.md @@ -1,4 +1,4 @@ -# drawio-main — Layout Rules +# diagrams-drawio — Layout Rules Connector placement and layout rules for draw.io diagrams generated by this skill. These rules are **MANDATORY** — apply them when generating any diagram. diff --git a/references/rules-style.md b/references/rules-style.md index d63b87c..a0c2a5f 100644 --- a/references/rules-style.md +++ b/references/rules-style.md @@ -1,4 +1,4 @@ -# drawio-main — Style Rules +# diagrams-drawio — Style Rules Visual appearance and sizing rules for draw.io diagrams generated by this skill. These rules are **MANDATORY** — apply them when generating any diagram. diff --git a/schemas/diagram-ir-v2.schema.json b/schemas/diagram-ir-v2.schema.json index 4c95610..530578b 100644 --- a/schemas/diagram-ir-v2.schema.json +++ b/schemas/diagram-ir-v2.schema.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://gitea.lego-cloud.eu/home-v1-skills-code-agent/drawio-main/raw/branch/main/schemas/diagram-ir-v2.schema.json", - "title": "drawio-main Diagram IR v2", + "$id": "https://gitea.lego-cloud.eu/home-v1-skills-code-agent/diagrams-drawio/raw/branch/test/schemas/diagram-ir-v2.schema.json", + "title": "diagrams-drawio Diagram IR v2", "type": "object", "required": ["version", "pages"], "properties": { diff --git a/scripts/src/actions/build/action.test.ts b/scripts/src/actions/build/action.test.ts index 7cce73b..c7252f2 100644 --- a/scripts/src/actions/build/action.test.ts +++ b/scripts/src/actions/build/action.test.ts @@ -83,7 +83,7 @@ test("build serializes every v2 page and honors explicit geometry and waypoints" const input = join(dir, "platform.yaml"); const output = join(dir, "platform.drawio"); try { - writeFileSync(input, `version: 2\ntitle: Platform\ntheme: zinc\nprovenance: { source: test }\nproperties: { audience: engineering }\nextensions: { owner: drawio-main }\npages:\n - id: system\n title: System\n properties: { view: logical }\n layout: { type: manual }\n nodes:\n - id: client\n label: Client\n kind: actor\n properties: { tier: edge }\n provenance: { source: inventory }\n extensions: { critical: true }\n geometry: { x: 40, y: 80, width: 120, height: 60 }\n - id: api\n label: API\n geometry: { x: 300, y: 80, width: 120, height: 60 }\n edges:\n - id: call\n source: client\n target: api\n kind: request\n properties: { protocol: HTTPS }\n waypoints: [{ x: 230, y: 110 }]\n - id: deployment\n title: Deployment\n nodes:\n - { id: server, label: Server }\n edges: []\n`, "utf8"); + writeFileSync(input, `version: 2\ntitle: Platform\ntheme: zinc\nprovenance: { source: test }\nproperties: { audience: engineering }\nextensions: { owner: diagrams-drawio }\npages:\n - id: system\n title: System\n properties: { view: logical }\n layout: { type: manual }\n nodes:\n - id: client\n label: Client\n kind: actor\n properties: { tier: edge }\n provenance: { source: inventory }\n extensions: { critical: true }\n geometry: { x: 40, y: 80, width: 120, height: 60 }\n - id: api\n label: API\n geometry: { x: 300, y: 80, width: 120, height: 60 }\n edges:\n - id: call\n source: client\n target: api\n kind: request\n properties: { protocol: HTTPS }\n waypoints: [{ x: 230, y: 110 }]\n - id: deployment\n title: Deployment\n nodes:\n - { id: server, label: Server }\n edges: []\n`, "utf8"); const result = run(input, 0, output); assert.deepEqual(result.summary, { nodes: 3, edges: 1, pages: 2 }); const xml = readFileSync(output, "utf8");