Logo Hof Cp Editable Field

Hof Cp Editable Field

Tổ chức
openreachtech
hof-cp-editable-field

Use when building an inline click-to-edit value display in a repo that consumes @openreachtech/furo-vue — "inline edit", "click to edit", "edit in place", "edit this cell without a form". Routes to FuroEditableField.

Tổng quan

Nhà phát hànhopenreachtech
Kho mãhora-skills-ort-furo
Tên kỹ nănghof-cp-editable-field
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 Editable Field 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-editable-field
  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-editable-field .claude/skills/hof-cp-editable-field
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 Editable Field 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 Editable Field 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 Editable Field 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.

FuroEditableField

Molecule-layer inline read-to-edit field: it shows a preview surface, opens an editor on activation (double-click, focus, or a visible Edit trigger), and commits or cancels the draft. It defaults to a FuroTextField editor, but the #editor slot can host any other atom (number field, select, checkbox, file input) for cases where the edited value isn't plain text. Unlike the single-line/multi-line text controls, it owns its own preview-vs-edit lifecycle and does not use v-model:value — the parent is required to update parcel.value after a commit-value event.

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

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

  • The value is always in edit mode (a normal form field, no preview state) → use hof-cp-text-field or hof-cp-textarea directly instead.
  • You need a persistent labeled field wrapper (label/hint/error) around a normal input → use hof-cp-control-block.
  • You need a floating panel/tooltip anchored to a trigger that isn't about editing a value → see hof-cp-popover.
  • The interaction is picking a date/time rather than an arbitrary value → use hof-cp-date-time.
  • You need a menu of discrete actions, not a value editor → use hof-cp-dropdown-menu.

Props

PropTypeDefaultNotes
parcelFuroEditableFieldParcel | nullnullFuro behavior and forwarded edit-lifecycle keys. The only public prop; attributes pass through.

parcel fields

FieldTypeDefaultNotes
valueFuroEditableValue—Committed value. The parent should update this after commit-value.
invalidbooleanfalsePassed to the default FuroTextField; use #editor for custom invalid UI.
disabledbooleanfalseAlso respected from the fallthrough disabled attribute.
requiredbooleanfalseAlso respected from the fallthrough required attribute.
readonlybooleanfalseForwarded to the root.
placeholderstring | { edit: string, preview: string }fallthrough or emptyDefault text editor placeholder.
emptyPreviewTextstring'---'Shown when the value is empty and no #preview slot is provided.
showActionsbooleanfalseShow the Edit trigger and enable the action-button row.
showEditingbooleanfalseOn mount, sets the internal editing flag used for editor positioning.
showUndoChangebooleanfalseShow the undo control when the committed value diverges from the mount snapshot.
collisionBoundaryHTMLElement | Ref<HTMLElement | null> | null—Bounding rect for editor collision; the viewport is used when omitted.
activationMode'dblclick' | 'focus' | 'none'—Primitive-forwarded: how the preview enters edit mode.
submitMode'blur' | 'enter' | 'both' | 'none'—Primitive-forwarded: when the primitive auto-submits the draft.

Events

EventPayloadFires when
commit-valueEditableEmitPayloadOn successful submit and on undo. $event.value is the committed value.
update-editing-stateEdittingStateThe editing lifecycle state: 'edit', 'cancel', or 'submit'.

There is no update:value event in the manifest — do not wire v-model:value onto this component; it does not exist.

Slots

SlotDescription
previewUsed when the value is not empty; overrides the default preview text. Scoped props: root props + committedValue, draftValue, updateDraftValue, undoChange.
editorReplaces the default FuroTextField; hosts custom atoms. Same scoped props as preview.
edit-triggerCustom edit trigger (as-child when provided). Same scoped props as preview.
submit-triggerInside the editor actions; visible while editing. Same scoped props as preview.
cancel-triggerInside the editor actions; visible while editing. Same scoped props as preview.
undo-triggerShown when showUndoChange and the value changed since mount. Same scoped props as preview.

A consumer id does not land

An id written on <FuroEditableField> is not surfaced in the rendered DOM. Do not hang a <label for>, an aria-* reference, or an E2E hook off it — put it on a wrapper element you own, or on the content you pass through a slot.

Usage

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

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

<template>
  <FuroEditableField
    :parcel="{
      value: form.nickname,
      invalid: context.hasNicknameError(),
      showActions: true,
      showUndoChange: true,
    }"
    placeholder="Enter a nickname"
    @commit-value="context.onCommitNickname({ payload: $event })"
  />
</template>

With a custom #editor slot for a non-text control:

vue
<template>
  <FuroEditableField
    :parcel="{ value: form.status, showActions: true }"
    @commit-value="context.onCommitStatus({ payload: $event })"
  >
    <template #editor="{ draftValue, updateDraftValue }">
      <FuroSelect
        :parcel="{ value: draftValue, options: context.statusOptions }"
        @update:value="updateDraftValue"
      />
    </template>
  </FuroEditableField>
</template>

Rules (per project conventions)

  • This component does not follow the v-model:value form-control contract — the manifest has no update:value event. Pass the current value through parcel.value and update that same source-of-truth property yourself inside a Context method bound to commit-value (e.g. onCommitNickname); do not attempt v-model:value.
  • Never import the underlying headless primitive — only the public FuroEditableField export.
  • Keep commit/validation/undo-decision logic in the page/component Context, not inline in the template — the template should only call a Context method from @commit-value.
  • 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 Editable Field làm được gì?

Use when building an inline click-to-edit value display in a repo that consumes @openreachtech/furo-vue — "inline edit", "click to edit", "edit in place", "edit this cell without a form". Routes to FuroEditableField.

Vì sao nên dùng Hof Cp Editable Field 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 Editable Field 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 Editable Field 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-editable-field. 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 Editable Field?

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 Editable Field 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 Editable Field 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 Editable Field 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 👇