<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Code Snippets on Producthunt daily</title>
        <link>https://producthunt.programnotes.cn/en/tags/code-snippets/</link>
        <description>Recent content in Code Snippets on Producthunt daily</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en</language>
        <lastBuildDate>Sun, 26 Jul 2026 17:32:11 +0800</lastBuildDate><atom:link href="https://producthunt.programnotes.cn/en/tags/code-snippets/index.xml" rel="self" type="application/rss+xml" /><item>
        <title>claude-cookbooks</title>
        <link>https://producthunt.programnotes.cn/en/p/claude-cookbooks/</link>
        <pubDate>Sun, 26 Jul 2026 17:32:11 +0800</pubDate>
        
        <guid>https://producthunt.programnotes.cn/en/p/claude-cookbooks/</guid>
        <description>&lt;img src="https://images.unsplash.com/photo-1612018072665-11526a70079d?ixid=M3w0NjAwMjJ8MHwxfHJhbmRvbXx8fHx8fHx8fDE3ODUwNTgxMDh8&amp;ixlib=rb-4.1.0" alt="Featured image of post claude-cookbooks" /&gt;&lt;h1 id=&#34;anthropicsclaude-cookbooks&#34;&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/claude-cookbooks&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;anthropics/claude-cookbooks&lt;/a&gt;
&lt;/h1&gt;&lt;h1 id=&#34;claude-cookbooks&#34;&gt;Claude Cookbooks
&lt;/h1&gt;&lt;p&gt;The Claude Cookbooks provide code and guides designed to help developers build with Claude, offering copy-able code snippets that you can easily integrate into your own projects.&lt;/p&gt;
&lt;h2 id=&#34;prerequisites&#34;&gt;Prerequisites
&lt;/h2&gt;&lt;p&gt;To make the most of the examples in this cookbook, you&amp;rsquo;ll need a Claude API key (sign up for free &lt;a class=&#34;link&#34; href=&#34;https://www.anthropic.com&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;here&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;While the code examples are primarily written in Python, the concepts can be adapted to any programming language that supports interaction with the Claude API.&lt;/p&gt;
&lt;p&gt;If you&amp;rsquo;re new to working with the Claude API, we recommend starting with our &lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/courses/tree/master/anthropic_api_fundamentals&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Claude API Fundamentals course&lt;/a&gt; to get a solid foundation.&lt;/p&gt;
&lt;h2 id=&#34;explore-further&#34;&gt;Explore Further
&lt;/h2&gt;&lt;p&gt;Looking for more resources to enhance your experience with Claude and AI assistants? Check out these helpful links:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://docs.claude.com/claude/docs/guide-to-anthropics-prompt-engineering-resources&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Anthropic developer documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://support.anthropic.com&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Anthropic support docs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://www.anthropic.com/discord&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Anthropic Discord community&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;contributing&#34;&gt;Contributing
&lt;/h2&gt;&lt;p&gt;The Claude Cookbooks thrives on the contributions of the developer community. We value your input, whether it&amp;rsquo;s submitting an idea, fixing a typo, adding a new guide, or improving an existing one. By contributing, you help make this resource even more valuable for everyone.&lt;/p&gt;
&lt;p&gt;To avoid duplication of efforts, please review the existing issues and pull requests before contributing.&lt;/p&gt;
&lt;p&gt;If you have ideas for new examples or guides, share them on the &lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/issues&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;issues page&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;table-of-recipes&#34;&gt;Table of recipes
&lt;/h2&gt;&lt;h3 id=&#34;capabilities&#34;&gt;Capabilities
&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/tree/main/capabilities/classification&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Classification&lt;/a&gt;: Explore techniques for text and data classification using Claude.&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/tree/main/capabilities/retrieval_augmented_generation&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Retrieval Augmented Generation&lt;/a&gt;: Learn how to enhance Claude&amp;rsquo;s responses with external knowledge.&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/tree/main/capabilities/summarization&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Summarization&lt;/a&gt;: Discover techniques for effective text summarization with Claude.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;tool-use-and-integration&#34;&gt;Tool Use and Integration
&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/tree/main/tool_use&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Tool use&lt;/a&gt;: Learn how to integrate Claude with external tools and functions to extend its capabilities.
&lt;ul&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/blob/main/tool_use/customer_service_agent.ipynb&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Customer service agent&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/blob/main/tool_use/calculator_tool.ipynb&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Calculator integration&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/blob/main/misc/how_to_make_sql_queries.ipynb&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;SQL queries&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;third-party-integrations&#34;&gt;Third-Party Integrations
&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/tree/main/third_party&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Retrieval augmented generation&lt;/a&gt;: Supplement Claude&amp;rsquo;s knowledge with external data sources.
&lt;ul&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/blob/main/third_party/Pinecone/rag_using_pinecone.ipynb&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Vector databases (Pinecone)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/blob/main/third_party/Wikipedia/wikipedia-search-cookbook.ipynb/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Wikipedia&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/blob/main/misc/read_web_pages_with_haiku.ipynb&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Web pages&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/blob/main/third_party/VoyageAI/how_to_create_embeddings.md&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Embeddings with Voyage AI&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;multimodal-capabilities&#34;&gt;Multimodal Capabilities
&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/tree/main/multimodal&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Vision with Claude&lt;/a&gt;:
&lt;ul&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/blob/main/multimodal/getting_started_with_vision.ipynb&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Getting started with images&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/blob/main/multimodal/best_practices_for_vision.ipynb&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Best practices for vision&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/blob/main/multimodal/reading_charts_graphs_powerpoints.ipynb&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Interpreting charts and graphs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/blob/main/multimodal/how_to_transcribe_text.ipynb&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Extracting content from forms&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/blob/main/misc/illustrated_responses.ipynb&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Generate images with Claude&lt;/a&gt;: Use Claude with Stable Diffusion for image generation.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;advanced-techniques&#34;&gt;Advanced Techniques
&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/blob/main/multimodal/using_sub_agents.ipynb&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Sub-agents&lt;/a&gt;: Learn how to use Haiku as a sub-agent in combination with Opus.&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/blob/main/misc/pdf_upload_summarization.ipynb&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Upload PDFs to Claude&lt;/a&gt;: Parse and pass PDFs as text to Claude.&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/blob/main/misc/building_evals.ipynb&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Automated evaluations&lt;/a&gt;: Use Claude to automate the prompt evaluation process.&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/blob/main/misc/how_to_enable_json_mode.ipynb&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Enable JSON mode&lt;/a&gt;: Ensure consistent JSON output from Claude.&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/blob/main/misc/building_moderation_filter.ipynb&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Create a moderation filter&lt;/a&gt;: Use Claude to create a content moderation filter for your application.&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/anthropics/anthropic-cookbook/blob/main/misc/prompt_caching.ipynb&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Prompt caching&lt;/a&gt;: Learn techniques for efficient prompt caching with Claude.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;additional-resources&#34;&gt;Additional Resources
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/aws-samples/anthropic-on-aws&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Anthropic on AWS&lt;/a&gt;: Explore examples and solutions for using Claude on AWS infrastructure.&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/aws-samples/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;AWS Samples&lt;/a&gt;: A collection of code samples from AWS which can be adapted for use with Claude. Note that some samples may require modification to work optimally with Claude.&lt;/li&gt;
&lt;/ul&gt;
</description>
        </item>
        
    </channel>
</rss>
