تخطَّ إلى المحتوى
إضافةمستورديحتوي سكربتات

plugin-dev

Plugin development toolkit with skills for creating agents, commands, hooks, MCP integrations, and comprehensive plugin structure guidance

وصف مستورد لم يراجعه محرر بعد

جاء هذا العنصر من مستودعه الأصلي وفحصناه آلياً فقط، ولم يكتب له محرر وصفاً عربياً بعد. اقرأ محتواه بنفسك قبل أن تعتمد عليه. ولا تُفهرس هذه الصفحة في محركات البحث حتى تُراجَع.

التنزيل

اقرأ هذا قبل أن تنزّل

لا يشغّل تلقين أي شيء من هذا العنصر. لكن ما تنزّله يعمل على جهازك إن شغّلته أنت أو سمحت لكلود كود بتشغيله، فاقرأ الملفات أولاً.

  • في العنصر ملفات سكربت.

الملفات: 60 · الحجم: 538 ك.ب

نزّل ملف ZIP

يحمل الملف ترخيص المصدر الأصلي.

التثبيت

تُثبَّت الإضافات من سوق الإضافات في كلود كود، لا بنسخ الملفات. نزّل الحزمة لتقرأ محتواها وترخيصها.

التعليمات

Plugin Development Toolkit

A comprehensive toolkit for developing Claude Code plugins with expert guidance on hooks, MCP integration, plugin structure, and marketplace publishing.

Overview

The plugin-dev toolkit provides seven specialized skills to help you build high-quality Claude Code plugins:

  1. hook-development - Advanced hooks API and event-driven automation
  2. mcp-integration - Model Context Protocol server integration
  3. plugin-structure - Plugin organization and manifest configuration
  4. plugin-settings - Configuration patterns using .claude/plugin-name.local.md files
  5. command-development - Creating slash commands with frontmatter and arguments
  6. agent-development - Creating autonomous agents with AI-assisted generation
  7. skill-development - Creating skills with progressive disclosure and strong triggers

Each skill follows best practices with progressive disclosure: lean core documentation, detailed references, working examples, and utility scripts.

Guided Workflow Command

/plugin-dev:create-plugin

A comprehensive, end-to-end workflow command for creating plugins from scratch, similar to the feature-dev workflow.

8-Phase Process:

  1. Discovery - Understand plugin purpose and requirements
  2. Component Planning - Determine needed skills, commands, agents, hooks, MCP
  3. Detailed Design - Specify each component and resolve ambiguities
  4. Structure Creation - Set up directories and manifest
  5. Component Implementation - Create each component using AI-assisted agents
  6. Validation - Run plugin-validator and component-specific checks
  7. Testing - Verify plugin works in Claude Code
  8. Documentation - Finalize README and prepare for distribution

Features:

  • Asks clarifying questions at each phase
  • Loads relevant skills automatically
  • Uses agent-creator for AI-assisted agent generation
  • Runs validation utilities (validate-agent.sh, validate-hook-schema.sh, etc.)
  • Follows plugin-dev's own proven patterns
  • Guides through testing and verification

Usage:

/plugin-dev:create-plugin [optional description]

# Examples:
/plugin-dev:create-plugin
/plugin-dev:create-plugin A plugin for managing database migrations

Use this workflow for structured, high-quality plugin development from concept to completion.

Skills

1. hook-development

Trigger phrases: "create a hook", "add a PreToolUse hook", "validate tool use", "implement prompt-based hooks", "${CLAUDE_PLUGIN_ROOT}", "block dangerous commands"

What it covers:

  • Prompt-based hooks (recommended) with LLM decision-making
  • Command hooks for deterministic validation
  • All hook events: PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification
  • Hook output formats and JSON schemas
  • Security best practices and input validation
  • ${CLAUDE_PLUGIN_ROOT} for portable paths

Resources:

  • Core SKILL.md (1,619 words)
  • 3 example hook scripts (validate-write, validate-bash, load-context)
  • 3 reference docs: patterns, migration, advanced techniques
  • 3 utility scripts: validate-hook-schema.sh, test-hook.sh, hook-linter.sh

Use when: Creating event-driven automation, validating operations, or enforcing policies in your plugin.

2. mcp-integration

Trigger phrases: "add MCP server", "integrate MCP", "configure .mcp.json", "Model Context Protocol", "stdio/SSE/HTTP server", "connect external service"

