Logo Hof Cp Select

Hof Cp Select

Tổ chức
openreachtech
hof-cp-select

Use when picking one or more values from a list in a repo that consumes @openreachtech/furo-vue — "dropdown select", "pick from a list", "searchable dropdown", "typeahead field", "multi-select with search". Routes to FuroSelect, FuroAutocompleteField.

Tổng quan

Nhà phát hànhopenreachtech
Kho mãhora-skills-ort-furo
Tên kỹ nănghof-cp-select
Sao
32
Bản fork
0
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được openreachtech công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Hof Cp Select trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-cp-select
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/openreachtech/hora-skills-ort-furo.git /tmp/hora-skills-ort-furo
mkdir -p .claude/skills
cp -r /tmp/hora-skills-ort-furo/kit/skills/hof-cp-select .claude/skills/hof-cp-select
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Hof Cp Select trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Hof Cp Select ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Hof Cp Select với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

FuroSelect and FuroAutocompleteField

Two molecules for choosing from a list, differing in how the user finds an option. FuroSelect is a plain dropdown: it renders a fixed options array (with optional groups) in a popover and the user picks by clicking/keyboard navigation — no text filtering. FuroAutocompleteField is a text-input-driven combobox: the user types to filter (client-side via localCompare, or against a parent-owned/API-driven list when localCompare: false), with debounced search-keyword emission, optional "select all", and optional "create new option" rows. Use FuroSelect for short, known lists (status, role); use FuroAutocompleteField when the list is long, searched, or fetched asynchronously.

  • Layer: molecule
  • Import:
    • import { FuroSelect } from '@openreachtech/furo-vue'
    • import { FuroAutocompleteField } from '@openreachtech/furo-vue'
  • Manifest entry: node_modules/@openreachtech/furo-vue/public/furo-vue/components.json → components[].name === 'FuroSelect' | 'FuroAutocompleteField'

Read the manifest before writing markup if you need to confirm this information is still current — the library may have added props/events since this skill was written.

When NOT to use

  • Free-form text entry, not a pick from a list → use hof-cp-text-field.
  • A menu of actions to trigger (not a value to store) → use hof-cp-dropdown-menu.
  • A simple boolean choice → use hof-cp-checkbox-toggle.
  • Needs a label / hint / error message around it → wrap in FuroControlBlock (see hof-cp-control-block), don't hand-roll a <label>.
  • Grouped toolbar-style toggle buttons rather than a value-bearing field → use hof-cp-toggle-group.

Props

FuroSelect

PropTypeDefaultNotes
parcelobject | nullnullRoot behavior and Furo fields.
triggerParcelobject | nullnullExtra attributes applied to the trigger part.
portalParcelobject | nullnullAttributes of the portal the option list renders in, such as to or disabled. From furo-vue 1.5.0 only; 1.4.0 accepts the prop and ignores it. See Where the option list renders.
contentParcelobject | nullnullExtra attributes applied to the content part (side-offset defaults to 4).

FuroAutocompleteField

PropTypeDefaultNotes
parcelFuroAutocompleteFieldParcel | nullnullFuro behavior. The only public prop; HTML / form attributes pass through to the root.

parcel fields

FuroSelect

FieldTypeDefaultNotes
valuestring | number | object | nullnullControlled value; an array when multiple. Objects are supported.
defaultValuesame as value—Uncontrolled initial value.
optionsArray<FuroSelectOption>[]Unified list of groups and leaf rows.
invalidbooleanfalseInvalid visual state plus aria-invalid on the trigger.
loadingbooleanfalseLoading state on the trigger; suppresses the empty row.
placeholderstring''Placeholder shown in the value display.
textDirection'toRight' | 'toLeft''toRight'Maps to the root dir (ltr / rtl).
multiplebooleanfalseEnables multi-select on the root.
disabledbooleanfalseDisables the whole control; may also be set as a fallthrough attribute.

FuroAutocompleteField

