clickup-local-dev-loop
Develop ClickUp adapters with a fake transport, schema fixtures, deterministic clocks, and an opt-in bounded live probe. Use when iterating without mutating a real Workspace. Trigger with "ClickUp local dev", "mock ClickUp API", or "ClickUp fixtures".
Allowed Tools
Provided by Plugin
clickup-pack
Production-grade Claude Code operator workflows for governed ClickUp integrations (24 skills)
Installation
This skill is included in the clickup-pack plugin:
/plugin install clickup-pack@claude-code-plugins-plus
Click to copy
Instructions
ClickUp Deterministic Local Development
Overview
Keep the fast loop offline while preserving exact provider shapes and a deliberate path to detect real API drift.
Prerequisites
- A transport interface around all ClickUp HTTP calls
- Sanitized fixtures derived from documented v2/v3 schemas, including nulls and errors
- A deterministic clock, fake queue, and optional isolated Workspace for a live read
Tool Discipline
Use Read, Glob, and Grep to inspect the repository, adapters, configuration names, tests, and evidence. Use WebFetch only for current official ClickUp documentation. Use Write or Edit after confirming the target file, Workspace boundary, and requested mode.
Current Contract
- Fixtures preserve string/number/null differences in task and webhook payloads.
- Separate base paths and schemas for v2 and selected v3 operations.
- Mock 429 headers, zero-based task pages, comment cursors, auth codes, and webhook delivery retries.
- No ordinary unit test reads a developer token or creates a ClickUp object.
Authentication
Use a personal token only for accountable individual/testing work or OAuth Authorization Code for a user-facing integration. Inject the token server-side through a governed secret reference, send it in Authorization, verify authorized Workspace IDs, and never print the token, OAuth client secret, or webhook secret.
Instructions
- Inventory direct HTTP calls and route them through an injectable transport.
- Create fixtures for identity, Workspace, tasks, pages, Custom Fields, webhooks, errors, and rate headers.
- Freeze time and IDs; make request order, retry jitter, and queue outcomes deterministic.
- Test raw-body HMAC verification, redaction, Workspace guards, and partial-write recovery.
- Add an explicit live-probe command limited to read-only identity/Workspace calls.
- Run offline tests by default and record any provider drift found by the live probe.
Approval Boundaries
Do not record production responses, use personal work data as fixtures, or enable writes in the default local/test path.
Output
Return fixture provenance, offline coverage, direct-call violations, deterministic test result, live-probe result, and drift. Distinguish simulated success from provider-confirmed evidence.
Error Handling
| Condition | Response |
|---|---|
| Fixture contains personal or task content | Delete/quarantine it and replace with synthetic data. |
| Direct HTTP call bypasses transport | Fail the test and refactor the boundary. |
| Live credential is absent | Skip the probe without weakening offline tests. |
| Live response drifts | Update contracts only after official-source review. |
Examples
The example below is a redacted operator receipt; it contains no task text, member data, credential, or webhook secret.
mode=offline; fixtures=14; network-calls=0; clocks=frozen; hmac-tests=pass; live-probe=skipped