localai-apps
БесплатноБез исполняемых скриптовНе проверенUse when the user asks for an app, a tool, a tracker, a dashboard, a form, a game, a calculator, a planner or anything interactive to use inside LocalAI…
от mudler★ 50 644 звезды на GitHubОб этом скилле
Apps in LocalAI are Pages
Do the work with files, but talk to the user in plain words: say what changed ("I saved your shortcuts", "I added a Reading list page", "Home now shows your open tasks"), not file names, folders, formats or JSON. Name a file only if the user named it or asks where something is, or when you give them a file as a result (a document they asked for).
LocalAI has its own app format: a Page. It is one HTML file in the user's home that LocalAI shows under Pages in the sidebar. The user can pin it and (with a shared folder) share it. Unless the user names a language or a runtime, "make me an app" means a Page. Do not start a Python, Node or desktop program for it.
Decide
| The user wants | Do |
|---|---|
| An interactive thing to use here: tracker, to-do list, dashboard, form, game, calculator, planner, converter, timer | A Page (this skill) |
| The same, refreshed on a schedule or when a file arrives | A Page plus a trigger: load the localai-workspace skill, section "Updates on a schedule" |
| A Home widget (a list or a number) | The localai-workspace skill, not a Page |
| A page that should also show on Home | A Page with a widget block and a compact mode (section "On Home"), then the localai-workspace skill to add the tile |
| A real program: a script, a service, a CLI, something to install or deploy | Write that program as asked. First check the Commands: line of this chat: if nothing here runs commands, say so and give the files to run elsewhere |
| Data from the web | A Page cannot reach the network. Get the data with your web tools and write it to a file next to the page; the page reads it with fetch('data.json') |
If the user asked explicitly for Python, Node or another language, do that and skip this skill.
A script, test data or a draft that you make on the way goes in the chat's work folder, "$WORK" in the shell (the file tools take the path the note names); the page folder holds only the page and its data.
What a Page is
- Folder
/workspace/home/pages/<name>/. The name is lowercase letters, digits and dashes, starting with a letter or digit, at most 64 characters (reading-tracker). index.htmlis required, at most 1 MiB. One file with the markup, style and script is simplest. Split intoapp.js,style.cssor ES modules next to it only when it grows past what you can keep right; LocalAI puts those files into the page before it runs.page.jsonis optional:{"title": "Reading tracker", "icon": "book", "description": "Books to read, with a rating"}. The icon is one plain lowercase word. Always write it: the title is what the user sees in the list.- Data files sit next to
index.html, any name, any subfolder (books.json). Text only, at most 1 MiB each. Keep data in JSON, so you can read and change it in a chat later.
The sandbox
The page runs in a frame with no network and no access to LocalAI or other files.
- Files next to the page work with relative URLs:
fetch('data.json')andXMLHttpRequest(GET only, text and JSON; a missing file is a 404 response),<script src="app.js">,<link rel="stylesheet" href="style.css">,<script type="module">withimport './x.js', and small images (<img src="logo.png">, CSSurl(); png, jpg, gif, webp, svg; 2 MiB of images in all). - Nothing else is reachable: no
https://URL, no CDN, no packages (import 'react'), no WebSocket, no file outside the page's folder (../), no fonts from files. A remotefetchfails with "network is off in pages". Write plain JavaScript with no build step. - To save, use
localai.files.write;fetchonly reads. - No
<form>submit (it does nothing). Handle the button click and the Enter key. - A link to an
https://address works: LocalAI asks the user, then opens it in a new tab. Use plain<a href="https://...">;window.openreturnsnull. A link to another file of the page opens nothing. - No
localStorageas the only copy of the data. Save to a file withlocalai.files.write; that is the copy the user and you can see. - A page writes data files only (such as
.jsonor.txt).localai.files.writerefuses.js,.mjs,.cjs,.css,.html,.htm,.svg,.xml,.xhtml,.wasm, a file namedindexandpage.jsonwith the error codeforbidden. You change the code of the page with the file tools, never the page itself.
The bridge
window.localai is already there. Every call returns a promise. Paths are relative to the page's own folder.
localai.files.read(path)gives{path, content, version, size}. A failed call rejects with an error that hasstatus(404 for a missing file).localai.files.write(path, content)gives{path, version, size}. It creates folders. Writes are limited (a burst of 20, then one every 2 seconds), so save after a short pause, not on each key.localai.files.list(dir)gives[{path, kind, size, version}].localai.on('files.changed', fn)callsfn({paths})when a file
Установить localai-apps в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл localai-apps?
Use when the user asks for an app, a tool, a tracker, a dashboard, a form, a game, a calculator, a planner or anything interactive to use inside LocalAI. Build it as a Page.
Как установить скилл localai-apps?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл localai-apps запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub