Skip to content

Antigravity conversion overwrites commands with colliding normalized names #1672

Description

@22nsuk

At 9ac32720, converting commands named review.docs and review-docs emits two commands named review-docs. Writing the bundle leaves only .agy/commands/review-docs.toml, containing the second prompt.

Reproduce with a Claude plugin containing those two command names, distinct prompt bodies, and no agents or skills; run convertClaudeToAntigravity followed by writeAntigravityBundle into a temporary directory.

Expected: both prompts survive in distinct command files, following the existing uniqueName() suffix convention. Actual: the first prompt is overwritten.

convertCommand() calls uniqueName(pathKey, usedNames) but discards its return value. Use that returned path and add converter-to-writer regression coverage for flat/namespaced commands and occupied numeric suffixes. Scope: command-name collisions only; no skill-directory or path-security changes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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