Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

nimbus-frontend

БесплатноБез исполняемых скриптовНе проверен

Use when writing or modifying Vue 3 components, Vuex store modules, TypeScript interfaces, or Vuetify 4 UI in the src/ directory. Covers: <script setup>…

arjunrajlaboratoryот arjunrajlaboratory★ 22 звезды на GitHub

Об этом скилле

Nimbus Frontend Development

Dependency bumps and Vitest 4

  • Compare the actual resolved graph, not the Dependabot title. An override can make a proposed bump a no-op. Keep legacy consumers on the API major they require; a direct upgrade must not force every transitive consumer across it.
  • A pnpm package has both a packages entry and a snapshots dependency entry. Updating only its version and integrity can omit a newly required dependency. Re-resolve with pnpm and inspect the diff; a frozen install checks importer consistency but does not prove every transitive snapshot is complete.
  • Vitest 4 mocks used with new must use a regular function or class, not an arrow. Sweep sibling constructor mocks, including rarely exercised GIF/ZIP paths. Factory methods such as vtk's newInstance() remain ordinary calls.
  • vi.restoreAllMocks() no longer clears standalone mock call history. The suite uses clearMocks: true for call isolation; tests must still reset any implementations or state they change. Do not relax call-count assertions.
  • jsdom 24 forwards stylesheet errors through a host console outside Vitest 4's test console. Filter only Could not parse CSS stylesheet on its existing virtual-console handlers, preserving every other error. A console.error wrapper in test setup misses these events and can produce hundreds of MB of log output. Verify the actual log after a runner upgrade.

Test mocks must model the real store's REPLACEMENT semantics

A mock that mutates state in place where the real store replaces it makes tests silently vacuous. AnalysisPanel.test.ts's setPlots did plots.length = 0; plots.push(...) while the real applyAnalysisPlots builds a new array. Vue short-circuits a computed whose value is unchanged by identity, so analysisPlots never invalidated and every watcher downstream of it silently never re-ran — a new test for plot-removal behavior passed against code that did nothing.

It hid because an existing test appeared to cover removal: its watcher happened to read analysisPopulation, which returns a fresh array each evaluation, so that one re-fired for an unrelated reason.

Rules:

  • Mock setters replace (mocks.plots = [...next]), matching the store.
  • Booleans and other scalars are the same trap in reverse: an intermediate computed returning an unchanged true stops propagation, so a test that changes only downstream data may never re-run the watcher.
  • Before trusting a new watcher test, make it FAIL once (revert the fix, or assert the opposite) — this one passed for the wrong reason first.

Two related mock traps, both of which make a test assert against something the component never touched:

  • A vi.mock factory captures the spy it closes over. Reassigning mocks.someAction = vi.fn() in beforeEach leaves the component calling the original spy while the test asserts on the new one — "expected spy to be called, number of calls: 0" with obviously working code. Use mocks.someAction.mockClear() instead.
  • A plain-object store mock is not reactive, so a component watching () => store.something never fires when a test assigns to it. If the behavior under test is a watcher on store state, wrap the mock's default export in reactive() (vi.mock("@/store", async () => { const { reactive } = await import("vue"); return { default: reactive({ … }) }; })).

Component Patterns

Script Setup (Composition API)

All 121 components use <script setup lang="ts">:

<script setup lang="ts">
import { ref, computed, watch, onMounted } from "vue";
import store from "@/store";

const props = defineProps<{
  value: string;
}>();

const emit = defineEmits<{
  (e: "update:modelValue", value: string): void;
}>();

const localState = ref("");

const computedValue = computed(() => props.value.toUpperCase());

watch(() => props.value, (newVal) => {
  localState.value = newVal;
});

onMounted(() => {
  // lifecycle hook
});
</script>

Store Access

import store from "@/store";
import annotationStore from "@/store/annotation";

// Direct usage in <script setup> — no `this` needed
store.someAction();
annotationStore.filteredAnnotations;

Store modules still use vuex-module-decorators with @Module, @Mutation, and @Action decorators.

For advanced store patterns (routeMapper, form change detection, caching with batch loading): read references/store-module-patterns.md

Driving the AI panel (agent) from the console

To test the Nimbus AI panel (src/store/aiPanel.ts, AiPanel.vue) end-to-end without clicking, dispatch its actions on the live store. Two traps:

  • The actions register UNNAMESPACED. vuex-module-decorators puts them in the global action map as sendUserMessage, handleAuthenticatedUserChange, etc. — NOT aiPanel/sendUserMessage. A namespaced dispatch is silently dropped (Vuex warns, resolves a no-op promise, nothing runs). Confirm with `store._ac
Полный SKILL.md на GitHub

Установить nimbus-frontend в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/batch-processing-patterns.mdreferences/store-module-patterns.md

FAQ

Что делает скилл nimbus-frontend?

Use when writing or modifying Vue 3 components, Vuex store modules, TypeScript interfaces, or Vuetify 4 UI in the src/ directory. Covers: <script setup> composition API, vuex-module-decorators (@Module, @Action, @Mutation), Vuetify 4 theming (CSS Cascade Layers, light/dark mode), select slot patterns (no .raw wrapper), dialog patterns, API client usage (GirderAPI.ts, AnnotationsAPI.ts), logging utilities (logWarning/logError instead of console.*), button conventions (5-role taxonomy — primary/secondary/tertiary/destructive/icon-only — with required variant and size), button loading states, state flags and in-flight tracking (loading/running/saving/dragging flags are state machines: design them before adding one), @girder/components compatibility, and style guidelines.

Как установить скилл nimbus-frontend?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл nimbus-frontend запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить nimbus-frontend с