AD

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.zip

Installs 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 への追加が必要
130 charsno explicit “when” trigger
Intermediate

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

You give it
New setting field details (key name, default value, synchronization status)
You get back
Updated KonomiTV configuration across frontend and backend

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.

SkillInstallsUpdatedSafetyDifficulty
add-new-setting-field (this skill)17moNo flagsIntermediate
telegram-dev28moReviewIntermediate
unit-testing-test-generate24moReviewIntermediate
designing-tests16moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry