Skip to content
Back to skills

Extract Skills From Claude Code Sessions

ASecurity

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

  • 17 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 9, 2026
ai-agentsapi

Works with

  • claude code
  • api

Security analysis

A100/100

Scanned September 24, 2026

npx -y skills add vamseeachanta/workspace-hub --skill extract-skills-from-claude-code-sessions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Extract Skills From Claude Code Sessions?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Extract Skills From Claude Code Sessions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-extract-skills-from-claude-code-sessions/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-extract-skills-from-claude-code-sessions)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: extract-skills-from-claude-code-sessions
description: Automatically extract reusable skills from Claude Code session transcripts using LLM analysis and wire them into a Stop hook
version: 1.0.0
source: auto-extracted
extracted: 2026-04-10
metadata:
  tags: ["Codex", "skills", "automation", "self-improvement", "hooks"]
---

# Extract Skills from Claude Code Sessions

Wire a Stop hook that fires when Claude Code 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.