What it covers:

  • MCP server configuration (.mcp.json vs plugin.json)
  • All server types: stdio (local), SSE (hosted/OAuth), HTTP (REST), WebSocket (real-time)
  • Environment variable expansion (${CLAUDE_PLUGIN_ROOT}, user vars)
  • MCP tool naming and usage in commands/agents
  • Authentication patterns: OAuth, tokens, env vars
  • Integration patterns and performance optimization

Resources:

  • Core SKILL.md (1,666 words)
  • 3 example configurations (stdio, SSE, HTTP)
  • 3 reference docs: server-types (~3,200w), authentication (~2,800w), tool-usage (~2,600w)

Use when: Integrating external services, APIs, databases, or tools into your plugin.

3. plugin-structure

Trigger phrases: "plugin structure", "plugin.json manifest", "auto-discovery", "component organization", "plugin directory layout"

What it covers:

  • Standard plugin directory structure and auto-discovery
  • plugin.json manifest format and all fields
  • Component organization (commands, agents, skills, hooks)
  • ${CLAUDE_PLUGIN_ROOT} usage throughout
  • File naming conventions and best practices
  • Minimal, standard, and advanced plugin patterns

Resources:

  • Core SKILL.md (1,619 words)
  • 3 example structures (minimal, standard, advanced)
  • 2 reference docs: component-patterns, manifest-reference

Use when: Starting a new plugin, organizing components, or configuring the plugin manifest.

4. plugin-settings

Trigger phrases: "plugin settings", "store plugin configuration", ".local.md files", "plugin state files", "read YAML frontmatter", "per-project plugin settings"

What it covers:

  • .claude/plugin-name.local.md pattern for configuration
  • YAML frontmatter + markdown body structure
  • Parsing techniques for bash scripts (sed, awk, grep patterns)
  • Temporarily active hooks (flag files and quick-exit)
  • Real-world examples from multi-agent-swarm and ralph-loop plugins
  • Atomic file updates and validation
  • Gitignore and lifecycle management

Resources:

  • Core SKILL.md (1,623 words)
  • 3 examples (read-settings hook, create-settings command, templates)
  • 2 reference docs: parsing-techniques, real-world-examples
  • 2 utility scripts: validate-settings.sh, parse-frontmatter.sh

Use when: Making plugins configurable, storing per-project state, or implementing user preferences.

5. command-development

Trigger phrases: "create a slash command", "add a command", "command frontmatter", "define command arguments", "organize commands"

What it covers:

  • Slash command structure and markdown format
  • YAML frontmatter fields (description, argument-hint, allowed-tools)
  • Dynamic arguments and file references
  • Bash execution for context
  • Command organization and namespacing
  • Best practices for command development

Resources:

  • Core SKILL.md (1,535 words)
  • Examples and reference documentation
  • Command organization patterns

Use when: Creating slash commands, defining command arguments, or organizing plugin commands.

6. agent-development

Trigger phrases: "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "autonomous agent"

What it covers:

  • Agent file structure (YAML frontmatter + system prompt)
  • All frontmatter fields (name, description, model, color, tools)
  • Description format with blocks for reliable triggering
  • System prompt design patterns (analysis, generation, validation, orchestration)
  • AI-assisted agent generation using Claude Code's proven prompt
  • Validation rules and best practices
  • Complete production-ready agent examples

Resources:

  • Core SKILL.md (1,438 words)
  • 2 examples: agent-creation-prompt (AI-assisted workflow), complete-agent-examples (4 full agents)
  • 3 reference docs: agent-creation-system-prompt (from Claude Code), system-prompt-design (~4,000w), triggering-examples (~2,500w)
  • 1 utility script: validate-agent.sh

Use when: Creating autonomous agents, defining agent behavior, or implementing AI-assisted agent generation.

7. skill-development

Trigger phrases: "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content"

What it covers:

  • Skill structure (SKILL.md with YAML frontmatter)
  • Progressive disclosure principle (metadata → SKILL.md → resources)
  • Strong trigger descriptions with specific phrases
  • Writing style (imperative/infinitive form, third person)
  • Bundled resources organization (references/, examples/, scripts/)
  • Skill creation workflow
  • Based on skill-creator methodology adapted for Claude Code plugins

