From 2b738fcbc821c8ffe4e581c1cb9cbdec3da919f8 Mon Sep 17 00:00:00 2001 From: Apurwa Sarwajit Date: Fri, 30 Jan 2026 20:29:58 +0530 Subject: [PATCH] Add build-index.sh configuration details to CLAUDE.md Document the Claude model used and environment variables for customizing episode/output/temp directories. Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 797c1109..b9fb103b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -75,7 +75,13 @@ Read that file to access the full content. ./scripts/build-index.sh ``` -This calls Claude CLI for each episode to generate keywords. The script is idempotent - it skips episodes already present in keyword files, so it can be run multiple times safely. +This calls Claude CLI (using `claude-sonnet-4-20250514`) for each episode to generate keywords. The script is idempotent - it skips episodes already present in keyword files, so it can be run multiple times safely. + +**Environment variables** (optional): + +- `EPISODES_DIR` - Source directory (default: `episodes`) +- `OUTPUT_DIR` - Index output directory (default: `index`) +- `TEMP_DIR` - Temp file location (default: system temp) ## Adding Publication Dates @@ -83,8 +89,10 @@ All episodes should include `publish_date` in ISO 8601 format (YYYY-MM-DD). To f 1. Use the `video_id` from the transcript's frontmatter 2. Call the YouTube Data API v3: - ``` + + ```text https://www.googleapis.com/youtube/v3/videos?part=snippet&id={video_id}&key={API_KEY} ``` + 3. Extract `snippet.publishedAt` from the response 4. Add `publish_date: YYYY-MM-DD` to the frontmatter after `video_id`