Skip to content

[Feature]: Add disable-model-invocation to workflow commands #135

@sjnims

Description

@sjnims

Problem or Need

The /plugin-dev:create-plugin and /plugin-dev:create-marketplace commands are complex 8-phase guided workflows designed for intentional user initiation. Without disable-model-invocation: true in their frontmatter, Claude could accidentally invoke these commands via the SlashCommand tool during conversation.

These workflows require significant user interaction and decision-making at multiple phases—they're not suited for programmatic invocation.

Proposed Solution

Add disable-model-invocation: true to both command frontmatters:

---
description: Create plugins with guided 8-phase workflow
argument-hint: [plugin-description]
allowed-tools: Read, Write, Edit, Grep, Glob, Bash(mkdir:*), Bash(git init:*), TodoWrite, AskUserQuestion, Skill, Task
disable-model-invocation: true
---

Files to update:

  • plugins/plugin-dev/commands/create-plugin.md
  • plugins/plugin-dev/commands/create-marketplace.md

Component

  • Type: Command
  • Specific: /plugin-dev:create-plugin, /plugin-dev:create-marketplace

Alternatives Considered

  • Leave as-is: If programmatic invocation of these workflows is desired, keep current behavior
  • Document expected behavior: Add comments noting that these may be auto-invoked

Additional Context

Per official Claude Code docs:

disable-model-invocation: Whether to prevent SlashCommand tool from calling this command (default: false)

This is a defensive measure to ensure these complex workflows are only initiated when users explicitly request them.

Priority

Medium - Would be nice to have (prevents potential UX confusion)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions