Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Configure Lindy AI across development, staging, and production environments. Use when setting up isolated workspaces, per-environment secrets, or environment-specific agent configurations. Trigger with phrases like "lindy environments", "lindy staging", "lindy dev prod", "lindy environment setup", "lindy workspace isolation".
.claude/skills/jeremylongshore-lindy-multi-env-setup/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-15 | ✗→✓ | ▲ Improved | 73% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 27% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 71% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 9% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 73% | 0% |
Isolate Lindy AI agents across development, staging, and production using separate workspaces, dedicated API keys, and environment-specific webhook configurations. Lindy agents live in workspaces — each environment should use its own workspace to prevent cross-environment data leakage.
| Environment | Workspace | API Key Source | Agent Config | |-------------|-----------|---------------|-------------| | Development | dev-workspace | .env.local | Debug prompts, test integrations | | Staging | staging-workspace | CI/CD secrets | Production-like, test data | | Production | prod-workspace | Secret manager | Hardened prompts, live integrations |
[company]-dev, [company]-staging, [company]-prodtypescript// config/lindy.ts — Environment-aware Lindy configuration interface LindyConfig { apiKey: string; webhookUrl: string; webhookSecret: string; workspace: string; model: string; } function getLindyConfig(): LindyConfig { const env = process.env.NODE_ENV || 'development'; const configs: Record<string, LindyConfig> = { development: { apiKey: process.env.LINDY_API_KEY_DEV!, webhookUrl: process.env.LINDY_WEBHOOK_URL_DEV!, webhookSecret: process.env.LINDY_WEBHOOK_SECRET_DEV!, workspace: 'dev', model: 'gemini-flash', // Cheap model for dev }, staging: { apiKey: process.env.LINDY_API_KEY_STAGING!, webhookUrl: process.env.LINDY_WEBHOOK_URL_STAGING!, webhookSecret: process.env.LINDY_WEBHOOK_SECRET_STAGING!, workspace: 'staging', model: 'claude-sonnet', // Match prod model }, production: { apiKey: process.env.LINDY_API_KEY_PROD!, webhookUrl: process.env.LINDY_WEBHOOK_URL_PROD!, webhookSecret: process.env.LINDY_WEBHOOK_SECRET_PROD!, workspace: 'production', model: 'claude-sonnet', }, }; const config = configs[env]; if (!config) throw new Error(`Unknown environment: ${env}`); return config; } export const lindyConfig = getLindyConfig();
typescript// validate-env.ts — Fail fast if Lindy config is missing import { z } from 'zod'; const LindyEnvSchema = z.object({ LINDY_API_KEY: z.string().min(1, 'LINDY_API_KEY required'), LINDY_WEBHOOK_SECRET: z.string().min(1, 'LINDY_WEBHOOK_SECRET required'), LINDY_WEBHOOK_URL: z.string().url('LINDY_WEBHOOK_URL must be valid URL'), }); export function validateLindyEnv() { const result = LindyEnvSchema.safeParse({ LINDY_API_KEY: process.env.LINDY_API_KEY, LINDY_WEBHOOK_SECRET: process.env.LINDY_WEBHOOK_SECRET, LINDY_WEBHOOK_URL: process.env.LINDY_WEBHOOK_URL, }); if (!result.success) { console.error('Lindy environment validation failed:'); result.error.issues.forEach(i => console.error(` - ${i.path}: ${i.message}`)); process.exit(1); } console.log('Lindy environment validated successfully'); }
bash# Development — .env.local (gitignored) LINDY_API_KEY=lnd_dev_xxxxxxxxxxxx LINDY_WEBHOOK_URL=https://public.lindy.ai/api/v1/webhooks/dev-id LINDY_WEBHOOK_SECRET=whsec_dev_xxxxxxxxxxxx # Staging — CI/CD secrets (GitHub Actions) gh secret set LINDY_API_KEY_STAGING --body "lnd_staging_xxxx" gh secret set LINDY_WEBHOOK_SECRET_STAGING --body "whsec_staging_xxxx" # Production — Cloud secret manager # AWS aws secretsmanager create-secret \ --name prod/lindy/api-key \ --secret-string "lnd_prod_xxxxxxxxxxxx" # GCP echo -n "lnd_prod_xxxxxxxxxxxx" | \ gcloud secrets create lindy-api-key-prod --data-file=-
1. Build and test agent in dev workspace
2. Share agent as Template
3. Import template into staging workspace
4. Re-authorize integrations with staging accounts
5. Update webhook URLs to staging endpoints
6. Test with staging data for 24-48 hours
7. Repeat for production workspace
8. Update webhook URLs to production endpoints
9. Verify all integrations authorized with production accountsCritical: OAuth tokens, webhook URLs, and phone numbers do NOT transfer between workspaces. Each must be reconfigured per environment.
yaml# .github/workflows/deploy.yml jobs: deploy-staging: if: github.ref == 'refs/heads/develop' environment: staging env: LINDY_API_KEY: ${{ secrets.LINDY_API_KEY_STAGING }} LINDY_WEBHOOK_SECRET: ${{ secrets.LINDY_WEBHOOK_SECRET_STAGING }} steps: - run: npm run deploy:staging - run: npm run test:lindy:smoke deploy-prod: if: github.ref == 'refs/heads/main' environment: production env: LINDY_API_KEY: ${{ secrets.LINDY_API_KEY_PROD }} LINDY_WEBHOOK_SECRET: ${{ secrets.LINDY_WEBHOOK_SECRET_PROD }} steps: - run: npm run deploy:prod - run: npm run test:lindy:smoke
| Issue | Cause | Solution | |-------|-------|----------| | Dev agent hits prod data | Shared workspace | Use separate workspaces per environment | | Staging integration fails | OAuth token expired | Re-authorize with staging service accounts | | Webhook URL mismatch | Dev URL in prod config | Validate webhook URLs at startup | | Secret not found in CI | Missing environment secret | Add via gh secret set per environment |
Proceed to lindy-observability for monitoring and alerting.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-15 | fail→pass | 19,205 | 12,666 | -34% | 1 | 1 | 0% | 2,323 | 4,024 | +73% | 0 | 0 | — |
case-14 | fail→pass | 13,214 | 14,208 | +8% | 1 | 1 | 0% | 2,277 | 2,898 | +27% | 0 | 0 | — |
case-02 | fail→pass | 19,708 | 19,215 | -3% | 1 | 1 | 0% | 2,509 | 4,280 | +71% | 0 | 0 | — |
case-01 | fail→pass | 25,887 | 17,452 | -33% | 1 | 1 | 0% | 4,026 | 4,371 | +9% | 0 | 0 | — |
case-03 | fail→fail | 26,042 | 26,234 | +1% | 1 | 1 | 0% | 4,294 | 6,232 | +45% | 0 | 0 | — |
case-04 | fail→pass | 23,888 | 19,074 | -20% | 1 | 1 | 0% | 2,453 | 4,253 | +73% | 0 | 0 | — |
case-05 | fail→pass | 16,418 | 10,964 | -33% | 1 | 1 | 0% | 1,737 | 2,891 | +66% | 0 | 0 | — |
case-06 | fail→pass | 19,504 | 10,961 | -44% | 1 | 1 | 0% | 2,013 | 2,812 | +40% | 0 | 0 | — |
case-07 | fail→pass | 15,128 | 13,742 | -9% | 1 | 1 | 0% | 1,769 | 3,082 | +74% | 0 | 0 | — |
case-08 | pass→pass | 22,102 | 19,930 | -10% | 1 | 1 | 0% | 2,176 | 3,928 | +81% | 0 | 0 | — |
case-09 | pass→pass | 20,749 | 4,836 | -77% | 1 | 1 | 0% | 2,200 | 2,634 | +20% | 0 | 0 | — |
case-10 | pass→pass | 17,682 | 17,905 | +1% | 1 | 1 | 0% | 2,177 | 3,609 | +66% | 0 | 0 | — |
case-11 | pass→pass | 17,610 | 9,856 | -44% | 1 | 1 | 0% | 1,935 | 2,355 | +22% | 0 | 0 | — |
case-12 | fail→pass | 16,453 | 8,390 | -49% | 1 | 1 | 0% | 1,869 | 2,174 | +16% | 0 | 0 | — |
case-13 | fail→pass | 17,755 | 9,684 | -45% | 1 | 1 | 0% | 1,932 | 3,099 | +60% | 0 | 0 | — |
case-16 | pass→pass | 10,244 | 3,304 | -68% | 1 | 1 | 0% | 601 | 2,087 | +247% | 0 | 0 | — |
case-17 | pass→pass | 14,654 | 8,619 | -41% | 1 | 1 | 0% | 1,327 | 2,496 | +88% | 0 | 0 | — |
case-18 | fail→pass | 25,169 | 23,289 | -7% | 1 | 1 | 0% | 3,778 | 5,354 | +42% | 0 | 0 | — |
case-19 | fail→pass | 18,151 | 5,577 | -69% | 1 | 1 | 0% | 2,328 | 2,794 | +20% | 0 | 0 | — |
case-20 | pass→pass | 17,397 | 20,405 | +17% | 1 | 1 | 0% | 2,866 | 5,526 | +93% | 0 | 0 | — |
case-21 | pass→pass | 17,758 | 24,984 | +41% | 1 | 1 | 0% | 2,626 | 5,009 | +91% | 0 | 0 | — |
case-22 | pass→pass | 21,540 | 18,310 | -15% | 1 | 1 | 0% | 2,512 | 4,404 | +75% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +55 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.