# taiwan-exam-generator

Adopt this skill: https://proskills.md/skills/other/niansia-taiwan-exam

Page: https://proskills.md/skills/other/niansia-taiwan-exam
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: SKILL.md
size: 8068
upstream: https://github.com/niansia/taiwan-exam/blob/HEAD/SKILL.md

```text
---
name: taiwan-exam-generator
description: Create original Taiwan GSAT/CAP (學測／會考) exams for 國綜、國寫、英文、數A、數B、社會、自然, with separate question/solution PDFs and official scope, difficulty, originality, answer, visual and layout QA.
---

# Taiwan Exam Generator

**Hosted web generation:** start with
[references/hosted-execution.md](references/hosted-execution.md), the single
hosted execution route. Extract once with `read_web_knowledge.py <knowledge.md>
--subject <科目> --output-dir <versioned-refs> --reading-plan` and read
`reading/preflight.md`. Read the subject authoring, review and layout packets
when needed. Canonical inputs remain intact for validators. The long local
execution/maintenance procedure below is not an additional hosted prerequisite;
the hosted route retains all applicable subject and quality requirements.
Do not print this entire multi-subject manual, executable sources or full data
maps merely to begin one hosted paper. Use the original template attachments,
the maintained body renderer and the single hosted render/review pipeline.

Use the repository as the source of truth. The model writes new questions; the Exam Pack, metadata, learned blueprint, and validators decide what is in scope and how the paper is composed.

This skill is an editorial constraint and validation system, not a rewriting template library. For every run, the LLM must newly invent the disciplinary object, information mechanism, solution graph, representation, context, and distractor logic. Historical material supplies aggregate boundaries only.

Do not use or package any hard-coded paper builder as a content source, including a newly written one. A renderer or validator may be reused; new questions belong in this run's structured exam data, not in a reusable Python/JavaScript question bank. Never implement five forms by rotating stems, swapping constants, reusing passage frames, cycling difficulty labels, or fixing answer patterns. Writing a new batch generator is not an alternative way to follow this Skill.

## Mandatory execution contract

For **every complete paper**, including internal tests, smoke tests and stress tests, first read [references/exam-pack-execution-contract.md](references/exam-pack-execution-contract.md). Resolve the actual `exam_packs/<exam>/subjects/<subject>/` records and reference pages before writing. A profile id, a file inventory or a `verified` string is not evidence that its contents were inspected. Keep the reference/measurement pass separate from the original item-writing pass.

Source papers are protected execution dependencies, not disposable build output. A
Git ignore rule controls versioning only; it never means `歷屆試題/`, `模擬考/`,
raw intake bundles or their registries may be deleted during cleanup, packaging or
updating. Before a local full-paper run, use
`python scripts/bootstrap_exam_sources.py --subject <科目> --verify-only`; if the
selected source pack is incomplete, run the same command without `--verify-only`
and verify it again. Never overwrite a conflicting local source or claim a
source-verified paper from profiles alone. Read [references/data-ingestion.md](references/data-ingestion.md)
when acquiring, restoring, indexing, moving or publishing source material.

Complete-paper tests must use the same content and subject-layout checks as ordinary generation. Missing empirical pilot statistics may be disclosed; missing correct answers, curriculum boundaries, sources, official response modes or a usable layout may not be excused by calling the result a preview. Never silently change a full-paper request into generic practice. If a prerequisite is missing, produce a precise gap report and repair the evidence/template first; do not fabricate evidence or output a substitute batch.

When the user requests fast or timed generation, also read [references/fast-full-paper-workflow.md](references/fast-full-paper-workflow.md). Treat an under-20-minute paper as a measured warm-run performance target, not as permission to skip candidate competition, independent solving, source/rights review, subject balance, rendering, or all-page inspection. Report the actual clock boundaries and cache state. If the target is missed, finish the valid paper and report the bottleneck honestly; never relabel a partial or unchecked artifact as a complete paper.

For hosted body layout, use [references/hosted-body-workflow.md](references/hosted-body-workflow.md): reuse measured section/item components, never placeholder questions or diagram topology. Project body specs from the saved exam instead of retyping items, review each authored batch's item crops early, reserve time for final QA, and prepare both booklets' page/item review together. Retain a prior actual visual review only within the same paper: an item crop needs an unchanged authored item record and a pixel-identical rendering or the same printed glyphs, rules and images within 0.02 pt; a page needs identical pixels and item content. Changed parts require new inspection. A body renderer never replaces the original fixed PDF layers.

Before full-booklet layout, finish content/answer/difficulty review and run
`run_hosted_workflow.py lock-content --state <latest-state>`; `build` refuses to
run before the lock. Run `check-figures` once the figures exist, read each
checkpoint's `evidence_attention`, and after a content correction run
`refresh-evidence` and complete its drafts from an actual review. Check
pagination with `plan` (at most three, using `--compare`), build at most twice
and review once; every result reports its `iteration_budget`. Repair pagination through layout hints; a necessary content
correction requires renewed dependent reviews and an explicit re-lock with
`--reason`. Continue every repair from the
state returned by the last build/review, and inspect its pending `review_batches`.
Before yielding a turn, use `clock --state <latest-state> --operation pause`;
on continuation use `resume`, and record `touch` during long thinking/review
periods. These are workflow commands, not automatic chat-platform hooks. Report
inclusive wall time separately from estimated activity and recorded tool time.

Use `templates/hosted-subject-layouts.json` to select the requested subject's own question/solution layout pair. Seven subject examples are available; load only that pair, never treat the common math-oriented gallery as every subject's paper. Preview PDFs are optional; their placeholders, partial item coverage and page density cannot be used as a full exam.

In a complete local checkout, use subject renderers for body/internal proofs, compose formal booklets from the original fixed PDFs, and use the single `scripts/validate_exam_release.py` content/delivery gate. `scripts/validate_exam_pack_contract.py` is only its renderer handoff adapter, not a second validation policy. Set `metadata.run_contract` to the external run-contract.json path relative to exam.json; see the execution contract for the maintained evidence format. On a hosted web surface without the repository executable tree, follow the hosted-equivalent gate in `references/web-platform-use.md`; the absence of a local command is not a release blocker, but every observable content, answer, template and all-page inspection check remains required. A generic renderer cannot render a complete paper merely because metadata claims a verified layout. Renderer output is a **review proof**, not an accepted exam; PDF page inspection and final acceptance are separate. No helper script or export/marking test can self-certify educational quality.

Distinguish a **new paper** from a **user-requested correction of an existing paper**. In correction mode, inspect the supplied exam and audit findings, preserve unaffected items, replace confirmed failed mechanisms, and retain revision provenance. This is not a new-original-paper claim. The new-build inheritance prohibition below applies to new papers, not maintenance. After corrections, rerun whole-paper check
```

