本文へ移動
cccskills
無料GitHub で公開

fire-card-to-epub

Convert FIRE analysis cards, Chinese knowledge notes, or project-note JSON into validated EPUB books with directory cards, chapter cards, keyword index cards, backlinks, and GitHub-shareable ebook assets. Use when Codex needs to teach or automate the path from `fire-analysis-card` outputs to `project-note-json-to-epub` style EPUB files, including sample JSON manuscripts and attached `.epub` deliverables.

インストール方法を見る

含まれるファイル(6)

  • SKILL.md4.5 KB
  • agents/openai.yaml248 B
  • assets/download.epub8.7 KB
  • assets/fire-to-epub-tutorial.epub8.7 KB
  • assets/fire-to-epub-tutorial.json4.3 KB
  • scripts/fire_cards_to_epub.py15.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

FIRE Card to EPUB

Turn FIRE analysis cards into a small validated EPUB book.

Use this skill when the user asks:

  • FIRE 卡片變成電子書
  • 把分析卡做成 EPUB
  • 教我怎麼從 FIRE 到電子書
  • 上傳 GitHub 成為技能,附上電子書檔案
  • 把 Obsidian 知識卡整理成 EPUB

This skill bridges two workflows:

Source SkillRole
fire-analysis-cardAnalyze article/note material into Fact, Index, Relation, Encyclopedia
project-note-json-to-epubPackage structured notes into EPUB with TOC, index, links, and validation

Core Workflow

  1. Create or collect FIRE cards.

    • Each card should have a stable code, title, body, keywords, and optional fire_card.
    • Keep each body chunk compact: one concept per card.
  2. Build a project-note JSON manuscript.

    • Use assets/fire-to-epub-tutorial.json as the starting schema.
    • Required top-level fields: title, creator, language, chunks.
    • Optional but recommended fields: subtitle, index, orthogonal_check.
  3. Generate EPUB.

python3 scripts/fire_cards_to_epub.py assets/fire-to-epub-tutorial.json --out assets/fire-to-epub-tutorial.epub --download-copy assets/download.epub
  1. Verify the output.

    • The script validates XML, href targets, anchors, backlink counts, index links, and file type.
    • Delivery is acceptable only when errors: 0.
  2. Upload as a GitHub Skill asset.

    • Include SKILL.md, scripts/fire_cards_to_epub.py, the sample JSON, and the sample EPUB.
    • Keep the EPUB in assets/ so users can download or inspect it from GitHub.

JSON Schema

Minimal manuscript:

{
  "title": "FIRE 卡片變成電子書",
  "creator": "Codex",
  "language": "zh-Hant",
  "chunks": [
    {
      "code": "1.1",
      "title": "FIRE 先成卡",
      "body": "正文內容。",
      "keywords": ["FIRE", "知識卡"],
      "fire_card": "可選:固定寬度 FIRE 卡文字"
    }
  ]
}

Recommended manuscript:

{
  "title": "FIRE 卡片變成電子書",
  "subtitle": "從分析卡到 EPUB 的最小流程",
  "creator": "Codex",
  "language": "zh-Hant",
  "chunks": [
    {
      "code": "1.1",
      "title": "FIRE 先成卡",
      "body": "先把文章壓成穩定知識卡,再進入電子書結構。",
      "keywords": ["FIRE", "知識卡", "Fact"]
    }
  ],
  "index": [
    {"id": "K001", "keyword": "FIRE", "weight": 100}
  ],
  "orthogonal_check": {
    "ok": true,
    "axes": {
      "analysis_axis": "Fact、Index、Relation、Encyclopedia",
      "book_axis": "TOC、正文、索引、驗證"
    }
  }
}

If index is missing, the script derives it from chunks[].keywords.

EPUB Output

The generator writes:

EPUB FilePurpose
mimetypeEPUB signature, first and uncompressed
META-INF/container.xmlRootfile pointer
OEBPS/content.opfMetadata, manifest, spine
OEBPS/nav.xhtmlEPUB navigation
OEBPS/Text/toc.xhtmlDirectory card
OEBPS/Text/part001.xhtmlChapter/card pages
OEBPS/Text/index.xhtmlKeyword index cards
OEBPS/Styles/style.cssReadable style

Validation Contract

Before delivery, report:

