Skip to content

PromptScript API


Interface: TargetConfig

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

Configuration for a single target.

Properties

convention?

optional convention: string

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

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


enabled?

optional enabled: boolean

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

Whether this target is enabled.

Default

true

guardsAsSkills?

optional guardsAsSkills: boolean

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

Generate skills from

Guards

named entries (Factory).

Default

true

guardsSkillsListing?

optional guardsSkillsListing: boolean

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

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

Default

true

output?

optional output: string

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

Custom output path for this target.


version?

optional version: string

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

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

Example

'legacy' | '1.0' | '2.0'