MoonshotAI / MoonshotAI/kimi-code
Skill 文件夹内的 script 文件路径解析错误
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 1.2k
- Avg merge
- 11h 53m
- Merged PRs (30d)
- 350
Description
What version of Kimi Code is running?
0.36.1
Which open platform/subscription were you using?
Coding plan
Which model were you using?
not relevant
What platform is your computer?
Linux
What issue are you seeing?
问题描述
当使用某些 Skill(例如 mattpocock 的 skills)时,Skill 文件夹内部会包含一些 script 文件(如 .sh、.js 等)。在 Kimi Code 执行这些 Skill 时,系统会错误地将这些脚本文件的路径解析为当前本地工作目录下的文件路径,而不是去 Skill 文件夹内查找。
这导致 Skill 无法正常执行,因为 Kimi Code 在错误的位置寻找脚本文件。
What steps can reproduce the bug?
复现步骤
- 安装一个包含内部脚本的 Skill(例如 mattpocock 的某些 skills)
- 在任意本地项目目录下触发该 Skill 的执行
- 观察 Kimi Code 尝试执行脚本时的路径解析行为
- 发现系统尝试在
./<script-name>(本地目录)查找,而非<skill-folder>/<script-name>
What is the expected behavior?
Kimi Code 应该优先在 Skill 自身的安装目录内查找引用的脚本文件,而不是默认解析为本地工作目录的相对路径。
Kimi Code 将脚本路径解析为本地文件夹路径,导致 file not found 或执行了错误的脚本。
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with a Skill that contains an internal .sh or .js script, then trace Skill execution and how relative script paths are resolved. Confirm that the lookup currently uses the local working directory and verify that completion searches the Skill installation directory first without producing file-not-found errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100