migrating-plugins
Use when setting up or migrating a Claude Code plugin. Use when user says "setup plugin", "migrate plugin", "plugin from scratch", "check my plugin", "turn this into a plugin", "package this as plugin". Routes to creating-plugins or validating + refactoring pipeline.
What this skill does
# Migrating Plugins ## Overview **Migrating plugins IS identifying what to work with, then routing to the correct workflow.** A workspace may contain existing plugins, a script project that should become a plugin, or nothing. This skill discovers the state, asks the user what they want, resolves paths, then routes. **Core principle:** Discover what exists. Ask the user. Then route. **Violating the letter of the rules is violating the spirit of the rules.** ## Routing **Pattern:** Tree **Handoff:** auto-invoke **Next:** `creating-plugins` | `validating-plugins` → `refactoring-plugins` **Chain:** plugin ## Task Initialization (MANDATORY) Before ANY action, create task list using TaskCreate: ``` TaskCreate for EACH task below: - Subject: "[migrating-plugins] Task N: <action>" - ActiveForm: "<doing action>" ``` **Tasks:** 1. Discover and select target 2. Assess state and classify 3. Propose conversion (if pre-plugin) 4. Route to appropriate skill chain Announce: "Created 4 tasks. Starting execution..." **Execution rules:** 1. `TaskUpdate status="in_progress"` BEFORE starting each task 2. `TaskUpdate status="completed"` ONLY after verification passes 3. If task fails → stay in_progress, diagnose, retry 4. NEVER skip to next task until current is completed 5. At end, `TaskList` to confirm all completed ## Plugin vs Project: Key Differences | Component | Project | Plugin | |-----------|---------|--------| | CLAUDE.md | ✓ | ✗ | | .claude/rules/ | ✓ | ✗ | | .claude/settings.json | ✓ | ✗ (plugin has settings.json at root) | | .claude-plugin/plugin.json | ✗ | ✓ (manifest) | | marketplace.json | ✗ | ✓ (if marketplace) | | skills/ | .claude/skills/ | plugin-root/skills/ | | agents/ | .claude/agents/ | plugin-root/agents/ | | hooks/ | .claude/settings.json | plugin-root/hooks/hooks.json | | .mcp.json | ✓ | ✓ | | .lsp.json | ✗ | ✓ | | bin/ | ✗ | ✓ | ## Task 1: Discover and Select Target **Goal:** Find existing plugins or identify a script project to convert. **Discovery strategy (try in order):** 1. **Check for marketplace.json** — scan for `**/.claude-plugin/marketplace.json`. Read `plugins` array for names and `source` paths. 2. **Check for standalone plugins** — scan for `**/.claude-plugin/plugin.json`. Each parent of `.claude-plugin/` is a plugin root. 3. **Check for script project** — if no plugins found, scan for signs of a convertible project: - Script files (`*.sh`, `*.py`, `*.js`, `*.ts`) in root or `scripts/`, `src/`, `bin/` - README.md describing a tool or utility - Package manifest (`package.json`, `pyproject.toml`, `Cargo.toml`) - Existing `.claude/` directory with skills, commands, or agents 4. **Check user-specified path** — if the user provided a path, use it directly. **For each plugin found, record:** - Name (from plugin.json `name` field) - Root path - Version - Source path (from marketplace.json if applicable) **If multiple plugins found:** - Present numbered list, ask which to work on **If exactly one plugin found:** - Confirm: "Found plugin '[name]' at [path]. Proceed?" **If no plugins but script project detected:** - Announce: "No plugin found, but this looks like a script project that could become a plugin." - List what was found (scripts, README, package manifest, .claude/ configs) - Ask: "Do you want to package this as a Claude Code plugin?" **If nothing found:** - Ask: "Do you want to create a new plugin from scratch?" **Set the target path** for all subsequent tasks. **Verification:** Target is selected, path is resolved, user has confirmed. ## Task 2: Assess State and Classify **Goal:** Determine the maturity level of the target. **Maturity classification:** | Level | Criteria | Route | |-------|----------|-------| | **None** | No plugin, no scripts, user wants new | → `creating-plugins` | | **Pre-plugin** | Script project without `.claude-plugin/` — has scripts, tools, or `.claude/` configs that can become plugin components | → Task 3 (conversion proposal) → `creating-plugins` | | **Minimal** | Has `.claude-plugin/plugin.json` but missing skills/agents/hooks | → `validating-plugins` → `refactoring-plugins` | | **Complete** | Has manifest + skills + agents or hooks | → `validating-plugins` → `refactoring-plugins` | **For Pre-plugin, scan and categorize existing assets:** | Asset Type | Example | Becomes | |------------|---------|---------| | Scripts with reusable logic | `scripts/deploy.sh`, `tools/lint.py` | `bin/` executables or skill-bundled scripts | | Markdown instructions | `.claude/commands/*.md` | `skills/` or `commands/` | | Agent definitions | `.claude/agents/*.md` | `agents/` | | Hook scripts | `.claude/hooks/*` | `hooks/` | | Skill directories | `.claude/skills/*/SKILL.md` | `skills/` | | MCP server configs | `.mcp.json` | `.mcp.json` | | Validation/linting scripts | `scripts/validate.py` | `hooks/` | **For each asset found, record:** - Source path - Type (script / instruction / agent / hook / skill / config) - Suggested plugin component - Line count **Run `claude plugin validate`** if `.claude-plugin/` exists. **Detect version bump documentation** (record for routing): - Plugin root `CLAUDE.md` exists AND contains a version-bump section listing every version-bearing file (plugin.json, marketplace entries, README headers) - Record as `version_bump_doc: present | absent | partial` (partial = CLAUDE.md exists but section missing or incomplete) **Verification:** Clear maturity classification with asset inventory. Version bump doc state recorded. ## Task 3: Propose Conversion (Pre-plugin Only) **Skip if:** Maturity is None, Minimal, or Complete. **Goal:** Present a conversion proposal for the script project. **Conversion proposal format:** ``` ## Plugin Conversion Proposal Plugin name: [suggested-name] Source: [project path] | # | Source | Type | Plugin Component | Action | |---|--------|------|-----------------|--------| | 1 | scripts/deploy.sh | script | bin/deploy.sh | Copy to bin/, make executable | | 2 | .claude/commands/review.md | instruction | skills/reviewing/SKILL.md | Convert to skill with frontmatter | | 3 | .claude/agents/checker.md | agent | agents/checker.md | Copy, verify frontmatter | | 4 | scripts/lint.py | validator | hooks/lint.py + hooks.json | Wrap as PostToolUse hook | | 5 | README.md | docs | README.md | Adapt for plugin installation | Version bump doc: [present | absent | partial] - If absent/partial: `creating-plugins` Task 6 will add the required section to plugin CLAUDE.md during conversion ``` **Present to user for confirmation.** **If confirmed:** - Pass the conversion proposal as context to `creating-plugins` - `creating-plugins` will use the proposal to pre-populate the plugin structure instead of starting from scratch **If rejected:** - Ask what to change, revise proposal, present again **Verification:** User has confirmed or revised the conversion proposal. ## Task 4: Route to Appropriate Skill Chain **Goal:** Invoke the correct skill with the target path. **Important:** Always pass the target path to downstream skills. **If None:** - Invoke `creating-plugins` (its Task 6 ensures plugin CLAUDE.md documents version bump locations) **If Pre-plugin (after Task 3 confirmation):** - Invoke `creating-plugins` with the conversion proposal as context (including recorded `version_bump_doc` state) - The proposal tells `creating-plugins` which files to move/convert instead of scaffolding from scratch - `creating-plugins` Task 6 will fill the plugin CLAUDE.md section based on the recorded state **If Minimal or Complete:** - Invoke `validating-plugins` with plugin root path - After validation, invoke `refactoring-plugins` with report, plugin root path, and recorded `version_bump_doc` state - `refactoring-plugins` Task 7 verifies / fills the plugin CLAUDE.md version-bump section **Verification:** Correct skill invoked with target path, context, and version bump doc state. ## Red Flags - STOP These thoughts mean you're rationalizing. ST
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.