xiaohongshu
xiaohongshu
faion-llm-integration
LLM APIs: OpenAI, Claude, Gemini, local LLMs, prompt engineering, function calling.
Full skill instructions
Entry point:
/faion-net— invoke this skill for automatic routing to the appropriate domain.
Communication: User's language. Code: English.
Handles direct integration with LLM APIs. Covers OpenAI, Claude, Gemini, local models, prompt engineering, and output structuring.
Check these project signals before asking questions:
| Signal | Where to Check | What to Look For |
|---|---|---|
| Dependencies | package.json, requirements.txt, go.mod | openai, anthropic, google-generativeai, langchain |
| Config files | .env, config/*.{yml,json} | API keys (OPENAI_API_KEY, ANTHROPIC_API_KEY) |
| Existing code | Grep for "openai", "anthropic", "genai" | Existing LLM integrations |
| Documentation | README.md, docs/ | LLM usage patterns |
question: "What LLM task are you building?"
header: "Task Type"
multiSelect: false
options:
- label: "Chat/completion API"
description: "Direct LLM API calls for text generation"
- label: "Function calling / tool use"
description: "LLM selects and executes functions"
- label: "Structured output (JSON mode)"
description: "Constrain LLM to return valid JSON/schemas"
- label: "Prompt optimization"
description: "Improve existing prompts (few-shot, CoT, templates)"
question: "Which LLM provider(s)?"
header: "Provider"
multiSelect: true
options:
- label: "OpenAI (GPT-4o, o1)"
description: "OpenAI API integration"
- label: "Claude (Anthropic)"
description: "Claude Opus/Sonnet via Anthropic API"
- label: "Gemini (Google)"
description: "Gemini Pro/Flash via Google AI"
- label: "Local LLM (Ollama)"
description: "Self-hosted models for privacy"
question: "Do you need safety/content moderation?"
header: "Guardrails"
multiSelect: false
options:
- label: "Yes - content filtering/PII detection"
description: "Implement guardrails for safety"
- label: "No - internal use only"
description: "Skip guardrails"
| Area | Coverage |
|---|---|
| LLM APIs | OpenAI (GPT-4o, o1), Claude (Opus 4.5, Sonnet 4), Gemini (Pro, Flash) |
| Prompt Engineering | Few-shot, CoT, chain-of-thought techniques |
| Structured Output | JSON mode, function calling, tool use |
| Guardrails | Content safety, validation, error handling |
| Local LLMs | Ollama integration, privacy-focused deployments |
| Task | Files |
|---|---|
| OpenAI integration | openai-api-integration.md → openai-chat-completions.md |
| Claude integration | claude-api-basics.md → claude-messages-api.md |
| Gemini integration | gemini-basics.md → gemini-multimodal.md |
| Local LLM | local-llm-ollama.md |
| Prompts | prompt-basics.md → prompt-techniques.md |
| Function calling | function-calling-patterns.md + tool-use-basics.md |
OpenAI (5):
Claude (6):
Gemini (4):
Prompt Engineering (6):
Safety & Tools (4):
Local (1):
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
model="gpt-4o",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Explain quantum computing"}
]
)
print(response.choices[0].message.content)
import anthropic
client = anthropic.Anthropic()
message = client.messages.create(
model="claude-sonnet-4-20250514",
max_tokens=1024,
messages=[{"role": "user", "content": "Explain RAG systems"}]
)
print(message.content[0].text)
tools = [{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get current weather",
"parameters": {
"type": "object",
"properties": {
"location": {"type": "string"}
}
}
}
}]
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "What's the weather in SF?"}],
tools=tools
)
| Skill | Relationship |
|---|---|
| faion-rag-engineer | Uses embeddings APIs |
| faion-ai-agents | Uses tool calling |
| faion-ml-ops | Uses for evaluation |
LLM Integration v1.0 | 26 methodologies
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience