ai newsMi., 25. Nov.
EilmeldungYale’s Sonnenfeld: Nvidia is a ‘detriment’ to U.S. industrial might — not a champion

Claude Code: Pages-Funktion macht Dashboards und Reports ohne eigenes Konto teilbar

Ein Ordner mit index.html oder index.md lässt sich per Pages per Befehl in einen öffentlichen Link verwandeln, alternativ in eine verschlüsselte Datei für eine einzelne Person. Das ersetzt Screenshots und ZIP-Dateien beim Teilen von Ergebnissen.

dev.toDienstag 19:49 · 24.11.DE2 Min. Lesezeit
Bild: dev.to

TL;DR: Wenn Claude Code ein Dashboard, einen Bericht oder einen Mockup erstellt, bedeutet Teilen Screenshots oder gezippte Dateien. Pages verwandelt einen Ordner mit einer index.html oder index.md mit einem Befehl in einen öffentlichen Link oder in eine private verschlüsselte Datei für eine einzelne Person.

Wenn man nach Claude Code share sucht, findet man Möglichkeiten, eine Session oder ein Abonnement zu teilen. Hier geht es darum, das Ergebnis zu teilen, das der Agent erstellt hat.

npx -y @flisk-sh/pages publish page.html --wait Enter fullscreen mode Exit fullscreen mode Eine Page ist ein Ordner mit einer index.html oder index.md, oder eine einzelne.html- oder.md-Datei. Angemeldet an der GitHub CLI geht sie über einen Pull Request aus deinem Fork live unter pages.flisk.si/@<dein Login>/<Name>/. Ohne Anmeldung wird eine Markdown-Seite anonym veröffentlicht, und der Schlüssel bleibt in ~/.config/pages/anon.json, sodass derselbe Befehl eine Version hinzufügt und pages remove <path> sie wieder entfernt. Für HTML wird die GitHub CLI benötigt. --wait wartet, bis der Link antwortet.

claude plugin marketplace add flisk-sh/pages claude plugin install pages@flisk-pages Enter fullscreen mode Exit fullscreen mode Das Plugin fügt die Skills pages-publish und pages-check hinzu. Frage dann einfach: publish./my-page to pages.

Eine veröffentlichte Page ist öffentlich. Alles, was privat bleiben muss, sollte nicht veröffentlicht werden. --send erzeugt pro Person eine selbstentschlüsselnde Datei und lädt nichts hoch:

npx -y @flisk-sh/pages share interview.html --send --to alice --to bob Enter fullscreen mode Exit fullscreen mode Die Datei ist AES-256-GCM-Ciphertext. Der Schlüssel stammt aus einer Passphrase mit etwa 80 zufälligen Bits, abgeleitet über 600.000 Runden PBKDF2. Sende die Datei und die Passphrase über unterschiedliche Kanäle. Die Passphrase wird einmal ausgegeben und nirgends gespeichert; wenn du sie verlierst, sende eine neue Datei. Eine bereits gesendete Kopie lässt sich nicht zurückholen, und der Empfänger kann beide Teile weiterleiten.

share ohne --send veröffentlicht eine gesperrte Page in einen öffentlichen git Branch. Der Ciphertext, die Größe und die Historie sind öffentlich und dauerhaft sichtbar, und ein durchgesickerter Link lässt sich nicht widerrufen. Das dient lediglich der Bequemlichkeit.

- uses: flisk-sh/pages@v1 with: path: report command: publish slug: benchmarks Enter fullscreen mode Exit fullscreen mode Der Job weist über sein GitHub OIDC Token nach, um welches Repository es sich handelt, sodass kein Schlüssel eingerichtet werden muss. Fork-Pull-Requests erhalten kein Token, daher sollte man bei Push auf den main Branch veröffentlichen.

Pages ist statisch: kein Server, keine Datenbank. Jeder Space ist ein git Branch des Pages-Repositorys. Nur eine.html-Datei für den privaten Versand. Kostenlos und öffentlich; lege keine Secrets in einer Page ab.

Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.

Original (Englisch) anzeigen

TL;DR: when Claude Code builds a dashboard, report or mockup, sharing means screenshots or zipped files. Pages turns a folder with an index.html or index.md into a public link in one command, or into a private encrypted file for one person.

If you search Claude Code share, you find ways to share a session or a subscription. This is about sharing what the agent made.

npx -y @flisk-sh/pages publish page.html --wait Enter fullscreen mode Exit fullscreen mode A page is a folder with an index.html or index.md, or a single.html or.md file. Signed in to the GitHub CLI, it goes live at pages.flisk.si/@<your login>/<name>/ through a pull request from your fork. Not signed in, a Markdown page is published anonymously and the key stays in ~/.config/pages/anon.json, so the same command adds a version and pages remove <path> takes it down. HTML needs the GitHub CLI. --wait waits until the link answers.

claude plugin marketplace add flisk-sh/pages claude plugin install pages@flisk-pages Enter fullscreen mode Exit fullscreen mode The plugin adds the pages-publish and pages-check skills. Then ask: publish./my-page to pages.

A published page is public. For anything that must stay private, do not publish it. --send writes one self-decrypting file per person and uploads nothing:

npx -y @flisk-sh/pages share interview.html --send --to alice --to bob Enter fullscreen mode Exit fullscreen mode The file is AES-256-GCM ciphertext. The key comes from a passphrase of about 80 random bits through 600,000 rounds of PBKDF2. Send the file and the passphrase by different channels. The passphrase is printed once and saved nowhere, so if you lose it, send a new file. A copy you have sent cannot be taken back, and the recipient can forward both parts.

share without --send publishes a locked page to a public git branch. Its ciphertext, size and history are public and permanent, and a leaked link cannot be revoked. That is for convenience only.

- uses: flisk-sh/pages@v1 with: path: report command: publish slug: benchmarks Enter fullscreen mode Exit fullscreen mode The job proves which repository it is with its GitHub OIDC token, so there is no key to set up. Fork pull requests get no token, so publish on push to your main branch.

Pages are static: no server, no database. Every space is a git branch of the Pages repository. One.html file only for a private share. Free and public; do not put secrets in a page.

Originaltitel: Claude Code: Share a Page or Report With People Who Have No ClaudeQuelle: dev.to (dev.to). Original öffnen