add-new-setting-field
A mandatory procedure for adding new KonomiTV settings fields to ensure consistency across the store, service, and backend config.
Install
mkdir -p .claude/skills/add-new-setting-field && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3857" && unzip -o skill.zip -d .claude/skills/add-new-setting-field && rm skill.zipInstalls to .claude/skills/add-new-setting-field
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
【設定追加時は必ず参照】KonomiTV に新しい設定 (v-switch/v-select など) を追加する際の必須手順。SettingsStore.ts / Settings.ts / config.py / Settings/*.vue への追加が必要Key capabilities
- →Add new setting fields to client/src/stores/SettingsStore.ts
- →Add new setting fields to client/src/services/Settings.ts
- →Add new setting fields to server/app/config.py
- →Add setting UI to client/src/views/Settings/*.vue files
- →Define default values for new setting fields
- →Specify if a setting field is synchronized with the server
How it works
This skill guides the addition of new setting fields by detailing modifications needed in SettingsStore.ts, Settings.ts, config.py, and .vue files.
Inputs & outputs
When to use add-new-setting-field
- →Adding a new v-switch or v-select setting
- →Syncing new client-side flags to the server
- →Updating default configuration values
- →Organizing new setting fields in the UI
About this skill
以下に、KonomiTV のフロントエンドに新しい設定フィールドを追加する際の手順を示します。
KonomiTV のフロントエンド設定の保存方式
ブラウザの LocalStorage に JSON データで保存しています。
KonomiTV アカウントで同期が有効な際は、UI 表示中はサーバーが保持している設定データと双方向に同期されます。
サーバーと同期される設定と同期されない設定があり、後者はサーバー側には送られません。
設定フィールド追加手順
00. 事前準備
まず自動同期する設定かしない設定かを把握する必要があります。
同期される設定とされない設定で記述内容が異なります。
また、各設定ごとのキー名は、必ず「見ただけである程度どのような設定項目なのかが理解できる」ものである必要があります。
すでに追加されている他のキー名の命名を参考にしながら、多少長くても意味が明快で、設定項目の実装詳細を端的に表している表現を用いてください。
次に、設定値が新しく追加された際、もしくははじめてそのブラウザで KonomiTV を開いた際のデフォルト値を把握しましょう。
また、設定値は原則「設定画面から直接変更できない設定値」->「L字画面のクロップ設定」-> 設定ページ上での並び順 (client/src/views/Settings/Base.vue などを参照) で記述してください。
フィールドは複数の箇所に追加する必要がありますが、原則個々の記述箇所でフィールドの並び順が共通でなければなりません。
01. client/src/stores/SettingsStore.ts に当該設定フィールドを追加する
- ILocalClientSettings: ブラウザの LocalStorage に保持される設定データの型定義です。すべてのフィールドが含まれます。
- ILocalClientSettingsDefault: ILocalClientSettings 型のデフォルト値を表す定数です。設定値の詳細を示すコメントを含めます(コメントの内容は概ね今後記載する設定 UI と一致している必要があります)。
- SYNCABLE_SETTINGS_KEYS: ILocalClientSettings 型に含まれるフィールドのうち、どのフィールドが同期対象かを示す、フィールド名が入る配列です。
- 把握性向上のため、同期対象でない設定キーであっても同じ順序で代わりにコメントを残すようにしてあります。
02. client/src/services/Settings.ts に当該設定フィールドを追加する
- IClientSettings: サーバーにも保存され同期対象となる設定キーのみが含まれた設定データの型定義です。
- 把握性向上のため、同期対象でない設定キーであっても同じ順序で代わりにコメントを残すようにしてあります。
03. server/app/config.py に当該設定フィールドを追加する
- ClientSettings: サーバーにも保存され同期対象となる設定キーのみが含まれた設定データを表す Pydantic モデルです。
- 把握性向上のため、同期対象でない設定キーであっても同じ順序で代わりにコメントを残すようにしてあります。
- デフォルト値は常に SettingsStore に記載した値を設定してください。
04. 設定 UI を追加する
client/src/views/Settings/ 以下に、各設定ページごとの .vue ファイルがあるので、一番適している位置(あるいは指定があったセクション)に新しい設定を、わかりやすく簡潔な言い回しの説明文と共に追加します。 HTML やフォーム UI の props は周囲のコードに合わせてください。
How it compares
This skill provides a structured, multi-file update process for KonomiTV settings, unlike manually editing individual configuration files.
Compared to similar skills
add-new-setting-field side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| add-new-setting-field (this skill) | 1 | 7mo | No flags | Intermediate |
| telegram-dev | 2 | 7mo | Review | Intermediate |
| unit-testing-test-generate | 2 | 4mo | Review | Intermediate |
| designing-tests | 1 | 5mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
telegram-dev
2025Emma
Telegram 生态开发全栈指南 - 涵盖 Bot API、Mini Apps (Web Apps)、MTProto 客户端开发。包括消息处理、支付、内联模式、Webhook、认证、存储、传感器 API 等完整开发资源。
unit-testing-test-generate
sickn33
Generate comprehensive, maintainable unit tests across languages with strong coverage and edge case focus.
designing-tests
CloudAI-X
Designs and implements testing strategies for any codebase. Use when adding tests, improving coverage, setting up testing infrastructure, debugging test failures, or when asked about unit tests, integration tests, or E2E testing.
test-generator
alirezarezvani
Automatically suggest tests for new functions and components. Use when new code is written, functions added, or user mentions testing. Creates test scaffolding with Jest, Vitest, Pytest patterns. Triggers on new functions, components, test requests, testing mentions.
data-validation-schemas
Harmitx7
Data validation and schema design mastery. Zod, Yup, Joi, Valibot, and Pydantic schema design, runtime type checking, API boundary validation, form validation patterns, DTO design, schema composition, error message formatting, schema evolution strategies, and coercion rules. Use when validating user
language-runtime-router
srednoff888-art
Use at the start of programming tasks across TypeScript, JavaScript, Python, PHP, Go, Rust, Swift, Kotlin, SQL, Bash, PowerShell, and mixed repos.