Command Palette

Search for a command to run...

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

cipher-type-planner

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

Plans the creation or modification of a cipher type (vault item type) across the Bitwarden clients monorepo. Use this skill when a user wants to add a new…

bitwardenот bitwarden★ 14 360 звёзд на GitHub

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

Cipher Type Planner

Workflow

Step 1: Gather Requirements

Ask the user the following questions (use AskUserQuestion). Adapt questions based on what the user has already provided.

Required questions:

  1. Type name and value - What is the cipher type name and integer value? If the user hasn't specified a value, determine the next available integer by reading the CipherType enum definition.
  2. Fields - What are the cipher's properties? Each property must contain:
    • Field name
    • Data type (string, number, boolean)
    • Encryption required?
    • Required
  3. Target client ($0) - Which client should this plan focus on? (web, desktop, browser, cli, or all). Shared library changes (libs/common, libs/vault) are always included; $0 controls which apps/* files appear. Skip if already provided as an argument. Default: all.
  4. Autofill - Should this type participate in browser autofill? (Currently only Login, Card, and Identity support autofill.) Only ask if $0 is browser or all.
  5. Linked fields - Should this type support linked custom fields? If yes, which properties should be linkable?
  6. Feature flag - What is the feature flag name?
  7. Prerequisites - Have all server and SDK prerequisites been completed? Do not proceed with the plan until the user confirms these are done.

Additional questions:

Ask each of the following. If the engineer does not have an answer, accept "N/A" or "not yet decided" and note it as a gap in the plan.

  • Import/export - Should import/export support be included in this plan?
  • UI details - Are there specific UI requirements for the form or view sections (e.g., dropdowns, masked fields, copy buttons)?
  • Subtitle - What value should the subTitle getter on the view model return? This appears in vault list items.
  • Icon - What icon represents this type in the vault? Bitwarden uses bwi- icon classes.
  • Organization policy - Does this type appear in the restricted item types policy UI?

Step 2: Enter Plan Mode

After gathering requirements, enter plan mode using EnterPlanMode. Explore the codebase to verify current patterns and file locations. Use the SshKey cipher type (value 5) as the canonical reference for implementation patterns.

Key files to inspect for patterns:

  • libs/common/src/vault/enums/cipher-type.ts - Enum definition
  • libs/common/src/vault/models/api/ssh-key.api.ts - API model pattern
  • libs/common/src/vault/models/data/ssh-key.data.ts - Data model pattern
  • libs/common/src/vault/models/domain/ssh-key.ts - Domain model pattern
  • libs/common/src/vault/models/view/ssh-key.view.ts - View model pattern
  • libs/common/src/models/export/ssh-key.export.ts - Export model pattern
  • libs/common/src/vault/models/domain/cipher.ts - Container switch patterns
  • libs/vault/src/cipher-form/components/sshkey-section/ - Form component pattern
  • libs/vault/src/cipher-view/sshkey-sections/ - View component pattern

Step 3: Build the Plan

Write a comprehensive plan to the plan file. The plan MUST include all sections below.


Plan Output Format

1. Overview

  • Cipher type name:
  • Integer value:
  • Feature flag:
  • Minimum client version:
  • Fields: Table of all fields with name, type, encrypted (yes/no), required (yes/no)
  • Supports autofill: Yes/No
  • Supports linked fields: Yes/No

2. Clients - New Files to Create

List every file that needs to be created, with the full path and a brief description. Organize by layer:

Model stack:

  • libs/common/src/vault/models/api/<type>.api.ts - API response shape
  • libs/common/src/vault/models/data/<type>.data.ts - Serializable storage format
  • libs/common/src/vault/models/domain/<type>.ts - Encrypted business object
  • libs/common/src/vault/models/domain/<type>.spec.ts - Domain model tests
  • libs/common/src/vault/models/view/<type>.view.ts - Decrypted view for UI

Export (if import/export is included):

  • libs/common/src/models/export/<type>.export.ts - Export model

UI components:

  • libs/vault/src/cipher-form/components/<type>-section/ - Form section component (TS, HTML, spec)
  • libs/vault/src/cipher-view/<type>-sections/ - View section component (TS, HTML)

3. Clients - Existing Files to Modify

List every file that needs modification, organized by concern. For each file, describe the specific change needed.

Core enum:

  • libs/common/src/vault/enums/cipher-type.ts - Add <Type>: <N> to CipherType
  • libs/common/src/vault/enums/cipher-type.spec.ts - Update tests

Container switches (add case for new type):

  • libs/common/src/vault/models/data/cipher.data.ts - Constructor
  • libs/common/src/vault/models/domain/cipher.ts - Constructor, decrypt(), toCipherData(), fromJSON(), toSdkCipher(), fromSdkCipher()
  • libs/common/src/vault/models/view/cipher.view.ts - item getter, fromJSON(), `fromS
Полный SKILL.md на GitHub

Установить cipher-type-planner в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл cipher-type-planner?

Plans the creation or modification of a cipher type (vault item type) across the Bitwarden clients monorepo. Use this skill when a user wants to add a new cipher type, modify an existing cipher type, or asks about what is needed to implement a cipher type. DO NOT invoke for general vault or cipher questions unrelated to adding or changing a cipher type.

Как установить скилл cipher-type-planner?

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

Скилл cipher-type-planner запускает скрипты?

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

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

Сравнить cipher-type-planner с