Dev.to
7/20/2026

The original title is "How I Auto-Generate Claude Skills From Conversation Logs at 3:30 AM"
Original: How I Auto-Generate Claude Skills From Conversation Logs at 3:30 AM
Short summary
A nightly batch job reads conversation logs, extracts reusable procedures, and writes them as SKILL.md files for Claude. Cost is controlled via a watermark method (only processing new files) and a $1.20 budget cap per run, keeping each night's harvest to ~3 logs and 18KB. The system includes wall-clock timeouts and graceful failure handling so one bad run doesn't block the next.
- •Watermark method ensures only 3-5 new logs are processed per night instead of all 3,349
- •Budget cap of $1.20 per run via --max-budget-usd prevents quota exhaustion
- •Wall-clock timeout at 600s using perl alarm ensures hung runs don't block subsequent harvests
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



