Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.318 Next v2.1.319 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

quickstart changedagents-and-tools/agent-skills/quickstart

Recorded here
Lines+129added
Lines−0removed
From line 152 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits25to this page, all time

The whole hunk

from line 152, old and new numbered
/
lines
from line 152
152152First, check what Skills are available. Use the Skills API to list all Anthropic-managed Skills. The example is an excerpt from one continuous script, with any imports and client setup at the top:
153153 
154154<CodeGroup>
155 **CLI sign-in**
156 
155157 ```bash cURL
156158 # List Anthropic-managed Skills
157159 curl --fail-with-body -sS "https://api.anthropic.com/v1/skills?source=anthropic" \
160 -H "Authorization: Bearer $(ant auth print-credentials --access-token)" \
161 -H "anthropic-version: 2026-10-21"
162 ```
163 
164 **API key**
165 
166 ```bash cURL
167 # List Anthropic-managed Skills
168 curl --fail-with-body -sS "https://api.anthropic.com/v1/skills?source=anthropic" \
158169 -H "x-api-key: $ANTHROPIC_API_KEY" \
159170 -H "anthropic-version: 2026-10-21"
160171 ```
from line 257
246257Use the PowerPoint Skill to create a presentation about renewable energy. Specify Skills using the `container` parameter in the Messages API:
247258 
248259<CodeGroup>
260 **CLI sign-in**
261 
249262 ```bash cURL
250263 # Create a message with the PowerPoint Skill
251264 response=$(
252265 curl --fail-with-body -sS https://api.anthropic.com/v1/messages \
253266 -H "content-type: application/json" \
267 -H "Authorization: Bearer $(ant auth print-credentials --access-token)" \
268 -H "anthropic-version: 2026-10-21" \
269 -d '{
270 "model": "claude-opus-5-5",
271 "max_tokens": 16000,
272 "container": {
273 "skills": [{"type": "anthropic", "skill_id": "pptx", "version": "latest"}]
274 },
275 "messages": [
276 {"role": "user", "content": "Create a presentation about renewable energy with 5 slides"}
277 ],
278 "tools": [{"type": "code_execution_20260521", "name": "code_execution"}]
279 }'
280 )
281 ```
282 
283 **API key**
284 
285 ```bash cURL
286 # Create a message with the PowerPoint Skill
287 response=$(
288 curl --fail-with-body -sS https://api.anthropic.com/v1/messages \
289 -H "content-type: application/json" \
254290 -H "x-api-key: $ANTHROPIC_API_KEY" \
255291 -H "anthropic-version: 2026-10-21" \
256292 -d '{
from line 515
479515The presentation was created in the code execution container and saved as a file. The Step 2 `response` includes a file reference with a file ID. Extract the file ID and download the file with the Files API. The example saves it to your system temp directory:
480516 
481517<CodeGroup>
518 **CLI sign-in**
519 
482520 ```bash cURL
483521 # Extract the file ID. The code execution tool runs the Skill's code through
484522 # its Bash sub-tool, and generated files appear as bash_code_execution_output
from line 534
496534 if [[ -n "$file_id" ]]; then
497535 # Download the file and save it
498536 curl --fail-with-body -sS "https://api.anthropic.com/v1/files/$file_id/content" \
537 -H "Authorization: Bearer $(ant auth print-credentials --access-token)" \
538 -H "anthropic-version: 2026-10-21" \
539 -o "${TMPDIR:-/tmp}/renewable_energy.pptx"
540 fi
541 ```
542 
543 **API key**
544 
545 ```bash cURL
546 # Extract the file ID. The code execution tool runs the Skill's code through
547 # its Bash sub-tool, and generated files appear as bash_code_execution_output
548 # items inside the bash_code_execution_tool_result block.
549 file_id=$(jq -r '
550 last(
551 .content[]
552 | select(.type == "bash_code_execution_tool_result")
553 | .content
554 | select(.type == "bash_code_execution_result")
555 | .content[].file_id
556 ) // empty
557 ' <<<"$response")
558 
559 if [[ -n "$file_id" ]]; then
560 # Download the file and save it
561 curl --fail-with-body -sS "https://api.anthropic.com/v1/files/$file_id/content" \
499562 -H "x-api-key: $ANTHROPIC_API_KEY" \
500563 -H "anthropic-version: 2026-10-21" \
501564 -o "${TMPDIR:-/tmp}/renewable_energy.pptx"
from line 783
720783### Create a spreadsheet
721784 
722785<CodeGroup>
786 **CLI sign-in**
787 
723788 ```bash cURL
724789 curl --fail-with-body -sS https://api.anthropic.com/v1/messages \
725790 -H "content-type: application/json" \
791 -H "Authorization: Bearer $(ant auth print-credentials --access-token)" \
792 -H "anthropic-version: 2026-10-21" \
793 -d '{
794 "model": "claude-opus-5-5",
795 "max_tokens": 16000,
796 "container": {
797 "skills": [{"type": "anthropic", "skill_id": "xlsx", "version": "latest"}]
798 },
799 "messages": [
800 {"role": "user", "content": "Create a quarterly sales tracking spreadsheet with sample data"}
801 ],
802 "tools": [{"type": "code_execution_20260521", "name": "code_execution"}]
803 }'
804 ```
805 
806 **API key**
807 
808 ```bash cURL
809 curl --fail-with-body -sS https://api.anthropic.com/v1/messages \
810 -H "content-type: application/json" \
726811 -H "x-api-key: $ANTHROPIC_API_KEY" \
727812 -H "anthropic-version: 2026-10-21" \
728813 -d '{
from line 997
912997### Create a Word document
913998 
914999<CodeGroup>
1000 **CLI sign-in**
1001 
9151002 ```bash cURL
9161003 curl --fail-with-body -sS https://api.anthropic.com/v1/messages \
9171004 -H "content-type: application/json" \
1005 -H "Authorization: Bearer $(ant auth print-credentials --access-token)" \
1006 -H "anthropic-version: 2026-10-21" \
1007 -d '{
1008 "model": "claude-opus-5-5",
1009 "max_tokens": 16000,
1010 "container": {
1011 "skills": [{"type": "anthropic", "skill_id": "docx", "version": "latest"}]
1012 },
1013 "messages": [
1014 {"role": "user", "content": "Write a 2-page report on the benefits of renewable energy"}
1015 ],
1016 "tools": [{"type": "code_execution_20260521", "name": "code_execution"}]
1017 }'
1018 ```
1019 
1020 **API key**
1021 
1022 ```bash cURL
1023 curl --fail-with-body -sS https://api.anthropic.com/v1/messages \
1024 -H "content-type: application/json" \
9181025 -H "x-api-key: $ANTHROPIC_API_KEY" \
9191026 -H "anthropic-version: 2026-10-21" \
9201027 -d '{
from line 1211
11041211### Generate a PDF
11051212 
11061213<CodeGroup>
1214 **CLI sign-in**
1215 
1216 ```bash cURL
1217 curl --fail-with-body -sS https://api.anthropic.com/v1/messages \
1218 -H "content-type: application/json" \
1219 -H "Authorization: Bearer $(ant auth print-credentials --access-token)" \
1220 -H "anthropic-version: 2026-10-21" \
1221 -d '{
1222 "model": "claude-opus-5-5",
1223 "max_tokens": 16000,
1224 "container": {
1225 "skills": [{"type": "anthropic", "skill_id": "pdf", "version": "latest"}]
1226 },
1227 "messages": [
1228 {"role": "user", "content": "Generate a PDF invoice template"}
1229 ],
1230 "tools": [{"type": "code_execution_20260521", "name": "code_execution"}]
1231 }'
1232 ```
1233 
1234 **API key**
1235 
11071236 ```bash cURL
11081237 curl --fail-with-body -sS https://api.anthropic.com/v1/messages \
11091238 -H "content-type: application/json" \
Feedback