Skip to main content

AgentCommand

@a16njs/models


@a16njs/models / AgentCommand

Interface: AgentCommand

Defined in: types.ts:80

An explicitly invoked slash command. Examples: Cursor commands in .cursor/commands/

Note: Cursor → Claude only. Claude has no dedicated command concept. Commands with special features ($ARGUMENTS, !, @, allowed-tools) are skipped.

Extends

Properties

id

id: string

Defined in: types.ts:24

Unique identifier for this item

Inherited from

AgentCustomization.id


sourcePath

sourcePath: string

Defined in: types.ts:28

Original file path where this was discovered

Inherited from

AgentCustomization.sourcePath


content

content: string

Defined in: types.ts:30

The actual prompt/rule content

Inherited from

AgentCustomization.content


metadata

metadata: Record<string, unknown>

Defined in: types.ts:32

Tool-specific extras that don't fit the standard model

Inherited from

AgentCustomization.metadata


type

type: AgentCommand

Defined in: types.ts:81

The type of customization

Overrides

AgentCustomization.type


commandName

commandName: string

Defined in: types.ts:83

Command name derived from filename (e.g., "review" from "review.md")