| name | clari-local-dev-loop |
| description | Set up local development for Clari API integrations with mock data.
Use when building forecast dashboards, testing export pipelines,
or iterating on Clari data transformations locally.
Trigger with phrases like "clari dev setup", "clari local testing",
"develop with clari", "clari mock data".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(python3:*), Grep |
| version | 1.6.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","revenue-intelligence","forecasting","clari"] |
| compatibility | Designed for Claude Code |
Clari Local Dev Loop
Overview
Local development workflow for Clari integrations: mock forecast data for offline testing, schedule recurring exports, and build data transformation pipelines.
Prerequisites
- Completed
clari-install-auth setup
- Python 3.10+ or Node.js 18+
- Local database or data warehouse access for testing
Instructions
Step 1: Project Structure
clari-integration/
├── src/
│ ├── clari_client.py # API client wrapper
│ ├── export_pipeline.py # Export and transform pipeline
│ ├── models.py # Data models for forecast data
│ └── config.py # Environment config
├── tests/
│ ├── fixtures/
│ │ ├── forecast_export.json # Sample export response
│ │ └── job_status.json # Sample job status
│ └── test_pipeline.py
├── .env.local # Dev credentials (git-ignored)
├── .env.example
└── requirements.txt
Step 2: Mock Forecast Data for Testing
MOCK_FORECAST = {
"entries": [
{
"ownerName": "Jane Smith",
"ownerEmail": "jane@example.com",
"forecastAmount": 250000,
"quotaAmount": 300000,
"crmTotal": 180000,
"crmClosed": 120000,
"adjustmentAmount": 15000,
"timePeriod": "2026_Q1"
},
{
"ownerName": "Bob Johnson",
"ownerEmail": "bob@example.com",
"forecastAmount": 180000,
"quotaAmount": 250000,
"crmTotal": 140000,
: ,
: ,
:
}
]
}