Skip to content
Skillv1.0.0

clari-cost-tuning

Optimize 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

by jeremylongshore(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from jeremylongshore/tons-of-skills-marketplace (skills/.curated/clari-cost-tuning/SKILL.md). Install upstream with npx skills add jeremylongshore/tons-of-skills-marketplace --skill clari-cost-tuning. Copyright stays with the author (MIT).

Clari Cost Tuning

Overview

Minimize Clari API overhead: reduce export frequency, cache aggressively, export only needed data types, and monitor usage.

Prerequisites

  • An approved consumer inventory and freshness requirement for each report
  • Usage telemetry for API calls, export jobs, warehouse loads, and cache age
  • Data-owner approval for retention, aggregation, and delivery changes
  • A non-production validation path for schedule or payload changes

Instructions

Export Only What You Need

# Full export (6 data types) -- more API load
full_types = ["forecast", "quota", "forecast_updated",
              "adjustment", "crm_total", "crm_closed"]

# Minimal export (2 data types) -- faster and lighter
minimal_types = ["forecast", "crm_closed"]

# Use minimal for dashboards, full for audit/compliance

Optimize Export Frequency

Use Case Recommended Frequency
Executive dashboard Daily
Forecast accuracy tracking Weekly
Compliance audit Quarterly
Ad-hoc analysis On demand

Cache to Avoid Redundant Exports

# Cache recent exports (see clari-performance-tuning)
cache = ExportCache(ttl_hours=8)

def smart_export(client, forecast_name, period):
    cached = cache.get(forecast_name, period)
    if cached:
        print(f"Cache hit for {period}")
        return cached

    data = client.export_and_download(forecast_name, period)
    entries = data.get("entries", [])
    cache.set(forecast_name, period, entries)
    return entries

Usage Tracking

class ClariUsageTracker:
    def __init__(self):
        self.api_calls = 0
        self.exports = 0

    def track_call(self):
        self.api_calls += 1

    def track_export(self):
        self.exports += 1

    def report(self) -> dict:
        return {
            "api_calls": self.api_calls,
            "exports": self.exports,
        }

Error Handling

Condition Response
Consumer needs fresher data than the approved schedule Obtain owner approval and measure incremental load before changing cadence.
Cache returns an expired or mismatched period Discard it and run the controlled export path.
Usage spikes or provider throttles Reduce scope/concurrency and preserve the last certified dataset.
Cost reduction removes an audit-required field Reject the change until the compliance owner approves an alternative.

Output

Publish a cost-and-usage decision with current and proposed cadence, payload scope, cache policy, observed API/warehouse load, forecast impact, owner, and rollback threshold. Keep business amounts and rep-level data out of the operational report unless the recipient is authorized.

Examples

Move a non-critical dashboard from hourly full exports to daily minimal exports in staging, verify freshness and audit coverage, and compare job count and warehouse cost for a week. Roll back the schedule if the certified data window or required field coverage no longer meets the report contract.

Resources

Next Steps

For architecture patterns, see clari-reference-architecture.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/jeremylongshore-tons-of-skills-marketplace-clari-cost-tuning/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

jeremylongshore-tons-of-skills-marketplace-clari-cost-tuning.ocm.jsonjson
{
  "ocm": "1",
  "id": "jeremylongshore-tons-of-skills-marketplace-clari-cost-tuning",
  "kind": "skill",
  "name": "clari-cost-tuning",
  "description": "Optimize 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\".",
  "publisher": "jeremylongshore",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "saas",
      "revenue-intelligence",
      "forecasting",
      "clari",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Optimize 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\"."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/jeremylongshore/tons-of-skills-marketplace",
      "path": "skills/.curated/clari-cost-tuning/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/jeremylongshore/tons-of-skills-marketplace/blob/HEAD/skills/.curated/clari-cost-tuning/SKILL.md",
      "key": "jeremylongshore/tons-of-skills-marketplace/skills/.curated/clari-cost-tuning/SKILL.md"
    },
    "compatibility": "Designed for Claude Code",
    "allowed_tools": [
      "Read,",
      "Write,",
      "Edit,",
      "Grep"
    ],
    "license": "MIT"
  },
  "instructions": "# Clari Cost Tuning\n\n## Overview\n\nMinimize Clari API overhead: reduce export frequency, cache aggressively, export only needed data types, and monitor usage.\n\n## Prerequisites\n\n- An approved consumer inventory and freshness requirement for each report\n- Usage telemetry for API calls, export jobs, warehouse loads, and cache age\n- Data-owner approval for retention, aggregation, and delivery changes\n- A non-production validation path for schedule or payload changes\n\n## Instructions\n\n### Export Only What You Need\n\n```python\n# Full export (6 data types) -- more API load\nfull_types = [\"forecast\", \"q",
  "cost": {
    "context_tokens": 803
  }
}

Fetch it by URL: GET /api/v1/registry/jeremylongshore-tons-of-skills-marketplace-clari-cost-tuning/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.