Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

apps

БесплатноБез исполняемых скриптовНе проверен

Author and deploy LimaCharlie "apps" — self-contained AI-generated HTML mini-apps that render in a sandboxed iframe in the LimaCharlie web UI and call…

refractionPOINTот refractionPOINT★ 32 звезды на GitHub

Об этом скилле

LimaCharlie Apps

An app is a single self-contained HTML document (HTML + inline CSS + inline JS) stored in the app hive. The LimaCharlie web UI renders it inside a sandboxed iframe and injects a trusted runtime, window.lc, that brokers LimaCharlie API calls using a JWT scoped to a subset of the viewing user's permissions. You write only the app body — the runtime, base styles, and security wrapper are injected by the host.

Full contract: web-app-frontend/docs/ai-guides/apps-runtime-contract.md.

The golden rules (apps are validated against these)

  1. Output is a single self-contained <body> fragment. Do NOT emit <html>, <head>, <base>, or <meta http-equiv> — the host owns those.
  2. No external resources: no <script src>, external stylesheets, CDNs, or web fonts. Inline everything. (The CSP blocks external loads.) For charts you do NOT need a library — lc.chart (Chart.js) is injected for you.
  3. All LimaCharlie data goes through lc.api(...). Never embed a token/API key, never prompt the user for credentials.
  4. External network only to declared allowed_origins via your own fetch. Everything else is blocked.
  5. Style with the design system: compose .lc-* classes and reference --lc-* variables. Never hardcode colors or fonts (so dark mode works).
  6. Least privilege: request the fewest required_permissions. Prefer read-only (*.get, *.list). You can only declare permissions you yourself hold. Sensitive perms (billing.ctrl, user.ctrl, apikey.ctrl) trigger a severe warning to every viewer; write perms (*.set, *.del, *.task, *.ctrl) trigger a lesser one.
  7. Declare every service you call. Every distinct service you pass to lc.api(..., { service }) MUST appear in the record's required_services, or the call fails at runtime with denied — the HTML and the record are validated separately, so nothing auto-syncs them. When you add, remove, or change a { service } call, update required_services in the same edit. (This is the #1 reason a working-looking app returns denied.)

The window.lc runtime

await lc.ready                              // wait for the secure handshake
lc.version                                  // '1'
lc.ctx.user                                 // { id, email, displayName }
lc.ctx.orgs                                 // [{ oid, name }]
lc.ctx.context                              // embed identifiers, e.g. { sid }
lc.ctx.theme                                // { mode, vars } (presentation only)
await lc.api(method, path, body?, opts?)    // brokered LC API call -> JSON
lc.chart(target, spec)                      // themed Chart.js wrapper (see Charts)
lc.onThemeChange(theme => { /* ... */ })    // live dark-mode updates
  • path is a site-relative LC path under /v1, e.g. '/v1/who' or '/v1/orgs/<oid>/...'. Absolute URLs / other hosts / writes to /v1/hive/app/... are rejected.
  • Other LC services. Some LimaCharlie APIs live off the main API on their own hosts. Reach one by passing opts.service AND listing it in required_services (a service you didn't declare is rejected with denied). The parent host-pins the call and brokers it with the same scoped JWT — it does NOT rewrite your path, so use the EXACT path/method the service expects. Each service serves its own OpenAPI — fetch it live and read it before writing calls; do not guess or trust a path from memory (these drift). Valid services:
    • search — the historical-events query API (LCQL), the same backend as the query console. Two steps: POST /v1/search/ with a JSON body ({ oid, query, startTime, endTime, ... }) to get a queryId, then poll GET /v1/search/<queryId>/. This is the search service — NOT replay.
    • cases — case management. Base /api/v1/... (e.g. GET /api/v1/cases, GET /api/v1/cases/{caseNumber}, GET /api/v1/dashboard/counts). Spec: https://cases.limacharlie.io/openapi.
    • ai — AI Sessions / agents. Base /v1/... (e.g. GET /v1/sessions, GET /v1/org/sessions). Host is ai-sessions.limacharlie.io (NOT ai.limacharlie.io). Spec: https://ai-sessions.limacharlie.io/openapi.
    • replay — sensor telemetry replay (rarely needed; NOT the query API).
    const init = await lc.api('POST', '/v1/search/',
      { oid, query, startTime, endTime }, { service: 'search' })
    const page = await lc.api('GET', '/v1/search/' + init.queryId + '/',
      null, { service: 'search' })
    
  • On failure, lc.api rejects with Error & { code, status }; code is one of denied | rate_limited | unauthorized | http | timeout | aborted | malformed.
  • Limits: ~10 req/s (burst 20), 8 concurrent, 256 KB body.

Design system

Tokens: `--lc-bg --lc-surface --lc-line --lc-ink --lc-muted --lc-accent --lc-positive --lc-warning --lc-danger --lc-input-bg --lc-input-line --lc-font-sans --lc-f

Полный SKILL.md на GitHub

Установить apps в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read
Write

FAQ

Что делает скилл apps?

Author and deploy LimaCharlie "apps" — self-contained AI-generated HTML mini-apps that render in a sandboxed iframe in the LimaCharlie web UI and call LimaCharlie APIs through a brokered, permission-scoped runtime (window.lc). Use when a user wants to create, edit, or understand a custom app/dashboard/tool embedded in the LimaCharlie console (the `app` hive).

Как установить скилл apps?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл apps запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить apps с