jh-math-geometry

jh-math-geometry is a skill for Claude Code, Codex from mathruffian-dot/teaching-exam-skills. It costs 399 tokens per session (2,569 once invoked), scanned A, original, MIT.

A tool for generating labeled SVG and PNG diagrams of school-level geometry figures. SVG is a scalable drawing format, while PNG is a standard image format.

In plain words
What is it for?
Use it to draw triangles, quadrilaterals, circles, solids, graphs, and related geometry figures for worksheets, lessons, presentations, Word documents, or PowerPoint slides.
Why use it?
It provides ready-made diagrams for geometry problems and teaching materials, including shape labels, measurements, angle marks, and other annotations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to draw triangles, quadrilaterals, circles, solids, graphs, and related geometry figures for worksheets, lessons, presentations, Word documents, or PowerPoint slides.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mathruffian-dot/teaching-exam-skills/jh-math-geometry
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mathruffian-dot/teaching-exam-skills --skill jh-math-geometry
Clone the repo
git clone --depth 1 https://github.com/mathruffian-dot/teaching-exam-skills

Made for: Claude Code, Codex.

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 jh-math-geometry

README.md
[![agentmods](https://agentmods.dev/badge/skills/mathruffian-dot/teaching-exam-skills/jh-math-geometry/github.svg)](https://agentmods.dev/skills/mathruffian-dot/teaching-exam-skills/jh-math-geometry)
Your own site
<a href="https://agentmods.dev/skills/mathruffian-dot/teaching-exam-skills/jh-math-geometry"><img src="https://agentmods.dev/badge/skills/mathruffian-dot/teaching-exam-skills/jh-math-geometry/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 jh-math-geometry

Your own site · 80×15
<a href="https://agentmods.dev/skills/mathruffian-dot/teaching-exam-skills/jh-math-geometry"><img src="https://agentmods.dev/badge/skills/mathruffian-dot/teaching-exam-skills/jh-math-geometry.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 399 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,569 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.00399 $0.02569
Opus 5 $0.00199 $0.01285
Sonnet 5 $0.00080 $0.00514
Haiku 4.5 $0.00040 $0.00257

Measured 7d ago against content hash 7f2083e9c1b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

jh-math-geometry 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 7d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/geometry_renderer.py, scripts/insert_to_docx.py, scripts/insert_to_pptx.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/jh-math-geometry/SKILL.md · 212 lines

How it starts

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

國中數學幾何圖形技能(jh-math-geometry)

技能概覽

本技能生成適合試卷、簡報、教材的幾何 SVG 圖形,並輸出為 PNG 圖片檔, 可直接插入 Word 文件或 PowerPoint 投影片。

環境約定(任何使用前先做):

  • 腳本在本技能目錄(這份 SKILL.md 所在資料夾)的 scripts/,以 $GEOM_DIR 代表
  • 產出一律放當前工作目錄output/geometry_output/
  • Windows 若無 python3 指令請改用 python;Bash 片段請在 Git Bash/WSL 執行
GEOM_DIR="<本技能目錄的絕對路徑>/scripts"   # 例:~/.claude/skills/jh-math-geometry/scripts
mkdir -p output/geometry_output
python3 -m pip install -q cairosvg python-docx python-pptx   # 首次使用安裝一次;Linux 系統 Python 拒絕時加 --break-system-packages

處理流程

Step 1:理解需求

根據使用者的描述,判斷需要哪些圖形。若不確定,先快速確認:

  • 哪個單元(三角形/四邊形/圓/立體...)?
  • 需要標哪些字母/數字?
  • 是否有特殊標記(直角符號、等邊刻度、角弧)?
  • 輸出目標:Word、PPTX 或純圖片下載?

Step 2:建立圖形規格 JSON

依需求建立 spec,儲存至 output/geometry_spec.json

{
  "figures": [
    {
      "id": "fig1",
      "type": "triangle",
      "config": {
        "subtype": "right",
        "vertex_labels": ["A", "B", "C"],
        "right_angle_at": "C",
        "side_labels": {"AB": "5", "BC": "3", "CA": "4"}
      },
      "canvas": {"width": 280, "height": 220}
    }
  ],
  "options": {"format": "png", "dpi": 150}
}

詳細參數見本技能目錄下的 references/figure-catalog.md(讀取該檔案)。

Step 3:執行渲染

python3 "$GEOM_DIR/geometry_renderer.py" output/geometry_spec.json output/geometry_output/
ls output/geometry_output/

Step 4:視覺確認

讀取產生的 .svg(或 .png)檔案確認圖形是否正確。 若有錯誤(標籤偏移、比例不佳),調整 config 後重新執行。

Step 5:輸出

純圖片

PNG 已在 output/geometry_output/<id>.png,直接告知使用者路徑。

插入 Word
python3 - <<EOF
from docx import Document
from docx.shared import Cm
from docx.enum.text import WD_ALIGN_PARAGRAPH
import sys; sys.path.insert(0, "$GEOM_DIR")
from insert_to_docx import insert_figure, figures_from_manifest

doc = Document()   # 或 Document('existing.docx')
figures_from_manifest('output/geometry_output/manifest.json', doc, width_cm=7.0)
doc.save('output/geometry.docx')
print("✅ output/geometry.docx")
EOF
插入 PowerPoint
python3 - <<EOF
from pptx import Presentation
import sys; sys.path.insert(0, "$GEOM_DIR")
from insert_to_pptx import figures_from_manifest

prs = Presentation()   # 或 Presentation('existing.pptx')
figures_from_manifest('output/geometry_output/manifest.json', prs,
                      mode='individual', title_prefix='幾何圖形')
prs.save('output/geometry.pptx')
print("✅ output/geometry.pptx")
EOF

Read the full file on GitHub · 212 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago Changed · -13 lines 7f2083e9c1b0
  2. 11d ago First seen · 225 lines · 399 tokens per session scan A fda055eead3a

Subscribe to this mod's changes

jh-math-geometry is a skill published in the GitHub repository mathruffian-dot/teaching-exam-skills (5 stars, last pushed 7d ago), licensed MIT. It adds 399 tokens to every session and 2,569 once invoked, about $0.0020 per session on Opus 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-08-31.

Related

Other skills, from other repositories

baoyu-comic

A creator for educational comics, including biographies and tutorials, that turns supplied content or topics into illustrated comic pages.

NousResearch/hermes-agent · 17 tokens

html-ppt-zhangzara-cartesian

An economics senior thesis on the employment effects of local minimum-wage increases — identification strategy, evidence, and limitations. Built as a decision-grade coursework defense deck for thesis committee.

nexu-io/open-design · 46 tokens

html-ppt-zhangzara-daisy-days

A customer-success workshop onboarding users to a project-management app — the first-value path and the habits that retain. Built as a decision-grade professional training deck for new customers, CS team.

nexu-io/open-design · 49 tokens

html-ppt-zhangzara-playful

A retail sales-floor training on consultative selling — the flow, the role-plays, and the daily habit that lifts conversion. Built as a decision-grade professional training deck for store associates, floor managers.

nexu-io/open-design · 52 tokens

html-ppt-zhangzara-retro-windows

An IT security-awareness training on spotting phishing — the tells, the drill, and what to do in the first 60 seconds. Built as a decision-grade professional training deck for all employees.

nexu-io/open-design · 51 tokens

sprite-animation

A pixel / sprite-style animated explainer slide — full-bleed cream stage, bold display year, animated pixel-art mascot (e.g. Hanafuda card, mushroom, or 8-bit console), kinetic Japanese display type, ticking timeline ribbon. Reads like a single frame of an educational motion video — looping CSS keyframes, no JS, ready…

nexu-io/open-design · 141 tokens