improve-skill
Analyze coding agent session transcripts to improve existing skills or create new ones. Use when asked to improve a skill based on a session, or extract a new skill from session history.
Best use case
improve-skill is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Analyze coding agent session transcripts to improve existing skills or create new ones. Use when asked to improve a skill based on a session, or extract a new skill from session history.
Teams using improve-skill should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/improve-skill/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How improve-skill Compares
| Feature / Agent | improve-skill | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Analyze coding agent session transcripts to improve existing skills or create new ones. Use when asked to improve a skill based on a session, or extract a new skill from session history.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Improve Skill This skill helps analyze coding agent sessions to improve or create skills. It works with Claude Code, Pi, and Codex session files. ## Quick Start Extract the current session and generate an improvement prompt: ```bash # Auto-detect agent and extract current session ./scripts/extract-session.js ``` ## Session Extraction The `extract-session.js` script finds and parses session files from any of the three agents: ```bash # Auto-detect (uses most recent session for current working directory) ./scripts/extract-session.js # Specify agent type ./scripts/extract-session.js --agent claude ./scripts/extract-session.js --agent pi ./scripts/extract-session.js --agent codex # Specify a different working directory ./scripts/extract-session.js --cwd /path/to/project # Use a specific session file ./scripts/extract-session.js /path/to/session.jsonl ``` **Session file locations:** - **Claude Code**: `~/.claude/projects/<encoded-cwd>/*.jsonl` - **Pi**: `~/.pi/agent/sessions/<encoded-cwd>/*.jsonl` - **Codex**: `~/.codex/sessions/YYYY/MM/DD/*.jsonl` ## Workflow: Improve an Existing Skill When asked to improve a skill based on a session: 1. **Extract the session transcript:** ```bash ./scripts/extract-session.js > /tmp/session-transcript.txt ``` 2. **Find the existing skill** in one of these locations: - `~/.codex/skills/<skill-name>/SKILL.md` - `~/.claude/skills/<skill-name>/SKILL.md` - `~/.pi/agent/skills/<skill-name>/SKILL.md` 3. **Generate an improvement prompt** for a new session: ``` ═══════════════════════════════════════════════════════════════════════════════ COPY THE FOLLOWING PROMPT INTO A NEW AGENT SESSION: ═══════════════════════════════════════════════════════════════════════════════ I need to improve the "<skill-name>" skill based on a session where I used it. First, read the current skill at: <path-to-skill> Then analyze this session transcript to understand: - Where I struggled to use the skill correctly - What information was missing from the skill - What examples would have helped - What I had to figure out on my own <session_transcript> <paste transcript here> </session_transcript> Based on this analysis, improve the skill by: 1. Adding missing instructions or clarifications 2. Adding examples for common use cases discovered 3. Fixing any incorrect guidance 4. Making the skill more concise where possible Write the improved skill back to the same location. ═══════════════════════════════════════════════════════════════════════════════ ``` ## Workflow: Create a New Skill When asked to create a new skill from a session: 1. **Extract the session transcript:** ```bash ./scripts/extract-session.js > /tmp/session-transcript.txt ``` 2. **Generate a creation prompt** for a new session: ``` ═══════════════════════════════════════════════════════════════════════════════ COPY THE FOLLOWING PROMPT INTO A NEW AGENT SESSION: ═══════════════════════════════════════════════════════════════════════════════ Analyze this session transcript to extract a reusable skill called "<skill-name>": <session_transcript> <paste transcript here> </session_transcript> Create a new skill that captures: 1. The core capability or workflow demonstrated 2. Key commands, APIs, or patterns used 3. Common pitfalls and how to avoid them 4. Example usage for typical scenarios Write the skill to: ~/.codex/skills/<skill-name>/SKILL.md Use this format: --- name: <skill-name> description: "<one-line description>" --- # <Skill Name> Skill <overview and quick reference> ## <Section for each major capability> <instructions and examples> ═══════════════════════════════════════════════════════════════════════════════ ``` ## Why a Separate Session? The improvement prompt is meant to be copied into a **fresh agent session** because: 1. **Token efficiency** - The current session already has a lot of context; starting fresh means only the transcript and skill are loaded 2. **Clean analysis** - The new session can focus purely on improvement without being influenced by the current task 3. **Reproducibility** - The prompt is self-contained and can be shared or reused ## Tips for Good Skill Improvements When analyzing a transcript, look for: - **Confusion patterns** - Where did the agent retry or change approach? - **Missing examples** - What specific commands or code patterns were discovered? - **Workarounds** - What did the agent have to figure out that wasn't documented? - **Errors** - What failed and how was it resolved? - **Successful patterns** - What worked well and should be highlighted? Keep skills concise - focus on the most important information and examples.
Related Skills
prompt-improver
Optimize prompts for better AI responses. Use when user asks to improve a prompt, refine a prompt, make a prompt better, optimize prompting, review their prompt, or says "/improve-prompt". Transforms vague requests into clear, specific, actionable prompts.
agent-orchestration-improve-agent
Systematic improvement of existing agents through performance analysis, prompt engineering, and continuous iteration.
suggesting-improvements
Expert at suggesting specific, actionable improvements to Claude's responses and work. Use when Claude's output needs enhancement, when quality issues are identified, or when iterating on solutions.
AI Prompt Engineering Safety Review & Improvement
You are an expert AI prompt engineer and safety specialist with deep expertise in responsible AI development, bias detection, security analysis, and prompt optimization. Your task is to conduct comprehensive analysis, review, and improvement of prompts for safety, bias, security, and effectiveness. Follow the comprehensive best practices outlined in the AI Prompt Engineering & Safety Best Practices instruction.
improve-codebase-architecture
Explore a codebase to find opportunities for architectural improvement, focusing on making the codebase more testable by deepening shallow modules. Use when user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled modules, or make a codebase more AI-navigable.
Daily Logs
Record the user's daily activities, progress, decisions, and learnings in a structured, chronological format.
Socratic Method: The Dialectic Engine
This skill transforms Claude into a Socratic agent — a cognitive partner who guides
Sokratische Methode: Die Dialektik-Maschine
Dieser Skill verwandelt Claude in einen sokratischen Agenten — einen kognitiven Partner, der Nutzende durch systematisches Fragen zur Wissensentdeckung führt, anstatt direkt zu instruieren.
College Football Data (CFB)
Before writing queries, consult `references/api-reference.md` for endpoints, conference IDs, team IDs, and data shapes.
College Basketball Data (CBB)
Before writing queries, consult `references/api-reference.md` for endpoints, conference IDs, team IDs, and data shapes.
Betting Analysis
Before writing queries, consult `references/api-reference.md` for odds formats, command parameters, and key concepts.
Research Proposal Generator
Generate high-quality academic research proposals for PhD applications following Nature Reviews-style academic writing conventions.