ipas-ai-quiz: Instructions file for Codex

AGENTS.md

ipas-ai-quiz AGENTS.md is an instructions file for Codex, OpenCode from yazelin/ipas-ai-quiz. It costs 4,075 tokens per session, scanned A, original, MIT.

A contributor guide for a static quiz website. It explains the file layout, the JSON format for questions, and how to update the front end, tests, offline cache, and optional backend.

In plain words
What is it for?
Use it to add quiz questions, modify quiz logic or screens, update cached assets, and work with the optional Cloudflare Worker backend.
Why use it?
It helps an agent change the right files without breaking the quiz, its tests, or its offline behavior.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions Claude Code; mentions AGENTS.md.

This is yazelin/ipas-ai-quiz's own configuration. It tells Codex and OpenCode 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 →

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/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/yazelin/ipas-ai-quiz

Made for: Codex, OpenCode.

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 ipas-ai-quiz AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/yazelin/ipas-ai-quiz/agents-md"><img src="https://agentmods.dev/badge/instructions/yazelin/ipas-ai-quiz/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,075 This file is loaded in full into every session.
When invoked 4,075 The same file — it is already loaded in full.
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.04075 $0.04075
Opus 5.5 $0.01630 $0.01630
Sonnet 5.5 $0.00815 $0.00815
Haiku 4.5 $0.00407 $0.00407

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

Security

Grade A, and why

ipas-ai-quiz AGENTS.md 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 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.

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.

AGENTS.md · 169 lines

How it starts

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

AGENTS.md — 給 AI 代理 / 貢獻者的修改指南

這份是讓「你(或你的 AI agent)clone 本 repo 後,能安全地擴充、改題、改功能」的說明。 本站是純靜態前端(無框架、無 build),題庫是 JSON,後端只有一個選用的 Cloudflare Worker。

檔案地圖

檔案 作用 改它要注意
index.html 版面 + 全部 CSS(inline <style>)+ PWA head 改到快取檔請 bump sw.js 版號
app.js 全部前端邏輯(ES module,vanilla JS) DOM 操作集中在這
core.js 純邏輯(Leitner、計分、統計、出題優先序),有單元測試 改完跑 node core.test.mjs
core.test.mjs core.js 的測試 改邏輯要同步更新斷言
questions.json 題庫(主要要改的就是這個) 見下方 schema
concepts.json 每日 AI 觀念卡池 { "cards": [...] }
sw.js Service Worker(離線快取 + 推播顯示) 改任何快取檔就把 CACHE 版號 +1
manifest.json PWA 安裝資訊
assets/*.png 帶圖題的圖
tools/sources.json tools/extract.sh 官方試題來源清單 + 抽文字腳本 加新梯次用
worker/ Cloudflare Worker:同步 + 推播 + cron 要自架後端才需動

題庫 schema(questions.json)

{
  "meta": {
    "title": "...",
    "note": "...",
    "defaultTimeLimitMin": 90,
    "guides": { "科目1:人工智慧基礎概論": "<學習指引PDF網址>", ... }
  },
  "questions": [
    {
      "id": "115-1-b-s1-q3",        // 唯一;慣例 <梯次>-<b初級/m中級>-s<科>-q<N>;帶圖題用 -f<N>
      "level": "初級",              // 初級 / 中級
      "round": "115年第一次",
      "subject": "科目1:人工智慧基礎概論",
      "chapter": "機器學習",         // 練習「範圍」依此分組;沒填會退回用 subject
      "topic": "監督式學習",         // 細標籤(自由),關鍵字搜尋會吃到
      "question": "題幹…",
      "options": ["A選項", "B選項", "C選項", "D選項"],  // 3 或 4 個(台灣駕照筆試那類三選一也收)
      "answer": 2,                  // 正解的 0-based 索引,要落在選項範圍內:A=0 B=1 C=2 D=3
      "explanation": "詳解…",        // 為何對 + 為何其他錯 + 概念
      "image": "assets/<id>.webp",  // 選填:帶圖題才有,檔名一律 = 題目 id(WebP lossless)
      "source": "學習指引"           // 選填:來源。缺省=歷屆考古題;"學習指引"=官方學習指引範例題(id 以 lg- 開頭、答案與解析皆官方)
    }
  ]
}

加題目最小步驟:把新物件 append 進 questions.questions,確認 options 有 3 或 4 個、answer 落在選項範圍內、id 不重複,然後:

node -e "JSON.parse(require('fs').readFileSync('questions.json'))"   # 驗 JSON 合法
node core.test.mjs                                                   # 驗邏輯沒壞
python3 -m http.server 8000                                          # 開 http://localhost:8000 看
  • chapter 請沿用既有的(統計頁/範圍選單會自動多出該組);不填則以 subject 當範圍。
  • 帶圖題:圖放 assets/,檔名一律命名為 <題目 id>.webp(WebP lossless,例如 assets/114-2-m-s3-f1.webp),image 欄填 assets/<id>.webp。看 id 就知道圖、看圖就知道哪題,別沿用原始 PDF 的圖片序號(早期 114-2 沒這樣做,踩過坑)。不要把含「答案欄」的整頁截圖放進去(會洩答案)——只放圖本身。
  • 題幹若寫「附圖/如圖/下圖」就一定要有 image(歷史教訓:q39 抽圖時漏掛,題目變成無法判讀)。加完用 node tools/check-questions.mjs 驗。

Read the full file on GitHub · 169 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 · +14 lines · +415 tokens per session ab441c88d366
  2. 1mo ago Changed · +1 lines · +122 tokens per session 26b10cf186ad
  3. 1mo ago Changed · +20 lines · +641 tokens per session d6ac1a624150
  4. 2mo ago First seen · 134 lines · 2,897 tokens per session scan A 2c5a16554a6d

Subscribe to this mod's changes

ipas-ai-quiz AGENTS.md is an instructions file published in the GitHub repository yazelin/ipas-ai-quiz (31 stars, last pushed 1mo ago), licensed MIT. It adds 4,075 tokens to every session, about $0.0163 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-08-30.

Related

ipas-ai-quiz AGENTS.md compared with instructions from other repositories

ipas-ai-quiz AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ipas-ai-quiz AGENTS.mdyazelin/ipas-ai-quizInstructions file311mo agoMITA4,075Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode