Introduction
This guide explains how to effectively use our documentation with Large Language Models (LLMs) and AI coding assistants like Claude Code, ChatGPT, GitHub Copilot, and Cursor. We provide Claude Code skills that package our documentation, integration patterns, and best practices for IDE-integrated AI assistants.Claude Code Skill
For developers using AI coding assistants in their IDE, we provide comprehensive Claude Code skills that package our complete documentation, integration patterns, and best practices into easily installable formats.What is a Claude Code Skill?
A Claude Code skill is a packaged knowledge base that your AI coding assistant can reference while you work. It provides instant access to documentation, code patterns, and troubleshooting guidance without requiring internet access.Available Skills
We offer platform-specific skills so your AI assistant has the most relevant context for your development environment:- Web
- Android
- iOS
Skill name:
primer-web-components- Complete Component Reference - All web component APIs, props, events, and methods
- React Integration Patterns - React 18 & 19 specific guidance with hooks and patterns
- Critical Best Practices - Common mistakes and how to avoid them (like object reference stability)
- SSR Support - Server-side rendering with Next.js and SvelteKit
- CSS Theming Guide - Custom styling and theme customization
- Troubleshooting - Solutions to common integration issues
Installation Instructions
Installation differs by platform. Choose your platform and AI assistant:- Web
- Android
- iOS
For Claude Code (claude.ai/code)
Via Marketplace (Recommended):~/.claude/skills/primer-web-components/For Cursor
Use the same manual installation method as above, but copy to~/.cursor/skills/ instead.For Other AI Assistants
Most AI coding assistants support directory-based skills. Check your tool’s documentation for the skills directory location and use the manual installation method above.Verifying Installation
Ask your AI assistant:- Web
- Android
- iOS
When to Use the Claude Code Skill
- Working in your IDE with integrated AI assistance
- Need offline access to documentation
- Want best practices and common pitfalls highlighted automatically
- Focused on implementation and debugging
- Web: Working with React, Next.js, or SvelteKit integrations
- iOS: Working with SwiftUI or UIKit and the @ViewBuilder slot API
- Android: Working with Jetpack Compose and the controller pattern
Example Prompts
Here are some effective prompt examples for using our documentation with LLMs:With Claude Code Skill (in your IDE)
- Web
- Android
- iOS
General Documentation Request
Best Practices for Using LLMs with Our Documentation
- Be specific: Clearly state which components you want to use and what functionality you need
- Provide context: Mention your framework (React, SwiftUI, Jetpack Compose, etc.) and any specific requirements
- Ask for step-by-step explanations: Request that the LLM explain how the code works
- Validate the output: Always verify generated code against our official documentation
- Iterate: If the initial response isn’t quite right, refine your prompt with more details