dym-archify-ci-diagram-gate

dym-archify-ci-diagram-gate is a skill for Claude Code from Rheinmir/setup. It costs 67 tokens per session (1,951 once invoked), scanned A, original, MIT.

A continuous-integration (CI) check for architecture-diagram source files stored as JSON in a repository. It validates the files and can render HTML copies as downloadable build artifacts.

In plain words
What is it for?
Use it to add a CI job that checks diagram JSON files and optionally publishes their rendered HTML files.
Why use it?
It prevents diagrams from becoming outdated or invalid without anyone noticing. A pull request can be blocked when its diagram source fails validation.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is run: bash scripts/check-diagrams.sh.

Good fit Use it to add a CI job that checks diagram JSON files and optionally publishes their rendered HTML files.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Rheinmir/setup
agentmods
npx agentmods add skills/rheinmir/setup/dym-archify-ci-diagram-gate

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dym-archify-ci-diagram-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/rheinmir/setup/dym-archify-ci-diagram-gate/github.svg)](https://agentmods.dev/skills/rheinmir/setup/dym-archify-ci-diagram-gate)
Your own site
<a href="https://agentmods.dev/skills/rheinmir/setup/dym-archify-ci-diagram-gate"><img src="https://agentmods.dev/badge/skills/rheinmir/setup/dym-archify-ci-diagram-gate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dym-archify-ci-diagram-gate

Your own site · 80×15
<a href="https://agentmods.dev/skills/rheinmir/setup/dym-archify-ci-diagram-gate"><img src="https://agentmods.dev/badge/skills/rheinmir/setup/dym-archify-ci-diagram-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,951 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00067 $0.01951
Opus 5.5 $0.00027 $0.00780
Sonnet 5.5 $0.00013 $0.00390
Haiku 4.5 $0.00007 $0.00195

Measured yesterday against content hash 82581ce05d9c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dym-archify-ci-diagram-gate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.overstack/doyourmagic/archify/skills/dym-archify-ci-diagram-gate/SKILL.md · 188 lines

How it starts

The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: dym-archify-ci-diagram-gate — Chốt cổng CI cho sơ đồ trong dự án của bạn

Vì sao dùng: sơ đồ kiến trúc bị thối là vì không ai bắt buộc chúng phải đúng. Nếu nguồn JSON của sơ đồ nằm trong repo, CI có thể từ chối merge khi nguồn không còn validate được.

Kết quả nhận được: một job CI chặn PR, và (tuỳ chọn) các file HTML đã render làm artifact tải về.

Đây là ví dụ viết mới, tối thiểu. Nó không phải bản sao của .github/workflows/ci.yml trong repo Archify — file đó build và test chính Archify (ma trận Node 18/20/22/24, test trình duyệt thật, decode WebM, kiểm định danh release) và không liên quan gì tới việc bạn dùng Archify.

Bố cục repo giả định

docs/diagrams/
  runtime.architecture.json
  release.workflow.json
  checkout.sequence.json

Quy ước đặt tên <tên>.<type>.json là thứ giữ script bên dưới ngắn — loại sơ đồ suy ra từ chính tên file. Nếu bạn không theo quy ước này, hãy khai một bảng ánh xạ tường minh.

Script cổng

scripts/check-diagrams.sh:

#!/usr/bin/env bash
set -uo pipefail

A="${ARCHIFY_HOME:?đặt ARCHIFY_HOME trỏ vào thư mục skill archify}"
CLI="node $A/bin/archify.mjs"
failed=0

shopt -s nullglob
for f in docs/diagrams/*.json; do
  base="$(basename "$f" .json)"
  type="${base##*.}"
  case "$type" in
    architecture|workflow|sequence|dataflow|lifecycle) ;;
    *) echo "BỎ QUA  $f (không suy ra được loại từ tên file)"; continue ;;
  esac

  $CLI validate "$type" "$f" --quality showcase --json > "/tmp/${base}.validate.json"
  rc=$?
  case $rc in
    0) echo "OK      $f" ;;
    2) echo "LỖI GỌI $f — dòng lệnh sai, không phải lỗi nội dung sơ đồ"; failed=1 ;;
    *) echo "HỎNG    $f"; failed=1
       python3 -c "import json,sys;[print('  ',d['code'],'—',d['message']) for d in json.load(open(sys.argv[1])).get('diagnostics',[])]" \
         "/tmp/${base}.validate.json" ;;
  esac
done

exit $failed

Ba điểm cố ý:

  • Phân biệt rc 2 với rc 1. 2 nghĩa là script của bạn gọi sai (loại sơ đồ lạ, cờ lạ, --repo-root sai chỗ). Gộp chung với 1 sẽ khiến bạn đi sửa sơ đồ trong khi lỗi nằm ở CI.
  • Ép --quality showcase. Nếu không, một biên lai 4-check có thể trôi qua và bạn tưởng đã nghiệm thu showcase.
  • In diagnostics[].code, không in stack. Mã ổn định, thông điệp thì không.

Read the full file on GitHub · 188 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 188 lines · 67 tokens per session scan A 82581ce05d9c

Subscribe to this mod's changes

dym-archify-ci-diagram-gate is a skill published in the GitHub repository Rheinmir/setup (11 stars, last pushed 20d ago), licensed MIT. It adds 67 tokens to every session and 1,951 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-07.

Related

dym-archify-ci-diagram-gate compared with skills from other repositories

dym-archify-ci-diagram-gate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dym-archify-ci-diagram-gateRheinmir/setupSkill1120d agoMITA67Claude Code
chinese-git-workflowjnMetaCode/superpowers-zhSkill8.5k12d agoMITA69Claude Code
atmos-profilescloudposse/atmosSkill1.4ktodayApache-2.0A35Claude Code
webhook-managementhoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA56Claude Code, Codex
monorepo-managementwshobson/agentsSkill42k2d agoMITC54Claude Code
managing-github-actions-secretsPostHog/posthog-fossSkill728todayMITA67Claude Code, Codex
postman-newman-automationLambdaTest/agent-skillsSkill3912d agoMITA156Claude Code, Codex