FieldTypeDefaultNotes
valueFuroAutocompleteOption | FuroAcceptableValue | Array<FuroAutocompleteOption | FuroAcceptableValue> | null—Controlled selection; synced to the internal value, with fallthrough value as fallback.
optionsArray<FuroAutocompleteOption | FuroAcceptableValue>[]List rows (groups and leaves).
placeholderstring'Select an option'Input placeholder.
loadingbooleanfalseInput spinner; filtered list returns empty and the empty state is suppressed.
invalidbooleanfalseRoot invalid class.
disabledbooleanfalseDisables the combobox.
textDirection'toRight' | 'toLeft''toRight'Maps to the primitive's dir (ltr / rtl).
multiplebooleanfalseMulti-select; chips in the anchor.
showClearbooleantrueClear control shown when a value is selected.
localComparebooleantruetrue filters on the client; false uses the parent-owned options.
debounceMillisecondsnumber300Debounce for search-keyword (TimerClerk).
openOnClickbooleantruePassed through to the root.
showSelectAllbooleanfalseMulti only; sentinel select-all row.
selectAllTextstring'Select All'Select-all row label.
emptyTextstring'No options.'Default empty-slot copy.
creatablebooleanfalseShow a create row when the trimmed keyword has no exact label/value match.
createOptionTextstring'Create "{keyword}"'Create-row text template; {keyword} is replaced with the trimmed keyword.
searchKeywordstring—Partial: parent to internal input via watch; no update:search-keyword.
openboolean—Not implemented; the template open uses the internal popover ref.

Events

FuroSelect

EventPayloadFires when
change-valueSelectEmitPayloadFired on selection.
commit-valueSelectEmitPayloadSame gesture as change-value; selection is the commit point.
update:valuestring | number | object | nullPrimary selected value; first selected value for multi-select.

FuroAutocompleteField

EventPayloadFires when
change-valueAutocompleteEmitPayloadSelect option, select-all, clear, or chip remove.
update:valueFuroAutocompleteOption | FuroAcceptableValue | Array<FuroAutocompleteOption | FuroAcceptableValue> | nullSame gesture as change-value; suitable for v-model:value.
search-keywordstringAfter debounce while the popover is open; also '' on clear.
create-optionAutocompleteEmitPayloadSelect the create row (creatable); read the typed value via extractTrimmedSearchKeyword().

Note: FuroAutocompleteField has no commit-value — change-value already fires at the selection point.

Slots

FuroSelect

SlotScoped propsDescription
trigger-content—Value display and trigger icon area.
group{ group, groupIndex }Group label and its child options.
option{ option, optionIndex, group?, groupIndex? }Option row text and indicator.
empty—Shown when options is empty and not loading. Default text: No options.

FuroAutocompleteField

SlotScoped propsDescription
trigger-left—Optional leading anchor content.
trigger-right—Caret icon inside the trigger part.
select-all—Select-all label text (scoped checked / indeterminate / disabled not wired).
group{ group, groupIndex }Group and its children.
group-label{ group, groupIndex }Group header text.
option{ option, optionIndex, group?, groupIndex? }Row and indicator.
option-text{ option, optionIndex }Label text.
empty{ searchKeyword, loading }Shown when the filtered list is empty and not loading; defaults to emptyText.
loading{ searchKeyword }Spinner shown in the list.
create-option{ searchKeyword }createOptionText with {keyword} replaced; shown only when creatable and no exact match.

Fallthrough attributes on FuroSelect

FuroSelect hands every fallthrough attribute except class and style to its state root, which renders no element and binds no attribute it does not read:

AttributeLands on
name, required, disabled, autocomplete, bythe control itself
class, stylethe wrapper
id, aria-label, aria-labelledby, aria-describedby, data-*, title, …nowhere: dropped

The trigger, the <button role="combobox"> a <label for> has to reach, receives only triggerParcel. Put id and aria-* there:

