anthropic-sdk-python
anthropic-sdk-python copied to clipboard
docs: clarify skill upload file layout
Summary
- document that skill upload paths must be rooted under a directory matching the
namefield inSKILL.md - add a README file upload example and clarify the comprehensive agent example
- add regression coverage showing
anthropic.lib.files_from_dir()preserves the skill top-level directory
Closes #1575.
Tests
uv run pytest tests/lib/test_files.py -quv run pytest tests/lib/test_files.py tests/lib/tools/test_skills.py -quv run ruff check examples/agents_comprehensive.py src/anthropic/resources/beta/skills/skills.py src/anthropic/resources/beta/skills/versions.py src/anthropic/types/beta/skill_create_params.py src/anthropic/types/beta/skills/version_create_params.py tests/lib/test_files.pyuv run pyright tests/lib/test_files.pygit diff --check
CI/docs-only PR — ready for review when you have a cycle. Thanks!
Docs-only clarification for skill upload layout — ready for review. Thanks.
Docs-only clarification for skill upload file layout — low risk, ready for review. Thanks.
Docs-only: clarifies skill upload file layout (paths + examples). Low risk, no runtime changes. Review when convenient — thanks.