anthropic-sdk-python icon indicating copy to clipboard operation
anthropic-sdk-python copied to clipboard

docs: clarify skill upload file layout

Open slegarraga opened this issue 6 months ago • 4 comments

Summary

  • document that skill upload paths must be rooted under a directory matching the name field in SKILL.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 -q
  • uv run pytest tests/lib/test_files.py tests/lib/tools/test_skills.py -q
  • uv 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.py
  • uv run pyright tests/lib/test_files.py
  • git diff --check

slegarraga avatar May 20 '26 16:05 slegarraga

CI/docs-only PR — ready for review when you have a cycle. Thanks!

slegarraga avatar May 22 '26 05:05 slegarraga

Docs-only clarification for skill upload layout — ready for review. Thanks.

slegarraga avatar May 22 '26 05:05 slegarraga

Docs-only clarification for skill upload file layout — low risk, ready for review. Thanks.

slegarraga avatar May 22 '26 06:05 slegarraga

Docs-only: clarifies skill upload file layout (paths + examples). Low risk, no runtime changes. Review when convenient — thanks.

slegarraga avatar May 22 '26 06:05 slegarraga