errors: 0
title: ...
all_href_count: ...
index_forward_links_tested: ...
body_return_links_tested: ...
index_entries: ...
true_body_cjk_count: ...
file type: EPUB document

If errors is not 0, fix the JSON or generator and rebuild.

Teaching Script

Explain the workflow to the user like this:

  1. fire-analysis-card 把文章變成穩定知識卡。
  2. 把多張 FIRE 卡整理成 chunks[]。
  3. 從 keywords 建立 K001、K002 等索引卡。
  4. EPUB 由三層組成:目錄卡、正文卡、書末索引卡。
  5. 每個正文關鍵詞回鏈到索引卡;索引卡再連回正文。
  6. 驗證所有 EPUB 連結,確認 errors: 0。

Notes

  • Keep EPUB attachments in assets/.
  • Do not hand-edit generated EPUB internals after validation; fix JSON or script and rebuild.
  • Use short Chinese card bodies; EPUB is a sequence of cards, not a long essay dump.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use A4 Eight Page Booklet 2.2 to create, write, repair, impose, and validate a printable A4 one-sheet eight-page mini book or zine from text, notes, images, BIRD Graph JSON, iMandalArt/九宮, FIRE, outlines, templates, or PDFs. Use whenever the user says A4八頁小書, 八頁小書, 八頁小冊, 八格小書, A4一張八頁, 八頁在一頁, 8頁在一頁, 八張一頁, 一張紙變八頁, 摺頁書, 折頁小書, 迷你書, 小誌, zine, mini zine, booklet, 做成小書, 印成小書, 單張印出八頁, 幫我拼版, 八頁PDF, 合併八頁, 6-7-8-1/5-4-3-2排列, or asks for eight upright page PDFs, an eight-page reading PDF, an editable DOCX, or a correctly rotated A4 landscape print sheet.

日本語の概要は準備中です。原文の説明を表示しています。

twhsi/skills2592026年7月22日 更新

Assign, validate, normalize, and explain Luhmann/Zettelkasten-style project-note codes for Chinese book manuscripts, Obsidian Markdown folders, Mandala-Grid section files, HyperCard Markdown stacks, and project-note JSON to EPUB workflows. Use when Codex needs to scan folders for 部/章/節/項/目 numbering, generate stable card ids, insert branch codes without renumbering existing notes, map letter-coded branches to Obsidian Mandala sections, preserve K### keyword index cards, sanitize private catalogs into public examples, or prepare card IDs for EPUB and HyperCard output.

日本語の概要は準備中です。原文の説明を表示しています。

twhsi/skills2592026年7月22日 更新

Create companion Codex workflows from book chapters, reader exercises, prompts, field notes, and teaching material. Use when Codex needs to turn a chapter excerpt, 書籍練習, AI 提示詞, worksheet, or author note into a reusable Skill-style workflow, GitHub-shareable companion artifact, or book link resource for readers.

日本語の概要は準備中です。原文の説明を表示しています。

twhsi/skills2592026年7月22日 更新

Compress answers to the highest practical information density with minimal wording while preserving essential meaning. Use when the user asks for 言簡意賅, 講重點, Concise, 精簡回答, 簡潔回答, 只講重點, 直接回答, brief, TL;DR, or otherwise requests a concise key-points response.

日本語の概要は準備中です。原文の説明を表示しています。

twhsi/skills2592026年7月22日 更新

Convert EPUB card books into Obsidian-ready HyperCard Markdown folders and portable zip files. Use when Codex needs to turn an EPUB with XHTML chapters, table-of-contents cards, keyword index cards, backlinks, Luhmann/Zettelkasten numbers, or cross-links into one Markdown file per card with verified relative links, keyword cards, previous/home/next navigation, and GitHub/shareable zip output.

日本語の概要は準備中です。原文の説明を表示しています。

twhsi/skills2592026年7月22日 更新

Create Fantastical calendar events and reminders from Codex on macOS. Use when the user asks Codex to add, schedule, parse, preview, or send a meeting, appointment, task, reminder, time block, daily plan item, 行事曆, 日曆, 會議, 待辦, or 提醒 into Fantastical.

日本語の概要は準備中です。原文の説明を表示しています。

twhsi/skills2592026年7月22日 更新

twhsi のスキルをすべて見る

このスキルの問題を報告する