diff --git a/README.md b/README.md index dc96342..ddfb7dc 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,13 @@ The site of the [missing-elements](https://github.com/missing-elements) web comp | `/pdfjs-viewer/` | The docs of ``, with a live preview | [src/pdfjs-viewer/](src/pdfjs-viewer/) | | `/h5p/build/` | The build page, for people: what it makes, a sample that plays, and the build of a chat's source into a `.h5p`, in the visitor's browser | [src/h5p/build/](src/h5p/build/) | | `/h5p/create-with-ai/` | The how-to, for people: installing the skill, asking a chat, the prompts to start from, the types, and what to do when something goes wrong | [src/h5p/create-with-ai/](src/h5p/create-with-ai/) | -| `/h5p/skill/` | The skill as zips to install: `h5p-author.zip` for Claude's Skills and for Grok, attached to a message, `h5p-author-chatgpt.zip` for ChatGPT's Plugins; and a page that lists them and the bundles' addresses, each in full, which no page links to | [src/h5p/skill/](src/h5p/skill/); the zips written by [vite.config.ts](vite.config.ts) | +| `/h5p/skill/` | The skill as zips to install: `h5p-author.zip`, installed once in a chat's place for skills, or attached to the message in each new chat where it has none, and `h5p-author-chatgpt.zip`, the same skill laid out as a plugin; and a page that lists them and the bundles' addresses, each in full, which no page links to | [src/h5p/skill/](src/h5p/skill/); the zips written by [vite.config.ts](vite.config.ts) | | `/h5p/bundles/` | The skill's build tool and a library bundle per content type, for a chat that runs Node but cannot reach npm; and `h5p-author-build.tar.gz`, the tool and every library in one archive, for a person to attach to a chat whose code can download nothing | written by [vite.config.ts](vite.config.ts) | | `/h5p/build/types/` | The skill's type files, which the build page copies for the chat | written by [vite.config.ts](vite.config.ts) | -A chat takes the skill installed: from a zip in Claude and ChatGPT, attached to a message in Grok, which has no place to install a skill, or with `npx skills add` in an agent with a terminal, as `/h5p/create-with-ai/` says. Where the skill cannot reach npm, it builds from the tool and a bundle in `/h5p/bundles/`, at the addresses `/h5p/skill/` lists, if it can run Node and fetch a file: Grok did, on 2026-11-13. Where its code runs Node but can fetch nothing, as in ChatGPT, it builds from `h5p-author-build.tar.gz` once the person attaches it or keeps it in a ChatGPT Project (the owner's free account, 2026-11-14), and otherwise hands them the source for `/h5p/build/`, which builds in their browser. The tool is a Node.js program, so a chat whose code runs no Node, as most chat apps for local models, hands over the source; an agent with a terminal and a local model builds offline from the archive. +The pages go by what a chat has, not by its name (the owner, 2026-11-20): what one chat does changes within weeks, so no page says what a product does or lacks, and the chats in their titles are examples. What was seen is kept here and in the pages' comments, with its date. + +A chat with a place for skills or plugins installs the skill from a zip, once (Claude's Skills and ChatGPT's Plugins, 2026-11-13). A chat with neither reads it from the zip attached to the message, in each new chat (Grok, 2026-11-15). An agent with a terminal takes it with `npx skills add`. `/h5p/create-with-ai/` says each. Where the skill cannot reach npm, it builds from the tool and a bundle in `/h5p/bundles/`, at the addresses `/h5p/skill/` lists, if it can run Node and fetch a file: Grok did, on 2026-11-13. Where its code runs Node but can fetch nothing (ChatGPT's, 2026-11-13), it builds from `h5p-author-build.tar.gz` once the person attaches it or keeps it in a project of the chat's (a ChatGPT Project on the owner's free account, 2026-11-14), and otherwise hands them the source for `/h5p/build/`, which builds in their browser. The tool is a Node.js program, so a chat whose code runs no Node, as most chat apps for local models, hands over the source; an agent with a terminal and a local model builds offline from the archive. Until 2026-11-13 the site's prompts sent a chat to read the skill at `/h5p/skill/` instead. That worked only in chats that now take the zip, so the prompts name the installed skill, and no page links to `/h5p/skill/`. Its page stays, for the skill's route 3 and the copies already installed, which take the bundles' addresses from it. The skill's text files were served there one by one too until h5p-author 0.10.0: the zips carry them, so the site serves them only as zips. A copy of 0.9.7 or older, in a chat that has its text alone, and a prompt copied before 2026-11-13 find no files there now. diff --git a/src/h5p/build/index.njk b/src/h5p/build/index.njk index fbbdc60..6c267e6 100644 --- a/src/h5p/build/index.njk +++ b/src/h5p/build/index.njk @@ -98,7 +98,7 @@ csp: "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' da
  • Works with your AI chat

    -

    Claude and ChatGPT take the h5p-author skill as a zip you upload once, and Grok reads Claude's zip attached to your message. An agent with a terminal, such as Claude Code, Codex or Cursor, installs it with one command.

    +

    The h5p-author skill is a zip of text files. A chat with a place for skills takes it once, and any other reads it attached to your message. An agent with a terminal, one that runs commands on your computer, installs it with one command.

  • @@ -119,7 +119,10 @@ csp: "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' da - {#- The prompt is a code block, which site.js gives a Copy button. It names the skill, which the + {#- The steps say what a chat can do, and name none: what one chat does changes within weeks, and + the guide goes by what the reader's chat has (create-with-ai/index.njk says why). The chats + in the page's title and under the heading are examples of an AI chat. + The prompt is a code block, which site.js gives a Copy button. It names the skill, which the chat has once the first step is done, and the content type, so the chat asks nothing (since 2026-11-14 the skill asks for the type at most, and writes the author and licence the prompt gives, or defaults): the sample is what Haiku wrote for this request, with the site's name and @@ -129,12 +132,12 @@ csp: "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' da

    How it works

    -

    Three steps, in Claude, ChatGPT or Grok.

    +

    Three steps, in the AI chat you use: ChatGPT, Claude, Grok or another.

    1. Give your chat the skill

      -

      The h5p-author skill is the instructions that tell a chat how to write H5P. Download it and add it to your chat, once in Claude and ChatGPT and with your message in Grok: where it goes in each.

      +

      The h5p-author skill is the instructions that tell a chat how to write H5P. Download it and give it to your chat, once where the chat keeps skills, or with your message where it keeps none: where it goes.

    2. Ask your chat

      @@ -142,7 +145,7 @@ csp: "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' da
    3. Play it, then download it

      -

      Claude and Grok build the .h5p file in the chat, and so does ChatGPT with the build archive, kept in a Project or attached. Without it, ChatGPT hands over the activity's source, to open or paste below.

      +

      A chat whose code can run the build tool builds the .h5p file in the chat, from the build archive where it cannot download the tool. Any other chat hands over the activity's source, to open or paste below.

    diff --git a/src/h5p/create-with-ai/index.njk b/src/h5p/create-with-ai/index.njk index fd71d21..5526966 100644 --- a/src/h5p/create-with-ai/index.njk +++ b/src/h5p/create-with-ai/index.njk @@ -38,64 +38,78 @@ csp: "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self'; o

    The chat needs the h5p-author skill, the instructions that tell it how to write H5P: you - give it to your chat, once in Claude and ChatGPT, and with your - message in Grok. Then the chat writes the activity. Claude and Grok - make it a .h5p file for Moodle or any other H5P site in the chat, and for - ChatGPT the build page makes the file in your browser. The skill + give it to your chat, once where the chat keeps skills, or with your + message where it keeps none. Then the chat writes the activity. A chat whose code can run + the build tool makes it a .h5p file itself, and for any other chat + the build page makes the file in your browser. The skill and the page are free and open source, with no account.

    Open the build page

    - {#- The steps are drawn as the skill page's timeline (site.css). The first is the install: the - zips are written by vite.config.ts from the release the site pins, and each was uploaded as - it is, by the owner, on 2026-11-13. Grok has no place to install a skill, so it reads - Claude's zip attached (the owner, 2026-11-15). Each zip keeps its address, which other - pages link to, and its link here saves it under a name with the release in it, so a person - can tell two downloads apart. The archive - kept in a ChatGPT Project built there on the owner's free account on 2026-11-14 (#49). Its - heading keeps the id that the top bar and the skill's page link to. -#} + {#- The steps go by what a chat has, not by its name (the owner, 2026-11-20): what a chat does + changes faster than a guide is read, and a step that names a chat then sends its reader the + wrong way. Grok imported the zip under Skills on 2026-11-13 and had no place for one on + 2026-11-15, and a chat app for local models was added to this step and taken out within + three days. So each step names what a reader can look for in their own chat (a place for + skills, plugins, projects, code that runs) and says what to do with it and without it. + No step says what one product does, and none says what a product lacks. The chats in the + title are examples of an AI chat: the page says nothing of any of them alone. + + Seen so far, for this record and not for the page: Claude's Skills took h5p-author.zip and + ChatGPT's Plugins the plugin zip (the owner, 2026-11-13); Grok read the skill from the zip + attached to a message (2026-11-15); the archive kept in a ChatGPT Project built there on + the owner's free account (2026-11-14, #49). + + The steps are drawn as the skill page's timeline (site.css). The zips are written by + vite.config.ts from the release the site pins. Each keeps its address, which other pages + link to, and its link here saves it under a name with the release in it, so a person can + tell two downloads apart. The first step's heading keeps the id that the top bar and the + skill's page link to. + + An agent with a terminal comes before the cases, and outside them: the cases are taken in + order, and such an agent has no settings to look in, so it would stop at the last, the + zip attached. The plugin zip is one layout of several, a `plugin.json` at its root and the + skill under `skills/`, the one ChatGPT's Plugins took on 2026-11-13 (vite.config.ts): a + chat whose plugins ask for another refuses it, which the case says, and the next takes + it from there. -#}

    1 Give your chat the skill

    - Claude and ChatGPT install it once and keep it, for every activity you ask for. Grok has - nothing to install it into, and takes it with your message, in each new chat. Where it goes - depends on the chat: + The skill is a small zip of text files. AI chats change what they offer from month to + month, so this guide goes by what your chat has, not by its name. +

    +

    + In an agent with a terminal, one that runs commands on your computer, with Node.js + installed, run + npx skills add missing-elements/h5p-toolkit --skill h5p-author, and go on to + step 2. If the command does not list your agent, or fails, use a zip as below. In a chat + app, look in its settings, and take the first of these that fits:

    • - Claude, on claude.ai or in its apps: download + It has a place for skills. Download h5p-author-{{ skill.version }}.zip - and upload it under Customize, then Skills, with code execution on. Claude builds the - .h5p file in the chat. + and upload it there, once: the chat keeps it for every activity you ask for. If the + settings have a switch for running code, turn it on, since the chat builds the file with it.
    • - ChatGPT: download - h5p-author-chatgpt-{{ skill.version }}.zip - and upload it under Plugins. ChatGPT's code cannot download the build tool, so download - h5p-author-build.tar.gz once too. - Make a Project in ChatGPT, add the archive to it, and ask in a chat of that project: - ChatGPT then builds the .h5p file in the chat, with nothing to attach. - Outside a project, attach the archive to the message where you ask. Without it, ChatGPT - hands over the activity's source, to paste or open on the build page. + It has plugins, and no skills. Download + h5p-author-chatgpt-{{ skill.version }}.zip, + the same skill laid out as a plugin, and upload it there, once. Plugins come in more + than one layout: a chat that refuses this one takes the zip attached, as the next case says.
    • - Grok: download - h5p-author-{{ skill.version }}.zip, - the same file as for Claude, and attach it to the message where you ask, in each new chat. Grok builds the - .h5p file in the chat. -
    • -
    • - An agent with a terminal, such as Claude Code, Codex or Cursor: - npx skills add missing-elements/h5p-toolkit --skill h5p-author. + It has neither, or it refuses the upload. Attach + h5p-author-{{ skill.version }}.zip + to the message where you ask. The chat reads the skill from the zip, and a new chat needs + it attached again.

    The zips hold h5p-author {{ skill.version }}, the release the build page runs: text files and nothing that runs, which you can read on GitHub. - The archive holds the same release's build tool, which runs in the chat's own sandbox, and - the H5P libraries it puts in the file, each under its own licence.

    @@ -130,18 +144,39 @@ csp: "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self'; o

    4 Get the .h5p file

    - The build tool is a Node.js program, so what the chat hands you depends on whether its code - runs Node.js: + The build tool is a Node.js program, so what the chat hands you depends on what its code + can do:

      -
    • the .h5p file itself, from a chat whose code runs Node.js and can reach the build tool, as Claude's and Grok's can, and ChatGPT's with the build archive, kept in a Project or attached;
    • -
    • or its source, as a file or a block of JSON, as ChatGPT gives without the archive: open or paste it on the build page and choose Build.
    • +
    • the .h5p file itself, where the chat's code runs Node.js and gets the build tool: it downloads the tool, or takes it from the build archive, below;
    • +
    • or its source, as a file or a block of JSON, where the chat runs no code, or its code cannot get the tool: open or paste it on the build page and choose Build.

    From the source, the build page builds it in your browser, plays it, and saves the file with Download the .h5p. A chat that built the file gives its source file too: open it on the build page to play the activity before you use it.

    + {#- The archive is offered here, where a reader has just seen which of the two their chat + gave, and not in step 1: nobody can tell beforehand whether a chat's code downloads the + tool, and the skill's own reply offers the archive where it would help (route 4's fixed + line). A project is any chat's, not one product's: a chat that has projects keeps their + files for every chat in them, and the skill looks for the archive among the chat's files + wherever it came from (route 1). Where a project does not hand its files to the chat's + code, the reader attaches it, which the step says too. -#} +

    + A chat that runs code and still hands over the source could not download the build tool, + and its reply says so. Give it the tool yourself: download + h5p-author-build.tar.gz, the + build archive, once, and put it where the chat finds it: +

    +
      +
    • Your chat has projects. Add the archive to a project, and ask in a chat of that project: it is then there for every activity.
    • +
    • It has none, or the chat does not find the archive there. Attach it to the message where you ask.
    • +
    +

    + The archive holds the same release's build tool, which runs in the chat's own sandbox, and + the H5P libraries it puts in the file, each under its own licence. +

    @@ -268,15 +303,10 @@ csp: "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self'; o

    With a local model, or offline

    - A chat app for local models writes the activity as any chat does, but out of the box its code - does not run Node.js: -

    -
      -
    • LM Studio's code plugin runs JavaScript in Deno, not Node.js;
    • -
    • Jan has no code tool of its own.
    • -
    -

    - So there the chat hands over the source, and the build page builds the file. + A chat app for local models writes the activity as any chat does. What it hands you + depends on its code, as in step 4: where the app runs no code, + or its code is not Node.js, the chat hands over the source, and the build page builds the + file.

    With Node.js 22 or later on your own computer, the whole build can stay offline. Install the @@ -294,16 +324,16 @@ csp: "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self'; o

    Name it in your message, as the prompts here do: "Use the h5p-author skill to…". If the chat knows no such skill, check that it is still where step 1 put it, or - attached to your message in Grok, and ask in a new chat. + attached to your message, and ask in a new chat.

    The chat says it cannot get the build tool

    Download h5p-author-build.tar.gz and attach it to your next message: a chat whose code runs Node.js builds the file from it, - without installing or downloading anything. In ChatGPT, keep the archive in a Project and - ask in a chat of it: there is then nothing to attach again. A chat whose code runs no - Node.js gives you the activity's source for the build page instead. + without installing or downloading anything. If your chat has projects, keep the archive in + one and ask in a chat of it: there is then nothing to attach again. A chat whose code runs + no Node.js gives you the activity's source for the build page instead.

    The build lists problems

    @@ -315,8 +345,9 @@ csp: "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self'; o

    The chat's link builds nothing

    - Ask the chat for the source as JSON instead, and paste it on the build page. A link is made by - running code, and one a chat wrote out itself breaks. + Ask the chat for the source as JSON instead, and paste it on the build page. The skill + gives the build page's plain address: a link that carries the activity breaks where a chat + writes one character of it wrong.

    Moodle says a library is missing

    diff --git a/src/h5p/skill/index.njk b/src/h5p/skill/index.njk index bb8ff9f..c02b543 100644 --- a/src/h5p/skill/index.njk +++ b/src/h5p/skill/index.njk @@ -55,8 +55,8 @@ csp: "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self'; o app, from a zip: