Toolverse
All skills

page-save-origin-semantics

by growilabs

Auto-invoked when modifying origin-based conflict detection, revision validation logic, or isUpdatable() method. Explains the two-stage origin check mechanism for conflict detection and its separation from diff detection.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
growilabs
Category
Frontend
Views
1

About this skill

Auto-invoked when modifying origin-based conflict detection, revision validation logic, or isUpdatable() method. Explains the two-stage origin check mechanism for conflict detection and its separation from diff detection.

How to use

  1. Zainstaluj skill w swoim środowisku Claude'a, wskazując repozytorium growilabs/growi. Skill będzie automatycznie wywoływany, gdy będziesz modyfikować logikę związaną z conflict detection, revision validation lub metodę isUpdatable().

  2. Gdy pracujesz nad zmianami w pliku PageEditor.tsx (linia 158), sprawdź logikę pierwszego etapu: czy origin najnowszej rewizji jest undefined (wymaga wysłania revisionId) czy równy "editor"/"view" (nie wysyłaj revisionId). Skill wyjaśni, dlaczego ta logika jest ważna dla edycji współpracowniczej.

  3. Podczas modyfikacji backend'u (obsolete-page.js, linie 167-172), zrozum drugi etap: jeśli origin żądania to "editor" i najnowsza rewizja to "editor" lub "view", system pomija sprawdzenie rewizji. W przeciwnym razie wymusza ścisłe dopasowanie numerów rewizji.

  4. Pamiętaj o kluczowym rozróżnieniu: conflict detection (czy rewizja się zgadza) to coś innego niż diff detection (czy zawartość się zmieniła). Nie łącz tych logik — każda ma swoje miejsce w kodzie.

  5. Przed zatwierdzeniem zmian w logice origin, skonsultuj się ze skillem, aby upewnić się, że nie złamałeś dwuetapowego mechanizmu sprawdzenia. Skill wskaże, które części kodu są krytyczne dla systemu edycji współpracowniczej z Yjs.

Related skills

interactive-dashboard-builder

by anthropics

Build self-contained interactive HTML dashboards with Chart.js, dropdown filters, and professional styling. Use when creating dashboards, building interactive reports, or generating shareable HTML files with charts and filters that work without a server.

Frontend
2298

better-icons

by better-auth

Use when working with icons in any project. Provides CLI for searching 200+ icon libraries (Iconify) and retrieving SVGs. Commands: `better-icons search u003cqueryu003e` to find icons, `better-icons get u003cidu003e` to get SVG. Also available as MCP server for AI agents.

Frontend
2037

apple-reminders

by openclaw

Manage Apple Reminders via the `remindctl` CLI on macOS (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.

Frontend
2085

markitdown

by K-Dense-AI

Convert various file formats (PDF, Office documents, images, audio, web content, structured data) to Markdown optimized for LLM processing. Use when converting documents to markdown, extracting text from PDFs/Office files, transcribing audio, performing OCR on images, extracting

Frontend
75173

theme-factory

by anthropics

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

Frontend
40139

tailwind-design-system

by wshobson

Build scalable design systems with Tailwind CSS, design tokens, component libraries, and responsive patterns. Use when creating component libraries, implementing design systems, or standardizing UI patterns.

Frontend
2676