anthropics / anthropics/claude-agent-sdk-python

skills="all" does not add "Skill" to tools

未关闭
#977 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug documentation
主要语言
Python
星标
8.1k
派生
1.3k
平均合并
2 天 31 分钟
30 天内合并 PR
1

描述

### Claude can sometimes not use skills with `skills="all"` and defined `tools`

All examples in the [documentation](https://code.claude.com/docs/en/agent-sdk/skills) set `skills="all"` and that's it, seems to work.
I have spend a whole lot of time debugging why my skills suddenly don't work anymore:
Apparently, you still need to add `"Skill"` to `tools` if you define tools explicitly.
This only happened while running my agent in a kubernetes job, locally everything worked fine. I have no idea why, probably something in my global settings that gets read locally but is not available in the cloud.

```python
ClaudeAgentOptions(
# ... other stuff
setting_sources=["project"],
tools=["WebSearch", "WebFetch", "Read"], # <-- I had to add "Skill" here for it to work
allowed_tools=["WebSearch", "WebFetch", "Read"],
skills="all",
)
```

This is especially confusing since the doc string of `allowed_tools` reads to "configure everything", which does not seem to be the case.
Image

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。