linear-cost-tuning

Featured

Optimize Linear API usage, reduce unnecessary calls, and maximize efficiency within rate limit budgets. Trigger: "linear cost", "reduce linear API calls", "linear efficiency", "linear API usage", "optimize linear costs", "linear budget".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Linear Cost Tuning ## Overview Optimize Linear API usage to stay within rate budgets and minimize infrastructure costs. Linear's API is free (no per-request billing), but rate limits (5,000 requests/hour, 250,000 complexity/hour) constrain throughput. Efficient patterns let you do more within these limits. ## Cost Factors | Factor | Budget Impact | Optimization | |--------|--------------|-------------| | Request count | 5,000/hr limit | Batch operations, coalesce requests | | Query complexity | 250,000/hr limit | Flat queries, small page sizes | | Payload size | Bandwidth + latency | Select only needed fields | | Polling frequency | Wastes budget | Replace with webhooks | | Webhook volume | Processing costs | Filter by event type and team | ## Instructions ### Step 1: Audit Current Usage ```typescript import { LinearClient } from "@linear/sdk"; class UsageTracker { private requests = 0; private totalComplexity = 0; private startTime = Date.now(); track(complexity: number) { this.requests++; this.totalComplexity += complexity; } report() { const elapsedHours = (Date.now() - this.startTime) / 3600000; return { requests: this.requests, requestsPerHour: Math.round(this.requests / elapsedHours), totalComplexity: this.totalComplexity, complexityPerHour: Math.round(this.totalComplexity / elapsedHours), budgetUsed: { requests: `${Math.round((this.requests / elapsedHours / 5000) * 100)}%`, complexity: ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category