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
ci: smoke test packaged archify cli
tt-a1i8d2f31782625
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 2d11e246..dd26a3fd 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -39,3 +39,29 @@ jobs:echo '::error::archify.zip is stale — run scripts/build-zip.sh and commit the result'exit 1fi++ package-smoke:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4+ - uses: actions/setup-node@v4+ with:+ node-version: 22+ - name: Install and validate packaged skill+ run: |+ set -euo pipefail+ rm -rf /tmp/archify-package+ mkdir -p /tmp/archify-package+ unzip -q archify.zip -d /tmp/archify-package+ cd /tmp/archify-package/archify+ npm ci --no-audit --no-fund++ node bin/archify.mjs --help+ node bin/archify.mjs render workflow examples/agent-tool-call.workflow.json /tmp/workflow.html+ node bin/archify.mjs check /tmp/workflow.html++ node bin/archify.mjs validate architecture examples/web-app.architecture.json --json+ node bin/archify.mjs validate workflow examples/agent-tool-call.workflow.json --json+ node bin/archify.mjs validate sequence examples/cache-miss-request.sequence.json --json+ node bin/archify.mjs validate dataflow examples/product-analytics.dataflow.json --json+ node bin/archify.mjs validate lifecycle examples/agent-run.lifecycle.json --jsondiff --git a/archify.zip b/archify.zipindex 4e7acec8..0926106d 100644Binary files a/archify.zip and b/archify.zip differdiff --git a/archify/scripts/check-render-output.mjs b/archify/scripts/check-render-output.mjsindex 2e110377..5e8e6a68 100644--- a/archify/scripts/check-render-output.mjs+++ b/archify/scripts/check-render-output.mjs@@ -70,6 +70,7 @@ function collectArrows(fragment) {for (const tag of fragment.matchAll(/<(path|line)\b[^>]*>/gi)) {const raw = tag[0];if (!/\bclass="[^"]*\ba-(?:default|emphasis|security|dashed)\b/.test(raw)) continue;+ if (!/\bmarker-end=/.test(raw)) continue;const attrs = parseAttrs(raw);const segments = tag[1].toLowerCase() === 'line'? lineSegments(attrs)diff --git a/archify/test/render-output-checks.test.mjs b/archify/test/render-output-checks.test.mjsindex 0d0c5967..bba8df4a 100644--- a/archify/test/render-output-checks.test.mjs+++ b/archify/test/render-output-checks.test.mjs@@ -24,7 +24,7 @@ function checkHtml(name, svgBody) {test('render output check: accepts orthogonal arrows away from legend', () => {const { code, result } = checkHtml('clean', `- <path d="M 20 20 L 120 20 L 120 60" class="a-default" stroke-width="1.4"/>+ <path d="M 20 20 L 120 20 L 120 60" class="a-default" stroke-width="1.4" marker-end="url(#arrowhead)"/><!-- Legend --><text x="40" y="120" class="t-primary" font-size="10">Legend</text><rect x="40" y="132" width="14" height="9" class="c-backend"/>@@ -36,7 +36,7 @@ test('render output check: accepts orthogonal arrows away from legend', () => {test('render output check: rejects two-point diagonal arrows', () => {const { code, result } = checkHtml('diagonal', `- <path d="M 20 20 L 120 80" class="a-default" stroke-width="1.4"/>+ <path d="M 20 20 L 120 80" class="a-default" stroke-width="1.4" marker-end="url(#arrowhead)"/><!-- Legend --><text x="40" y="120" class="t-primary" font-size="10">Legend</text>`);@@ -48,7 +48,7 @@ test('render output check: rejects two-point diagonal arrows', () => {test('render output check: rejects arrows crossing legend text', () => {const { code, result } = checkHtml('legend-crossing', `- <path d="M 20 112 L 180 112" class="a-dashed" stroke-width="1.4"/>+ <path d="M 20 112 L 180 112" class="a-dashed" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/><!-- Legend --><text x="40" y="120" class="t-primary" font-size="10">Legend</text><rect x="40" y="132" width="14" height="9" class="c-backend"/>@@ -60,4 +60,16 @@ test('render output check: rejects arrows crossing legend text', () => {assert.match(check.details[0], /Legend/);});+test('render output check: ignores unmarked sequence lifelines near legend', () => {+ const { code, result } = checkHtml('lifeline-near-legend', `+ <path d="M 60 20 L 60 126" class="a-default" stroke-width="0.8" stroke-dasharray="3,7"/>+ <!-- Legend -->+ <text x="40" y="120" class="t-primary" font-size="10">Legend</text>+ <path d="M 120 136 L 154 136" class="a-default" stroke-width="1.4" stroke-dasharray="3,5" marker-end="url(#arrowhead)"/>+ <text x="163" y="139" class="t-muted" font-size="8">return</text>+ `);+ assert.equal(code, 0);+ assert.equal(result.ok, true);+});+process.on('exit', () => fs.rmSync(tmp, { recursive: true, force: true }));