> appfolio-sdk-patterns
Apply production-ready patterns for AppFolio REST API integration. Trigger: "appfolio patterns".
curl "https://skillshub.wtf/jeremylongshore/claude-code-plugins-plus-skills/appfolio-sdk-patterns?format=md"appfolio sdk patterns | sed 's/\b(.)/\u\1/g'
Overview
Production patterns for AppFolio API: typed client, pagination, response caching, and error handling.
Instructions
Step 1: Typed API Client
// src/appfolio/typed-client.ts
import axios, { AxiosInstance } from "axios";
interface Property {
id: string; name: string; property_type: string;
address: { street: string; city: string; state: string; zip: string };
unit_count: number;
}
interface Tenant {
id: string; first_name: string; last_name: string;
email: string; phone: string; unit_id: string;
}
interface Lease {
id: string; unit_id: string; tenant_name: string;
start_date: string; end_date: string; rent_amount: number; status: string;
}
class AppFolioTypedClient {
private api: AxiosInstance;
constructor() {
this.api = axios.create({
baseURL: process.env.APPFOLIO_BASE_URL,
auth: { username: process.env.APPFOLIO_CLIENT_ID!, password: process.env.APPFOLIO_CLIENT_SECRET! },
timeout: 30000,
});
}
async getProperties(): Promise<Property[]> { return (await this.api.get("/properties")).data; }
async getTenants(): Promise<Tenant[]> { return (await this.api.get("/tenants")).data; }
async getLeases(): Promise<Lease[]> { return (await this.api.get("/leases")).data; }
}
export { AppFolioTypedClient, Property, Tenant, Lease };
Step 2: Response Cache
const cache = new Map<string, { data: any; expiry: number }>();
async function cachedGet<T>(client: AxiosInstance, path: string, ttlMs = 60000): Promise<T> {
const cached = cache.get(path);
if (cached && cached.expiry > Date.now()) return cached.data;
const { data } = await client.get(path);
cache.set(path, { data, expiry: Date.now() + ttlMs });
return data;
}
Resources
> related_skills --same-repo
> fathom-cost-tuning
Optimize Fathom API usage and plan selection. Trigger with phrases like "fathom cost", "fathom pricing", "fathom plan".
> fathom-core-workflow-b
Sync Fathom meeting data to CRM and build automated follow-up workflows. Use when integrating Fathom with Salesforce, HubSpot, or custom CRMs, or creating automated post-meeting email summaries. Trigger with phrases like "fathom crm sync", "fathom salesforce", "fathom follow-up", "fathom post-meeting workflow".
> fathom-core-workflow-a
Build a meeting analytics pipeline with Fathom transcripts and summaries. Use when extracting insights from meetings, building CRM sync, or creating automated meeting follow-up workflows. Trigger with phrases like "fathom analytics", "fathom meeting pipeline", "fathom transcript analysis", "fathom action items sync".
> fathom-common-errors
Diagnose and fix Fathom API errors including auth failures and missing data. Use when API calls fail, transcripts are empty, or webhooks are not firing. Trigger with phrases like "fathom error", "fathom not working", "fathom api failure", "fix fathom".