/settings-flow
Complete guide for adding, updating, and removing settings in OrcaQ. Covers the full data flow — type → constant → store → component — for all settings panels (Appearance, Editor, Quick Query, Agent). Load this skill for any task involving user preferences, persistent configs,
Claude Code
$ npx -y skills add cin12211/orca-q --skill settings-flow --agent claude-code
Codex
$ npx skills add cin12211/orca-q --skill settings-flow -a codex -y
Cursor
$ npx skills add cin12211/orca-q --skill settings-flow -a cursor -y
Gemini CLI
$ npx skills add cin12211/orca-q --skill settings-flow -a gemini-cli -y
GitHub Copilot
$ npx skills add cin12211/orca-q --skill settings-flow -a github-copilot -y
OpenCode
$ npx skills add cin12211/orca-q --skill settings-flow -a opencode -y
Windsurf
$ npx skills add cin12211/orca-q --skill settings-flow -a windsurf -y
SKILL.md
settings-flow.SKILL.mdname: settings-flow
description: Complete guide for adding, updating, and removing settings in OrcaQ. Covers the full data flow — type → constant → store → component — for all settings panels (Appearance, Editor, Quick Query, Agent). Load this skill for any task involving user preferences, persistent configs, or the settings modal.
Settings Flow — OrcaQ
Architecture Overview
Settings in OrcaQ follow a strict 4-layer flow:
types/settings.types.ts ← Define the shape / enum
constants/settings.constants.ts ← Default values & UI option arrays
core/stores/appConfigStore.ts ← Reactive state + reset actions (persisted)
components/modules/settings/ ← UI panels that read/write the store
All state is persisted automatically via `{ persist: true }` on the Pinia store — no manual localStorage calls needed.
---
File Locations
| Purpose | File | | ------------------------- | ------------------------------------------------------------------ | | Types & enums | `components/modules/settings/types/settings.types.ts` | | Constants & defaults | `components/modules/settings/constants/settings.constants.ts` | | Pinia store | `core/stores/appConfigStore.ts` | | Settings modal controller | `core/contexts/useSettingsModal.ts` | | Container (modal shell) | `components/modules/settings/containers/SettingsContainer.vue` | | Appearance panel | `components/modules/settings/components/AppearanceConfig.vue` | | Editor panel | `components/modules/settings/components/EditorConfig.vue` | | Quick Query panel | `components/modules/settings/components/QuickQueryConfig.vue` | | Agent panel | `components/modules/settings/components/AgentConfig.vue` | | Table Appearance panel | `components/modules/settings/components/TableAppearanceConfig.vue` | | Public module API | `components/modules/settings/index.ts` |
---
How to Add a New Setting
Step 1 — Define the type
In `components/modules/settings/types/settings.types.ts`:
// For a simple value — add a field to an existing interface
export interface CodeEditorConfigs {
theme: EditorTheme;
fontSize: number;
showMiniMap: boolean;
indentation: boolean;
wordWrap: boolean; // ← new field
}
// For an enum setting — add an enum
export enum WordWrapMode {
Off = 'off',
On = 'on',
Bounded = 'bounded',
}Step 2 — Add default value and options constant
In `components/modules/settings/constants/settings.constants.ts`:
// Default value (used in store initialisation and reset)
export const DEFAULT_EDITOR_CONFIG = {
...existingDefaults,
wordWrap: WordWrapMode.Off,
};
// Option array for UI dropdowns / toggles
export const WORD_WRAP_OPTIONS: Array<{ label: string; value: WordWrapMode }> =
[
{ label: 'Off', value: WordWrapMode.Off },
{ label: 'On', value: WordWrapMode.On },
{ label: 'Bounded', value: WordWrapMode.Bounded },
];Step 3 — Add to the Pinia store
In `core/stores/appConfigStore.ts`:
// Inside the store factory function, add the reactive field
const codeEditorConfigs = reactive<CodeEditorConfigs>({
...
wordWrap: DEFAULT_EDITOR_CONFIG.wordWrap, // ← new field
});
// Update the reset action
const resetCodeEditorConfigs = () => {
Object.assign(codeEditorConfigs, {
...
wordWrap: DEFAULT_EDITOR_CONFIG.wordWrap, // ← include in reset
});
};
// Make sure it is included in the return object (it already is if using the reactive object)Step 4 — Add UI in the correct panel component
In the relevant `*Config.vue` under `components/modules/settings/components/`:
<script setup lang="ts">
import { WORD_WRAP_OPTIONS } from '../constants';
const appConfigStore = useAppConfigStore();
</script>
<template>
<!-- Follow the standard settings row pattern -->
<div class="flex items-center justify-between gap-4">
<div class="flex flex-col gap-0.5">
<p class="text-sm">Word wrap</p>
<p class="text-xs text-muted-foreground">
Control how long lines are handled in the editor
</p>
</div>
<Select
:modelValue="appConfigStore.codeEditorConfigs.wordWrap"
@update:modelValue="appConfigStore.codeEditorConfigs.wordWrap = $event"
>
<SelectTrigger size="sm" class="h-6! cursor-pointer">
<SelectValue placeholder="Select word wrap mode" />
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectItem
class="cursor-pointer h-6!"
v-for="opt in WORD_WRAP_OPTIONS"
:key="opt.value"
:value="opt.value"
>
{{ opt.label }}
</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</div>
</template>---
How to Add a Brand New Settings Panel Tab
Step 1 — Add the component key enum value
// settings.types.ts
export enum SettingsComponentKey {
EditorConfig = 'EditorConfig',
QuickQueryConfig = 'QuickQueryConfig',
AgentConfig = 'AgentConfig',
AppearanceConfig = 'AppearanceConfig',
TableAppearanceConfig = 'TableAppearanceConfig',
MyNewConfig = 'MyNewConfig', // ← new
}Step 2 — Add to the nav items constant
// settings.constants.ts
export const SETTINGS_NAV_ITEMS: SettingsNavItem[] = [
...existingItems,
{
name: 'My New Section',
icon: 'hugeicons:some-icon',
componentKey: SettingsComponentKey.MyNewConfig,
},
];Step 3 — Create the panel component
Create `components/modules/settings/components/MyNewConfig.vue` following the standard visual pattern (see Standard UI Pattern below).
Step 4 — Register in the container
In `components/modules/settings/containers/SettingsContainer.vue`:
import M
Read more
name: settings-flow description: Complete guide for adding, updating, and removing settings in OrcaQ. Covers the full data flow — type → constant → store → component — for all settings panels (Appearance, Editor, Quick Query, Agent). Load this skill for any task involving user preferences, persistent configs, or the settings modal.
Settings Flow — OrcaQ
Architecture Overview
Settings in OrcaQ follow a strict 4-layer flow:
types/settings.types.ts ← Define the shape / enum constants/settings.constants.ts ← Default values & UI option arrays core/stores/appConfigStore.ts ← Reactive state + reset actions (persisted) components/modules/settings/ ← UI panels that read/write the store
All state is persisted automatically via `{ persist: true }` on the Pinia store — no manual localStorage calls needed.
---
File Locations
| Purpose | File | | ------------------------- | ------------------------------------------------------------------ | | Types & enums | `components/modules/settings/types/settings.types.ts` | | Constants & defaults | `components/modules/settings/constants/settings.constants.ts` | | Pinia store | `core/stores/appConfigStore.ts` | | Settings modal controller | `core/contexts/useSettingsModal.ts` | | Container (modal shell) | `components/modules/settings/containers/SettingsContainer.vue` | | Appearance panel | `components/modules/settings/components/AppearanceConfig.vue` | | Editor panel | `components/modules/settings/components/EditorConfig.vue` | | Quick Query panel | `components/modules/settings/components/QuickQueryConfig.vue` | | Agent panel | `components/modules/settings/components/AgentConfig.vue` | | Table Appearance panel | `components/modules/settings/components/TableAppearanceConfig.vue` | | Public module API | `components/modules/settings/index.ts` |
---
How to Add a New Setting
Step 1 — Define the type
In `components/modules/settings/types/settings.types.ts`:
// For a simple value — add a field to an existing interface
export interface CodeEditorConfigs {
theme: EditorTheme;
fontSize: number;
showMiniMap: boolean;
indentation: boolean;
wordWrap: boolean; // ← new field
}
// For an enum setting — add an enum
export enum WordWrapMode {
Off = 'off',
On = 'on',
Bounded = 'bounded',
}Step 2 — Add default value and options constant
In `components/modules/settings/constants/settings.constants.ts`:
// Default value (used in store initialisation and reset)
export const DEFAULT_EDITOR_CONFIG = {
...existingDefaults,
wordWrap: WordWrapMode.Off,
};
// Option array for UI dropdowns / toggles
export const WORD_WRAP_OPTIONS: Array<{ label: string; value: WordWrapMode }> =
[
{ label: 'Off', value: WordWrapMode.Off },
{ label: 'On', value: WordWrapMode.On },
{ label: 'Bounded', value: WordWrapMode.Bounded },
];Step 3 — Add to the Pinia store
In `core/stores/appConfigStore.ts`:
// Inside the store factory function, add the reactive field
const codeEditorConfigs = reactive<CodeEditorConfigs>({
...
wordWrap: DEFAULT_EDITOR_CONFIG.wordWrap, // ← new field
});
// Update the reset action
const resetCodeEditorConfigs = () => {
Object.assign(codeEditorConfigs, {
...
wordWrap: DEFAULT_EDITOR_CONFIG.wordWrap, // ← include in reset
});
};
// Make sure it is included in the return object (it already is if using the reactive object)Step 4 — Add UI in the correct panel component
In the relevant `*Config.vue` under `components/modules/settings/components/`:
<script setup lang="ts">
import { WORD_WRAP_OPTIONS } from '../constants';
const appConfigStore = useAppConfigStore();
</script>
<template>
<!-- Follow the standard settings row pattern -->
<div class="flex items-center justify-between gap-4">
<div class="flex flex-col gap-0.5">
<p class="text-sm">Word wrap</p>
<p class="text-xs text-muted-foreground">
Control how long lines are handled in the editor
</p>
</div>
<Select
:modelValue="appConfigStore.codeEditorConfigs.wordWrap"
@update:modelValue="appConfigStore.codeEditorConfigs.wordWrap = $event"
>
<SelectTrigger size="sm" class="h-6! cursor-pointer">
<SelectValue placeholder="Select word wrap mode" />
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectItem
class="cursor-pointer h-6!"
v-for="opt in WORD_WRAP_OPTIONS"
:key="opt.value"
:value="opt.value"
>
{{ opt.label }}
</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</div>
</template>---
How to Add a Brand New Settings Panel Tab
Step 1 — Add the component key enum value
// settings.types.ts
export enum SettingsComponentKey {
EditorConfig = 'EditorConfig',
QuickQueryConfig = 'QuickQueryConfig',
AgentConfig = 'AgentConfig',
AppearanceConfig = 'AppearanceConfig',
TableAppearanceConfig = 'TableAppearanceConfig',
MyNewConfig = 'MyNewConfig', // ← new
}Step 2 — Add to the nav items constant
// settings.constants.ts
export const SETTINGS_NAV_ITEMS: SettingsNavItem[] = [
...existingItems,
{
name: 'My New Section',
icon: 'hugeicons:some-icon',
componentKey: SettingsComponentKey.MyNewConfig,
},
];Step 3 — Create the panel component
Create `components/modules/settings/components/MyNewConfig.vue` following the standard visual pattern (see Standard UI Pattern below).
Step 4 — Register in the container
In `components/modules/settings/containers/SettingsContainer.vue`:
import M
Other skills on orca-q.
More skills from other plugins.
docsite-link-sweep
Sweep the googleapis/mcp-toolbox docs for broken and non-canonical links, report each finding with its cause, and apply the safe…
convex-create-componen…
Create reusable Convex components with clear boundaries and a small app-facing API.
Questions about settings-flow.
- Which coding agents can use settings-flow?
- settings-flow installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

