AgentCommand
@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
sourcePath
sourcePath:
string
Defined in: types.ts:28
Original file path where this was discovered
Inherited from
content
content:
string
Defined in: types.ts:30
The actual prompt/rule content
Inherited from
metadata
metadata:
Record<string,unknown>
Defined in: types.ts:32
Tool-specific extras that don't fit the standard model
Inherited from
type
type:
AgentCommand
Defined in: types.ts:81
The type of customization
Overrides
commandName
commandName:
string
Defined in: types.ts:83
Command name derived from filename (e.g., "review" from "review.md")