SkillsGrove
SkillsGrove/動画制作/hidaxia/pennyscribe-skills/repurpose-podcast

repurpose-podcast

インストール

$npx skills add https://github.com/hidaxia/pennyscribe-skills --skill repurpose-podcast
$git clone --depth 1 https://github.com/hidaxia/pennyscribe-skills.git /tmp/pennyscribe-skills && mkdir -p ~/.claude/skills && cp -r /tmp/pennyscribe-skills/skills/repurpose-podcast ~/.claude/skills/repurpose-podcast
この Agent Skill をインストールしてください:https://github.com/hidaxia/pennyscribe-skills/tree/0429dfb8c8aeb147890d102566809b7ec469ad73/skills/repurpose-podcast — まず SKILL.md とスクリプトを読み、安全であることを確認してから、私のスキルフォルダにインストールしてください。

概要

原文の説明 · Apache-2.0Turn public podcast or video episodes into readable full transcripts, quote lists, editable HTML publishing workspaces, X posts or threads, native Xiaohongshu copy and exportable image cards, plus a switchable local podcast library. Prefer source-language human or automatic YouTube captions before audio transcription. Use for YouTube, Apple Podcasts, Xiaoyuzhou, Bilibili, RSS, direct audio URLs, and local audio when the user asks to transcribe, summarize, organize, publish, or repurpose long-form audio.
以下の SKILL.md は hidaxia/pennyscribe-skills(コミット 0429dfb)から Apache-2.0 ライセンスに基づいて転載しています。本文は変更しておらず、ファイル先頭のメタデータのみ省略し、画像はリンクとして表示し、非常に長いファイルは途中までの表示としています。Copyright 2026 YeDaxia。ライセンス:LICENSE。表示しているのは指示ファイルのみです。スクリプト等は元のリポジトリをご覧ください。

Repurpose Podcast

Create a source-grounded publishing workspace from one public episode. Keep the complete readable transcript separate from summaries and promotional copy.

Requirements

Require python3, yt-dlp, and curl. Require ffmpeg and PENNYSCRIBE_API_KEY only when audio transcription is necessary. PENNYSCRIBE_API_KEY stores the key for the selected transcription provider, either PennyScribe or ElevenLabs; never print it, persist it in project files, or ask the user to paste it into chat.

Treat public links as user-provided sources, not as permission to bypass authentication, paywalls, DRM, geographic restrictions, or platform controls. Do not read browser cookies unless the user explicitly requests and authorizes it.

Workflow

  1. Create a fresh project directory outside this skill.

  2. Acquire one episode and its metadata:

    python3 scripts/acquire_media.py "<url-or-local-file>" --output-dir "<project>/source"
    

    Use --cookies-from-browser <browser> only after explicit user authorization. Reject playlists by default. If an Apple Podcasts or Xiaoyuzhou page cannot expose public media, ask for its public RSS URL, direct audio URL, or a local file.

  3. Inspect the acquisition result. If <project>/source/transcript.txt exists, initialize the project directly from the extracted YouTube subtitles:

    python3 scripts/transcribe.py \
      --transcript "<project>/source/transcript.txt" \
      --metadata "<project>/source/metadata.json" \
      --output "<project>/project.json"
    

    Do not call PennyScribe in this branch. The acquisition script selects source-language YouTube captions in this order: human-authored subtitles, then automatic captions. It rejects translated caption tracks.

    Otherwise, when <project>/source/media.mp3 exists, transcribe the normalized audio:

    python3 scripts/transcribe.py "<project>/source/media.mp3" \
      --metadata "<project>/source/metadata.json" \
      --output "<project>/project.json"
    

    PennyScribe is the default provider. To use ElevenLabs instead, keep the ElevenLabs key in the same PENNYSCRIBE_API_KEY variable and add:

    --provider elevenlabs --language-code zh --diarize
    

    ElevenLabs uses scribe_v2 by default; override it only with a supported --model-id. Poll PennyScribe until terminal; ElevenLabs returns synchronously. Preserve the selected subtitle text or raw provider result exactly in transcript.raw.

  4. Read references/content-model.md and references/transcript-editing.md. Populate transcript.readable, digest, including a useful quote list, and provenance fields in project.json. Preserve all meaningful content in the readable transcript; do not turn it into a summary.

  5. For X output, read references/x-writing.md. Generate separate single_posts and threads, always retaining the source episode URL.

  6. For Xiaohongshu output, read references/xiaohongshu-writing.md. Generate platform-native title options, a link-free caption, and 4–8 cards. Do not reuse the episode title as the primary Xiaohongshu title. Keep claims traceable to transcript paragraph IDs.

  7. Validate grounding and publishing invariants:

    python3 scripts/validate_project.py "<project>/project.json"
    

    Fix every reported error before rendering. Do not delete raw content or loosen provenance to make validation pass.

  8. Build the self-contained editor:

    python3 scripts/build_workspace.py "<project>/project.json" --output "<project>/index.html"
    
  9. Let the user review and edit the HTML. Do not silently overwrite user-edited copy when regenerating another section. Open Xiaohongshu card editing by default. “自由排版” lets the user drag the eyebrow, title, individual body paragraphs, page number, and eligible small theme decorations. It also reveals a toolbar above each card. The cursor position selects either the title or body block; the toolbar range slider and color picker update only that selected block. Users may hide page numbers. These choices persist in exported project JSON and card images. The page can export edited project JSON, copy an individual card PNG to the clipboard, download one PNG, or package every card into one ZIP.

  10. Export Xiaohongshu cards after review:

node scripts/export_cards.cjs "<project>/index.html" --output-dir "<project>/exports/xiaohongshu"

Install Playwright when unavailable. Export one 1080×1440 PNG per card and fail on text overflow.

  1. To collect one or more episodes into a switchable local website, build a library:
python3 scripts/build_site.py "<project-a>/project.json" "<project-b>/project.json" \
  --output-dir "<podcast-library>"

Rebuild with all project JSON files whenever adding an episode. Start the bundled local preview server:

python3 scripts/serve_site.py "<podcast-library>" --port 8000

Open the printed loopback URL. Use --open when opening the user's default browser is appropriate.

Output Rules

  • Deliver index.html, project.json, and exported assets requested by the user.
  • Keep five distinct views: digest, quote list, readable full transcript, X, and Xiaohongshu.
  • Mark uncertain names, numbers, brands, and terms with 〔疑似:…〕; never silently repair them.
  • Label quotations as verbatim, lightly_edited, or paraphrased. Do not use quotation marks for paraphrases.
  • Do not invent speakers, timestamps, handles, endorsements, or episode facts.
  • Build semantic chapters without timestamps when the transcription has no timing data.
  • Prefer a few strong social posts over repetitive variants.
  • Never put the show or channel name in Xiaohongshu card artwork. Keep source attribution in metadata and the digest view.

Acquisition Failures

Read references/platform-acquisition.md when acquisition fails. Report the failed layer—native extractor, generic extractor, public page discovery, or direct media download—and offer the narrowest safe fallback.

ライセンス全文を見る(Apache-2.0)
                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

Copyright 2026 YeDaxia

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.