agentleFS
voly-codesvoly-codes/voly/.cursor/skills/voly-frontend/SKILL.md

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/.

The file

Files
SKILL.md

VOLY Frontend Development Skill

Before writing any code — read

МеняешьПрочитай
Компоненты / структураdocs/frontend/overview.md + docs/frontend/components.md
API вызовы / SSEdocs/frontend/api-client.md
Новый executor в UIdocs/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 на :7860

Vite проксирует /api/* → localhost:7860 (см. vite.config.js).

Build

cd ui && npm run build
# Output: voly/web/static/assets/ — НЕ коммитить

Adding executor to UI

  1. RunPanel.svelte — добавить { id: 'my-exec', label: 'My Executor' } в executors массив
    • File-writing executors идут ПЕРЕД text-only
  2. RunParams.svelte — добавить в executorHints:
    'my-exec': 'Описание что делает executor'
  3. Обновить 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.