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★ 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)
- Output is a single self-contained
<body>fragment. Do NOT emit<html>,<head>,<base>, or<meta http-equiv>— the host owns those. - 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. - All LimaCharlie data goes through
lc.api(...). Never embed a token/API key, never prompt the user for credentials. - External network only to declared
allowed_originsvia your ownfetch. Everything else is blocked. - Style with the design system: compose
.lc-*classes and reference--lc-*variables. Never hardcode colors or fonts (so dark mode works). - 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. - Declare every service you call. Every distinct
serviceyou pass tolc.api(..., { service })MUST appear in the record'srequired_services, or the call fails at runtime withdenied— the HTML and the record are validated separately, so nothing auto-syncs them. When you add, remove, or change a{ service }call, updaterequired_servicesin the same edit. (This is the #1 reason a working-looking app returnsdenied.)
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
pathis 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.serviceAND listing it inrequired_services(a service you didn't declare is rejected withdenied). 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 aqueryId, then poll GET/v1/search/<queryId>/. This is thesearchservice — NOTreplay.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 isai-sessions.limacharlie.io(NOTai.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.apirejects withError & { code, status };codeis one ofdenied | 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
Установить apps в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteFAQ
Что делает скилл 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), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic