Skip to content

feat(skills): add destructive command hints to generated skill bundles #59

@jxom

Description

@jxom

Follow-up from #49 / #58.

Summary

Add optional destructive boolean to CommandDefinition. When set, auto-append a confirmation hint ("Confirm with the user before executing this destructive command.") to the command's hint field in generated SKILL.md files.

Changes required

  1. src/Cli.tsCommandDefinition: add destructive?: boolean | undefined
  2. src/Skillgen.tscollectEntries(): read entry.destructive and auto-append hint to cmd.hint
  3. src/SyncSkills.tscollectEntries(): same
  4. Tests: verify destructive commands get the confirmation hint, non-destructive commands are unaffected

Context

The reference patch also proposed a mutates flag with a --dry-run hint, but that assumes the command supports --dry-run which isn't always true. Starting with just destructive is safer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions