Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,24 @@ 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

All episodes should include `publish_date` in ISO 8601 format (YYYY-MM-DD). To fetch the publication date for a new episode:

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`