Resources:

  • Core SKILL.md (1,232 words)
  • References: skill-creator methodology, plugin-dev patterns
  • Examples: Study plugin-dev's own skills as templates

Use when: Creating new skills for plugins or improving existing skill quality.

Installation

Install from claude-code-marketplace:

/plugin install plugin-dev@claude-code-marketplace

Or for development, use directly:

cc --plugin-dir /path/to/plugin-dev

Quick Start

Creating Your First Plugin

  1. Plan your plugin structure:

    • Ask: "What's the best directory structure for a plugin with commands and MCP integration?"
    • The plugin-structure skill will guide you
  2. Add MCP integration (if needed):

    • Ask: "How do I add an MCP server for database access?"
    • The mcp-integration skill provides examples and patterns
  3. Implement hooks (if needed):

    • Ask: "Create a PreToolUse hook that validates file writes"
    • The hook-development skill gives working examples and utilities

Development Workflow

The plugin-dev toolkit supports your entire plugin development lifecycle:

┌─────────────────────┐
│  Design Structure   │  → plugin-structure skill
│  (manifest, layout) │
└──────────┬──────────┘
           │
┌──────────▼──────────┐
│  Add Components     │
│  (commands, agents, │  → All skills provide guidance
│   skills, hooks)    │
└──────────┬──────────┘
           │
┌──────────▼──────────┐
│  Integrate Services │  → mcp-integration skill
│  (MCP servers)      │
└──────────┬──────────┘
           │
┌──────────▼──────────┐
│  Add Automation     │  → hook-development skill
│  (hooks, validation)│     + utility scripts
└──────────┬──────────┘
           │
┌──────────▼──────────┐
│  Test & Validate    │  → hook-development utilities
│                     │     validate-hook-schema.sh
└──────────┬──────────┘     test-hook.sh
           │                 hook-linter.sh

Features

Progressive Disclosure

Each skill uses a three-level disclosure system:

  1. Metadata (always loaded): Concise descriptions with strong triggers
  2. Core SKILL.md (when triggered): Essential API reference (~1,500-2,000 words)
  3. References/Examples (as needed): Detailed guides, patterns, and working code

This keeps Claude Code's context focused while providing deep knowledge when needed.

Utility Scripts

The hook-development skill includes production-ready utilities:

# Validate hooks.json structure
./validate-hook-schema.sh hooks/hooks.json

# Test hooks before deployment
./test-hook.sh my-hook.sh test-input.json

# Lint hook scripts for best practices
./hook-linter.sh my-hook.sh

Working Examples

Every skill provides working examples:

  • hook-development: 3 complete hook scripts (bash, write validation, context loading)
  • mcp-integration: 3 server configurations (stdio, SSE, HTTP)
  • plugin-structure: 3 plugin layouts (minimal, standard, advanced)
  • plugin-settings: 3 examples (read-settings hook, create-settings command, templates)
  • command-development: 10 complete command examples (review, test, deploy, docs, etc.)

Documentation Standards

All skills follow consistent standards:

  • Third-person descriptions ("This skill should be used when...")
  • Strong trigger phrases for reliable loading
  • Imperative/infinitive form throughout
  • Based on official Claude Code documentation
  • Security-first approach with best practices

Total Content

  • Core Skills: ~11,065 words across 7 SKILL.md files
  • Reference Docs: ~10,000+ words of detailed guides
  • Examples: 12+ working examples (hook scripts, MCP configs, plugin layouts, settings files)
  • Utilities: 6 production-ready validation/testing/parsing scripts

Use Cases

Building a Database Plugin

1. "What's the structure for a plugin with MCP integration?"
   → plugin-structure skill provides layout

2. "How do I configure an stdio MCP server for PostgreSQL?"
   → mcp-integration skill shows configuration

3. "Add a Stop hook to ensure connections close properly"
   → hook-development skill provides pattern

Creating a Validation Plugin

1. "Create hooks that validate all file writes for security"
   → hook-development skill with examples

2. "Test my hooks before deploying"
   → Use validate-hook-schema.sh and test-hook.sh

3. "Organize my hooks and configuration files"
   → plugin-structure skill shows best practices

Integrating External Services

1. "Add Asana MCP server with OAuth"
   → mcp-integration skill covers SSE servers

