Logo : Project Note Json To Epub

Project Note Json To Epub

Communauté
twhsi
project-note-json-to-epub

Convert structured project-note JSON manuscripts into validated EPUB and optional Kindle-clickable PDF files. Use when the user asks to turn project notes, book-system JSON, FIRE-indexed notes, Luhmann/Zettelkasten numbered chunks, table-of-contents cards, index cards, cross-linked project notes, or manuscript JSON into an EPUB/PDF with chapter directories, keyword index cards, weighted links, bidirectional backlinks, versioned filenames, chapter-splitting plans, and full link testing.

Présentation

Éditeurtwhsi
Dépôtskills
Nom de la compétenceproject-note-json-to-epub
Étoiles
259
Forks
37
Fichiers inclus
1
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Fichiers inclus : 1

    Des scripts, des gabarits et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par twhsi sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Project Note Json To Epub dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/twhsi/skills/tree/main/skills/project-note-json-to-epub
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/twhsi/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/project-note-json-to-epub .claude/skills/project-note-json-to-epub
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Project Note Json To Epub dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Project Note Json To Epub dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Project Note Json To Epub n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

專案筆記Json變成Epub

Use this skill when a project-note JSON or folder-derived JSON manuscript needs to become an EPUB, or an EPUB plus a PDF review/distribution edition, especially when the user wants chapter directories, index cards, cross-links, keyword numbering, versioned check editions, Chinese character counts, chapter-splitting plans, Kindle-clickable PDF links, or full EPUB/PDF link verification.

Chinese trigger phrases include:

  • 專案筆記Json變成Epub
  • 目錄索引卡交叉連結
  • 把這章做成EPUB
  • 章節拆書
  • 關鍵字索引卡
  • 雙向連結EPUB
  • 同時生成PDF
  • Kindle可以點擊連結

Core Workflow

  1. Inspect the JSON schema before generating anything.

    • Identify title, sources, toc, chunks, index, and validation fields if present.
    • Confirm each chunk has a stable code, title, body or source text, EPUB page/anchor, and Chinese character count.
    • If the JSON is missing fields, derive them deterministically and write the enriched JSON first.
  2. Normalize the book identity.

    • Use the user-provided book name exactly.
    • For check editions, name versions as: {書名} 檢查版 YYYY-MM-DD NN.
    • Use an ASCII-safe or underscore filename when needed: {書名}_檢查版_YYYY-MM-DD_NN.epub.
    • Keep a simple download.epub copy for mobile sharing if the user needs an easy download link.
  3. Build the table of contents from project-note numbers.

    • Preserve Luhmann/Zettelkasten-style codes such as 1.1, 3.3.c3b, and 3.3.d.1.
    • Split into no more than five display levels: 部、章、節、項、目.
    • Prefer original titles; generate compact titles only for unnamed chunks.
    • Mark Chinese character counts at each level where possible.
    • Treat the TOC as a directory card: every entry should preserve code, title, depth, page anchor, and future split-book key.
  4. Build the keyword index before EPUB rendering.

    • Each keyword must have a stable id: K001, K002, ...
    • Sort by descending weight, then keyword for deterministic order.
    • Remove keywords below the requested threshold. If unspecified, ask or use the current project threshold.
    • Each keyword may link to at most 5 target pages/chunks.
    • Each index link needs display text, target, anchor, chunk code, title, and weight.
    • Treat every keyword entry as an index card with id, keyword, weight, chapter attributes, selected page links, and cross-link metadata.
  5. Add bidirectional link data.

    • Forward link: index keyword page number ->正文 chunk anchor.
    • Backlink:正文 keyword marker -> index keyword anchor.
    • Use the keyword id as backlink display text, such as K001.
    • Store backlinks in JSON on the chunk, for example keyword_backlinks.
    • Preserve cross-link attributes on each link: chapter key, section key, item key, selected page order, base weight, remote bonus, adjusted weight, and selection rank.
  6. Prepare chapter splitting data.

    • Add a book_split_plan to JSON when the project is likely to become multiple chapter books.
    • Each split entry should include split key, title, first/last code, first/last page, chunk count, CJK count, and output filename hint.
    • Keep this data orthogonal to the EPUB render so chapters can later be exported independently.
  7. Render EPUB paths relative to the XHTML file that contains the link.

    • From Text/index.xhtml to正文 parts, use part2.xhtml#p099, not Text/part2.xhtml#p099.
    • From Text/part*.xhtml back to the index, use index.xhtml#idx-k001, not ../Text/index.xhtml#idx-k001.
    • Keep canonical JSON targets if useful, but convert hrefs correctly during XHTML rendering.
    • Put the keyword index card at the end of the book spine as book back matter: directory/intro first,正文 chunks next, index.xhtml last. This matches normal human book structure where an index appears after the main text.
  8. Generate a PDF companion when requested.

    • Use the same enriched JSON, TOC, chunk anchors, keyword ids, and backlink data as the EPUB.
    • Preserve the same human link model: directory/index entries jump to正文 anchors, and正文 keyword markers jump back to keyword index anchors.
    • Use PDF internal destinations and link annotations, not external file URLs, so links remain clickable after sideloading to Kindle.
    • Prefer visible blue linked text for PDF review copies because Kindle users need a clear tap target.
    • Embed a CJK-capable font when generating Chinese PDFs. Avoid relying on a viewer's fallback fonts; black square glyphs are a build failure.
    • Keep PDF anchors semantically aligned with EPUB anchors when possible: chunk p099 in EPUB should map to PDF destination p099, and keyword K001 should map to idx-k001.
    • Treat PDF as a companion format; do not let PDF layout constraints mutate the canonical JSON or EPUB href rules.
  9. Validate before delivery.

    • Open the EPUB zip and parse every XHTML file as XML.
    • Collect all id anchors and all href links.
    • Resolve every href relative to its source XHTML path.
    • Fail the build if any target file or anchor is missing.
    • Count expected forward links from index[].links.
    • Count expected backlinks from chunks[].keyword_backlinks.
    • Confirm actual EPUB forward/backlink counts match expected counts.
    • Recalculate true_body_cjk_count from正文 body/chunk text only, excluding TOC, index cards, navigation files, metadata, CSS, generated link labels, and markup.
    • Report the true body count separately from total EPUB or generated XHTML text counts.
    • Confirm orthogonal_check.ok is true when the JSON includes directory/index/cross-link fields.
    • For PDF output, inspect the PDF annotations with pypdf or equivalent and fail if internal GoTo/destination link counts do not match the expected forward/backlink model.
    • Render the PDF to PNG and visually confirm Chinese text, blue link text, spacing, and page flow. If Chinese text renders as boxes, fix font embedding and rebuild.

