Extract Skills from Hermes Sessions Use a PostToolUse hook to automatically analyze session transcripts after edits, identifying skill-worthy patterns. The extractor calls OpenRouter (via openai library) to evaluate conversation against skill criteria, parses JSON output, and writes skill files to disk. Key: strip JSON fence carefully, truncate prompts to prevent token limits, and use Codex-haiku for speed/cost. ---