/clari-pack:clari-upgrade-migrationfrom clari-pack
Handles Clari API version migrations (v3 to v4), export schema changes, and database schema updates. Useful when Clari updates their API or export format.
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.
Handle Clari API changes: version migrations, export schema updates, and Copilot API adoption.
# v4 is the current version
curl -s -H "apikey: ${CLARI_API_KEY}" \
https://api.clari.com/v4/export/forecast/list | jq .
# If using v3 (deprecated), migrate to v4
def detect_schema_changes(
current_export: dict, expected_fields: set[str]
) -> dict:
if not current_export.get("entries"):
return {"status": "empty", "changes": []}
actual_fields = set(current_export["entries"][0].keys())
new_fields = actual_fields - expected_fields
removed_fields = expected_fields - actual_fields
return {
"status": "changed" if new_fields or removed_fields else "compatible",
"new_fields": list(new_fields),
"removed_fields": list(removed_fields),
}
# Track expected schema
EXPECTED_FIELDS = {
"ownerName", "ownerEmail", "forecastAmount", "quotaAmount",
"crmTotal", "crmClosed", "adjustmentAmount", "timePeriod"
}
-- Add new columns when Clari adds export fields
ALTER TABLE clari_forecasts ADD COLUMN IF NOT EXISTS new_field_name VARCHAR;
-- Backfill historical data
UPDATE clari_forecasts SET new_field_name = 'default' WHERE new_field_name IS NULL;
Keep the previous client version alongside the new one until migration is verified:
# Pin client to specific behavior
client_v4 = ClariClient(ClariConfig(api_key=api_key, base_url="https://api.clari.com/v4"))
For CI integration, see clari-ci-integration.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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