[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78XAN8XPTAX9401FMSVH79B":3,"skill-same:01M78XAN8XPTAX9401FMSVH79B":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M78XAN8XPTAX9401FMSVH79B","appfolio-performance-tuning",null,"Optimize AppFolio API performance with caching and batch operations.\nTrigger: \"appfolio performance\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--appfolio-pack--appfolio-performance-tuning\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: appfolio-performance-tuning\ndescription: |\n  Optimize AppFolio API performance with caching and batch operations.\n  Trigger: \"appfolio performance\".\nallowed-tools: Read, Write, Edit, Bash(npm:*), Bash(curl:*), Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ntags: [saas, property-management, appfolio, real-estate]\ncompatible-with: claude-code\n---\n\n# AppFolio Performance Tuning\n\n## Overview\n\nAppFolio's property management API handles bulk tenant queries, property portfolio pagination, and work order batch processing. Large portfolios with thousands of units generate heavy read traffic on listing endpoints. Optimizing cache lifetimes for slow-changing property data, batching work order updates, and pooling HTTP connections reduces API call volume by 60-80% and cuts dashboard load times from seconds to sub-second.\n\n## Caching Strategy\n```typescript\nconst cache = new Map\u003Cstring, { data: any; expiry: number }>();\nconst TTL = { properties: 300_000, tenants: 120_000, units: 300_000, workOrders: 60_000 };\n\nasync function cached(key: string, ttlKey: keyof typeof TTL, fn: () => Promise\u003Cany>) {\n  const entry = cache.get(key);\n  if (entry && entry.expiry > Date.now()) return entry.data;\n  const data = await fn();\n  cache.set(key, { data, expiry: Date.now() + TTL[ttlKey] });\n  return data;\n}\n```\n\n## Batch Operations\n```typescript\nasync function batchWorkOrders(client: any, ids: string[], batchSize = 25) {\n  const results = [];\n  for (let i = 0; i \u003C ids.length; i += batchSize) {\n    const batch = ids.slice(i, i + batchSize);\n    const res = await Promise.all(batch.map(id => client.http.get(`\u002Fwork_orders\u002F${id}`)));\n    results.push(...res.map(r => r.data));\n    if (i + batchSize \u003C ids.length) await new Promise(r => setTimeout(r, 200));\n  }\n  return results;\n}\n```\n\n## Connection Pooling\n```typescript\nimport { Agent } from 'https';\nconst agent = new Agent({ keepAlive: true, maxSockets: 10, maxFreeSockets: 5, timeout: 30_000 });\n\u002F\u002F Pass to axios\u002Ffetch: { httpsAgent: agent }\n```\n\n## Rate Limit Management\n```typescript\nasync function withRateLimit(fn: () => Promise\u003Cany>): Promise\u003Cany> {\n  const res = await fn();\n  const remaining = parseInt(res.headers['x-ratelimit-remaining'] || '100');\n  if (remaining \u003C 5) {\n    const retryAfter = parseInt(res.headers['retry-after'] || '2') * 1000;\n    await new Promise(r => setTimeout(r, retryAfter));\n  }\n  return res;\n}\n```\n\n## Monitoring\n```typescript\nconst metrics = { apiCalls: 0, cacheHits: 0, errors: 0, totalLatency: 0 };\nfunction track(startMs: number, hit: boolean, error?: boolean) {\n  metrics.apiCalls++; metrics.totalLatency += Date.now() - startMs;\n  if (hit) metrics.cacheHits++; if (error) metrics.errors++;\n}\n\u002F\u002F Log: avg latency, cache hit rate, error rate per minute\n```\n\n## Performance Checklist\n- [ ] Cache property and unit listings with 5-min TTL\n- [ ] Use incremental sync via last_modified timestamps\n- [ ] Batch work order updates in groups of 25\n- [ ] Enable HTTP keep-alive with connection pooling\n- [ ] Parse rate limit headers and back off proactively\n- [ ] Parallelize independent dashboard queries with Promise.all\n- [ ] Monitor cache hit ratio (target > 70%)\n- [ ] Set request timeouts to 30s to avoid hung connections\n\n## Error Handling\n| Issue | Cause | Fix |\n|-------|-------|-----|\n| 429 Too Many Requests | Exceeded API rate limit | Parse Retry-After header, exponential backoff |\n| Stale tenant data | Cache TTL too long | Reduce tenant cache to 2 min, add cache-bust on writes |\n| Timeout on portfolio list | Large dataset with no pagination | Add page_size=100 and cursor-based iteration |\n| Connection reset | Socket exhaustion | Enable keep-alive agent with maxSockets cap |\n\n## Resources\n- [AppFolio Stack APIs](https:\u002F\u002Fwww.appfolio.com\u002Fstack\u002Fpartners\u002Fapi)\n- [AppFolio Engineering Blog](https:\u002F\u002Fengineering.appfolio.com)\n\n## Next Steps\nSee `appfolio-reference-architecture`.\n","# AppFolio Performance Tuning\n\n## Overview\n\nAppFolio's property management API handles bulk tenant queries, property portfolio pagination, and work order batch processing. Large portfolios with thousands of units generate heavy read traffic on listing endpoints. Optimizing cache lifetimes for slow-changing property data, batching work order updates, and pooling HTTP connections reduces API call volume by 60-80% and cuts dashboard load times from seconds to sub-second.\n\n## Caching Strategy\n```typescript\nconst cache = new Map\u003Cstring, { data: any; expiry: number }>();\nconst TTL = { properties: 300_000, tenants: 120_000, units: 300_000, workOrders: 60_000 };\n\nasync function cached(key: string, ttlKey: keyof typeof TTL, fn: () => Promise\u003Cany>) {\n  const entry = cache.get(key);\n  if (entry && entry.expiry > Date.now()) return entry.data;\n  const data = await fn();\n  cache.set(key, { data, expiry: Date.now() + TTL[ttlKey] });\n  return data;\n}\n```\n\n## Batch Operations\n```typescript\nasync function batchWorkOrders(client: any, ids: string[], batchSize = 25) {\n  const results = [];\n  for (let i = 0; i \u003C ids.length; i += batchSize) {\n    const batch = ids.slice(i, i + batchSize);\n    const res = await Promise.all(batch.map(id => client.http.get(`\u002Fwork_orders\u002F${id}`)));\n    results.push(...res.map(r => r.data));\n    if (i + batchSize \u003C ids.length) await new Promise(r => setTimeout(r, 200));\n  }\n  return results;\n}\n```\n\n## Connection Pooling\n```typescript\nimport { Agent } from 'https';\nconst agent = new Agent({ keepAlive: true, maxSockets: 10, maxFreeSockets: 5, timeout: 30_000 });\n\u002F\u002F Pass to axios\u002Ffetch: { httpsAgent: agent }\n```\n\n## Rate Limit Management\n```typescript\nasync function withRateLimit(fn: () => Promise\u003Cany>): Promise\u003Cany> {\n  const res = await fn();\n  const remaining = parseInt(res.headers['x-ratelimit-remaining'] || '100');\n  if (remaining \u003C 5) {\n    const retryAfter = parseInt(res.headers['retry-after'] || '2') * 1000;\n    await new Promise(r => setTimeout(r, retryAfter));\n  }\n  return res;\n}\n```\n\n## Monitoring\n```typescript\nconst metrics = { apiCalls: 0, cacheHits: 0, errors: 0, totalLatency: 0 };\nfunction track(startMs: number, hit: boolean, error?: boolean) {\n  metrics.apiCalls++; metrics.totalLatency += Date.now() - startMs;\n  if (hit) metrics.cacheHits++; if (error) metrics.errors++;\n}\n\u002F\u002F Log: avg latency, cache hit rate, error rate per minute\n```\n\n## Performance Checklist\n- [ ] Cache property and unit listings with 5-min TTL\n- [ ] Use incremental sync via last_modified timestamps\n- [ ] Batch work order updates in groups of 25\n- [ ] Enable HTTP keep-alive with connection pooling\n- [ ] Parse rate limit headers and back off proactively\n- [ ] Parallelize independent dashboard queries with Promise.all\n- [ ] Monitor cache hit ratio (target > 70%)\n- [ ] Set request timeouts to 30s to avoid hung connections\n\n## Error Handling\n| Issue | Cause | Fix |\n|-------|-------|-----|\n| 429 Too Many Requests | Exceeded API rate limit | Parse Retry-After header, exponential backoff |\n| Stale tenant data | Cache TTL too long | Reduce tenant cache to 2 min, add cache-bust on writes |\n| Timeout on portfolio list | Large dataset with no pagination | Add page_size=100 and cursor-based iteration |\n| Connection reset | Socket exhaustion | Enable keep-alive agent with maxSockets cap |\n\n## Resources\n- [AppFolio Stack APIs](https:\u002F\u002Fwww.appfolio.com\u002Fstack\u002Fpartners\u002Fapi)\n- [AppFolio Engineering Blog](https:\u002F\u002Fengineering.appfolio.com)\n\n## Next Steps\nSee `appfolio-reference-architecture`.\n",{"name":5,"tags":24,"author":29,"license":15,"version":30,"description":31,"allowed-tools":32,"compatible-with":33},[25,26,27,28],"saas","property-management","appfolio","real-estate","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Optimize AppFolio API performance with caching and batch operations.\nTrigger: \"appfolio performance\".\n","Read, Write, Edit, Bash(npm:*), Bash(curl:*), Grep","claude-code","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--appfolio-pack--appfolio-performance-tuning",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill appfolio-performance-tuning",{"tool":49,"command":50},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill appfolio-performance-tuning",{"tool":52,"command":53},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill appfolio-performance-tuning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--appfolio-pack--appfolio-performance-tuning\u002FSKILL.md",true,[],[58,65,72,79,86,94],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]