voly-frontend
Skill17 starsChanged 5 months agoApache-2.0View on GitHub
Guide for working on VOLY Svelte 5 UI — components, API client, styling. Use this skill for any frontend changes in ui/.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- headroom/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- headroom/llms.txtllms.txt
- software-architectureSkill
- voly-backendSkill
- voly-frontendSkill
- voly-planSkill
- voly-reportSkill
- software-architectureSkill
- voly-backendSkill
- voly-planSkill
- voly-reportSkill
The file
Files
VOLY Frontend Development Skill
Before writing any code — read
| Меняешь | Прочитай |
| Компоненты / структура | docs/frontend/overview.md + docs/frontend/components.md |
| API вызовы / SSE | docs/frontend/api-client.md |
| Новый executor в UI | docs/frontend/components.md → "Добавить новый executor" |
Svelte 5 rules (этот проект использует runes)
<!-- ПРАВИЛЬНО — Svelte 5 -->
let { value = $bindable('') } = $props()
let count = $state(0)
let doubled = $derived(count * 2)
<!-- НЕПРАВИЛЬНО — Svelte 4, не использовать -->
export let value = ''
import { createEventDispatcher } from 'svelte'Styling rules
- Только CSS custom properties из
app.css— не хардкодить цвета var(--bg-surface),var(--text-primary),var(--border-default),var(--accent-blue)- Размеры в px (не rem/em) — проект использует px
<style>блок в каждом компоненте — локальные стили
Component rules
- Файлы > 200 строк → разбить на подкомпоненты
- Нет business logic в компонентах — только UI
- API вызовы только в top-level компонентах (RunPanel, TaskSidebar)
- Shared компоненты — в
lib/components/shared/
Dev flow
cd ui
npm run dev # Vite dev server на :5173
# В другом терминале:
voly serve # backend на :7860Vite проксирует /api/* → localhost:7860 (см. vite.config.js).
Build
cd ui && npm run build
# Output: voly/web/static/assets/ — НЕ коммититьAdding executor to UI
RunPanel.svelte— добавить{ id: 'my-exec', label: 'My Executor' }вexecutorsмассив- File-writing executors идут ПЕРЕД text-only
RunParams.svelte— добавить вexecutorHints:'my-exec': 'Описание что делает executor'- Обновить
docs/frontend/components.md
Documentation requirement (MANDATORY)
После любого изменения:
| Что изменил | Обнови |
| Компонент (добавил/изменил API) | docs/frontend/components.md |
| API вызов / SSE формат | docs/frontend/api-client.md |
| Структура проекта / стек | docs/frontend/overview.md |
Completion report
После завершения задачи создай отчёт: /voly-report
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

