https://simonwillison.net/atom/everything 10月11日 08:09
Claude技能系统揭秘
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

Claude的技能系统为其代理赋予强大功能。Anthropic最近推出的改进Office文档创建功能,展示了技能的强大。当前技能包括处理Word文档、PDF、PowerPoint和Excel。用户可以通过 prompts 创建和操作这些文件类型,并使用预安装的Python库和脚本执行常见操作,如填写PDF表单字段。

📁 技能系统是Claude代理的强大功能来源,允许其执行特定任务,如处理文档和执行计算。Anthropic最近改进了Office文档创建功能,展示了技能的实际应用。

🔍 当前技能包括docx(Word文档处理)、pdf(PDF处理和表单填写)、pptx(PowerPoint演示文稿)和xlsx(Excel电子表格),这些技能使Claude能够处理常见的办公文件类型。

💻 用户可以通过 prompts 创建和操作这些文件类型,并使用预安装的Python库和脚本执行常见操作。例如,pdf/scripts/fill_fillable_fields.py是一个使用pypdf库查找并填写JSON指定PDF表单字段的CLI工具,然后渲染出结果PDF。

📚 Anthropic已将这些技能的实现细节(如prompts和Python脚本)公开在/mnt/skills/public/文件夹中,并通过GitHub的simonw/claude-skills仓库共享,使Claude用户能够了解和利用这些工具。

simonw/claude-skills. One of the tips I picked up from Jesse Vincent's Claude Code Superpowers post (previously) was this:

Skills are what give your agents Superpowers.

The first time they really popped up on my radar was a few weeks ago when Anthropic rolled out improved Office document creation. When the feature rolled out, I went poking around a bit -- I asked Claude to tell me all about its new skills. And it was only too happy to dish.

In that transcript Jesse asks how the skill system works and Claude replies:

Looking at the skills system, here's how it works:

Current Skills (in /mnt/skills/public/):

    docx - Word document handlingpdf - PDF processing and form fillingpptx - PowerPoint presentationsxlsx - Excel spreadsheets

This looks like it's part of Claude's brand new Code Interpreter feature! I wrote about that extensively last month, but I missed that there was a /mnt/skills/public/ folder full of fascinating implementation details.

So I fired up a fresh Claude instance (fun fact: Code Interpreter also works in the Claude iOS app now, which it didn't when they first launched) and prompted:

Create a zip file of everything in your /mnt/skills folder

This worked, and gave me a .zip to download. You can run the prompt yourself here, though you'll need to enable the new feature first.

I've pushed the contents of that zip to my new simonw/claude-skills GitHub repo.

So now you can see the prompts Anthropic wrote to enable the creation and manipulation of the following files in their Claude consumer applications:

    pdf - PDF filesdocx - Microsoft Wordpptx - Microsoft PowerPoint decksxlsx - Microsoft Excel

In each case the prompts spell out detailed instructions for manipulating those file types using Python, using libraries that come pre-installed on Claude's containers.

Skills are more than just prompts though: the repository also includes dozens of pre-written Python scripts for performing common operations.

pdf/scripts/fill_fillable_fields.py for example is a custom CLI tool that uses pypdf to find and then fill in a bunch of PDF form fields, specified as JSON, then render out the resulting combined PDF.

This is a really sophisticated set of tools for document manipulation, and I love that Anthropic have made those visible - presumably deliberately - to users of Claude who know how to ask for them.

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

Claude Skills Anthropic Document Handling Python Libraries API Development
相关文章