---
title: "Discussion on \"How to Create a Claude Code Plugin, Step by Step\" | Hashnode"
description: "Discussion on \"How to Create a Claude Code Plugin, Step by Step\". plugin.json, skills, hooks, .mcp.json, validate, test with --plugin-dir, then publish with marketplace.json"
url: "https://hashnode.com/posts/how-to-create-a-claude-code-plugin/6afb5ff78b1aa6c5e5db7698"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Create a Claude Code Plugin, Step by Step](https://agentkitco.hashnode.dev/how-to-create-a-claude-code-plugin?utm_source=hashnode&utm_medium=feed)

plugin.json, skills, hooks, .mcp.json, validate, test with --plugin-dir, then publish with marketplace.json

1d ago · 7 min read · agentkitco.hashnode.dev  
Read the article

-   [#claude-code](https://hashnode.com/tag/claude-code)
-   [#ai](https://hashnode.com/tag/ai)
-   [#developer-tools](https://hashnode.com/tag/developer-tools)
-   [#plugins](https://hashnode.com/tag/plugins)

## Written by

[AgentKit Co](https://hashnode.com/@agentkitco)

@agentkitco

  
[View profile](https://hashnode.com/@agentkitco)

Prompt packs and AI agent starter kits. agentkitco.com

## Responses 1

Markdown supported · ⌘↵ to post

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[1d ago](https://hashnode.com/posts/how-to-create-a-claude-code-plugin/6afb5ff78b1aa6c5e5db7698/comment/6afb75360f274841bda2dd9b)

The duplicate-hook warning during migration is worth turning into an executable smoke test. A formatter or dependency hook can run twice even when both the standalone setup and the packaged plugin validate independently.

I would load the package from a directory containing spaces, run one harmless matching tool action, and have the hook write a single invocation record. Repeat after reload and after removing the standalone copy. That exercises quoting, resource resolution, and registration together, which a manifest-only check cannot establish before someone installs the published package.
