Lokalise Multi Env SetupSAFE
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
Overview
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
4f83675ca38aOBSERVED · 2026-10-09Host compatibility
What the documentation claims. We have not run a compatibility test.
| Host | Status | Notes |
|---|---|---|
| claude-code | mentioned |
What it tells the agent
The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.
--- name: lokalise-multi-env-setup description: 'Configure Lokalise across development, staging, and production environments. Use when setting up multi-environment deployments, configuring per-environment secrets, or implementing environment-specific Lokalise configurations. Trigger with phrases like "lokalise environments", "lokalise staging", "lokalise dev prod", "lokalise environment setup", "lokalise config by env". ' allowed-tools: Read, Write, Edit, Bash(aws:*), Bash(gcloud:*), Bash(vault:*) version: 1.14.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - saas - lokalise - deployment compatibility: Designed for Claude Code --- # Lokalise Multi-Environment Setup ## Overview Configure Lokalise for isolated development, staging, and production environments. Two strategies are covered: separate Lokalise projects per environment (strongest isolation) and Lokalise branching within a single project (simpler management). Both approaches include secret management, environment-aware configuration, and a promotion workflow that moves translations through the pipeline from dev to production without cross-contamination. ## Prerequisites - Lokalise Team or Enterprise plan (branching requires Team plan or higher) - One Lokalise API token per environment, each scoped to minimum required permissions - Secret management system: GitHub Secrets, AWS Secrets Manager, GCP Secret Manager, or HashiCorp Vault - Node.js 18+ with `@lokalise/node-api` SDK installed - Environment variable `NODE_ENV` (or equivalent) set in each deployment target ## Instructions ### Step 1: Choose Your Strategy **Option A — Separate projects per environment** (recommended for teams > 5 translators or strict compliance): | Environment | Lokalise Project | Purpose | |-------------|-----------------|---------| | Development | `MyApp (Dev)` | Rapid iteration, machine translations OK | | Staging | `MyApp (Staging)` | QA review, translator proofing | | Production | `MyApp (Prod)` | Approved translations only | **Option B — Single project with Lokalise branching** (simpler for small teams): | Branch | Purpose | |--------|---------| | `main` | Production translations | | `staging` | QA translations under review | | `dev` | Work-in-progress translations | ### Step 2: Environment-Aware Configuration Create a configuration module that selects the correct Lokalise project and credentials based on the runtime environment: ```typescript // src/config/lokalise.ts interface LokaliseEnvConfig { environment: string; apiToken: string; projectId: string; branch?: string; // Only used with Option B (branching) cacheTtlMs: number; enableOta: boolean; fallbackLocale: string; rateLimitPerSec: number; } const ENV_CONFIGS: Record<string, Omit<LokaliseEnvConfig, 'apiToken' | 'projectId'>> = { development: { environment: 'development', cacheTtlMs: 0, // No cache in dev — always fetch fresh enableOta: false, fallbackLocale: 'en', rateLimitPerSec: 6, }, staging: { environment: 'staging', cacheTtlMs: 5 * 60_000, // 5 minutes enableOta: true, fallbackLocale: 'en', rateLimitPerSec: 6, }, production: { environment: 'production', cacheTtlMs: 30 * 60_000, // 30 minutes enableOta: true, fallbackLocale: 'en', rateLimitPerSec: 4, // Conservative — leave headroom for other integrations }, }; export function getLokaliseConfig(): LokaliseEnvConfig { const env = process.env.NODE_ENV || 'development'; const base = ENV_CONFIGS[env]; if (!base) { throw new Error(`Unknown environment: ${env}. Expected: ${Object.keys(ENV_CONFIGS).join(', ')}`); } const apiToken = process.env.LOKALISE_API_TOKEN; const projectId = process.env.LOKALISE_PROJECT_ID; if (!apiToken) { throw new Error('LOKALISE_API_TOKEN is not set'); } if (!projectId) { throw new Error('LOKALISE_PROJECT_ID is not set'); } return { ...base, apiToken, projectId, branch: process.env.LOKALISE_BRANCH, // Optional: for branching strategy }; } ``` ### Step 3: Secret Management Store API tokens securely in each environment. Never commit tokens to source control. **GitHub Actions (CI/CD):** ```yaml # .github/workflows/deploy.yml jobs: deploy-staging: environment: staging env: LOKALISE_API_TOKEN: ${{ secrets.LOKALISE_API_TOKEN_STAGING }} LOKALISE_PROJECT_ID: ${{ vars.LOKALISE_PROJECT_ID_STAGING }} steps: - run: npm run build deploy-production: environment: production env: LOKALISE_API_TOKEN: ${{ secrets.LOKALISE_API_TOKEN_PROD }} LOKALISE_PROJECT_ID: ${{ vars.LOKALISE_PROJECT_ID_PROD }} steps: - run: npm run build ``` **AWS Secrets Manager:** ```typescript import { SecretsManagerClient, GetSecretValueCommand } from '@aws-sdk/client-secrets-manager'; async function getLokaliseToken(environment: string): Promise<string> { const client = new SecretsManagerClient({ region: 'us-east-1' }); const command = new GetSecretValueCommand({ SecretId: `lokalise/${environment}/api-token`, }); const response = await client.send(command); return response.SecretString!; } ``` **GCP Secret Manager:** ```typescript import { SecretManagerServiceClient } from '@google-cloud/secret-manager'; async function getLokaliseToken(environment: string): Promise<string> { const client = new SecretManagerServiceClient(); const [version] = await client.accessSecretVersion({ name: `projects/my-project/secrets/lokalise-token-${environment}/versions/latest`, }); return version.payload!.data!.toString(); } ``` **HashiCorp Vault:** ```bash # Read token from Vault vault kv get -field=api_token secret/lokalise/production ``` ### Step 4: Lokalise Branching (Option B Alternative) If using a single project with branching instead of separate projects: ```typescript import { LokaliseApi } from '@lokalise/node-api'; const lokalise = new Lokalis
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (1)
curl -sfL https://raw.githubusercontent.com/lokalise/lokalise-cli-2-go/master/install.sh | sh
Gates applied: no_behavioural_pass.
4f83675ca38afull audit observations/trust-audit/skill/jeremylongshore__lokalise-multi-env-setup.json · Report an issue / request a re-scanAudit history
Every audit this skill has had.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-09 | 4f83675ca38a | SAFE | B | 89 | first audit |
Questions
What does the Lokalise Multi Env Setup skill do?
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
Is Lokalise Multi Env Setup safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Lokalise Multi Env Setup access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does Lokalise Multi Env Setup work with?
Its documentation mentions claude-code. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (4f83675ca38a), read on 2026-10-09. The repository is watched, and a new audit runs when it changes — this is the first audit.