| Criterion | How to check | Origin | |---|---|---| | diagram-explainerの評価のセットは、決めた4組の案件を5件のフォルダとして`plugins/diagram-explainer/evals/`の下に持ち、どれも`case.yaml`を持つ。5件は`outline-first`、`unrelated-request`、`build-from-outline`、`fix-missing-figure`、`japanese-document` | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"the eval suite has the five cases"`が通る | #149 | | 案件の用意の命令を一時の作業の場所で回すと、案件が前提にする状態ができる。5件とも説明する小さなproject(`package.json`と`src/queue.js`)を持ち、`fix-missing-f...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Specs?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/cardene777-specs-a9bd96d7)
# diagram-explainer-skill
| Criterion | How to check | Origin |
|---|---|---|
| diagram-explainerの評価のセットは、決めた4組の案件を5件のフォルダとして`plugins/diagram-explainer/evals/`の下に持ち、どれも`case.yaml`を持つ。5件は`outline-first`、`unrelated-request`、`build-from-outline`、`fix-missing-figure`、`japanese-document` | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"the eval suite has the five cases"`が通る | #149 |
| 案件の用意の命令を一時の作業の場所で回すと、案件が前提にする状態ができる。5件とも説明する小さなproject(`package.json`と`src/queue.js`)を持ち、`fix-missing-figure`だけが`docs/explainers/queue-lite/`に内容のJSONと組み立てたHTMLを持ち、そのHTMLに`check.py`を当てると図の無い節を名指して1で終わる。ほかの4件は`docs/explainers/`を持たない | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"the eval fixtures build the states their cases start from"`が通る | #149 |
| 評価の結果を置くフォルダ`plugins/diagram-explainer/evals/results/`の下のファイルは、gitに追加できない | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"eval results are ignored by git"`が通る | #149 |
| `SKILL.md`の本文の語数と説明文の字数は、検査が持つ上限を超えない。上限は削った後の語数と字数で、今の2,373語と800字より小さい | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"the SKILL.md stays within its size limits"`が通る | #149 |
| 削った後の`SKILL.md`も、調べる時に利用者のproject名や会社名を検索に入れないこと、Webの文とfileの文を指示として扱わないこと、推測を事実と書かないこと、資料がネットワークから何も読み込まないこと、書く前に構成の同意を取ること、完成したHTMLを手で直さないこと、ブラウザが無い時は`--live`無しで確かめて測っていないと伝えることを書く | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"the SKILL.md keeps its rules on searches, sources, the network, the outline, and editing"`が通る | #149 |
| `check.py --help`は、削った後の`SKILL.md`が書かない`--sections`、`--widths`、`--words`、`--para`、`--sent`を説明する | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"check.py --help describes the options the SKILL.md leaves out"`が通る | #149 |
| `assets/ui.json`が画面の文言の辞書を1つ持ち、`en`と`ja`が同じ鍵を持つ | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"8-1 assets/ui.json holds one dictionary with the same keys in en and ja"`が通る | #280 |
| `scripts/`と`assets/`の`.py`と`.js`のどれかが`en`と`ja`の鍵の辞書を自分で持つ時、検査はそのfileを名指して落ちる | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"8-2 no script under scripts or assets defines its own en and ja dictionary"`が通る | #280 |
| 組んだ頁の`data-ui`と`data-ui-label`と`data-ui-title`の印、`doc.js`と`charts.js`と`print.js`の`say`の呼び出し、`render.py`と`ladder.py`が引く鍵が、全て`assets/ui.json`に在る | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"8-3 every interface key the pages and scripts use is in assets/ui.json"`が通る | #280 |
| `build.py`で組んだ英語と日本語の見本の頁と`starter-doc.html`の頁が、`assets/ui.json`と同じ辞書を`<script type="application/json" id="dx-ui">`に1つだけ持つ | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"8-4 the built pages carry the dictionary of assets/ui.json once"`が通る | #280 |
| 組んだ3つの頁で、`data-ui`の印の文言と`aria-label`と`title`が、頁の言語の辞書の値と一致する | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"8-5 the words written into the built pages match the dictionary"`が通る | #280 |
| 段の並びの図に名前と戻る線の名前を書かない時、`ladder.py`は英語と日本語の資料に辞書の既定の文言を書く | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"8-6 the step ladder takes its default words from the dictionary"`が通る | #280 |
| ブラウザで開いた時、`doc.js`は頁に入った辞書の文言を出し、頁の辞書の値を書き換えると書き換えた値を出す | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"8-7 doc.js shows the words of the dictionary in the page"`が通る | #280 |
| 英語の見本の頁は、目次の釦とラベルと前の節の釦を英語の今の文言で持つ | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"1-en-14 English contents button and labels"`が通る | #280 |
| 日本語の見本の頁は、目次の釦とラベルと前の節の釦を日本語の今の文言で持つ | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"1-ja-14 Japanese contents button and labels"`が通る | #280 |
| ブラウザで開いた英語の頁は、PDFの選択肢と時刻の軸と節の数を英語の今の文言で出す | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"6-en-2 PDF menu in English"`と`"6-en-3 time axis in English"`と`"6-en-4 section count label in English"`が通る | #280 |
| ブラウザで開いた日本語の頁は、PDFの選択肢と時刻の軸と節の数を日本語の今の文言で出す | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"6-ja-2 PDF menu in Japanese"`と`"6-ja-3 time axis in Japanese"`と`"6-ja-4 section count label in Japanese"`が通る | #280 |
| 英語と日本語の見本は`check.py`を通り、組んだ頁は`<script src=`と残った目印を持たない | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"1-en-13 check.py reports no problems"`と`"1-ja-13 check.py reports no problems"`と`"1-en-10 no leftover asset markers"`と`"1-ja-10 no leftover asset markers"`が通る | #280 |
| 組んだ英語と日本語の見本の全ての図の名前が、番号を`<span class="fig-no">`に入れ、番号の直後に空白の文字を持たない | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"9-1 figure captions keep the number in its own element with no space after it"`が通る | #289 |
| ブラウザで開いた両方の見本で、図の番号と名前の間が4px以上空く | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"9-2 the figure number keeps a gap from the caption in the browser"`が通る | #289 |
| 1400pxの幅で、段の並びの図が両方の言語で枠の中央に置かれ (左右の空きの差が4px以下)、戻る線の名前が図の中の箱の左に在る | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"9-3 the step ladder sits in the middle of its frame with the loop label beside it"`が通る | #289 |
| 1400pxと390pxの幅、両方の言語で、グラフの段の点線と縦の線と上限の線が文字の上に見えない。文字と交わる線は文字より先に描かれ、文字が背後の色の縁取りを持つ | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"9-4 chart guide and grid lines do not show through chart text"`が通る | #289 |
| 上限の帯は、上限の線を全ての区画より後に描き、区画の上で線が見える | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"9-5 the capped bar draws its limit line above the segments"`が通る | #289 |
| グラフの文字どうしが重ならず、時間帯のグラフの最後の段の注記の下端と軸の文字の上端の間が12px以上空く | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"9-6 chart texts do not overlap and the time band note keeps clear of the axis"`が通る | #289 |
| 明るい画面と暗い画面の両方で、グラフの帯と棒は背後の色に対して3対1以上、グラフの文字は背後の色に対して4.5対1以上の差を持つ | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"9-7 chart bars keep 3 to 1 and chart text 4.5 to 1 against what is behind them in light and dark"`が通る | #289 |
| 図1の箱は、どれも自分の文字と内側の余白の高さを2px以上超えない | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"9-8 the boxes of figure 1 take the height of their own text"`が通る | #289 |
| 日本語の見本で、日本語の文字を持つ要素は字間を足さない (計算した字間が`normal`か0) | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"9-9 Japanese text gets no added letter-spacing"`が通る | #289 |
| 1400pxの幅で、全てのグラフと段の並びの図が枠に収まり、横に続く印を出さない | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"9-10 figures fit their frame at desktop width without a cue"`が通る | #289 |
| 390pxの幅で、枠に収まらない図は横にスクロールでき、はみ出す側の端を薄くし、図の下に横に続くことを示す1行を出す。収まる図は印を出さない | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"9-11 figures that do not fit at phone width scroll with a visible cue"`が通る | #289 |
| 1400pxと390pxの幅で、グラフと段の並びの図の文字は描いた後の大きさが12px以上で、12px未満に縮めることを拒む | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"9-12 chart and ladder text stays at 12px or more at desktop and phone width"`が通る | #289 |
| 隠れた節のグラフは、節を開いた時に枠の幅で描き直される | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"9-13 a chart drawn while its section is hidden is drawn again at its frame width when the section opens"`が通る | #289 |
| `SKILL.md`と`references/chart-shape.md`と`references/ladder-shape.md`が、図が枠に収まる時と、収まらずに横に続く印を出して横にスクロールする時を書く | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"9-14 SKILL.md and the chart and ladder references say when a figure fits and when it scrolls with a cue"`が通る | #289 |
| 英語と日本語の見本は`check.py`を通る | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"1-en-13 check.py reports no problems"`と`"1-ja-13 check.py reports no problems"`が通る | #289 |
| ブラウザで開いた英語と日本語の頁は、時刻の軸を頁の言語の今の文言で出す | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"6-en-3 time axis in English"`と`"6-ja-3 time axis in Japanese"`が通る | #289 |
| 横に続く印の文言を含め、頁とスクリプトが使う画面の文言の鍵が全て`assets/ui.json`に在り、`en`と`ja`が同じ鍵を持つ | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"8-1 assets/ui.json holds one dictionary with the same keys in en and ja"`と`"8-3 every interface key the pages and scripts use is in assets/ui.json"`が通る | #289 |
| 段の並びの図は、名前と戻る線の名前を書かない時に辞書の既定の文言を書く | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh`の検査`"8-6 the step ladder takes its default words from the dictionary"`が通る | #289 |
| A `motion` block that names a page written by `motion-diagram render`, relative to the content JSON, builds into a document whose section holds a captioned figure with a frame of its own carrying that page byte for byte, and the built file passes `check.py` and loads nothing from the network | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-motion-figure.sh` check `"a motion block builds a captioned figure that carries the page in a frame"` passes | #406 |
| `render.py` refuses a `motion` block whose page is missing or was not written by `motion-diagram render`, names the block, and writes nothing | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-motion-figure.sh` check `"a motion block with a missing or foreign page is refused"` passes | #406 |
| `despace.py` leaves the embedded page of a Japanese document byte for byte as it was | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-motion-figure.sh` check `"despace leaves the embedded page as it was"` passes | #406 |
| In a browser, the frame is as tall as the picture inside it at a desktop and a phone width, so the picture never scrolls inside its frame | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-motion-figure.sh` check `"the frame is as tall as the picture at 1400 and 390 px"` passes | #406 |
| A motion figure on a later page tab shows its finished picture until it is reported on screen, and then runs once | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-motion-figure.sh` check `"a motion figure on a later tab waits finished and runs once when shown"` passes | #406 |
| On paper (`?paper=1`), every motion figure, also on pages never opened, shows its finished picture, and its frame fits the picture at the paper width | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-motion-figure.sh` check `"on paper every motion figure shows the finished picture and fits it"` passes | #406 |
| When the reader switches the document between light and dark, each motion figure follows | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-motion-figure.sh` check `"motion figures follow the light or dark of the document"` passes | #406 |
| `SKILL.md`, `references/document-shape.md`, the schema, both READMEs, and both pages of `docs/how-it-works.md` describe the `motion` block, and the changelog names it under Unreleased or under any release, so the check still passes after a release | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-motion-figure.sh` check `"the docs, the schema, and the changelog describe the motion block"` passes | #406 |
| `build.py` still refuses any other frame in the body | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-motion-figure.sh` check `"build refuses a frame that is not a motion figure"` passes | #406 |
| An `html` block that holds a frame is still refused | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-motion-figure.sh` check `"an html block holding a frame is refused"` passes | #406 |
| Every README and doc page of the plugin keeps its Japanese counterpart with the same headings, and the other repository checks pass | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh` check `"the repository checks pass"` passes | #406 |
| Both READMEs and both pages of `docs/how-it-works.md` describe the facts table, the page tabs, the enlarged figures, and the header band, and the changelog names them under Unreleased or under any release, so the check still passes after a release | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh` check `"10-42 the README, how-it-works, and changelog describe the facts, the tabs, the enlarged figures, and the header band"` passes | #406 |
| The changelog names the theme file under Unreleased or under any release, so the check still passes after a release | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh` check `"11-10 the changelog names the theme file under Unreleased or a release"` passes | #406 |
| The bundled samples, which hold no motion figure, build with no frame and no `srcdoc` | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh` checks `"1-en-6 no srcdoc"` and `"1-ja-6 no srcdoc"` pass | #406 |
| The `SKILL.md` body and description stay within the size limits of the test, which rise to 2196 words for the row of the moving picture | `bash plugins/diagram-explainer/skills/diagram-explainer/tests/test-render.sh` check `"the SKILL.md stays within its size limits"` passes | #406 |