create() — anthropic-sdk-python Function Reference
Architecture documentation for the create() function in skills.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 2468db89_3562_5bee_593d_66452175e4b6["create()"] 6312b1a6_c7ff_3133_309b_69fbf1824860["AsyncSkills"] 2468db89_3562_5bee_593d_66452175e4b6 -->|defined in| 6312b1a6_c7ff_3133_309b_69fbf1824860 8beed2c7_f3a2_3f5c_690e_f4bf9d03caad["create()"] 8beed2c7_f3a2_3f5c_690e_f4bf9d03caad -->|calls| 2468db89_3562_5bee_593d_66452175e4b6 8beed2c7_f3a2_3f5c_690e_f4bf9d03caad["create()"] 2468db89_3562_5bee_593d_66452175e4b6 -->|calls| 8beed2c7_f3a2_3f5c_690e_f4bf9d03caad style 2468db89_3562_5bee_593d_66452175e4b6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/anthropic/resources/beta/skills/skills.py lines 348–415
async def create(
self,
*,
display_title: Optional[str] | Omit = omit,
files: Optional[SequenceNotStr[FileTypes]] | Omit = omit,
betas: List[AnthropicBetaParam] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> SkillCreateResponse:
"""
Create Skill
Args:
display_title: Display title for the skill.
This is a human-readable label that is not included in the prompt sent to the
model.
files: Files to upload for the skill.
All files must be in the same top-level directory and must include a SKILL.md
file at the root of that directory.
betas: Optional header to specify the beta version(s) you want to use.
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
extra_body: Add additional JSON properties to the request
timeout: Override the client-level default timeout for this request, in seconds
"""
extra_headers = {
**strip_not_given(
{
"anthropic-beta": ",".join(chain((str(e) for e in betas), ["skills-2025-10-02"]))
if is_given(betas)
else not_given
}
),
**(extra_headers or {}),
}
extra_headers = {"anthropic-beta": "skills-2025-10-02", **(extra_headers or {})}
body = deepcopy_minimal(
{
"display_title": display_title,
"files": files,
}
)
extracted_files = extract_files(cast(Mapping[str, object], body), paths=[["files", "<array>"]])
# It should be noted that the actual Content-Type header that will be
# sent to the server will contain a `boundary` parameter, e.g.
# multipart/form-data; boundary=---abc--
extra_headers["Content-Type"] = "multipart/form-data"
return await self._post(
"/v1/skills?beta=true",
body=await async_maybe_transform(body, skill_create_params.SkillCreateParams),
files=extracted_files,
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=SkillCreateResponse,
)
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does create() do?
create() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/resources/beta/skills/skills.py.
Where is create() defined?
create() is defined in src/anthropic/resources/beta/skills/skills.py at line 348.
What does create() call?
create() calls 1 function(s): create.
What calls create()?
create() is called by 1 function(s): create.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free