Skip to content

PromptScript API


Interface: TargetConfig

Defined in: core/src/types/config.ts:64

Configuration for a single target.

Properties

convention?

optional convention?: string

Defined in: core/src/types/config.ts:79

Output convention ('xml', 'markdown', or custom name).


enabled?

optional enabled?: boolean

Defined in: core/src/types/config.ts:69

Whether this target is enabled.

Default

true

guardsAsSkills?

optional guardsAsSkills?: boolean

Defined in: core/src/types/config.ts:89

Generate skills from

Guards

named entries (Factory).

Default

true

guardsSkillsListing?

optional guardsSkillsListing?: boolean

Defined in: core/src/types/config.ts:92

List generated guard skills in main output file (Factory).

Default

true

output?

optional output?: string

Defined in: core/src/types/config.ts:74

Custom output path for this target.


version?

optional version?: string

Defined in: core/src/types/config.ts:86

Target version or format variant. Use 'legacy' for deprecated formats (e.g., Cursor's .cursorrules).

Example

'legacy' | '1.0' | '2.0'