Using Storyteller SDK Docs with AI Assistants#
This guide explains how to use Storyteller SDK documentation with AI-powered coding assistants to enhance your development experience.
Why Use AI Assistants with Documentation#
AI coding assistants like GitHub Copilot, Claude, Codex, and Cursor can significantly improve your development workflow when integrating the Storyteller SDK. By providing these AI tools with our documentation, you can:
- Get contextually relevant code suggestions
- Receive guidance based on Storyteller best practices
- Accelerate your implementation process
- Troubleshoot issues more effectively
Adding Documentation to Your Editor#
AI-enabled editors can index and use Storyteller SDK documentation to provide more accurate suggestions. Here's how you can add our docs to various AI assistants:
Download llms.txt#
Copy public-docs/ai/llms.txt from the repository and place it somewhere your editor can reference.
Editor-Specific Instructions#
Cursor#
Cursor includes the ability to add project-specific documentation:
- Open your Storyteller SDK project in Cursor
- Use the
/filecommand and referencepublic-docs/ai/llms.txtto add it to your chat context:
/file public-docs/ai/llms.txt
- Ask questions about Storyteller SDK implementation
GitHub Copilot#
Add the documentation to your project context. This approach also works for other tools like Cursor, Claude, Codex, and ChatGPT (desktop or IDE-integrated versions).
- Create a
.ai/directory in your project - Copy the content from
public-docs/ai/llms.txtto a new file namedstoryteller-sdk-docs.mdin that directory - Point your tool to
.ai/storyteller-sdk-docs.mdand reference it in your prompts
Zed#
In Zed, you can:
- Use the
/filecommand to add the documentation to your chat:
/file public-docs/ai/llms.txt
- Reference the documentation in your queries
Claude, Codex, ChatGPT, and Other Web-Based AIs#
For web-based AI tools, you can:
- Copy the content from
public-docs/ai/llms.txt - Paste it at the beginning of your conversation or chat session
- Preface your prompts with instructions to consider this documentation
Example Prompts#
Here are some effective prompts to use with AI assistants when implementing Storyteller SDK:
-
"Using the Storyteller SDK documentation, help me initialize SDK in my Swift iOS app."
-
"Based on the Storyteller documentation, what's the best way to implement a StorytellerStoriesRow SwiftUI view in my app?"
-
"Help me troubleshoot this initialization error with Storyteller SDK: [paste your error]"
-
"Using the Storyteller docs context, show me how to customize the theme of my StorytellerStoriesRow"
-
"With the Storyteller documentation, help me implement analytics tracking for story views."