Skip to content

Skill description causes duplicate entries in Claude Code CLI command list (/ menu) #74

@ntndiem

Description

@ntndiem

Description

When using ai-devkit with Claude Code, the command list displayed by the / menu shows duplicate entries for certain skills (e.g., /simplify-implementation appears 5 times). This appears to be caused by how skill descriptions are registered and resolved by the Claude Code CLI.

Steps to Reproduce

  1. Install ai-devkit and initialize it in a project
  2. Open Claude Code CLI in the project directory
  3. Type / to open the command list

Expected Behavior

Each skill/command should appear exactly once in the / command list, with its correct description.

Actual Behavior

Several commands appear multiple times with duplicated entries. For example:

  • /simplify-implementation appears 5 times — 4 entries with the full description from the skill file, and 1 entry with a shorter description "Simplify existing code to reduce complexity. (project)"
  • /review-requirements appears highlighted/bolded (possibly indicating a conflict)

See the attached screenshot for reference.

Screenshot

Image

Environment

  • ai-devkit version: 0.25.0
  • Claude Code CLI version: 2.1.70
  • OS: Windows 11

Additional Context

This issue seems to stem from the fact that skill descriptions are being picked up from multiple sources (e.g., both the skill .md file and a separate command definition), causing the CLI to register the same command multiple times. A deduplication step when loading skill/command definitions might fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions