GoForum › 🌐 V2EX
如果我的 Skill 要用到 node.js 安装依赖, package.json 要放到 skill 目录里吗?
cairnechen ·
2026-02-08 00:17 ·
0 次点赞 · 2 条回复
我看官网指引 Skill 结构是这样的:
my-skill/ ├── SKILL.md # Main instructions (required) ├── template.md # Template for Claude to fill in ├── examples/ │ └── sample.md # Example output showing expected format └── scripts/
└── validate.sh # Script Claude can execute
或者这样:
my-skill/ ├── SKILL.md (required - overview and navigation) ├── reference.md (detailed API docs - loaded when needed) ├── examples.md (usage examples - loaded when needed) └── scripts/
└── helper.py (utility script - executed, not loaded)
一时不知道 package.json 应该放哪里了
2 条回复
donaldturinglee · 2026-02-08 00:27
你在 skill 里面显示声明 package.json 的路径,它自己会去找,你只需要组织好你的项目结构即可
添加回复
你还需要 登录
后发表回复
随便放哪都行, skilll.md 说明放到哪了 ai 自己会找