Answer: Create a plugin directory with a `.claude-plugin/` folder alongside `.claude/`, copy your existing commands, agents, and skills directories into the plugin root, move any hooks from your settings file into `my-plugin/hooks/hooks.json`, then test with `claude --plugin-dir ./my-plugin`. Status: Confirmed Entry: tool/claude-code/features/convert-claude-setup-to-plugin Revision: 3 Digest: sha256:b66bbaa499eae445 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:01Z Last changed: 2026-11-20T12:23:04Z (hooks directory command: — → mkdir -p my-plugin/hooks) Last verified: 2026-11-20T12:23:04Z Next check: 2026-11-21T12:23:04Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of plugin structure command | mkdir -p my-plugin/.claude-plugin | [1] | 2026-11-20 plugin manifest path | my-plugin/.claude-plugin/plugin.json | [1] | 2026-11-20 plugin version | 1.0.0 | [1] | 2026-11-20 copy commands | cp -r .claude/commands my-plugin/ | [1] | 2026-11-20 copy agents | cp -r .claude/agents my-plugin/ | [1] | 2026-11-20 copy skills | cp -r .claude/skills my-plugin/ | [1] | 2026-11-20 hooks directory command | mkdir -p my-plugin/hooks | [1] | 2026-11-20 test command | claude --plugin-dir ./my-plugin | [1] | 2026-11-20 Sources: [1] Anthropic. "Create a Claude Code plugin". https://code.claude.com/docs/en/plugins/create.md Role: primary. Accessed: 2026-11-20T12:23:04Z Quote: "mkdir -p my-plugin/.claude-plugin" (Supports: plugin structure command) Quote: "Create `my-plugin/.claude-plugin/plugin.json`:" (Supports: plugin manifest path) Quote: ""version": "1.0.0"" (Supports: plugin version) Quote: "cp -r .claude/commands my-plugin/" (Supports: copy commands) Quote: "cp -r .claude/agents my-plugin/" (Supports: copy agents) Quote: "cp -r .claude/skills my-plugin/" (Supports: copy skills) Quote: "mkdir -p my-plugin/hooks" (Supports: hooks directory command) Quote: "claude --plugin-dir ./my-plugin" (Supports: test command) Published: 2026-11-20T03:13:13Z Snapshot SHA-256: d3cf342ac0441cb170005622e14dce855cba843e81c5cede58cbcb8679883d66 (captured 2026-11-20T12:23:01Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:23:04Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:23:04Z Last attempt: 2026-11-20T12:23:04Z Notes and limitations: Extracted automatically from a single official source (section "Convert an existing `.claude/` setup"). Related: https://latestn.com/tool/claude-code/features/create-custom-output-style How do I create a custom output style in Claude Code? https://latestn.com/tool/claude-code/features/create-first-skill How do I create a skill in Claude Code? https://latestn.com/tool/claude-code/features/create-marketplace-json How do I create a marketplace.json file for a Claude Code plugin marketplace? https://latestn.com/tool/claude-code/features/code-mode-requirements-limits What are the requirements and limitations of Code Mode in Claude Code? https://latestn.com/tool/claude-code/features/code-review-levels What review levels does Claude Code Code Review offer? https://latestn.com/tool/claude-code/features/confirm-resolved-version How do I confirm which plugin dependency version Claude Code resolved? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T12:23:04Z | changed | hooks directory command: — → mkdir -p my-plugin/hooks | [1] 2026-11-20T12:23:04Z | changed | copy skills: — → cp -r .claude/skills my-plugin/ | [1] 2026-11-20T12:23:04Z | changed | copy agents: — → cp -r .claude/agents my-plugin/ | [1] 2026-11-20T12:23:04Z | changed | copy commands: — → cp -r .claude/commands my-plugin/ | [1] 2026-11-20T12:23:04Z | changed | plugin structure command: — → mkdir -p my-plugin/.claude-plugin | [1] 2026-11-20T12:23:04Z | changed | subagent example: my-plugin:reviewer → — | [1] 2026-11-20T12:23:04Z | changed | skill invocation example: /my-plugin:deploy → — | [1] 2026-11-20T12:23:04Z | changed | hooks file path: my-plugin/hooks/hooks.json → — | [1] 2026-11-20T12:23:04Z | changed | plugin name: my-plugin → — | [1] 2026-11-16T12:10:55Z | changed | subagent example: — → my-plugin:reviewer | [1] 2026-11-16T12:10:55Z | changed | skill invocation example: — → /my-plugin:deploy | [1] 2026-11-16T12:10:55Z | changed | skills test command: /my-plugin:deploy → — | [1] 2026-11-13T03:05:01Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/features/convert-claude-setup-to-plugin/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/features/convert-claude-setup-to-plugin POST: https://latestn.com/dispute/tool/claude-code/features/convert-claude-setup-to-plugin with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/features/convert-claude-setup-to-plugin?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I convert an existing .claude/ setup into a Claude Code plugin? Revision 3, last verified 2026-11-20T12:23:04Z. https://latestn.com/tool/claude-code/features/convert-claude-setup-to-plugin (accessed 2026-11-21T09:55:15Z). @misc{LatestN_tool_claude_code_features_convert_claude_setup_to_plugin_r3, title = {How do I convert an existing .claude/ setup into a Claude Code plugin?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/features/convert-claude-setup-to-plugin}}, note = {Revision 3; digest sha256:b66bbaa499eae445; last verified 2026-11-20T12:23:04Z; accessed 2026-11-21T09:55:15Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/features/convert-claude-setup-to-plugin