ai-devkit icon indicating copy to clipboard operation
ai-devkit copied to clipboard

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

Open ntndiem opened this issue 7 months ago • 2 comments

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.

ntndiem avatar Apr 22 '26 02:04 ntndiem

I found the temporary solution:

  1. Delete all folders that are related to the AI-devkit skill in the project, like .claude and .cursor.
  2. Re-initialize by command ai-devkit initin project
  3. Open Claude Code CLI in the project directory.
  4. Type / to open the command list and see the issue fixed.

ntndiem avatar Apr 24 '26 01:04 ntndiem

We cleaned this from 0.27.0. Close the issue now.

codeaholicguy avatar May 14 '26 17:05 codeaholicguy