2. "Use Asana tools in my commands"
   → mcp-integration tool-usage reference

3. "Structure my plugin with commands and MCP"
   → plugin-structure skill provides patterns

Best Practices

All skills emphasize:

✅ Security First

  • Input validation in hooks
  • HTTPS/WSS for MCP servers
  • Environment variables for credentials
  • Principle of least privilege

✅ Portability

  • Use ${CLAUDE_PLUGIN_ROOT} everywhere
  • Relative paths only
  • Environment variable substitution

✅ Testing

  • Validate configurations before deployment
  • Test hooks with sample inputs
  • Use debug mode (claude --debug)

✅ Documentation

  • Clear README files
  • Documented environment variables
  • Usage examples

Contributing

This plugin is part of the claude-code-marketplace. To contribute improvements:

  1. Fork the marketplace repository
  2. Make changes to plugin-dev/
  3. Test locally with cc --plugin-dir
  4. Create PR following marketplace-publishing guidelines

Version

0.1.2 - Two MCP reference examples now run a bundled server instead of an npm package 0.1.1 - Initial release with seven comprehensive skills and three validation agents

Author

Daisy Hollman (daisy@anthropic.com)

License

MIT License - See repository for details


Note: This toolkit is designed to help you build high-quality plugins. The skills load automatically when you ask relevant questions, providing expert guidance exactly when you need it.

الملفات

  • مجلد.claude-plugin289 بايت
    • plugin.json289 بايت
  • مجلدagents20 ك.ب
    • agent-creator.md7.3 ك.ب
    • plugin-validator.md6.5 ك.ب
    • skill-reviewer.md6 ك.ب
  • مجلدcommands15 ك.ب
    • create-plugin.md15 ك.ب
  • مجلدskills477 ك.بسكربت
    • مجلدagent-development68 ك.بسكربت
      • مجلدexamples23 ك.ب
        • agent-creation-prompt.md9.6 ك.ب
        • complete-agent-examples.md14 ك.ب
      • مجلدreferences28 ك.ب
        • agent-creation-system-prompt.md9.5 ك.ب
        • system-prompt-design.md9.8 ك.ب
        • triggering-examples.md8.7 ك.ب
      • مجلدscripts5.7 ك.بسكربت
        • validate-agent.sh5.7 ك.بسكربت
      • SKILL.md11 ك.ب
    • مجلدcommand-development151 ك.ب
      • مجلدexamples22 ك.ب
        • plugin-commands.md14 ك.ب
        • simple-commands.md8.5 ك.ب
      • مجلدreferences102 ك.ب
        • advanced-workflows.md13 ك.ب
        • documentation-patterns.md15 ك.ب
        • frontmatter-reference.md8.9 ك.ب
        • interactive-commands.md20 ك.ب
        • marketplace-considerations.md16 ك.ب
        • plugin-features-reference.md14 ك.ب
        • testing-strategies.md14 ك.ب
      • README.md7.5 ك.ب
      • SKILL.md19 ك.ب
    • مجلدhook-development63 ك.بسكربت
      • مجلدexamples4.1 ك.بسكربت
        • load-context.sh1.7 ك.بسكربت
        • validate-bash.sh1.3 ك.بسكربت
        • validate-write.sh1.2 ك.بسكربت
      • مجلدreferences25 ك.ب
        • advanced.md9.9 ك.ب
        • migration.md8.1 ك.ب
        • patterns.md7 ك.ب
      • مجلدscripts18 ك.بسكربت
        • README.md3.6 ك.ب
        • hook-linter.sh4.1 ك.بسكربت
        • test-hook.sh5.2 ك.بسكربت
        • validate-hook-schema.sh5 ك.بسكربت
      • SKILL.md16 ك.ب
    • مجلدmcp-integration46 ك.ب
      • مجلدexamples1.5 ك.ب
        • http-server.json502 بايت
        • sse-server.json337 بايت
        • stdio-server.json686 بايت
      • مجلدreferences32 ك.ب
        • authentication.md9.9 ك.ب
        • server-types.md11 ك.ب
        • tool-usage.md11 ك.ب
      • SKILL.md12 ك.ب
    • مجلدplugin-settings43 ك.بسكربت
      • مجلدexamples7.1 ك.بسكربت
        • create-settings-command.md2.1 ك.ب
        • example-settings.md2.9 ك.ب
        • read-settings-hook.sh2.2 ك.بسكربت
      • مجلدreferences21 ك.ب
        • parsing-techniques.md11 ك.ب
        • real-world-examples.md9.3 ك.ب
      • مجلدscripts3.9 ك.بسكربت
        • parse-frontmatter.sh1.2 ك.بسكربت
        • validate-settings.sh2.6 ك.بسكربت
      • SKILL.md12 ك.ب
    • مجلدplugin-structure73 ك.ب
      • مجلدexamples33 ك.ب
        • advanced-plugin.md18 ك.ب
        • minimal-plugin.md1.7 ك.ب
        • standard-plugin.md13 ك.ب
      • مجلدreferences24 ك.ب
        • component-patterns.md12 ك.ب
        • manifest-reference.md12 ك.ب
      • README.md3.1 ك.ب
      • SKILL.md13 ك.ب
    • مجلدskill-development34 ك.ب
      • مجلدreferences11 ك.ب
        • skill-creator-original.md11 ك.ب
      • SKILL.md22 ك.ب
  • LICENSE11 ك.ب
  • README.md14 ك.ب

