ipas-ai-quiz: Skill for Claude Code

.claude/skills/add-exam/SKILL.md

add-exam is a skill for Claude Code from yazelin/ipas-ai-quiz. It costs 67 tokens per session (1,285 once invoked), scanned A, original, MIT.

A procedure for adding newly released official iPAS exam papers to an existing question bank. iPAS is a Taiwanese certification programme that publishes exam papers and answers online.

In plain words
What is it for?
Use it when a new iPAS exam round is released or when you receive an official exam-paper PDF link. It covers downloading sources, reading PDFs, recording answers and explanations, handling image questions, and running the import tool.
Why use it?
It gives a repeatable way to find the new papers, extract their text and images, turn them into structured questions, and check them before adding them.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions AGENTS.md.

This is yazelin/ipas-ai-quiz's own configuration. It tells Claude Code how to work on ipas-ai-quiz itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ipas-ai-quiz configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node tools/extract-exam.mjs '<PDF網址>' --level 初級 --round 115年第三次 \.

Reuse

Borrowing it

Nothing to install: this file belongs to yazelin/ipas-ai-quiz. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/yazelin/ipas-ai-quiz/master/.claude/skills/add-exam/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/yazelin/ipas-ai-quiz

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 add-exam

README.md
[![agentmods](https://agentmods.dev/badge/skills/yazelin/ipas-ai-quiz/add-exam/github.svg)](https://agentmods.dev/skills/yazelin/ipas-ai-quiz/add-exam)
Your own site
<a href="https://agentmods.dev/skills/yazelin/ipas-ai-quiz/add-exam"><img src="https://agentmods.dev/badge/skills/yazelin/ipas-ai-quiz/add-exam/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 add-exam

Your own site · 80×15
<a href="https://agentmods.dev/skills/yazelin/ipas-ai-quiz/add-exam"><img src="https://agentmods.dev/badge/skills/yazelin/ipas-ai-quiz/add-exam.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,285 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.01285
Opus 5.5 $0.00027 $0.00514
Sonnet 5.5 $0.00013 $0.00257
Haiku 4.5 $0.00007 $0.00128

Measured 1mo ago against content hash a6a6f08afc07, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-exam scanned grade A with 1 finding 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 1mo ago.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

該頁是 Next.js SSR,可直接 `curl` 頁面原始碼,用 grep 撈出 `/api/proxy/uploads/certification_resource/.../*.pdf` 的完整連結。把新梯次各科的 PDF 網址記到 `tools/sources.json`。
.claude/skills/add-exam/SKILL.md · 51 lines

How it starts

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

加一個新梯次的官方試題

iPAS 每次考完會公告該次試題(本站考古題來源)。將來有新梯次時,照此流程加入。

步驟

  1. 拿到官方 PDF 直連網址。iPAS AIAP 來源頁: https://ipd.nat.gov.tw/ipas/certification/AIAP/learning-resources 該頁是 Next.js SSR,可直接 curl 頁面原始碼,用 grep 撈出 /api/proxy/uploads/certification_resource/.../*.pdf 的完整連結。把新梯次各科的 PDF 網址記到 tools/sources.json。

  2. 抽成題目骨架(每科一份)。用這支,不要自己拿 pdftotext 硬幹:

    node tools/extract-exam.mjs '<PDF網址>' --level 初級 --round 115年第三次 \
      --subject "科目1:人工智慧基礎概論" -o /tmp/new-s1.json
    

    它會輸出 {level, round, subject, chapter:'', topic:'', question, options[4], answer, explanation:''}, 答案已經是 0-based 且取自 PDF 最左欄的官方答案。

    為什麼要有這支工具(兩個會「靜默毀題」的坑,都不會讓程式出錯):

    • -layout 的行序會亂,拿它重建題幹會出錯而且看起來完全正常 → 題幹改用不加 -layout 的原始閱讀順序,-layout 那份只拿最左欄答案。
    • 頁尾「第 N 頁,共 15 頁」會被插進句子中間,長成「判斷零件表面是否存第 2 頁,共 15 頁在細微刮痕」→ 已在解析階段濾除,check-questions.mjs 也有硬檢查擋。

    答案用三重驗證(欄位式、座標式、孤立字母鄰接),任何一重對不上就中止,不會給半成品。 注意 -bbox-layout 的 y 是每頁重新算的,自己寫檢查時跨頁比 y 會假報大量不一致。

  3. 填 chapter / topic / explanation(這步才輪到你 AI 判讀):

    • chapter 用官方學習指引的章節名,沿用既有題庫已用過的,不要自創。
    • explanation 自己寫:為何對 + 逐一駁錯項 + 核心記憶點,中位數約 200 到 250 字。
    • 每則詳解建議以「正解 (X)」開頭,方便寫一支腳本比對它與官方答案是否一致,不一致就不要產出。
    • 字串內不要用半形雙引號 ",用「」。
    • 夾純英數的括號用半形((Supervised Learning)),夾中文的維持全形。既有題庫零例外。
  4. 帶圖題(題幹有「下圖/程式碼/圖表」純文字抽不到的):先跑 pdfimages -list <pdf> 看尺寸分佈——每頁尺寸都一樣的是頁首裝飾,不是題目用圖(115-3 那兩份 30 張全是 1084x454 的裝飾,實際零張帶圖題)。真的有題目用圖才用 pdfimages -png -p '<pdf>' /tmp/e 取乾淨內嵌圖(忽略每頁固定尺寸的頁首裝飾圖;不要用含左側答案欄的整頁截圖)。圖用 pdfimages 取出後轉 WebP lossless、命名為 <該題 id>.webp 存到 assets/(例如 assets/115-2-m-s3-f1.webp),該題填 image: "assets/<id>.webp"。別沿用 PDF 原始圖號(早期 114-2 沒這樣、踩過坑);題幹寫「附圖」就一定要掛上。中文標點用全形(夾純英文括號維持半形)。

  5. 加入 + 驗證:

    node tools/add-questions.mjs /tmp/new.json --dry-run   # 先試跑
    node tools/add-questions.mjs /tmp/new.json             # 沒錯再加
    node tools/check-questions.mjs                         # 健康檢查:圖/檔名/附圖漏掛/結構/標點(要全綠)
    node core.test.mjs
    

Read the full file on GitHub · 51 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. 1mo ago Changed · +9 lines a6a6f08afc07
  2. 2mo ago First seen · 42 lines · 67 tokens per session scan A 76e3aebcd99c

Subscribe to this mod's changes

add-exam is a skill published in the GitHub repository yazelin/ipas-ai-quiz (31 stars, last pushed 1mo ago), licensed MIT. It adds 67 tokens to every session and 1,285 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

add-exam compared with skills from other repositories

add-exam next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-examyazelin/ipas-ai-quizSkill311mo agoMITA67Claude Code
hr-onboardingnexu-io/open-designSkill106kyesterdayApache-2.0A62Claude Code, Codex
book-mirrorgarrytan/gbrainSkill32kyesterdayMITA138Claude Code
exam-forecastanthropics/claude-for-legalSkill9.9k3d agoApache-2.0A73Claude Code
lean-formalizewanshuiyin/Auto-claude-code-research-in-sleepSkill19k3d agoMITA81Claude Code
eli5companion-inc/feynmanSkill10k6d agoMITA63Claude Code, Codex
deck-course-modulenexu-io/html-anythingSkill9.4k25d agoApache-2.0A25Claude Code, Codex