Correct Multimodal AI CodeOn the First Try
An open-source Agent Skill that equips AI coding assistants with correct patterns, anti-patterns, and production recipes for building multimodal AI applications with Pixeltable: declarative tables that replace LangChain + pandas + vector databases with one system.
Get Started in Seconds
Works with any tool that supports the Agent Skills specification, including Cursor, Claude Code, Windsurf, Cline, Codex CLI, and 40+ more.
npx skills add pixeltable/pixeltable-skill/plugin marketplace add pixeltable/pixeltable-skillcurl -fsSL https://raw.githubusercontent.com/pixeltable/pixeltable-skill/main/install.sh | bash -s -- --platform claude-codeCompatible with
Why This Skill Exists
Pixeltable's declarative model is off-distribution from the imperative Python patterns that dominate LLM training data. Without guidance, agents consistently:
The skill explicitly deflects these priors with bold negative prompts at the top of the file, before providing the correct patterns. This “say what NOT to do first” approach consistently improves first-shot code quality for off-distribution frameworks.
What the Skill Provides
Anti-pattern deflection, core API patterns, agent recipes, and production-ready code, loaded progressively to keep your context lean.
Anti-Pattern Deflection
Five macro negative prompts override training-distribution biases. 15 detailed anti-patterns with wrong/right code examples. 7 hallucinated API warnings with correct alternatives.
# STOP: Do NOT use LangChain, pandas-as-store,# for-loops calling AI, separate vector DBs,# or while-loop agents.## Pixeltable replaces all of them with# declarative tables + computed columns.
Core Patterns
Tables with multimodal types, computed columns for declarative AI pipelines, views with iterators for chunking and frame extraction, embedding indexes for one-liner vector search.
class Docs(TableModel, name='docs'):document: pxt.Documentclass Chunks(TableModel, name='chunks', base=Docs,iterator=document_splitter(Docs.document, separators='sentence'),):__indexes__ = [pxt.EmbeddingIndex(text, embedding=embed_fn)]
Agent & Tool Patterns
Tool-calling pipelines with pxt.tools() + invoke_tools() for OpenAI, Anthropic, Gemini, Groq, and Bedrock. Persistent memory with semantic retrieval. MCP integration.
tools = pxt.tools(get_weather, search_docs)agent.add_computed_column(response=chat_completions(messages=msgs, tools=tools))agent.add_computed_column(result=invoke_tools(agent.response))
Production Patterns
FastAPIRouter for declarative endpoint generation. Error handling with recompute_columns(). Import/export for CSV, Parquet, Hugging Face, PyTorch. Data sharing via Pixeltable Cloud.
ingest = FastAPIRouter(name='ingest')ingest.add_insert_route(Docs, path='/ingest', inputs=[Docs.document])ingest.bind('my_app')app.include_router(ingest)t.recompute_columns('summary', errors_only=True)
See It in Action
Ask your agent to build Pixeltable workflows. It writes correct, production-ready code on the first try.
25+ AI ProvidersCorrect Signatures Built In
Your agent knows the exact function signatures for every supported provider. Just describe what you want. It writes the correct integration code.
| Provider | Functions |
|---|---|
| OpenAI | chat_completions, embeddings, image_generations, speech, transcriptions |
| Anthropic | messages, invoke_tools |
| Google Gemini | generate_content, invoke_tools |
| Hugging Face | clip, sentence_transformer, detr_for_object_detection |
| Together AI | chat_completions, embeddings, image_generations |
| Fireworks | chat_completions, embeddings |
| Ollama | chat_completions, embeddings |
| Mistral | chat_completions, embeddings |
| Groq | chat_completions, invoke_tools |
| AWS Bedrock | converse, invoke_tools |
| + 15 more | See providers reference → |
Progressive Disclosure
The skill loads only what's needed. SKILL.md is the contract. Five reference files load on demand, keeping your agent fast and your context window lean.
| Layer | File | Role | Loaded when |
|---|---|---|---|
| Core | SKILL.md | contract | Always (on activation) |
| Reference | references/core-api.md | API | Types, views, UDFs, serving |
| Reference | references/cli.md | CLI | pxt schema, pxt service, inspect |
| Reference | references/providers.md | providers | Provider import and output shape |
| Reference | references/workflows.md | HTTP | FastAPIRouter routes and bind() |
| Reference | references/anti-patterns.md | stop | Wrong/right stack |
Frequently Asked Questions
Start Buildingin Minutes
Give your AI agent deep Pixeltable expertise. Build multimodal AI applications faster than ever.