## File: README.md
upstream: https://github.com/niansia/taiwan-exam/blob/HEAD/README.md

```text
<div align="center">

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="docs/assets/readme/wordmark-dark.svg">
  <img src="docs/assets/readme/wordmark-light.svg" width="460" alt="Taiwan Exam：日系校園番片名字標，大型考試自動化命題">
</picture>

**讓 AI 幫你出一份原創的學測模擬考**<br>
命題、解題驗算、套用大考正式版面，最後交給你「題目 PDF」和「答案詳解 PDF」。

[![Skill ZIP](https://img.shields.io/badge/Skill_ZIP-2026.09.22.25-2563eb?style=flat-square)](https://github.com/niansia/taiwan-exam/releases/download/hosted-2026.09.22.25/taiwan-exam-hosted-2026.09.22.25.zip)
[![學測七科](https://img.shields.io/badge/%E5%AD%B8%E6%B8%AC-%E4%B8%83%E7%A7%91-0ea5e9?style=flat-square)](#支援的考試與科目)
[![Claude](https://img.shields.io/badge/Claude-Skill-d97757?style=flat-square&logo=claude&logoColor=white)](#claude)
[![ChatGPT](https://img.shields.io/badge/ChatGPT-Skills-10a37f?style=flat-square)](#chatgpt)
[![Gemini](https://img.shields.io/badge/Gemini-Gem-4285f4?style=flat-square&logo=googlegemini&logoColor=white)](#gemini)
[![License](https://img.shields.io/badge/License-MIT-64748b?style=flat-square)](LICENSE)
[![考卷分享區](https://img.shields.io/badge/%E8%80%83%E5%8D%B7%E5%88%86%E4%BA%AB%E5%8D%80-%E5%85%8D%E8%B2%BB%E4%B8%8B%E8%BC%89-c0673a?style=flat-square)](https://niansia.com/exams/)

[**學測（目前可用）**](#支援的考試與科目) · [**會考（待製作）**](docs/exams/cap.md) · [**分科測驗（待製作）**](docs/exams/subject-test.md)

[**考卷分享區**](https://niansia.com/exams/) · [**測試紀錄**](#模型實測紀錄) · [**下載安裝**](#第-1-步安裝) · [**開始出卷**](#第-3-步出卷) · [**版型預覽**](#七科版型預覽) · [**常見問題**](#卡住了怎麼辦) · [**更新紀錄**](docs/web-updates.md) · [**致謝**](#致謝)

⭐ 覺得有幫助？登入 GitHub 後按頁面右上角的 <b>☆ Star</b>，讓更多老師和同學找到它
<a href="https://github.com/niansia/taiwan-exam/stargazers"><img src="https://img.shields.io/github/stars/niansia/taiwan-exam?style=social" alt="GitHub stars" align="absmiddle"></a>

</div>

---

> [!TIP]
> **沒有付費 AI 帳號？直接下載大家生成好的考卷。**<br>
> 出一份完整模擬考很吃 AI 額度：[實測](#模型實測紀錄)用付費方案（Claude Max 5x、ChatGPT Pro 5x）出一科要 20 分鐘到 2 小時，並用掉 5 小時額度的 3%～30%，免費帳號的額度通常撐不完一份。<br>
> 👉 **[Taiwan Exam 考卷分享區](https://niansia.com/exams/)**：學測七科題本與詳解，線上預覽或直接下載，不用登入。也歡迎把你生成的考卷分享上去，幫到沒有付費方案的同學。

## 這是什麼？

| ✍️ 原創命題 | 📐 正式版面 | ✅ 解題驗算 |
| :-- | :-- | :-- |
| 每次重新出題，不是現成題庫；依 108 課綱與近年大考題型、難度設計 | 封面、頁首、題組與選項排法都套用大考中心原始模板 | 每題重新解一次、檢查答案與難度，附完整答案詳解 |

**不用會寫程式，也不用註冊 GitHub。** 下載一個檔案、上傳到你用的 AI，之後每次貼一段話就能出卷。

| ① 下載 | ② 安裝 | ③ 出卷 | ④ 取得結果 |
| :-- | :-- | :-- | :-- |
| 選擇 Skill ZIP 或知識檔 | 上傳到你使用的 AI | 貼上科目與出卷需求 | 題目 PDF ＋ 答案詳解 PDF |
| [下載安裝](#第-1-步安裝) · 只做一次 | [選擇平台](#第-1-步安裝) · 只做一次 | [複製出卷文字](#第-3-步出卷) | [對照七科版型](#七科版型預覽) |

<p align="center"><img src="docs/assets/readme/how-to/how-to-claude.gif" width="100%" alt="使用教學動畫（以 Claude 為例）：1. 在 README 點藍色的 Skill ZIP 下載，不要解壓縮；2. 在 Claude 依序點 Customize、Skills、＋、Create skill、Upload a skill，選剛下載的 ZIP 按 Save，確認 taiwan-exam-generator 已開啟，並在 Settings → Capabilities 打開 Code execution and file creation；3. 開新對話，在輸入框打 / 選 taiwan-exam-generator，貼上出卷文字送出；4. AI 命題、驗算、套用大考模板並逐頁檢查，交付題目 PDF 與答案詳解 PDF。"></p>
<p align="center"><sub>以 Claude 為例，介面為示意。有 Skills 的 ChatGPT 步驟相同：<b>Plugins → Skills → Create → Upload from your computer</b>，出卷時打 <code>@</code>。詳細步驟見<a href="#第-1-步安裝">第 1 步</a>。</sub></p>

## 支援的考試與科目

| 考試 | 狀態 | 科目 |
| --- | --- | --- |
| **學測** | ✅ 可用 | 國綜、國寫、英文、數 A、數 B、自然、社會 |
| **[會考](docs/exams/cap.md)** | 待製作 · 已有基礎資料與流程，尚未提供網頁版 ZIP | 國文、英語、數學、自然、社會、寫作測驗 |
| **[分科測驗](docs/exams/subject-test.md)** | 待製作 · 規劃中 | 待整理 |

目前下方的安裝、出卷與實測紀錄皆以**學測七科**為主。會考、分科測驗可點進各自頁面查看製作狀態；推出時會在這裡和[更新紀錄](docs/web-updates.md)公告。

## 模型實測紀錄

預計用 **4 種模型各出一次學測七科，共 28 份完整模擬考**。目前已完成 20 份：Claude Opus 5.5 與 GPT 6 sol 各七科、GPT 6 astra 五科（國綜、國寫、英文、數 A、數 B）、Claude Fable 5.1 國寫，其餘仍待測。這些實測生成的考卷也都放在[考卷分享區](https://niansia.com/exams/)，可以線上預覽或直接下載。

**測試版本：2026.09.22.25。** 「查看結果」連到該次的題目 PDF、答案詳解與檢查紀錄。

<details>
<summary><b>展開測試紀錄表：4 種模型 × 學測七科（28 筆）</b></summary>

| 使用的 LLM 模型 | 科目 | 訂閱方案 | Token／額度消耗 % | 生成時間 | 命題結果連結 |
| :-- | :-- | :-- | :-- | :-- | :-- |
| Claude Fable 5.1 | 國綜 | 待填 | 待填 | 待填 | 待測 |
| Claude Fable 5.1 | 國寫 | Max 5x | 5 小時額度 30% | 36 分 | [查看結果](https://drive.google.com/drive/folders/1LDUzshvqvpU7WZAXDM5VSadcoEcQcMeC?usp=drive_link) |
| Claude Fable 5.1 | 英文 | 待填 | 待填 | 待填 | 待測 |
| Claude Fable 5.1 | 數 A | 待填 | 待填 | 待填 | 待測 |
| Claude Fable 5.1 | 數 B | 待填 | 待填 | 待填 | 待測 |
| Claude Fable 5.1 | 自然 | 待填 | 待填 | 待填 | 待測 |
| Claude Fable 5.1 | 社會 | 待填 | 待填 | 待填 | 待測 |
| Claude Opus 5.5 | 國綜 | Max 5x | 5 小時額度 12% | 53 分 | [查看結果](https://drive.google.com/drive/folders/1blBOyn4f47yeyLKDhCXs0kypXZMnUayJ?usp=sharing) |
| Claude Opus 5.5 | 國寫 | Max 5x | 5 小時額度 6% | 22 分 | [查看結果](https://drive.google.com/drive/folders/1CUdaaSF_Cz7y3FNN-2t6MVSHkq34hRy8?usp=sharing) |
| Claude Opus 5.5 | 英文 | Max 5x | 5 小時額度 12% | 43 分 | [查看結果](https://drive.google.com/drive/folders/1uAyX6hL15xw2bsmuuIXh1Cz8pRiMgLl3?usp=drive_link) |
| Claude Opus 5.5 | 數 A | Max 5x | 5 小時額度 15% | 80 分 | [查看結果](https://drive.google.com/drive/folders/1y9LcUgWsYe5QwNktWCTUwRGlEoAMjBjC?usp=drive_link) |
| Claude Opus 5.5 | 數 B | Max 5x | 5 小時額度 14% | 57 分 | [查看結果](https://drive.google.com/drive/folders/1msH5lG9XyOS_kntg-DCk5RGdTOTd8tNk?usp=drive_link) |
| Claude Opus 5.5 | 自然 | Max 5x | 5 小時額度 25% | 120 分 | [查看結果](https://drive.google.com/drive/folders/1pG3WjkuNVYzQ4vn2FWJFJUVLGbn2jkAy?usp=drive_link) |
| Claude Opus 5.5 | 社會 | Max 5x | 5 小時額度 28% | 120 分 | [查看結果](https://drive.google.com/drive/folders/1MT5Ag_vqVUbcE1jN8_Ksxxkltc0lBLUN?usp=drive_link) |
| GPT 6 astra | 國綜 | Pro 5x | 5 小時額度 7% | 50 分 40 秒 | [查看結果](https://drive.google.com/drive/folders/1PkDh2OIMaI7zS9-0e_Xh3ssfjX3RqgGK?usp=drive_link) |
| GPT 6 astra | 國寫 | Pro 5x | 5 小時額度 3% | 30 分 28 秒 | [查看結果](https://drive.google.com/drive/folders/1CI6LuBV4iKjOgpYemkLi-qqSxM3F9PvD?usp=drive_link) |
| GPT 6 astra | 英文 | Pro 5x | 5 小時額度 23% | 109 分 43 秒 | [查看結果](https://drive.google.com/drive/folders/1A0H1QFP_EvFVMuk-Ja9G7dMqJklf-CaH?usp=drive_link) |
| GPT 6 astra | 數 A | Pro 5x | 5 小時額度 7% | 54 分 2 秒 | [查看結果](https://drive.google.com/drive/folders/1AV-pSeLxQH18cP3wMWwP0EtPrlUMUsNN?usp=drive_link) |
| GPT 6 astra | 數 B | Pro 5x | 5 小時額度 7% | 58 分 4 秒 | [查看結果](https://drive.google.com/drive/folders/1fGMuPJvxbNh-owpXVoyrGADtTo9Z5acp?usp=drive_link) |
| GPT 6 astra | 自然 | 待填 | 待填 | 待填 | 待測 |
| GPT 6 astra | 社會 | 待填 | 待填 | 待填 | 待測 |
| GPT 6 sol | 國綜 | Pro 5x | 每週額度 4% | 89 分 28 秒 | [查看結果](https://drive.google.com/drive/folders/1M-12X0oNTsgR4AI7rW5qGxnQJSeO5eSe?usp=sharing) |
| GPT 6 sol | 國寫 | Pro 5x | 每週額度 1% | 34 分 47 秒 | [查看結果](https://drive.google.com/drive/folders/1_HnokQ80XYOqzxeTeFJgAGdTirDGpD51?usp=sharing) |
| GPT 6 sol | 英文 | Pro 5x | 每週額度 5% | 98 分 1 秒 | [查看結果](https://drive.google.com/drive/folders/1h5ts097Sm1LSPrjDvJ3OWZzNfNN0pk7p?usp=drive_link) |
| GPT 6 sol | 數 A | Pro 5x | 每週額度 4% | 88 分 3 秒 | [查看結果](https://drive.google.com/drive/folders/1RfWoMF2G83uzG1TvWEYiESmxjkBrIB-d?usp=drive_link) |
| GPT 6 sol | 數 B | Pro 5x | 每週額度 2% | 69 分 3 秒 | [查看結果](https://drive.google.com/drive/folders/1GLFIZvIe-EbrQkXkaX3EF7LuZKM50pWQ?usp=drive_link) |
| GPT 6 sol | 自然 | Pro 5x | 每週額度 5% | 101 分 41 秒 | [查看結果](https://drive.google.com/drive/folders/13NMszk-CNqNKILN0BeTJ91w0t8BkJMrt?usp=drive_link) |
| GPT 6 sol | 社會 | Pro 5x | 每週額度 8% | 140 分 17 秒 | [查看結果](https://drive.google.com/drive/folders/1sHtJ_CYKkGgrrYN53vWhrgQMM465lDcc?usp=drive_link) |

</details>

<details>
<summary>計量說明</summary>

- **訂閱方案**：當次使用的方案。
- **Token／額度消耗**：平台顯示的額度用量與時間窗（5 小時或每週）。各平台計量方式不同，百分比不能互相比較。
- **生成時間**：從送出需求到取得兩份最終 PDF 的總時間，包含中途接續。
- **命題結果連結**：該次產出的題目、詳解與檢查紀錄；「待測」表示尚未測試。

</details>

## 第 1 步：安裝

找到你用的 AI，只看那一列。畫面若是中文，請找意思相同的按鈕。

| 你用的 AI | 下載 | 安裝說明 |
| --- | --- | --- |
| **Claude**（claude.ai） | [⬇ Skill ZIP](https://github.com/niansia/taiwan-exam/releases/download/hosted-2026.09.22.25/taiwan-exam-hosted-2026.09.22.25.zip) | [看 Claude](#claude) |
| **ChatGPT**（左側欄有 Plugins → Skills） | [⬇ Skill ZIP](https://github.com/niansia/taiwan-exam/releases/download/hosted-2026.09.22.25/taiwan-exam-hosted-2026.09.22.25.zip) | [看 ChatGPT](#chatgpt) |
| **ChatGPT**（找不到 Skills） | [⬇ 直接下載網頁版知識檔](https://niansia.com/taiwan-exam/downlo
```
