extract-skills-from-Codex-sessions

Automatically extract reusable skills from Codex session transcripts using LLM analysis and wire them into a Stop hook

vamseeachanta Updated

File contents

Extract Skills from Codex Sessions

Wire a Stop hook that fires when Codex ends a session. The hook runs skill-extractor.py, which reads the transcript, calls an LLM (via OpenRouter) to identify skill-worthy patterns, and writes a SKILL.md file if extraction succeeds. Use openai library for API calls, strip JSON fence artifacts with .strip(), and request concise content (<1500 tokens) to avoid truncation. Test end-to-end with synthetic skill-worthy conversations before deploying.

vamseeachanta/workspace-hub/tree/main/.agents/skills/workspace-hub/learned/extract-skills-from-claude-code-sessions commit 5acedbdb8e

Frequently asked questions

npx skillmds@latest add vamseeachanta/extract-skills-from-codex-sessions