ما وجده الفحص الآلي

فحصنا الملفات آلياً وقت الاستيراد. هذا ما نبّه إليه الفحص، ولا يعني أن العنصر ضار ولا أنه سليم: اقرأه بنفسك.

  • يحتاج مراجعةملف سكربت

    في الملف plugins/plugin-dev/skills/agent-development/scripts/validate-agent.sh

  • يحتاج مراجعةيحذف ملفات بالقوة وبالتكرار

    في الملف plugins/plugin-dev/skills/command-development/references/marketplace-considerations.md، السطر 720

  • يحتاج مراجعةيقرأ ملف .env أو أسراراً

    في الملف plugins/plugin-dev/skills/hook-development/SKILL.md، السطر 461

  • يحتاج مراجعةيحذف ملفات بالقوة وبالتكرار

    في الملف plugins/plugin-dev/skills/hook-development/references/advanced.md، السطر 396

  • يحتاج مراجعةيقرأ ملف .env أو أسراراً

    في الملف plugins/plugin-dev/skills/hook-development/references/migration.md، السطر 140

  • يحتاج مراجعةيقرأ ملف .env أو أسراراً

    في الملف plugins/plugin-dev/skills/hook-development/references/patterns.md، السطر 17

  • يحتاج مراجعةيقرأ ملف .env أو أسراراً

    في الملف plugins/plugin-dev/skills/mcp-integration/references/authentication.md، السطر 214

  • يحتاج مراجعةيقرأ ملف .env أو أسراراً

    في الملف plugins/plugin-dev/skills/plugin-settings/examples/read-settings-hook.sh، السطر 41

التعليقات (0)

لا تعليقات بعد. كن أول من يعلّق.

سجّل الدخول لتعلّق. التعليق من المستوى 1 (عضو).

أبلغ

عناصر مشابهة

  • إضافةمستورد

    agent-sdk-dev

    Claude Agent SDK Development Plugin

    Apache-2.0الملفات: 6

  • إضافةمستورد

    block-no-verify

    PreToolUse hook that prevents AI agents from using --no-verify, --no-gpg-sign, and other bypass flags that skip git hooks

    MITالملفات: 4

  • إضافةمستورد

    chrome-mcp-troubleshooting

    Diagnose and fix Claude in Chrome MCP extension connectivity issues

    CC-BY-SA-4.0الملفات: 5

  • إضافةمستورد

    claude-code-setup

    Analyze codebases and recommend tailored Claude Code automations such as hooks, skills, MCP servers, and subagents.

    Apache-2.0الملفات: 10

  • إضافةمستورديحتوي سكربتات

    dgx-spark-ops

    NVIDIA DGX Spark (GB10 Grace Blackwell) environment operations: aarch64/CUDA-13 stack setup, training gotcha preflights, and unified-memory/thermal management for local ML workloads

    MITالملفات: 13

  • إضافةمستورديحتوي سكربتاتيحتوي خطّافات

    gh-cli

    Intercepts GitHub URL fetches (WebFetch and MCP fetch tools) and curl/wget commands, redirecting to the authenticated gh CLI.

    CC-BY-SA-4.0الملفات: 19