Skip to content

Add post: Using Claude with Apple Foundation Models#46

Merged
artemnovichkov merged 2 commits into
mainfrom
post/using-claude-with-apple-foundation-models
Jun 12, 2026
Merged

Add post: Using Claude with Apple Foundation Models#46
artemnovichkov merged 2 commits into
mainfrom
post/using-claude-with-apple-foundation-models

Conversation

@artemnovichkov

Copy link
Copy Markdown
Owner

Summary

  • New post: Using Claude with Apple Foundation Models — ClaudeForFoundationModels package, @generable structured output, dynamic instructions/profiles, streaming, error handling, server-side tools
  • Companion project: https://github.com/artemnovichkov/GiftGenieExample
  • Add "Claude" category to const.ts; tag MCP post with it
  • Includes callout: streaming with Claude currently not working (beta), will update when resolved

Validation

  • npm run build
  • npm run lint — pre-existing errors in unrelated files only (code-block.tsx, OAuth routes)

@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment Jun 12, 2026 6:44pm

@claude

claude Bot commented Jun 12, 2026

Copy link
Copy Markdown

Claude finished @artemnovichkov's task —— View job


PR Review: Using Claude with Apple Foundation Models

Todo List:

  • Read repository guidelines from CLAUDE.md
  • Review new blog post content and structure
  • Check MDX frontmatter and formatting compliance
  • Review const.ts category addition
  • Examine MCP post modification
  • Analyze image assets and optimization
  • Check for security concerns
  • Validate performance considerations
  • Provide comprehensive feedback

Review Summary

This PR adds a well-structured, technically accurate blog post about integrating Claude with Apple's Foundation Models framework. The content is informative, follows repository conventions, and includes proper supporting materials.

✅ Strengths

Content Quality

  • Technical accuracy: Code examples are syntactically correct and follow Swift best practices
  • Clear structure: Well-organized sections that build logically from basic integration to advanced features
  • Practical examples: Real-world GiftGenie app demonstrates concepts effectively
  • Up-to-date information: Covers latest iOS 27 beta features and Foundation Models

Code Examples

  • All Swift code follows proper syntax and conventions
  • Proper use of @Generable macro and structured outputs
  • Correct error handling patterns with ClaudeError and LanguageModelError
  • Dynamic profiles implementation is well-explained

Repository Compliance

  • Frontmatter: Properly formatted with required fields (title, description, date, cover, categories, author)
  • Filename: Follows kebab-case convention (using-claude-with-apple-foundation-models.mdx)
  • Categories: Appropriate mix of technical tags (foundation-models, ai, llm, claude)
  • Const.ts: "Claude" category added correctly with proper alphabetical ordering

📝 Minor Observations

Performance Considerations

  • Image optimization:
    • Cover image (288KB PNG) is reasonably sized for web use
    • Screenshots are JPEG format which is appropriate
    • Consider running npm run optimize-images per repository guidelines

Content Notes

  • Callouts: Good use of callouts to highlight important security and beta limitations
  • External links: Appropriately links to companion GitHub project
  • Screenshots: Helpful visual aids showing the actual app interface

Security Review

  • API key handling: Properly warns about embedded API keys in production
  • Best practices: Recommends .proxied(headers:) mode for production use
  • No credentials: No secrets or sensitive information committed

🔧 Technical Validation

MDX Processing

  • Frontmatter structure matches src/lib/api.ts expectations
  • Categories are properly comma-separated for processing
  • Image paths are correctly formatted for Next.js public directory

Image Assets

cover.png: 1200×740 PNG (288KB) - Appropriate for blog cover
gift-form.jpg: 368×800 JPEG (21KB) - Mobile screenshot, well-compressed  
generated-ideas.jpg: 368×800 JPEG (85KB) - Mobile screenshot, reasonable size

Category Integration

The addition of "claude": "Claude" to const.ts is:

  • ✅ Correctly placed alphabetically
  • ✅ Follows existing naming convention
  • ✅ Used appropriately in both new and existing MCP post

🎯 Recommendations

  1. Consider optimization: Run npm run optimize-images to potentially reduce cover image size further
  2. Future updates: The streaming callout mentions it will be updated when the issue is resolved - ensure to follow through
  3. Link validation: Consider adding companion project link to Resources section for better discoverability

🚀 Verdict

Approved - This is a high-quality addition that enhances the blog with valuable technical content. The implementation follows all repository guidelines, includes proper security considerations, and provides practical, working code examples.

The post successfully demonstrates Apple's Foundation Models integration with Claude, making it a valuable resource for iOS developers interested in implementing AI features.


|

@claude

claude Bot commented Jun 12, 2026

Copy link
Copy Markdown

Claude encountered an error —— View job


PR Review: Using Claude with Apple Foundation Models

Todo List:

  • Read repository guidelines from CLAUDE.md
  • Review new blog post content and structure
  • Check MDX frontmatter and formatting compliance
  • Review const.ts category addition
  • Examine MCP post modification
  • Analyze image assets and optimization
  • Check for security concerns
  • Validate performance considerations
  • Provide comprehensive feedback

@artemnovichkov artemnovichkov merged commit 1e2e002 into main Jun 12, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant