返回 Skill 列表
extension
分类: AI Agent 能力无需 API Key

Extract Component

此技能应在用户要求“提取技能”、“提取一个技能”、“保存为技能”、“从对话中创建技能”、“提取命令”、“生成命令”、“保存为命令”、“提取 agent”、“生成 agent”、“保存为 agent”、“提取模式”、“提取可复用模式”、“总结为 skill”、“把这个变成技能”、“将此设为命令”、“打包为”、“保存这个工作流”、“提炼这个模式”、“提取技能”、“提炼模式”、“总结为 skill”、“保存为技能”、“生成 command”、“生成命令”、“提取为命令”、“提取 agent”、“生成 agent”、“保存为 agent”、“把这个变成技能”、“把这个提炼出来”、“保存这个工作流”、“提取可复用模式”,或希望从当前对话历史中提取可复用组件(技能、命令、agents)时使用。

person作者: jakexiaohubgithub

Extract Component

Overview

Analyze the current conversation history and extract reusable patterns into Claude Code components — Skills, Commands, or Agents. This skill identifies valuable methodology, operation sequences, and decision workflows from the conversation and generates properly formatted component files.

Intent Classification

When the user triggers this skill, determine the extraction intent:

  1. Explicit type — User specifies what they want (e.g., "extract a skill", "make this a command")
  2. Auto-detect — User wants extraction but hasn't specified the type (e.g., "extract pattern", "save this workflow")

Component Type Guidelines

  • Skill — A methodology, technique, or approach for solving a category of problems. Skills describe how to think about a problem, with progressive disclosure of details. Best for: debugging strategies, review processes, design methodologies, domain-specific expertise.
  • Command — A concrete sequence of operations that can be executed with parameters. Commands are action-oriented with clear inputs and outputs. Best for: build workflows, deployment steps, data processing pipelines, repetitive multi-step tasks.
  • Agent — An autonomous workflow that requires decision-making, branching logic, and tool usage. Agents operate independently within defined boundaries. Best for: code review workflows, test generation, documentation creation, complex analysis tasks.

Execution

Route to the /skill-extractor:extract command with the user's intent:

  1. If the user specified a type, pass it as an argument (e.g., /skill-extractor:extract skill)
  2. If auto-detect, pass no type argument — the command will analyze and recommend

Invoke the command: /skill-extractor:extract $ARGUMENTS