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★ 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
packagesentry and asnapshotsdependency 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
newmust use a regular function or class, not an arrow. Sweep sibling constructor mocks, including rarely exercised GIF/ZIP paths. Factory methods such as vtk'snewInstance()remain ordinary calls. vi.restoreAllMocks()no longer clears standalone mock call history. The suite usesclearMocks: truefor 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 stylesheeton 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
truestops 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.mockfactory captures the spy it closes over. Reassigningmocks.someAction = vi.fn()inbeforeEachleaves 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. Usemocks.someAction.mockClear()instead. - A plain-object store mock is not reactive, so a component watching
() => store.somethingnever fires when a test assigns to it. If the behavior under test is a watcher on store state, wrap the mock's default export inreactive()(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-decoratorsputs them in the global action map assendUserMessage,handleAuthenticatedUserChange, etc. — NOTaiPanel/sendUserMessage. A namespaced dispatch is silently dropped (Vuex warns, resolves a no-op promise, nothing runs). Confirm with `store._ac
Установить nimbus-frontend в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic