Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
clari-deploy-integration【部署与运维】Deploy a single-writer Clari scheduler with durable job state, atomic publication, observability, and rollback. Use when productionizing recurring Revenue or Copilot extraction. Trigger with: "deploy a Clari pipeline", "schedule Clari exports", "ship Clari integration".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: clari-deploy-integration description: >- Deploy a single-writer Clari scheduler with durable job state, atomic publication, observability, and rollback. Use when productionizing recurring Revenue or Copilot extraction. Trigger with: "deploy a Clari pipeline", "schedule Clari exports", "ship Clari integration". allowed-tools: Read, Grep, Write, Edit version: 2.0.0 argument-hint: '[orchestrator-cadence-and-destination]' model: inherit effort: high license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:
Deploy orchestration rather than embedding long-running polling in ephemeral request handlers. Ensure one logical scheduler owns each workload, persists provider job IDs or cursors before waiting, and separates landing from publication.
Pin dependencies and contract fingerprints, run as a non-root identity, and expose no inbound endpoint unless operationally required.
Supply base URLs, credential references, forecast or workspace scope, cadence, limits, destination, and retention through managed configuration.
Use a lease or platform concurrency rule so overlapping invocations cannot queue duplicate exports or replay mutations.
Write the request fingerprint and returned job ID or Copilot cursor durably before any wait, retry, or process exit.
Land, validate, reconcile, and atomically advance the destination only after the provider operation and local checks succeed.
Canary one bounded workload, compare service levels and data, then promote; retain the prior artifact and checkpoint reader for reversal.
Mount only the credentials needed by the selected surface and environment. Prevent secret values and provider payloads from entering process arguments, deployment diffs, health endpoints, or logs.
Use Read and Grep to inspect configuration, provider contracts, fixtures, logs, schemas, and existing tests before proposing a change. Use Write or Edit only for the approved plan, implementation, test, or redacted receipt; do not issue, rotate, revoke, create, update, cancel, delete, export, ingest, or publish provider data without explicit operator approval.
Return the exact surface, environment, resource or job identifiers, contract fingerprint, evidence, unresolved risks, and final decision without exposing credentials or sensitive customer data.
An orchestrator runs one quarterly forecast export at a time, persists the Clari job ID, resumes polling after a restart, validates the landing file, and atomically advances the warehouse snapshot.
| Failure | Response |
|---|---|
| Two schedulers overlap | Acquire a distributed lease before provider calls and stop the losing worker. |
| Worker dies after queuing | Resume from the persisted job ID instead of submitting another export. |
| Canary data regresses | Keep the prior deployment and published snapshot, disable the candidate, and preserve evidence. |