[BUG] Skills UI: Conflict and hiding of local skills when plugin package name == local skill name (edge case bug)

Resolved 💬 2 comments Opened Mar 19, 2026 by S-huNsuke Closed Mar 19, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

问题描述

我在/skills界面中发现了一个边缘案例错误:当插件的软件包名称与本地技能名称完全相同时,两个技能会冲突,其中一个隐藏在用户界面中,即使它们的完全合格名称不同。

根本原因

本地技能全名:claude-api(无命名空间前缀)
插件技能全名:claude-api:claude-api(命名空间=插件包名称claude-api)
/skills UI错误地将插件包名称和本地技能名称视为重复匹配,导致一个技能被隐藏。

/skills接口应该通过完全限定的名称(命名空間:技能名称)而不是部分匹配来区分技能。
本地 claude-api 和插件 claude-api:claude-api 都应该在用户界面中可见。
对于具有相同短名称但不同名称空间的技能,没有隐藏或冲突。

当前变通办法

删除本地claude-api技能,让插件版本接管。
环境

烘烤时间:49秒
本地技能路径:~/.claude/skills/claude-api/
插件技能:claude-api@anthropic-agent-skills

What Should Happen?

正常行为
(其他重复技能)其他重复的技能(例如前端设计、webapp测试)工作正常:插件版本:具有唯一的命名空间前缀(例如文档技能:前端设计,示例技能:webapp测试)本地版本:无前缀无冲突→两者都正常显示

Error Messages/Logs

Steps to Reproduce

繁殖步骤
在路径上安装名为claude-api的本地技能:~/.claude/skills/claude-api/安装软件包名称为claude-api(全名:claude-api@anthropic-agent-skills)的官方插件技能打开/技能界面只显示一个claude-api技能;另一个是隐藏的

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.97

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