[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F81KDTQ8KS7K21S4X646BS":3,"skill-same:01M6F81KDTQ8KS7K21S4X646BS":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":6,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M6F81KDTQ8KS7K21S4X646BS","lokalise-reference-architecture",null,"Implement Lokalise reference architecture with best-practice project layout.\nUse when designing new Lokalise integrations, reviewing project structure,\nor establishing architecture standards for Lokalise applications.\nTrigger with phrases like \"lokalise architecture\", \"lokalise best practices\",\n\"lokalise project structure\", \"how to organize lokalise\", \"lokalise layout\".","Dicklesworthstone\u002Fpi_agent_rust","Dicklesworthstone","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F35050222?v=4","01M6CG26AR942CSVMN1M5E3DSE","Jeff Emanuel","01M6CG26EPP71PSHW1VDS71121",1992,"MIT","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Flokalise-pack\u002Fskills\u002Flokalise-reference-architecture\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],"architecture","lokalise reference architecture","reference","new","implement","when","for","how to","trigger","io","layout","project","structure","organize","standards","best-practice","use","read","integrations","how","applications","best practices","project structure","2026-11-10 10:12:30",false,"---\nname: lokalise-reference-architecture\ndescription: |\n  Implement Lokalise reference architecture with best-practice project layout.\n  Use when designing new Lokalise integrations, reviewing project structure,\n  or establishing architecture standards for Lokalise applications.\n  Trigger with phrases like \"lokalise architecture\", \"lokalise best practices\",\n  \"lokalise project structure\", \"how to organize lokalise\", \"lokalise layout\".\nallowed-tools: Read, Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\n---\n\n# Lokalise Reference Architecture\n\n## Overview\nProduction-ready architecture patterns for Lokalise integrations.\n\n## Prerequisites\n- Understanding of layered architecture\n- Lokalise SDK knowledge\n- TypeScript project setup\n- Testing framework configured\n\n## Project Structure\n\n```\nmy-app\u002F\n├── src\u002F\n│   ├── i18n\u002F\n│   │   ├── index.ts              # i18n library setup\n│   │   ├── config.ts             # Lokalise configuration\n│   │   ├── types.ts              # TypeScript types\n│   │   └── loaders\u002F\n│   │       ├── static.ts         # Bundled translations\n│   │       ├── dynamic.ts        # Runtime loading\n│   │       └── ota.ts            # Over-the-air (mobile)\n│   ├── services\u002F\n│   │   └── lokalise\u002F\n│   │       ├── index.ts          # Service facade\n│   │       ├── client.ts         # Lokalise client wrapper\n│   │       ├── cache.ts          # Caching layer\n│   │       ├── sync.ts           # Translation sync\n│   │       └── webhooks.ts       # Webhook handlers\n│   ├── locales\u002F\n│   │   ├── en.json               # English (source)\n│   │   ├── es.json               # Spanish\n│   │   ├── fr.json               # French\n│   │   └── index.ts              # Locale exports\n│   └── api\u002F\n│       └── webhooks\u002F\n│           └── lokalise.ts       # Webhook endpoint\n├── scripts\u002F\n│   ├── lokalise-pull.sh          # Download translations\n│   ├── lokalise-push.sh          # Upload source strings\n│   └── check-translations.ts     # Validation script\n├── tests\u002F\n│   ├── unit\u002F\n│   │   └── i18n\u002F\n│   └── integration\u002F\n│       └── lokalise\u002F\n├── config\u002F\n│   ├── lokalise.development.json\n│   ├── lokalise.staging.json\n│   └── lokalise.production.json\n├── .env.example\n├── lokalise.json                 # CLI configuration\n└── package.json\n```\n\n## Layer Architecture\n\n```\n┌─────────────────────────────────────────┐\n│           Application Layer              │\n│   (React\u002FVue\u002FAngular Components)         │\n├─────────────────────────────────────────┤\n│           i18n Library Layer             │\n│   (i18next, react-intl, vue-i18n)        │\n├─────────────────────────────────────────┤\n│         Translation Service Layer        │\n│  (Loading, Caching, Fallback Logic)      │\n├─────────────────────────────────────────┤\n│           Lokalise Layer                 │\n│   (SDK Client, Sync, Webhooks)           │\n├─────────────────────────────────────────┤\n│         Infrastructure Layer             │\n│    (Cache, Queue, Monitoring)            │\n└─────────────────────────────────────────┘\n```\n\n## Key Components\n\n### Step 1: Lokalise Client Wrapper\n```typescript\n\u002F\u002F src\u002Fservices\u002Flokalise\u002Fclient.ts\nimport { LokaliseApi } from \"@lokalise\u002Fnode-api\";\n\nlet instance: LokaliseApi | null = null;\n\nexport interface LokaliseConfig {\n  apiKey: string;\n  projectId: string;\n  enableCompression?: boolean;\n}\n\nexport function getLokaliseClient(config?: Partial\u003CLokaliseConfig>): LokaliseApi {\n  if (!instance) {\n    instance = new LokaliseApi({\n      apiKey: config?.apiKey || process.env.LOKALISE_API_TOKEN!,\n      enableCompression: config?.enableCompression ?? true,\n    });\n  }\n  return instance;\n}\n\nexport function getProjectId(): string {\n  return process.env.LOKALISE_PROJECT_ID!;\n}\n\n\u002F\u002F Reset for testing\nexport function resetClient(): void {\n  instance = null;\n}\n```\n\n### Step 2: Translation Service Facade\n```typescript\n\u002F\u002F src\u002Fservices\u002Flokalise\u002Findex.ts\nimport { getLokaliseClient, getProjectId } from \".\u002Fclient\";\nimport { TranslationCache } from \".\u002Fcache\";\nimport { syncTranslations } from \".\u002Fsync\";\n\nexport interface TranslationService {\n  getTranslations(locale: string): Promise\u003CRecord\u003Cstring, string>>;\n  getKey(locale: string, key: string): Promise\u003Cstring | null>;\n  syncFromLokalise(): Promise\u003Cvoid>;\n  invalidateCache(locale?: string): void;\n}\n\nconst cache = new TranslationCache();\n\nexport const translationService: TranslationService = {\n  async getTranslations(locale) {\n    \u002F\u002F Try cache first\n    const cached = cache.get(locale);\n    if (cached) return cached;\n\n    \u002F\u002F Load from bundled files or Lokalise\n    const translations = await loadTranslations(locale);\n    cache.set(locale, translations);\n    return translations;\n  },\n\n  async getKey(locale, key) {\n    const translations = await this.getTranslations(locale);\n    return translations[key] ?? null;\n  },\n\n  async syncFromLokalise() {\n    await syncTranslations(getProjectId());\n  },\n\n  invalidateCache(locale) {\n    if (locale) {\n      cache.delete(locale);\n    } else {\n      cache.clear();\n    }\n  },\n};\n```\n\n### Step 3: Translation Loader Pattern\n```typescript\n\u002F\u002F src\u002Fi18n\u002Floaders\u002Fstatic.ts\n\u002F\u002F For bundled translations (build-time)\nexport async function loadStaticTranslations(\n  locale: string\n): Promise\u003CRecord\u003Cstring, string>> {\n  try {\n    const translations = await import(`..\u002F..\u002Flocales\u002F${locale}.json`);\n    return translations.default;\n  } catch {\n    console.warn(`Locale ${locale} not found, falling back to English`);\n    const fallback = await import(\"..\u002F..\u002Flocales\u002Fen.json\");\n    return fallback.default;\n  }\n}\n\n\u002F\u002F src\u002Fi18n\u002Floaders\u002Fdynamic.ts\n\u002F\u002F For runtime loading (CDN\u002FAPI)\nexport async function loadDynamicTranslations(\n  locale: string,\n  baseUrl = \"\u002Flocales\"\n): Promise\u003CRecord\u003Cstring, string>> {\n  const response = await fetch(`${baseUrl}\u002F${locale}.json`);\n\n  if (!response.ok) {\n    console.warn(`Failed to load ${locale}, falling back to English`);\n    return loadDynamicTranslations(\"en\", baseUrl);\n  }\n\n  return response.json();\n}\n```\n\n### Step 4: i18n Library Integration\n```typescript\n\u002F\u002F src\u002Fi18n\u002Findex.ts\nimport i18n from \"i18next\";\nimport { initReactI18next } from \"react-i18next\";\nimport { loadStaticTranslations } from \".\u002Floaders\u002Fstatic\";\n\nexport const SUPPORTED_LOCALES = [\"en\", \"es\", \"fr\", \"de\", \"ja\"];\nexport const DEFAULT_LOCALE = \"en\";\n\nexport async function initI18n(locale = DEFAULT_LOCALE) {\n  const resources: Record\u003Cstring, { translation: any }> = {};\n\n  \u002F\u002F Load initial locale\n  resources[locale] = {\n    translation: await loadStaticTranslations(locale),\n  };\n\n  \u002F\u002F Load English fallback if different\n  if (locale !== \"en\") {\n    resources.en = {\n      translation: await loadStaticTranslations(\"en\"),\n    };\n  }\n\n  await i18n.use(initReactI18next).init({\n    resources,\n    lng: locale,\n    fallbackLng: \"en\",\n    supportedLngs: SUPPORTED_LOCALES,\n    interpolation: {\n      escapeValue: false,\n    },\n  });\n\n  return i18n;\n}\n\n\u002F\u002F Lazy load additional locales\nexport async function loadLocale(locale: string) {\n  if (i18n.hasResourceBundle(locale, \"translation\")) {\n    return;\n  }\n\n  const translations = await loadStaticTranslations(locale);\n  i18n.addResourceBundle(locale, \"translation\", translations);\n}\n```\n\n## Data Flow Diagram\n\n```\nDeveloper adds string\n        │\n        ▼\n┌───────────────┐\n│  en.json      │──────────────────┐\n│  (source)     │                  │\n└───────┬───────┘                  │\n        │                          ▼\n        │ git push           ┌───────────────┐\n        │                    │   CI\u002FCD       │\n        ▼                    │   Pipeline    │\n┌───────────────┐            └───────┬───────┘\n│   Lokalise    │◀───────────────────┘\n│   Project     │      lokalise push\n└───────┬───────┘\n        │\n        │ Translators work\n        ▼\n┌───────────────┐\n│  Translations │\n│  Complete     │\n└───────┬───────┘\n        │\n        │ Webhook \u002F CI sync\n        ▼\n┌───────────────┐\n│   App Build   │────▶ Production\n│   with i18n   │\n└───────────────┘\n```\n\n## Configuration Management\n\n```typescript\n\u002F\u002F config\u002Flokalise.ts\nimport devConfig from \".\u002Flokalise.development.json\";\nimport stagingConfig from \".\u002Flokalise.staging.json\";\nimport prodConfig from \".\u002Flokalise.production.json\";\n\ntype Environment = \"development\" | \"staging\" | \"production\";\n\ninterface LokaliseEnvConfig {\n  projectId: string;\n  enableWebhooks: boolean;\n  cacheEnabled: boolean;\n  cacheTtlSeconds: number;\n}\n\nconst configs: Record\u003CEnvironment, LokaliseEnvConfig> = {\n  development: devConfig,\n  staging: stagingConfig,\n  production: prodConfig,\n};\n\nexport function getLokaliseEnvConfig(): LokaliseEnvConfig {\n  const env = (process.env.NODE_ENV || \"development\") as Environment;\n  return configs[env] || configs.development;\n}\n```\n\n## Instructions\n\n### Step 1: Create Directory Structure\nSet up the project layout following the reference structure.\n\n### Step 2: Implement Client Wrapper\nCreate the singleton client with caching support.\n\n### Step 3: Build Translation Service\nImplement the facade pattern for translation operations.\n\n### Step 4: Integrate i18n Library\nConnect Lokalise translations to your UI framework.\n\n## Output\n- Structured project layout\n- Client wrapper with caching\n- Translation service facade\n- i18n library integration\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Circular imports | Wrong layering | Separate by layer |\n| Missing locale | Not bundled | Add fallback logic |\n| Stale translations | Cache not invalidated | Use webhooks to invalidate |\n| Type errors | Missing types | Generate from source locale |\n\n## Examples\n\n### Quick Setup Script\n```bash\n#!\u002Fbin\u002Fbash\n# Create reference structure\n\nmkdir -p src\u002Fi18n\u002Floaders\nmkdir -p src\u002Fservices\u002Flokalise\nmkdir -p src\u002Flocales\nmkdir -p scripts\nmkdir -p config\nmkdir -p tests\u002F{unit,integration}\u002Flokalise\n\ntouch src\u002Fi18n\u002F{index,config,types}.ts\ntouch src\u002Fi18n\u002Floaders\u002F{static,dynamic,ota}.ts\ntouch src\u002Fservices\u002Flokalise\u002F{index,client,cache,sync,webhooks}.ts\ntouch scripts\u002F{lokalise-pull.sh,lokalise-push.sh,check-translations.ts}\ntouch config\u002Flokalise.{development,staging,production}.json\n```\n\n## Resources\n- [Lokalise SDK Documentation](https:\u002F\u002Flokalise.github.io\u002Fnode-lokalise-api\u002F)\n- [i18next Documentation](https:\u002F\u002Fwww.i18next.com\u002F)\n- [React i18next](https:\u002F\u002Freact.i18next.com\u002F)\n\n## Flagship Skills\nFor multi-environment setup, see `lokalise-multi-env-setup`.\n","# Lokalise Reference Architecture\n\n## Overview\nProduction-ready architecture patterns for Lokalise integrations.\n\n## Prerequisites\n- Understanding of layered architecture\n- Lokalise SDK knowledge\n- TypeScript project setup\n- Testing framework configured\n\n## Project Structure\n\n```\nmy-app\u002F\n├── src\u002F\n│   ├── i18n\u002F\n│   │   ├── index.ts              # i18n library setup\n│   │   ├── config.ts             # Lokalise configuration\n│   │   ├── types.ts              # TypeScript types\n│   │   └── loaders\u002F\n│   │       ├── static.ts         # Bundled translations\n│   │       ├── dynamic.ts        # Runtime loading\n│   │       └── ota.ts            # Over-the-air (mobile)\n│   ├── services\u002F\n│   │   └── lokalise\u002F\n│   │       ├── index.ts          # Service facade\n│   │       ├── client.ts         # Lokalise client wrapper\n│   │       ├── cache.ts          # Caching layer\n│   │       ├── sync.ts           # Translation sync\n│   │       └── webhooks.ts       # Webhook handlers\n│   ├── locales\u002F\n│   │   ├── en.json               # English (source)\n│   │   ├── es.json               # Spanish\n│   │   ├── fr.json               # French\n│   │   └── index.ts              # Locale exports\n│   └── api\u002F\n│       └── webhooks\u002F\n│           └── lokalise.ts       # Webhook endpoint\n├── scripts\u002F\n│   ├── lokalise-pull.sh          # Download translations\n│   ├── lokalise-push.sh          # Upload source strings\n│   └── check-translations.ts     # Validation script\n├── tests\u002F\n│   ├── unit\u002F\n│   │   └── i18n\u002F\n│   └── integration\u002F\n│       └── lokalise\u002F\n├── config\u002F\n│   ├── lokalise.development.json\n│   ├── lokalise.staging.json\n│   └── lokalise.production.json\n├── .env.example\n├── lokalise.json                 # CLI configuration\n└── package.json\n```\n\n## Layer Architecture\n\n```\n┌─────────────────────────────────────────┐\n│           Application Layer              │\n│   (React\u002FVue\u002FAngular Components)         │\n├─────────────────────────────────────────┤\n│           i18n Library Layer             │\n│   (i18next, react-intl, vue-i18n)        │\n├─────────────────────────────────────────┤\n│         Translation Service Layer        │\n│  (Loading, Caching, Fallback Logic)      │\n├─────────────────────────────────────────┤\n│           Lokalise Layer                 │\n│   (SDK Client, Sync, Webhooks)           │\n├─────────────────────────────────────────┤\n│         Infrastructure Layer             │\n│    (Cache, Queue, Monitoring)            │\n└─────────────────────────────────────────┘\n```\n\n## Key Components\n\n### Step 1: Lokalise Client Wrapper\n```typescript\n\u002F\u002F src\u002Fservices\u002Flokalise\u002Fclient.ts\nimport { LokaliseApi } from \"@lokalise\u002Fnode-api\";\n\nlet instance: LokaliseApi | null = null;\n\nexport interface LokaliseConfig {\n  apiKey: string;\n  projectId: string;\n  enableCompression?: boolean;\n}\n\nexport function getLokaliseClient(config?: Partial\u003CLokaliseConfig>): LokaliseApi {\n  if (!instance) {\n    instance = new LokaliseApi({\n      apiKey: config?.apiKey || process.env.LOKALISE_API_TOKEN!,\n      enableCompression: config?.enableCompression ?? true,\n    });\n  }\n  return instance;\n}\n\nexport function getProjectId(): string {\n  return process.env.LOKALISE_PROJECT_ID!;\n}\n\n\u002F\u002F Reset for testing\nexport function resetClient(): void {\n  instance = null;\n}\n```\n\n### Step 2: Translation Service Facade\n```typescript\n\u002F\u002F src\u002Fservices\u002Flokalise\u002Findex.ts\nimport { getLokaliseClient, getProjectId } from \".\u002Fclient\";\nimport { TranslationCache } from \".\u002Fcache\";\nimport { syncTranslations } from \".\u002Fsync\";\n\nexport interface TranslationService {\n  getTranslations(locale: string): Promise\u003CRecord\u003Cstring, string>>;\n  getKey(locale: string, key: string): Promise\u003Cstring | null>;\n  syncFromLokalise(): Promise\u003Cvoid>;\n  invalidateCache(locale?: string): void;\n}\n\nconst cache = new TranslationCache();\n\nexport const translationService: TranslationService = {\n  async getTranslations(locale) {\n    \u002F\u002F Try cache first\n    const cached = cache.get(locale);\n    if (cached) return cached;\n\n    \u002F\u002F Load from bundled files or Lokalise\n    const translations = await loadTranslations(locale);\n    cache.set(locale, translations);\n    return translations;\n  },\n\n  async getKey(locale, key) {\n    const translations = await this.getTranslations(locale);\n    return translations[key] ?? null;\n  },\n\n  async syncFromLokalise() {\n    await syncTranslations(getProjectId());\n  },\n\n  invalidateCache(locale) {\n    if (locale) {\n      cache.delete(locale);\n    } else {\n      cache.clear();\n    }\n  },\n};\n```\n\n### Step 3: Translation Loader Pattern\n```typescript\n\u002F\u002F src\u002Fi18n\u002Floaders\u002Fstatic.ts\n\u002F\u002F For bundled translations (build-time)\nexport async function loadStaticTranslations(\n  locale: string\n): Promise\u003CRecord\u003Cstring, string>> {\n  try {\n    const translations = await import(`..\u002F..\u002Flocales\u002F${locale}.json`);\n    return translations.default;\n  } catch {\n    console.warn(`Locale ${locale} not found, falling back to English`);\n    const fallback = await import(\"..\u002F..\u002Flocales\u002Fen.json\");\n    return fallback.default;\n  }\n}\n\n\u002F\u002F src\u002Fi18n\u002Floaders\u002Fdynamic.ts\n\u002F\u002F For runtime loading (CDN\u002FAPI)\nexport async function loadDynamicTranslations(\n  locale: string,\n  baseUrl = \"\u002Flocales\"\n): Promise\u003CRecord\u003Cstring, string>> {\n  const response = await fetch(`${baseUrl}\u002F${locale}.json`);\n\n  if (!response.ok) {\n    console.warn(`Failed to load ${locale}, falling back to English`);\n    return loadDynamicTranslations(\"en\", baseUrl);\n  }\n\n  return response.json();\n}\n```\n\n### Step 4: i18n Library Integration\n```typescript\n\u002F\u002F src\u002Fi18n\u002Findex.ts\nimport i18n from \"i18next\";\nimport { initReactI18next } from \"react-i18next\";\nimport { loadStaticTranslations } from \".\u002Floaders\u002Fstatic\";\n\nexport const SUPPORTED_LOCALES = [\"en\", \"es\", \"fr\", \"de\", \"ja\"];\nexport const DEFAULT_LOCALE = \"en\";\n\nexport async function initI18n(locale = DEFAULT_LOCALE) {\n  const resources: Record\u003Cstring, { translation: any }> = {};\n\n  \u002F\u002F Load initial locale\n  resources[locale] = {\n    translation: await loadStaticTranslations(locale),\n  };\n\n  \u002F\u002F Load English fallback if different\n  if (locale !== \"en\") {\n    resources.en = {\n      translation: await loadStaticTranslations(\"en\"),\n    };\n  }\n\n  await i18n.use(initReactI18next).init({\n    resources,\n    lng: locale,\n    fallbackLng: \"en\",\n    supportedLngs: SUPPORTED_LOCALES,\n    interpolation: {\n      escapeValue: false,\n    },\n  });\n\n  return i18n;\n}\n\n\u002F\u002F Lazy load additional locales\nexport async function loadLocale(locale: string) {\n  if (i18n.hasResourceBundle(locale, \"translation\")) {\n    return;\n  }\n\n  const translations = await loadStaticTranslations(locale);\n  i18n.addResourceBundle(locale, \"translation\", translations);\n}\n```\n\n## Data Flow Diagram\n\n```\nDeveloper adds string\n        │\n        ▼\n┌───────────────┐\n│  en.json      │──────────────────┐\n│  (source)     │                  │\n└───────┬───────┘                  │\n        │                          ▼\n        │ git push           ┌───────────────┐\n        │                    │   CI\u002FCD       │\n        ▼                    │   Pipeline    │\n┌───────────────┐            └───────┬───────┘\n│   Lokalise    │◀───────────────────┘\n│   Project     │      lokalise push\n└───────┬───────┘\n        │\n        │ Translators work\n        ▼\n┌───────────────┐\n│  Translations │\n│  Complete     │\n└───────┬───────┘\n        │\n        │ Webhook \u002F CI sync\n        ▼\n┌───────────────┐\n│   App Build   │────▶ Production\n│   with i18n   │\n└───────────────┘\n```\n\n## Configuration Management\n\n```typescript\n\u002F\u002F config\u002Flokalise.ts\nimport devConfig from \".\u002Flokalise.development.json\";\nimport stagingConfig from \".\u002Flokalise.staging.json\";\nimport prodConfig from \".\u002Flokalise.production.json\";\n\ntype Environment = \"development\" | \"staging\" | \"production\";\n\ninterface LokaliseEnvConfig {\n  projectId: string;\n  enableWebhooks: boolean;\n  cacheEnabled: boolean;\n  cacheTtlSeconds: number;\n}\n\nconst configs: Record\u003CEnvironment, LokaliseEnvConfig> = {\n  development: devConfig,\n  staging: stagingConfig,\n  production: prodConfig,\n};\n\nexport function getLokaliseEnvConfig(): LokaliseEnvConfig {\n  const env = (process.env.NODE_ENV || \"development\") as Environment;\n  return configs[env] || configs.development;\n}\n```\n\n## Instructions\n\n### Step 1: Create Directory Structure\nSet up the project layout following the reference structure.\n\n### Step 2: Implement Client Wrapper\nCreate the singleton client with caching support.\n\n### Step 3: Build Translation Service\nImplement the facade pattern for translation operations.\n\n### Step 4: Integrate i18n Library\nConnect Lokalise translations to your UI framework.\n\n## Output\n- Structured project layout\n- Client wrapper with caching\n- Translation service facade\n- i18n library integration\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Circular imports | Wrong layering | Separate by layer |\n| Missing locale | Not bundled | Add fallback logic |\n| Stale translations | Cache not invalidated | Use webhooks to invalidate |\n| Type errors | Missing types | Generate from source locale |\n\n## Examples\n\n### Quick Setup Script\n```bash\n#!\u002Fbin\u002Fbash\n# Create reference structure\n\nmkdir -p src\u002Fi18n\u002Floaders\nmkdir -p src\u002Fservices\u002Flokalise\nmkdir -p src\u002Flocales\nmkdir -p scripts\nmkdir -p config\nmkdir -p tests\u002F{unit,integration}\u002Flokalise\n\ntouch src\u002Fi18n\u002F{index,config,types}.ts\ntouch src\u002Fi18n\u002Floaders\u002F{static,dynamic,ota}.ts\ntouch src\u002Fservices\u002Flokalise\u002F{index,client,cache,sync,webhooks}.ts\ntouch scripts\u002F{lokalise-pull.sh,lokalise-push.sh,check-translations.ts}\ntouch config\u002Flokalise.{development,staging,production}.json\n```\n\n## Resources\n- [Lokalise SDK Documentation](https:\u002F\u002Flokalise.github.io\u002Fnode-lokalise-api\u002F)\n- [i18next Documentation](https:\u002F\u002Fwww.i18next.com\u002F)\n- [React i18next](https:\u002F\u002Freact.i18next.com\u002F)\n\n## Flagship Skills\nFor multi-environment setup, see `lokalise-multi-env-setup`.\n",{"name":5,"author":47,"license":15,"version":48,"description":49,"allowed-tools":50},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Implement Lokalise reference architecture with best-practice project layout.\nUse when designing new Lokalise integrations, reviewing project structure,\nor establishing architecture standards for Lokalise applications.\nTrigger with phrases like \"lokalise architecture\", \"lokalise best practices\",\n\"lokalise project structure\", \"how to organize lokalise\", \"lokalise layout\".\n","Read, Grep","main","90b50ed0778745a80fd5bfb13b1843d45b9e82f7","tests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Flokalise-pack\u002Fskills\u002Flokalise-reference-architecture",233,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust","https:\u002F\u002Fgithub.com\u002FDicklesworthstone","https:\u002F\u002Fwww.jeffreyemanuel.com\u002F","Building in NY","2026-11-15 01:54:15",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add Dicklesworthstone\u002Fpi_agent_rust --skill lokalise-reference-architecture",{"tool":66,"command":67},"bunx","bunx skills add Dicklesworthstone\u002Fpi_agent_rust --skill lokalise-reference-architecture",{"tool":69,"command":70},"pnpm","pnpm dlx skills add Dicklesworthstone\u002Fpi_agent_rust --skill lokalise-reference-architecture","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Flokalise-pack\u002Fskills\u002Flokalise-reference-architecture\u002FSKILL.md",true,[],[75,104,135,153,179,201],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":103},"01M6FCR7G5A005P364Z6ZWCJDP","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FSKILL.md",[],[84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102],"theme factory","factory","theme","docs","toolkit","generate","artifacts","SET","fly","slides","landing","html","styling","artifact","pages","themes","with","you","fonts","2026-11-11 15:11:14",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":108,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":42},"01M6FEGPPK0ZTKCCM0R3E3KS33","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FSKILL.md",[],[112,113,90,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,35,95,129,130,131,132,25,133,134],"web artifacts builder","web","artifacts builder","builder","frontend","css","components","react","component","routing","state management","state","shadcn","file","ui","Tools","Tailwind","single-file","simple","ui components","multi","jsx","suite",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":139,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":42},"01M6FEE9VTK1W4GY21AKREJXRG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FSKILL.md",[],[143,144,145,116,146,147,113,148,88,149,126,150,39,151,152,100,25],"testing","webapp testing","webapp","screenshots","playwright","debugging","browser","logs","behavior","local",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":157,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":42},"01M6FE20F7ZTQBFWKF4MPJ2SBX","neuropixels-analysis","Neuropixels neural recording analysis. Load SpikeGLX\u002FOpenEphys data, preprocess, motion correction, Kilosort4 spike sorting, quality metrics, Allen\u002FIBL curation, AI-assisted visual analysis, for Neuropixels 1.0\u002F2.0 extracellular electrophysiology. Use when working with neural recordings, spike sorting, extracellular electrophysiology, or when the user mentions Neuropixels, SpikeGLX, Open Ephys, Kilosort, quality metrics, or unit curation.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FSKILL.md",[],[161,162,163,164,165,166,167,168,35,169,170,171,172,173,174,175,100,176,177,178,25,24],"analysis","neuropixels analysis","spike","metrics","data","open","quality","user","recordings","Neural","motion","visual","quality metrics","unit","sorting","curation","recording","load",{"skillNo":180,"name":181,"nameZh":6,"description":182,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":183,"sourceHtmlUrl":184,"categories":185,"keywords":186,"publishedAt":42},"01M6FDP0PDK6F1GGX395C7625Z","skill-creator","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FSKILL.md",[],[187,188,189,190,191,192,193,194,37,195,196,197,198,199,100,25,200,24,22],"skill creator","creator","workflows","create","update","capabilities","knowledge","tool","specialized","guide","new skill","existing skill","users","Existing",{"skillNo":202,"name":203,"nameZh":6,"description":204,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":205,"sourceHtmlUrl":206,"categories":207,"keywords":208,"publishedAt":42},"01M6FDM8Y7VK7NYG9SM7QPA3PW","notebooklm","Use this skill to query your Google NotebookLM notebooks directly from Claude Code for source-grounded, citation-backed answers from Gemini. Browser automation, library management, persistent auth. Drastically reduced hallucinations through document-only responses.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FSKILL.md",[],[203,209,210,211,212,213,214,149,215,216,35,217,218,219,220,25,221],"google","browser automation","gemini","automation","auth","code","library","management","only","document","query","Citation","source"]