Skill description causes duplicate entries in Claude Code CLI command list (`/` menu)
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
- Install
ai-devkitand initialize it in a project - Open Claude Code CLI in the project directory
- 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-implementationappears 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-requirementsappears highlighted/bolded (possibly indicating a conflict)
See the attached screenshot for reference.
Screenshot
Environment
ai-devkitversion: 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.
I found the temporary solution:
- Delete all folders that are related to the AI-devkit skill in the project, like .claude and .cursor.
- Re-initialize by command
ai-devkit initin project - Open Claude Code CLI in the project directory.
- Type
/to open the command list and see the issue fixed.
We cleaned this from 0.27.0. Close the issue now.