EPUB Requirements

  • EPUB mimetype must be the first zip entry and stored uncompressed.
  • META-INF/container.xml, OEBPS/content.opf, OEBPS/nav.xhtml, and XHTML text files must exist.
  • dc:title in content.opf must match the requested book/version title.
  • The書末索引 must show keyword id, keyword, weight, and clickable page links.
  • The OPF spine must place the keyword index page after all正文 pages unless the user explicitly requests a front-loaded index for review. -正文 keyword markers should show the keyword plus a small clickable Kxxx backlink.
  • Preserve readable styling; backlinks should not disrupt paragraph flow.

PDF Requirements

  • Generate PDF only when requested, or when the user asks for Kindle-compatible clickable links.
  • PDF links must be internal document links using named destinations or explicit GoTo actions.
  • The書末索引 must include clickable links back to正文 chunk destinations. -正文 keyword markers must include clickable Kxxx backlinks to the keyword index destination.
  • PDF link counts should mirror EPUB expectations unless layout requires an explicitly documented exception.
  • Use a CJK-capable embedded font for Chinese output. On macOS, a ReportLab build may use a TTC font such as /System/Library/Fonts/STHeiti Medium.ttc with a selected subfont index; in other environments choose an available Noto/Source Han CJK font.
  • Render at least one representative page to PNG before delivery and inspect for missing glyphs, clipped text, overlapping links, and unreadable spacing.
  • Kindle note: PDF internal links are the compatibility target. Do not depend on JavaScript, web URLs, or EPUB-only href behavior for the PDF edition.

Validation Checklist

Before telling the user it is finished, report:

text
errors: 0
title: ...
all_href_count: ...
index_forward_links_tested: ...
body_return_links_tested: ...
index_entries: ...
true_body_cjk_count: ...
file type: EPUB document
pdf_internal_links_tested: ...
pdf_render_checked: ...
pdf file type: PDF document

If any count fails, fix the generator and rebuild rather than editing EPUB output by hand.

Delivery

Return two links when possible:

  • A simple mobile-safe link: download.epub
  • The formal versioned EPUB filename
  • The companion PDF filename when generated
  • A validation report or short count summary when both EPUB and PDF are generated

Mention the version title and the link-test summary briefly.

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA Project Note Json To Epub ?

Convert structured project-note JSON manuscripts into validated EPUB and optional Kindle-clickable PDF files. Use when the user asks to turn project notes, book-system JSON, FIRE-indexed notes, Luhmann/Zettelkasten numbered chunks, table-of-contents cards, index cards, cross-linked project notes, or manuscript JSON into an EPUB/PDF with chapter directories, keyword index cards, weighted links, bidirectional backlinks, versioned filenames, chapter-splitting plans, and full link testing.

Pourquoi utiliser Project Note Json To Epub sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Project Note Json To Epub se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Project Note Json To Epub dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/twhsi/skills/tree/main/skills/project-note-json-to-epub. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Project Note Json To Epub ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Project Note Json To Epub ?

Autant que vous le souhaitez. Vous pouvez utiliser Project Note Json To Epub avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Project Note Json To Epub est-elle gratuite ?

Cette compétence est publiée sur GitHub par twhsi. Consultez le dépôt pour connaître les conditions de licence. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