GlobalPrompt
@a16njs/models / GlobalPrompt
Interface: GlobalPrompt
Defined in: types.ts:87
A global prompt that is always applied. Examples: CLAUDE.md, Cursor rules with alwaysApply: true
Extends
Properties
id
id:
string
Defined in: types.ts:31
Unique identifier for this item
Inherited from
version
version:
string
Defined in: types.ts:35
IR version (required, e.g., 'v1beta1')
Inherited from
sourcePath?
optionalsourcePath?:string
Defined in: types.ts:37
Original file path where this was discovered (optional, omitted in IR format)
Inherited from
relativeDir?
optionalrelativeDir?:string
Defined in: types.ts:39
Relative directory path for preserving directory structure (optional)
Inherited from
AgentCustomization.relativeDir
content
content:
string
Defined in: types.ts:41
The actual prompt/rule content
Inherited from
metadata
metadata:
Record<string,unknown>
Defined in: types.ts:48
Tool-specific extras that don't fit the standard model (transient, not serialized in IR).
This is not the AgentSkills.io metadata frontmatter field — that one is
author-authored and must persist. See AgentSkillSpecFields.specMetadata.
Inherited from
type
type:
GlobalPrompt
Defined in: types.ts:88
The type of customization
Overrides
name
name:
string
Defined in: types.ts:94
Canonical name for emission output filename (e.g. 'cursorrules', 'CLAUDE').
Set at discovery time using inferGlobalPromptName(sourcePath) from @a16njs/models.
Emission plugins use this directly — no re-derivation from source paths needed.