Skip to content
Skillv1.0.0

clari-security-basics

Secure Clari API tokens and implement data handling best practices. Use when managing API tokens, restricting data access, or implementing PII handling for exported forecast data. Trigger with phrases

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 (plugins/saas-packs/clari-pack/skills/clari-security-basics/SKILL.md). Install upstream with npx skills add jeremylongshore/tons-of-skills-marketplace --skill clari-security-basics. Copyright stays with the author (MIT).

Clari Security Basics

Overview

Secure your Clari integration: API token management, exported data PII handling, and access control best practices.

Prerequisites

  • An approved secret manager and named API-token owner
  • A documented data classification for forecast and rep-level exports
  • Role-based access groups for production and non-production consumers
  • A tested token-rotation and incident escalation path

Instructions

Step 1: Token Management

# Store token in secrets manager
aws secretsmanager create-secret \
  --name "clari/prod/api-token" \
  --secret-string "${CLARI_API_KEY}"

# In CI/CD, load from secrets
export CLARI_API_KEY=$(aws secretsmanager get-secret-value \
  --secret-id "clari/prod/api-token" --query SecretString --output text)

Rotation: Clari API tokens are generated per-user. To rotate, generate a new token in User Settings, update all consumers, then discard the old one.

Step 2: Exported Data PII Handling

Clari export data contains PII (rep names, emails, deal amounts):

def redact_pii(entries: list[dict]) -> list[dict]:
    """Redact PII from forecast entries for non-production use."""
    import hashlib

    redacted = []
    for entry in entries:
        r = entry.copy()
        if "ownerEmail" in r:
            r["ownerEmail"] = hashlib.sha256(
                r["ownerEmail"].encode()
            ).hexdigest()[:12] + "@redacted"
        if "ownerName" in r:
            r["ownerName"] = f"Rep-{hashlib.sha256(r['ownerName'].encode()).hexdigest()[:6]}"
        redacted.append(r)
    return redacted

Step 3: Security Checklist

  • API token in secrets manager, not in code
  • .env files in .gitignore
  • Exported data stored in access-controlled warehouse
  • PII redacted in non-production environments
  • Export download URLs are temporary -- do not cache
  • Audit who has API token access
  • Token regenerated if any team member leaves

Error Handling

Condition Response
Token is exposed or a user departs Revoke and replace it, audit access, and retain redacted incident evidence.
Export lands outside approved storage Restrict access, remove the unauthorized copy through the approved retention process, and notify data governance.
PII is needed in a non-production test Use synthetic or irreversibly redacted data; do not copy production records.
Access review finds excess privilege Remove the role, confirm no dependent job fails, and document the decision.

Output

Create a security review record with token owner, secret reference, authorized roles, data destinations, redaction status, rotation date, and exception approvals. The record must never contain a live token, temporary download URL, or unredacted forecast/rep data.

Examples

When an analyst leaves, issue a replacement service token in the secret store, update the affected job, prove that it runs with its assigned role, then revoke the former user token. If an export was copied into a test workspace, quarantine it and replace it with redacted data before work resumes.

Resources

Next Steps

For production deployment, see clari-prod-checklist.

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-securit-dc9b6f/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-securit-dc9b6f.ocm.jsonjson
{
  "ocm": "1",
  "id": "jeremylongshore-tons-of-skills-marketplace-clari-securit-dc9b6f",
  "kind": "skill",
  "name": "clari-security-basics",
  "description": "Secure Clari API tokens and implement data handling best practices. Use when managing API tokens, restricting data access, or implementing PII handling for exported forecast data. Trigger with phrases like \"clari security\", \"clari api key rotation\", \"secure clari\", \"clari pii handling\".",
  "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": [
    "Secure Clari API tokens and implement data handling best practices. Use when managing API tokens, restricting data access, or implementing PII handling for exported forecast data. Trigger with phrases like \"clari security\", \"clari api key rotation\", \"secure clari\", \"clari pii handling\"."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/jeremylongshore/tons-of-skills-marketplace",
      "path": "plugins/saas-packs/clari-pack/skills/clari-security-basics/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/jeremylongshore/tons-of-skills-marketplace/blob/HEAD/plugins/saas-packs/clari-pack/skills/clari-security-basics/SKILL.md",
      "key": "jeremylongshore/tons-of-skills-marketplace/plugins/saas-packs/clari-pack/skills/clari-security-basics/SKILL.md"
    },
    "compatibility": "Designed for Claude Code",
    "allowed_tools": [
      "Read,",
      "Write,",
      "Edit,",
      "Grep"
    ],
    "license": "MIT"
  },
  "instructions": "# Clari Security Basics\n\n## Overview\n\nSecure your Clari integration: API token management, exported data PII handling, and access control best practices.\n\n## Prerequisites\n\n- An approved secret manager and named API-token owner\n- A documented data classification for forecast and rep-level exports\n- Role-based access groups for production and non-production consumers\n- A tested token-rotation and incident escalation path\n\n## Instructions\n\n### Step 1: Token Management\n\n```bash\n# Store token in secrets manager\naws secretsmanager create-secret \\\n  --name \"clari/prod/api-token\" \\\n  --secret-string ",
  "cost": {
    "context_tokens": 829
  }
}

Fetch it by URL: GET /api/v1/registry/jeremylongshore-tons-of-skills-marketplace-clari-securit-dc9b6f/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.