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
Merge current main and preserve unquoted attribute diagnostic evidence
yearthmain66b46cfa63eb
diff --cc archify.zipindex b19ade57,f7fdf0f8..f917c491Binary files differdiff --cc archify/test/render-output-checks.test.mjsindex 31e3a4ad,7b02ba37..82ee372f--- a/archify/test/render-output-checks.test.mjs+++ b/archify/test/render-output-checks.test.mjs@@@ -1,5 -1,5 +1,6 @@@import { test } from 'node:test';import assert from 'node:assert/strict';++import { parseFragment } from 'parse5';import { execFileSync } from 'node:child_process';import fs from 'node:fs';import os from 'node:os';@@@ -11,6 -11,6 +12,24 @@@ const skillRoot = path.resolve(__dirnamconst tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-checks-'));const checker = path.join(skillRoot, 'scripts/check-render-output.mjs');++test('render output check: finite_svg preserves slashes in unquoted HTML attribute values', () => {++ for (const [markup, expected] of [++ ['<line x1=NaN/>', 'NaN/'],++ ['<line x1=NaN />', 'NaN'],++ ['<line x1="NaN"/>', 'NaN'],++ ['<line x1=NaN/ x2=10 />', 'NaN/'],++ ['<line x1=NaN/></line>', 'NaN/'],++ ]) {++ const svg = parseFragment(`<svg>${markup}</svg>`).childNodes[0];++ const value = svg.childNodes[0].attrs.find((attr) => attr.name === 'x1').value;++ assert.equal(value, expected, markup);++ const { result } = checkHtml('unquoted-attribute-slash', markup);++ const check = result.checks.find((entry) => entry.name === 'finite_svg');++ assert.equal(check.ok, false, markup);++ assert.deepEqual(check.details, [`line x1="${value}"`], markup);++ }++});++function checkHtml(name, svgBody, profile = 'standard', viewBox = '0 0 240 160') {const htmlPath = path.join(tmp, `${name}.html`);fs.writeFileSync(htmlPath, `<!doctype html><html><body><svg viewBox="${viewBox}" data-quality-profile="${profile}">${svgBody}</svg></body></html>`);