vue
<FuroSelect
  v-model:value="context.formValueReactive.territory"
  name="territory"
  :parcel="{ options: context.extractTerritoryOptions() }"
  :trigger-parcel="{
    id: 'territory-select',
    'aria-describedby': 'territory-error',
  }"
/>

Where the option list renders

Before 1.5.0From 1.5.0
Option listRenders inside the select, next to the trigger in the DOMRenders in a portal at body
portalParcelAccepted and ignoredBound to the portal: to moves it, disabled: true keeps the list inline
Inside FuroDialog or another transformed or clipping ancestorThe ancestor becomes the list's containing block, so the list opens away from its trigger and the ancestor's overflow clips itThe list opens beside its trigger, outside the ancestor
Option row heightFixed at calc(var(--size-input-height) - 0.5rem)Reads --size-option-height, which defaults to the same value

From 1.5.0, send the list somewhere other than body through portalParcel:

vue
<FuroSelect
  v-model:value="form.status"
  :parcel="{ options: context.statusOptions }"
  :portal-parcel="{ to: '#overlay-root' }"
/>
  • A rule that styles the list through an ancestor of the select, such as .order-form .unit-select-content, stops matching from 1.5.0, because the list no longer sits inside that ancestor. Style it through contentParcel.class or the .unit-select-content class alone.
  • On 1.4.0, a select inside FuroDialog shows the clipped, misplaced list, and portalParcel cannot fix it. Raising furo-vue to 1.5.0 is the fix.
  • To raise every option row to a larger touch target from 1.5.0, override --size-option-height as /hof-lib-tokens describes, never the select's CSS.

Usage

vue
<script>
import {
  FuroSelect,
} from '@openreachtech/furo-vue'

export default {
  components: {
    FuroSelect,
  },
}
</script>

<template>
  <FuroSelect
    v-model:value="form.status"
    :parcel="{
      options: context.statusOptions,
      placeholder: 'Select status',
      invalid: context.hasStatusError(),
    }"
  />
</template>

FuroAutocompleteField against a server-driven list:

vue
<script>
import {
  FuroAutocompleteField,
} from '@openreachtech/furo-vue'

export default {
  components: {
    FuroAutocompleteField,
  },
}
</script>

<template>
  <FuroAutocompleteField
    v-model:value="form.assignee"
    :parcel="{
      options: context.assigneeOptions,
      loading: context.isSearchingAssignees,
      localCompare: false,
      placeholder: 'Search assignee',
    }"
    @search-keyword="context.onSearchAssignee({ payload: $event })"
  />
</template>

Rules (per project conventions)

  • Pass parcel + use v-model:value — this is the one documented exception to the project's general no-v-model rule, which applies only to custom in-project components, not to furo-vue library components.
  • Never import the underlying headless primitive — only the public FuroSelect / FuroAutocompleteField exports.
  • Keep option-list fetching, filtering (when localCompare: false), and create-option persistence in the page/component Context (on{Field}SearchKeyword, on{Field}CreateOption style methods), not inline in the template.
  • Put id and aria-* in triggerParcel, the only route to the trigger, and keep name / required / disabled on <FuroSelect> itself.
  • Pass only the parcel keys this skill lists. A component reads the keys it names and ignores the rest, so a mistyped key changes nothing and reports nothing, so check a key against the manifest rather than trusting silence.

Câu hỏi thường gặp

Kỹ năng AI Hof Cp Select làm được gì?

Use when picking one or more values from a list in a repo that consumes @openreachtech/furo-vue — "dropdown select", "pick from a list", "searchable dropdown", "typeahead field", "multi-select with search". Routes to FuroSelect, FuroAutocompleteField.

Vì sao nên dùng Hof Cp Select trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Hof Cp Select là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Hof Cp Select trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-cp-select. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Hof Cp Select?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Hof Cp Select với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Hof Cp Select với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Hof Cp Select có miễn phí không?

Có. Kỹ năng này được openreachtech phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