jeremylongshore/claude-code-plugins-plus-skills
lindy-pack
plugins/saas-packs/lindy-pack/skills/lindy-performance-tuning/SKILL.md
January 22, 2026
Select agents to install to:
npx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/main/plugins/saas-packs/lindy-pack/skills/lindy-performance-tuning/SKILL.md -a claude-code --skill lindy-performance-tuningInstallation paths:
.claude/skills/lindy-performance-tuning/# Lindy Performance Tuning
## Overview
Optimize Lindy AI agent performance for faster response times and higher throughput.
## Prerequisites
- Production Lindy integration
- Baseline performance metrics
- Access to monitoring tools
## Instructions
### Step 1: Measure Baseline Performance
```typescript
import { Lindy } from '@lindy-ai/sdk';
interface PerformanceMetrics {
avgLatency: number;
p95Latency: number;
p99Latency: number;
throughput: number;
errorRate: number;
}
async function measureBaseline(agentId: string, iterations = 100): Promise<PerformanceMetrics> {
const lindy = new Lindy({ apiKey: process.env.LINDY_API_KEY });
const latencies: number[] = [];
let errors = 0;
const start = Date.now();
for (let i = 0; i < iterations; i++) {
const runStart = Date.now();
try {
await lindy.agents.run(agentId, { input: 'Benchmark test' });
latencies.push(Date.now() - runStart);
} catch (e) {
errors++;
}
}
const totalTime = (Date.now() - start) / 1000;
latencies.sort((a, b) => a - b);
return {
avgLatency: latencies.reduce((a, b) => a + b, 0) / latencies.length,
p95Latency: latencies[Math.floor(latencies.length * 0.95)],
p99Latency: latencies[Math.floor(latencies.length * 0.99)],
throughput: iterations / totalTime,
errorRate: errors / iterations,
};
}
```
### Step 2: Optimize Agent Instructions
```typescript
// BEFORE: Verbose instructions (slow)
const slowAgent = {
instructions: `
You are a helpful assistant that should carefully consider
each request and provide detailed, comprehensive responses.
Think step by step about each query. Consider all possibilities.
Provide examples and explanations for everything.
`,
};
// AFTER: Concise instructions (fast)
const fastAgent = {
instructions: `
Be concise. Answer directly. Skip pleasantries.
Format: [Answer] (1-2 sentences)
`,
config: {
maxTokens: 100, // Limit response length
},
};
```
### Step