agentsclimarketplace

Appfolio cost tuning

Skill ComeOnOliver/skillshub/skills/jeremylongshore/claude-code-plugins-plus-skills/appfolio-cost-tuning

Optimize AppFolio API costs through efficient usage patterns. Trigger: "appfolio cost".From its SKILL.md

Install
npx -y skills add ComeOnOliver/skillshub --skill appfolio-cost-tuning

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

1.5 KB, 289 tokens by cl100k_base, as published. Nobody here has run it

appfolio cost tuning | sed 's/\b(.)/\u\1/g'

Overview

AppFolio Stack API pricing is partner-agreement based. Optimize by reducing unnecessary API calls.

Cost Optimization

  1. Cache aggressively — Property/unit data changes rarely (5-15 min TTL)
  2. Batch operations — Fetch all leases once, filter locally
  3. Incremental sync — Only fetch records modified since last sync
  4. Webhook-driven — React to events instead of polling

Usage Monitor

class ApiUsageMonitor {
  private calls: Array<{ endpoint: string; timestamp: number }> = [];

  record(endpoint: string) { this.calls.push({ endpoint, timestamp: Date.now() }); }

  getHourlyReport() {
    const cutoff = Date.now() - 3600000;
    const recent = this.calls.filter(c => c.timestamp > cutoff);
    const byEndpoint: Record<string, number> = {};
    for (const c of recent) byEndpoint[c.endpoint] = (byEndpoint[c.endpoint] || 0) + 1;
    return { total: recent.length, byEndpoint };
  }
}

Resources

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.