koan-performance — community koan-performance, koan-framework, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Data-Intensive .NET Agents requiring high-performance database operations on large datasets. Koan is a modern, modular .NET 10 framework designed to make small teams capable of building sophisticated applications with simple patterns. Entity-first persistence, multi-provider transparency, AI integration, event-driven architecture with zero configuration ceremony.

sylin-org sylin-org
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The koan-performance skill by sylin-org is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Data-Intensive .NET Agents requiring high-performance database operations on large datasets.

Core Value

Enables agents to handle massive datasets efficiently through Entity-first persistence with streaming, batch operations, and multi-provider transparency. Provides AI integration capabilities and event-driven architecture without configuration ceremony for sophisticated application building.

Capabilities Granted for koan-performance

Streaming large datasets in batches to avoid memory overload
Executing bulk changes through optimized batch operations
Providing fast counts for UI responsiveness
Implementing pagination for web API performance

! Prerequisites & Limits

  • .NET 10 framework required
  • Entity-first architecture dependency
  • Multi-provider support needed for transparency
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

koan-performance

Install koan-performance, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Koan Performance

Core Principle

Optimize for scale from day one. Use streaming for large datasets, batch operations for bulk changes, fast counts for UI, and pagination for web APIs.

Performance Patterns

Streaming (Large Datasets)

csharp
1// ❌ WRONG: Load everything into memory 2var allTodos = await Todo.All(); // 1 million records! 3 4// ✅ CORRECT: Stream in batches 5await foreach (var todo in Todo.AllStream(batchSize: 1000)) 6{ 7 await ProcessTodo(todo); 8}

Count Strategies

csharp
1// Fast count (metadata estimate - 1000x+ faster) 2var fast = await Todo.Count.Fast(ct); // ~5ms for 10M rows 3 4// Exact count (guaranteed accuracy) 5var exact = await Todo.Count.Exact(ct); // ~25s for 10M rows 6 7// Optimized (framework chooses) 8var optimized = await Todo.Count; // Uses Fast if available

Use Fast for: Pagination UI, dashboards, estimates Use Exact for: Critical business logic, reports, inventory

Bulk Operations

csharp
1// Bulk create 2var todos = Enumerable.Range(1, 1000) 3 .Select(i => new Todo { Title = $"Task {i}" }) 4 .ToList(); 5await todos.Save(); // Single operation 6 7// Bulk removal 8await Todo.RemoveAll(RemoveStrategy.Fast); // TRUNCATE/DROP (225x faster)

Batch Retrieval

csharp
1// ❌ WRONG: N queries 2foreach (var id in ids) 3{ 4 var todo = await Todo.Get(id); 5} 6 7// ✅ CORRECT: 1 query 8var todos = await Todo.Get(ids);

Pagination

csharp
1public async Task<IActionResult> GetTodos( 2 int page = 1, 3 int pageSize = 20, 4 CancellationToken ct = default) 5{ 6 var result = await Todo.QueryWithCount( 7 t => !t.Completed, 8 new DataQueryOptions { OrderBy = nameof(Todo.Created), Descending = true }, 9 ct); 10 11 Response.Headers["X-Total-Count"] = result.TotalCount.ToString(); 12 return Ok(result.Items); 13}

Performance Benchmarks

OperationInefficientEfficientSpeedup
Bulk Remove (1M)DELETE loop ~45sTRUNCATE ~200ms225x
Count (10M)Full scan ~25sMetadata ~5ms5000x
Batch Get (100)100 queries1 query100x
Stream (1M)Load all (OOM)Stream batchesMemory safe

When This Skill Applies

  • ✅ Performance tuning
  • ✅ Large datasets
  • ✅ Optimization
  • ✅ Production readiness
  • ✅ Memory issues
  • ✅ Query optimization

Reference Documentation

  • Example Code: .claude/skills/entity-first/examples/batch-operations.cs
  • Guide: docs/guides/performance.md
  • Sample: samples/S14.AdapterBench/ (Performance benchmarks)

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is koan-performance?

Perfect for Data-Intensive .NET Agents requiring high-performance database operations on large datasets. Koan is a modern, modular .NET 10 framework designed to make small teams capable of building sophisticated applications with simple patterns. Entity-first persistence, multi-provider transparency, AI integration, event-driven architecture with zero configuration ceremony.

How do I install koan-performance?

Run the command: npx killer-skills add sylin-org/koan-framework/koan-performance. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for koan-performance?

Key use cases include: Streaming large datasets in batches to avoid memory overload, Executing bulk changes through optimized batch operations, Providing fast counts for UI responsiveness, Implementing pagination for web API performance.

Which IDEs are compatible with koan-performance?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for koan-performance?

.NET 10 framework required. Entity-first architecture dependency. Multi-provider support needed for transparency.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add sylin-org/koan-framework/koan-performance. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use koan-performance immediately in the current project.

Related Skills

Looking for an alternative to koan-performance or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI