koan-ai-integration
Chat endpoints, embeddings, RAG workflows, vector search
npx skills add majiayu000/claude-skill-registry --skill ai-integration-sylin-org-koan-framework-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Koan AI Integration ## Core Principle **AI capabilities integrate seamlessly with entity patterns.** Store embeddings on entities, use vector repositories for search, and leverage standard Entity<T> patterns for AI-enriched data. ## Quick Reference ### Chat Endpoints ```csharp public class ChatController : ControllerBase { private readonly IAi _ai; [HttpPost] public async Task<IActionResult> Chat( [FromBody] ChatRequest request, CancellationToken ct) { var response = await _ai.ChatAsync(new AiChatRequest { Model = "gpt-4", Messages = request.Messages, SystemPrompt = "You are a helpful assistant.", Temperature = 0.7 }, ct); return Ok(new { message = response.Content, usage = response.Usage }); } } ``` ### Entity with Embeddings ```csharp [DataAdapter("weaviate")] // Force vector database public class ProductSearch : Entity<ProductSearch> { public string ProductId { get; set; } = ""; public string Description { get; set; } = ""; [VectorField] public float[] DescriptionEmbedding { get; set; } = Array.Empty<float>(); // Semantic search public static async Task<List<ProductSearch>> SimilarTo( string query, CancellationToken ct = default) { return await Vector<ProductSearch>.SearchAsyn
- Core Principle
- Quick Reference
- Chat Endpoints
- Entity with Embeddings
- RAG Workflow
- Configuration
- When This Skill Applies
- Reference Documentation
What does the koan-ai-integration skill do?
Chat endpoints, embeddings, RAG workflows, vector search
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill ai-integration-sylin-org-koan-framework-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
