skillify
Capture this session's repeatable process into a reusable skill. Call at end of the process you want to capture.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Capture this session's repeatable process into a reusable skill. Call at end of the process you want to capture.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Audit Agent/Task model routing — reads the dispatch log written by the model-routing PreToolUse hook and breaks down spend by model, subagent type, and project. Use when the user asks 'how's the model routing', 'audit my model usage', 'check the dispatch log', 'is the routing hook working', '/model-audit', or before drafting any public-facing post about Claude Code usage. Requires the model-routing hook to be installed first (see hooks/model-routing in this repo).
End-of-session context sync. Reviews what was learned in the conversation and proposes updates to knowledge/, people/, and projects/ files. Use when the user says /sync-context, 'sync context', 'update context', or at the end of a session in a project that uses the compounding-context structure.
Bootstrap progressive disclosure context architecture in any project. Turns CLAUDE.md into a router with a task-based routing table, consolidates context into a single knowledge directory, and cleans MEMORY.md into a pure index. Use when starting a new project, when CLAUDE.md has 'always read' directives, when context feels bloated, or when the user says /init-context.
Optimizes prompts using full GEPA methodology (Genetic-Pareto Evolution). Use when user wants to improve a prompt's accuracy on test cases, mentions "optimize prompt", "improve prompt", or has examples of desired input/output pairs. Implements Pareto frontier selection, trace-based reflection, and crossover mutations.
Personal tutor that teaches any topic. Use when user says "teach me", "learn about", "quiz me", "/skill-tutor", or wants to understand a new concept deeply. Creates personalized tutorials using user's actual projects, tracks learning progress, uses spaced repetition.
| name | skillify |
| description | Capture this session's repeatable process into a reusable skill. Call at end of the process you want to capture. |
| when_to_use | Use when the user wants to turn a session into a skill, capture a workflow, save a process as reusable, or says 'skillify this', 'make this a skill', 'save this workflow'. Must be user-invoked -- do not auto-trigger. |
| allowed-tools | ["Read","Write","Edit","Glob","Grep","Bash","AskUserQuestion"] |
| argument-hint | [description of the process you want to capture] |
You are capturing this session's repeatable process as a reusable skill.
The script below extracts session memory and user messages from the current session's JSONL — the same data Anthropic's bundled skillify injects via {{sessionMemory}} and {{userMessages}}:
<session_context>
!python3 ~/.claude/skills/skillify/extract_session.py 2>/dev/null || echo "Session extraction unavailable — analyze the conversation directly."
</session_context>
Before asking any questions, analyze the session context above. Pay special attention to the user's messages — their corrections and steering reveal preferences that should become hard rules in the skill. Also note:
Identify:
Use AskUserQuestion for ALL questions. Never ask questions via plain text. For each round, iterate as much as needed until the user is happy. The user always has a freeform "Other" option -- do NOT add your own "Needs tweaking" option.
Round 1: High level confirmation
Round 2: More details
.claude/skills/<name>/SKILL.md) -- for workflows specific to this project~/.claude/skills/<name>/SKILL.md) -- follows you across all reposRound 3: Breaking down each step For each major step, if it's not glaringly obvious, ask:
You may do multiple rounds of AskUserQuestion here, one round per step, especially if there are more than 3 steps or many clarification questions.
IMPORTANT: Pay special attention to places where the user corrected you during the session, to help inform your design.
Round 4: Final questions
Stop interviewing once you have enough information. IMPORTANT: Don't over-ask for simple processes!
Create the skill directory and file at the location the user chose in Round 2.
Use this format:
---
name: {{skill-name}}
description: {{one-line description}}
allowed-tools:
{{list of tool permission patterns observed during session}}
when_to_use: {{detailed description of when Claude should automatically invoke this skill, including trigger phrases and example user messages}}
argument-hint: "{{hint showing argument placeholders}}"
arguments:
{{list of argument names}}
context: {{inline or fork -- omit for inline}}
---
# {{Skill Title}}
Description of skill
## Inputs
- `$arg_name`: Description of this input
## Goal
Clearly stated goal for this workflow. Best if you have clearly defined artifacts or criteria for completion.
## Steps
### 1. Step Name
What to do in this step. Be specific and actionable. Include commands when appropriate.
**Success criteria**: ALWAYS include this! This shows that the step is done and we can move on.
Per-step annotations (include where relevant):
Direct (default), Task agent, Teammate, or [human]. Only specify if not Direct.Step structure tips:
[human] in the titleFrontmatter rules:
allowed-tools: Minimum permissions needed (use patterns like Bash(gh:*) not Bash)context: Only set context: fork for self-contained skills that don't need mid-process user inputwhen_to_use is CRITICAL -- tells the model when to auto-invoke. Start with "Use when..." and include trigger phrasesarguments and argument-hint: Only include if the skill takes parameters. Use $name in the body for substitution.Before writing the file, output the complete SKILL.md content as a yaml code block so the user can review it with proper syntax highlighting. Then ask for confirmation using AskUserQuestion with a simple question like "Does this SKILL.md look good to save?"
After writing, tell the user:
/{{skill-name}} [arguments]