Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

plugin-structure

БесплатноБез исполняемых скриптовНе проверен

This skill should be used when the user asks to "create a plugin", "scaffold a plugin", "understand plugin structure", "organize plugin components", "set up…

Sivan757от Sivan757★ 23 звезды на GitHub

Об этом скилле

Plugin Structure for DeepSeek Harness

Overview

DeepSeek Harness plugins follow a standardized directory structure with automatic component discovery. Understanding this structure enables creating well-organized, maintainable plugins that integrate seamlessly with DeepSeek Harness.

Key concepts:

  • Conventional directory layout for automatic discovery
  • Manifest-driven configuration in plugin.json
  • Component-based organization (commands, agents, skills, hooks)
  • Portable path references using ${PLUGIN_ROOT}
  • Explicit vs. auto-discovered component loading

Directory Structure

Every DeepSeek Harness plugin follows this organizational pattern:

plugin-name/
├── plugin.json               # Required: Plugin manifest
├── mcp.json                  # Optional: MCP server definitions (portable)
├── skills/                   # Agent skills (subdirectories)
│   └── skill-name/
│       └── SKILL.md         # Required for each skill
└── com.deepseek.harness/     # Optional client namespace directory
    ├── commands/             # Slash commands (.md files)
    ├── agents/               # Subagent definitions (.md files)
    ├── hooks/
    │   └── hooks.json        # Event handler configuration
    └── lsp.json              # LSP server declarations

Critical rules:

  1. Manifest location: The plugin.json manifest MUST be at the plugin root
  2. Namespace declaration: The com.deepseek.harness/ directory is read only when the manifest declares extensions["com.deepseek.harness"].schemaVersion as "1.0.0"; without it the portable core (skills/, mcp.json) still loads
  3. Optional components: Only create directories for components the plugin actually uses
  4. Naming convention: Use kebab-case for all directory and file names

Plugin Manifest (plugin.json)

The manifest defines plugin metadata and configuration. Located at plugin.json:

Required Fields

{
  "name": "plugin-name"
}

Name requirements:

  • Use kebab-case format (lowercase with hyphens)
  • Must be unique across installed plugins
  • No spaces or special characters
  • Example: code-review-assistant, test-runner, api-docs

Recommended Metadata

{
  "name": "plugin-name",
  "version": "1.0.0",
  "description": "Brief explanation of plugin purpose",
  "author": {
    "name": "Author Name",
    "email": "[email protected]",
    "url": "https://example.com"
  },
  "homepage": "https://docs.example.com",
  "repository": "https://github.com/user/plugin-name",
  "license": "MIT",
  "keywords": ["testing", "automation", "ci-cd"]
}

Version format: Follow semantic versioning (MAJOR.MINOR.PATCH) Keywords: Use for plugin discovery and categorization

Component Path Configuration

Specify custom paths for components (supplements default directories):

{
  "name": "plugin-name",
  "commands": "./custom-commands",
  "agents": ["./agents", "./specialized-agents"],
  "hooks": "./config/hooks.json",
  "mcpServers": "./mcp.json"
}

Important: Custom paths supplement defaults—they don't replace them. Components in both default directories and custom paths will load.

Path rules:

  • Must be relative to plugin root
  • Must start with ./
  • Cannot use absolute paths
  • Support arrays for multiple locations

Component Organization

Commands

Location: com.deepseek.harness/commands/ directory Format: Markdown files with YAML frontmatter Auto-discovery: All .md files in com.deepseek.harness/commands/ load automatically

Example structure:

commands/
├── review.md        # /review command
├── test.md          # /test command
└── deploy.md        # /deploy command

File format:

---
name: command-name
description: Command description
---

Command implementation instructions...

Usage: Commands integrate as native slash commands in DeepSeek Harness

Agents

Location: com.deepseek.harness/agents/ directory Format: Markdown files with YAML frontmatter Auto-discovery: All .md files in com.deepseek.harness/agents/ load automatically

Example structure:

agents/
├── code-reviewer.md
├── test-generator.md
└── refactorer.md

File format:

---
description: Agent role and expertise
capabilities:
  - Specific task 1
  - Specific task 2
---

Detailed agent instructions and knowledge...

Usage: Users can invoke agents manually, or DeepSeek Harness selects them automatically based on task context

Skills

Location: skills/ directory with subdirectories per skill Format: Each skill in its own directory with SKILL.md file Auto-discovery: All SKILL.md files in skill subdirectories load automatically

Example structure:

skills/
├── api-testing/
│   ├── SKILL.md
│   ├── scripts/
│   │   └── test-runner.py
│   └── references/
│       └── api-spec.md
└── database-migrations/
    ├── SKILL.md
    └── examples/
        └── migration-template.sql
`
Полный SKILL.md на GitHub

Установить plugin-structure в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdexamples/advanced-plugin.mdexamples/minimal-plugin.mdexamples/standard-plugin.mdreferences/component-patterns.mdreferences/manifest-reference.md

FAQ

Что делает скилл plugin-structure?

This skill should be used when the user asks to "create a plugin", "scaffold a plugin", "understand plugin structure", "organize plugin components", "set up plugin.json", "use ${PLUGIN_ROOT}", "add commands/agents/skills/hooks", "configure auto-discovery", or needs guidance on plugin directory layout, manifest configuration, component organization, file naming conventions, or DeepSeek Harness plugin architecture best practices.

Как установить скилл plugin-structure?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл plugin-structure запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить plugin-structure с