Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

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

Nearest release: v2.1.239, published 2 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+16added
Lines−26removed
From line 95 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits15to this page, all time

The whole hunk

from line 95, old and new numbered
/
lines
from line 95
9595 ```
9696 
9797 ```php PHP
98 // The PHP SDK exposes the Skills API under the beta namespace; field names can differ from other SDKs.
9998 // List Anthropic-managed Skills
100 $skills = $client->beta->skills->list(source: 'anthropic');
99 $skills = $client->skills->list(source: 'anthropic');
101100 
102 foreach ($skills->data as $skill) {
103 echo "{$skill->id}: {$skill->displayTitle}\n";
101 foreach ($skills->getItems() as $skill) {
102 echo "{$skill->id}: {$skill->displayName}\n";
104103 }
105104 ```
106105 
from line 300
301300 ```
302301 
303302 ```php PHP
304 // The PHP SDK supports container skills only through $client->beta->messages with the skills beta.
305303 // Create a message with the PowerPoint Skill
306 $response = $client->beta->messages->create(
304 $response = $client->messages->create(
307305 model: 'claude-opus-5',
308306 maxTokens: 16000,
309 betas: ['skills-2025-10-02'],
310307 container: [
311 'skills' => [['type' => 'anthropic', 'skill_id' => 'pptx', 'version' => 'latest']],
308 'skills' => [['type' => 'anthropic', 'skillID' => 'pptx', 'version' => 'latest']],
312309 ],
313310 messages: [
314311 [
from line 543
546543 ```
547544 
548545 ```php PHP
549 // The PHP SDK exposes the Files API under the beta namespace; field names can differ from other SDKs.
550546 // Extract the file ID. The code execution tool runs the Skill's code through
551547 // its Bash sub-tool, and generated files appear as bash_code_execution_output
552548 // items inside the bash_code_execution_tool_result block.
from line 563
567563 if ($fileId !== null) {
568564 // Download the file and save it
569565 $outputPath = sys_get_temp_dir() . '/renewable_energy.pptx';
570 $fileContent = $client->beta->files->download($fileId);
566 $fileContent = $client->files->download($fileId);
571567 file_put_contents($outputPath, $fileContent);
572568 echo "Presentation saved to {$outputPath}\n";
573569 }
from line 757
761757 ```
762758 
763759 ```php PHP
764 // The PHP SDK supports container skills only through $client->beta->messages with the skills beta.
765 $response = $client->beta->messages->create(
760 $response = $client->messages->create(
766761 model: 'claude-opus-5',
767762 maxTokens: 16000,
768 betas: ['skills-2025-10-02'],
769763 container: [
770764 'skills' => [
771 ['type' => 'anthropic', 'skill_id' => 'xlsx', 'version' => 'latest'],
765 ['type' => 'anthropic', 'skillID' => 'xlsx', 'version' => 'latest'],
772766 ],
773767 ],
774768 messages: [
from line 771
777771 'content' => 'Create a quarterly sales tracking spreadsheet with sample data',
778772 ],
779773 ],
780 tools: [new BetaCodeExecutionTool20260521()],
774 tools: [['type' => 'code_execution_20260521', 'name' => 'code_execution']],
781775 );
782776 ```
783777 
from line 950
956950 ```
957951 
958952 ```php PHP
959 // The PHP SDK supports container skills only through $client->beta->messages with the skills beta.
960 $response = $client->beta->messages->create(
953 $response = $client->messages->create(
961954 model: 'claude-opus-5',
962955 maxTokens: 16000,
963 betas: ['skills-2025-10-02'],
964956 container: [
965957 'skills' => [
966 ['type' => 'anthropic', 'skill_id' => 'docx', 'version' => 'latest'],
958 ['type' => 'anthropic', 'skillID' => 'docx', 'version' => 'latest'],
967959 ],
968960 ],
969961 messages: [
from line 964
972964 'content' => 'Write a 2-page report on the benefits of renewable energy',
973965 ],
974966 ],
975 tools: [new BetaCodeExecutionTool20260521()],
967 tools: [['type' => 'code_execution_20260521', 'name' => 'code_execution']],
976968 );
977969 ```
978970 
from line 1143
11511143 ```
11521144 
11531145 ```php PHP
1154 // The PHP SDK supports container skills only through $client->beta->messages with the skills beta.
1155 $response = $client->beta->messages->create(
1146 $response = $client->messages->create(
11561147 model: 'claude-opus-5',
11571148 maxTokens: 16000,
1158 betas: ['skills-2025-10-02'],
11591149 container: [
11601150 'skills' => [
1161 ['type' => 'anthropic', 'skill_id' => 'pdf', 'version' => 'latest'],
1151 ['type' => 'anthropic', 'skillID' => 'pdf', 'version' => 'latest'],
11621152 ],
11631153 ],
11641154 messages: [
from line 1157
11671157 'content' => 'Generate a PDF invoice template',
11681158 ],
11691159 ],
1170 tools: [new BetaCodeExecutionTool20260521()],
1160 tools: [['type' => 'code_execution_20260521', 'name' => 'code_execution']],
11711161 );
11721162 ```
11731163 
Feedback