/clari-pack:clari-rate-limitsfrom clari-pack
Handles Clari API rate limits with exponential backoff and sequential export job scheduling. Useful for 429 errors and scheduling bulk forecast exports.
Ships in clari-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The Clari API enforces rate limits per API key. Export jobs are asynchronous and queued server-side, so the primary concern is polling frequency and concurrent export requests.
| Aspect | Value |
|---|---|
| Scope | Per API key |
| Response on limit | HTTP 429 |
| Export job queue | Server-managed, async |
| Recommended polling | 5-10 second intervals |
import time
import requests
def poll_with_backoff(
job_id: str,
api_key: str,
max_attempts: int = 60,
base_delay: float = 5.0,
max_delay: float = 60.0,
) -> dict:
for attempt in range(max_attempts):
resp = requests.get(
f"https://api.clari.com/v4/export/jobs/{job_id}",
headers={"apikey": api_key},
)
if resp.status_code == 429:
retry_after = int(resp.headers.get("Retry-After", base_delay))
time.sleep(retry_after)
continue
resp.raise_for_status()
status = resp.json()
if status["status"] in ("COMPLETED", "FAILED"):
return status
delay = min(base_delay * (1.5 ** attempt), max_delay)
time.sleep(delay)
raise TimeoutError(f"Job {job_id} did not complete in {max_attempts} attempts")
def export_all_periods(
client,
forecast_name: str,
periods: list[str],
delay_between: float = 10.0,
) -> list[dict]:
results = []
for period in periods:
print(f"Exporting {period}...")
job = client.export_forecast(forecast_name, period)
result = poll_with_backoff(job["jobId"], client.config.api_key)
results.append(result)
time.sleep(delay_between) # Avoid hitting rate limits
return results
| Scenario | Detection | Response |
|---|---|---|
| 429 with Retry-After | Check header | Wait exact duration |
| 429 without header | Status code only | Backoff from 5s |
| Job queue full | Multiple pending jobs | Wait for completion before new exports |
For security configuration, see clari-security-basics.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
clari, rate-limiting, export-scheduling, backoff, forecasting
18 skills in this plugin
/clari-ci-integrationIntegrate Clari export pipeline testing and validation into CI/CD.
Use when adding automated tests for Clari integrations,
validating export schemas in CI, or testing pipeline reliability.
Trigger with phrases like "clari CI", "clari github actions",
"clari automated tests", "test clari pipeline".
/clari-common-errorsDiagnose and fix Clari API errors including auth failures, export issues, and data mismatches.
Use when Clari API calls fail, exports return empty data,
or forecast numbers do not match the UI.
Trigger with phrases like "clari error", "clari not working",
"clari api failure", "fix clari", "debug clari".
/clari-core-workflow-aBuild a Clari forecast export pipeline to your data warehouse.
Use when exporting forecast calls, quota data, and CRM totals
from Clari to Snowflake, BigQuery, or a local database.
Trigger with phrases like "clari forecast export", "clari data pipeline",
"clari to snowflake", "clari to bigquery", "export clari data".
/clari-core-workflow-bBuild Clari revenue analytics: pipeline coverage, forecast accuracy,
and rep performance dashboards from exported data.
Use when analyzing forecast accuracy, building attainment reports,
or creating executive revenue dashboards.
Trigger with phrases like "clari analytics", "clari dashboard",
"clari forecast accuracy", "clari pipeline coverage".
/clari-cost-tuningOptimize Clari API usage and integration costs.
Use when reducing API call volume, optimizing export frequency,
or evaluating Clari license utilization.
Trigger with phrases like "clari cost", "clari api usage",
"reduce clari calls", "clari optimization".
/clari-debug-bundleCollect Clari API diagnostic info for support cases.
Use when preparing a support ticket, collecting API response samples,
or documenting integration issues.
Trigger with phrases like "clari debug", "clari support bundle",
"collect clari diagnostics", "clari troubleshoot".
npx claudepluginhub flight505/skill-forge --plugin clari-packOther plugins' skills for the same job