Command Palette

Search for a command to run...

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

command-development

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

This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command…

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

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

Command Development for DeepSeek Harness

Note: Inside a plugin, commands live at com.deepseek.harness/commands/*.md. Project-level commands (outside a plugin) live at .agents/commands/*.md and load when the market plugin's project-layout scan is enabled. The frontmatter and body contract below is the same in both places.

Overview

Slash commands are frequently-used prompts defined as Markdown files that the agent executes during interactive sessions. Understanding command structure, frontmatter options, and dynamic features enables creating powerful, reusable workflows.

Key concepts:

  • Markdown file format for commands
  • YAML frontmatter for configuration
  • Dynamic arguments and file references
  • Dynamic context in commands
  • Command organization and namespacing

Command Basics

What is a Slash Command?

A slash command is a Markdown file containing a prompt that the agent executes when invoked. Commands provide:

  • Reusability: Define once, use repeatedly
  • Consistency: Standardize common workflows
  • Sharing: Distribute across team or projects
  • Efficiency: Quick access to complex prompts

Critical: Commands are Instructions for the agent

Commands are written for agent consumption, not human consumption.

When a user invokes /command-name, the command content becomes the agent's instructions. Write commands as directives TO the agent about what to do, not as messages TO the user.

Correct approach (instructions for the agent):

Review this code for security vulnerabilities including:

- SQL injection
- XSS attacks
- Authentication issues

Provide specific line numbers and severity ratings.

Incorrect approach (messages to user):

This command will review your code for security issues.
You'll receive a report with vulnerability details.

The first example tells the agent what to do. The second tells the user what will happen but doesn't instruct the agent. Always use the first approach.

Command Locations

Project commands (shared with team):

  • Location: .agents/commands/
  • Scope: Available in that project; loads when the market plugin's project-layout scan is enabled
  • Use for: Team workflows, project-specific tasks

Personal commands (available everywhere):

  • Location: ~/.agents/commands/
  • Scope: Available in all projects
  • Use for: Personal workflows, cross-project utilities

Plugin commands (bundled with plugins):

  • Location: com.deepseek.harness/commands/ inside the plugin
  • Scope: Available when the plugin is installed
  • Use for: Plugin-specific functionality

File Format

Basic Structure

Commands are Markdown files with .md extension:

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

Simple command:

Review this code for security vulnerabilities including:

- SQL injection
- XSS attacks
- Authentication bypass
- Insecure data handling

No frontmatter needed for basic commands.

With YAML Frontmatter

Add configuration using YAML frontmatter:

---
description: Review code for security issues
allowed-tools: Read, Grep, Bash(git:*)
model: inherit
---

Review this code for security vulnerabilities...

YAML Frontmatter Fields

description

Purpose: Brief description shown in the command list Type: String Default: First line of command prompt

---
description: Review pull request for code quality
---

Best practice: Clear, actionable description (under 60 characters)

allowed-tools

Purpose: Specify which tools the command can use. A harness-side frontmatter key: the market passes it through; sessions that do not support it ignore it. Keep restrictions in the prompt body when in doubt.

Type: String or Array Default: Inherits from conversation

---
allowed-tools: Read, Write, Edit, Bash(git:*)
---

Patterns:

  • Read, Write, Edit - Specific tools
  • Bash(git:*) - Bash with git commands only
  • * - All tools (rarely needed)

Use when: Command requires specific tool access

model

Purpose: Specify model for command execution Type: String (exact model ids) Default: Inherits from conversation

---
model: inherit
---

Use cases:

  • Omit it entirely for commands that should run on the session's own model
  • inherit when you want to state the routing explicitly
  • An exact provider + model pair when a command must run on a specific model

argument-hint

Purpose: Document expected arguments for autocomplete Type: String — always quoted Default: None

---
argument-hint: "[pr-number] [priority] [assignee]"
---

Quote the value whenever it starts with [, {, *, &, !, %, @, >, |, or contains : . Unquoted, [a] [b] is two adjacent YAML flow sequences and the command fails to load; a single `[a]

Полный SKILL.md на GitHub

Установить command-development в Claude Code и Claude Desktop

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

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

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

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

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

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

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

README.mdexamples/plugin-commands.mdexamples/simple-commands.mdreferences/advanced-workflows.mdreferences/documentation-patterns.mdreferences/frontmatter-reference.mdreferences/interactive-commands.mdreferences/marketplace-considerations.mdreferences/plugin-features-reference.mdreferences/testing-strategies.md

FAQ

Что делает скилл command-development?

This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use ask_user_question in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for DeepSeek Harness.

Как установить скилл command-development?

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

Скилл command-development запускает скрипты?

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

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

Сравнить command-development с