Hof Cp Dialogのロゴ

Hof Cp Dialog

組織
openreachtech
hof-cp-dialog

Use when building a modal, a confirm/destructive-action prompt, or a side panel, in a repo that consumes @openreachtech/furo-vue — "modal", "confirmation dialog", "are you sure prompt", "side panel", "delete confirmation". Routes to FuroDialog, FuroAlertDialog, FuroDrawer.

概要

公開者openreachtech
リポジトリhora-skills-ort-furo
スキル名hof-cp-dialog
スター
32
フォーク
0
同梱ファイル
指示のみ
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    openreachtechがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Hof Cp Dialog」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-cp-dialog
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをその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-dialog .claude/skills/hof-cp-dialog
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでHof Cp Dialogを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にHof Cp Dialogを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Hof Cp Dialogは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

FuroDialog / FuroAlertDialog / FuroDrawer

Three organism-layer overlays that block or partially block the page, each for a different job. FuroDialog is the general-purpose modal (or non-modal, via parcel.modal: false) with header/body/footer regions and a close button — use it for forms, detail views, or any freeform modal content. FuroAlertDialog is a narrower, purpose-built confirmation prompt: no close button, outside-click never dismisses, and it ships built-in confirm/cancel buttons (with a destructive tone) — use it specifically when you need the user to make an explicit yes/no decision (e.g. delete confirmation). FuroDrawer is an edge-anchored sliding panel (left/right/top/bottom) with optional drag handle, swipe-to-dismiss, and snap points — use it for persistent side panels, mobile sheet-style UI, or content too long/wide for a centered modal. All three share the same title / description / busy / initialFocus / closeOnEscape keys in their parcel.

  • Layer: organism
  • Import: import { FuroDialog, FuroAlertDialog, FuroDrawer } from '@openreachtech/furo-vue'
  • Manifest entry: node_modules/@openreachtech/furo-vue/public/furo-vue/components.json → components[].name === 'FuroDialog' / 'FuroAlertDialog' / 'FuroDrawer'

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

  • Small, click-anchored floating panel that doesn't need to block the page (inline edit, action panel) → use hof-cp-popover (FuroPopover), not a non-modal FuroDialog.
  • Simple hover/focus hint text → use hof-cp-popover (FuroTooltip).
  • A menu of discrete actions anchored to a trigger → use hof-cp-dropdown-menu.
  • Toast-style transient feedback (success/error message, not a decision) → use hof-cp-toast.
  • Inline expand/collapse of content within the page flow (not an overlay) → use hof-cp-collapsible.
  • Need a plain "yes/no" without a destructive tone but the decision is trivial and low-stakes — FuroAlertDialog is still correct; don't reach for FuroDialog + hand-rolled footer buttons just to avoid it, since FuroAlertDialog already encodes the "block until decided" behavior (no close button, no outside-click dismiss).

Props

All three take a single parcel prop — no other props.

ComponentPropTypeDefaultNotes
FuroDialogparcelFuroDialogParcel | nullnullReactive behavior object.
FuroAlertDialogparcelFuroAlertDialogParcel | nullnullReactive behavior object.
FuroDrawerparcelFuroDrawerParcel | nullnullReactive behavior object.

parcel fields

FuroDialog

FieldTypeDefaultNotes
openboolean—Controlled open state. When omitted, the dialog manages its own state.
disabledbooleanfalseDisables the trigger.
modalbooleantruefalse renders without the overlay scrim and keeps the page interactive.
titlestring | nullnullHeading text. Provide a title (or the title slot) for accessibility.
descriptionstring | nullnullSub-heading text below the title.
closeTextstring'Close'Accessible label for the built-in close button.
closeOnOutsideClickbooleantruefalse ignores overlay / outside-click dismissal.
closeOnEscapebooleantruefalse ignores the Escape key.
size'sm' | 'default' | 'lg' | 'fullscreen''default'Content width variant. fullscreen fills the viewport.
busybooleanfalseWhile true, all dismissal is blocked — use during async work.
initialFocusstring | nullnullCSS selector (scoped to the content) of the element to focus on open.

FuroAlertDialog

FieldTypeDefaultNotes
openboolean—Controlled open state. When omitted, the dialog manages its own state.
disabledbooleanfalseDisables the trigger.
titlestring | nullnullHeading text. Provide a title (or the title slot) for accessibility.
descriptionstring | nullnullSub-heading text below the title.
confirmTextstring'Confirm'Label for the built-in confirm button.
cancelTextstring'Cancel'Label for the built-in cancel button.
tone'default' | 'destructive''default'destructive renders the confirm button with the destructive variant.
closeOnEscapebooleantruefalse ignores the Escape key.
size'sm' | 'default' | 'lg''default'Content width variant.
busybooleanfalseWhile true, dismissal is blocked and the action buttons are disabled (confirm shows a loading state).
initialFocusstring | nullnullCSS selector (scoped to the content) of the element to focus on open. When unset, the cancel button is focused.

FuroDrawer

FieldTypeDefaultNotes
openboolean—Controlled open state. When omitted, the drawer manages its own state.
disabledbooleanfalseDisables the trigger.
modalboolean | 'trap-focus'truetrue: overlay + focus trap + scroll lock. 'trap-focus': focus trapped, page interactive. false: fully non-modal.
titlestring | nullnullHeading text. Provide a title (or the title slot) for accessibility.
descriptionstring | nullnullSub-heading text below the title.
closeTextstring'Close'Accessible label for the built-in close button.
closeOnOutsideClickbooleantruefalse ignores overlay / outside-click dismissal.
closeOnEscapebooleantruefalse ignores the Escape key.
side'left' | 'right' | 'top' | 'bottom''right'Edge the panel docks to, slides in from, and is swiped toward to dismiss.
size'sm' | 'default' | 'lg' | 'fullscreen''default'Cross-axis extent: width for left/right, height for top/bottom. fullscreen fills the docking axis.
snapPointsArray<number | string> | nullnullPreset resting positions: fractions 0–1, pixels > 1, or '148px'/'30rem' strings.
activeSnapPointnumber | string | nullnullControlled active snap point. When set, the parent owns it (update:activeSnapPoint).
sequentialSnapbooleanfalsetrue snaps one point at a time; false snaps to the nearest by distance.
swipeToOpenbooleanfalseRenders an edge grab strip so the panel can be swiped open from closed.
dragHandlebooleanfalseRenders a drag handle (grab indicator) on the docked edge.
busybooleanfalseWhile true, all dismissal is blocked — use during async work.
initialFocusstring | nullnullCSS selector (scoped to the drawer content) of the element to focus on open.

Events

ComponentEventPayloadFires when
FuroDialogupdate:openbooleanOpen state changed — enables v-model:open.
FuroDialogopen:change{ open: boolean }Open state changed (semantic form).
FuroAlertDialogconfirm—The confirm action was chosen.
FuroAlertDialogcancel—The cancel action was chosen (button or Escape).
FuroAlertDialogupdate:openbooleanOpen state changed — enables v-model:open.
FuroAlertDialogopen:change{ open: boolean }Open state changed (semantic form).
FuroDrawerupdate:openbooleanOpen state changed — enables v-model:open.
FuroDraweropen:change{ open: boolean }Open state changed (semantic form).
FuroDrawerupdate:activeSnapPointnumber | string | nullActive snap point changed — enables v-model:activeSnapPoint.
FuroDrawersnap:change{ snapPoint: number | string | null }Active snap point changed (semantic form).

Slots

FuroDialog

SlotDescription
triggerOptional element that opens the dialog, rendered via as-child. Omit when opened via controlled open.
titleOverrides the heading (falls back to parcel.title).
descriptionOverrides the description (falls back to parcel.description).
default (scoped: { close })Dialog body content. Receives a close() slot prop to dismiss from inside.
footer (scoped: { close })Footer region. Receives a close() slot prop so action buttons can dismiss the dialog.
closeContent of the built-in close button (defaults to ✕).

FuroAlertDialog

SlotDescription
triggerOptional element that opens the dialog, rendered via as-child. Omit when opened via controlled open.
titleOverrides the heading (falls back to parcel.title).
descriptionOverrides the description (falls back to parcel.description).
defaultOptional body content rendered between the heading and the footer.
footer (scoped: { confirm, cancel })Overrides the built-in confirm / cancel buttons. Receives confirm() and cancel() slot props.

FuroDrawer

SlotDescription
triggerOptional element that opens the drawer (rendered via as-child). Omit when opened via controlled open or swipe-to-open.
titleOverrides the heading (falls back to parcel.title).
descriptionOverrides the description (falls back to parcel.description).
default (scoped: { close })Drawer body content. Receives a close() slot prop to dismiss from inside.
footer (scoped: { close })Footer region (e.g. action buttons). Receives a close() slot prop.
closeContent of the built-in close button (defaults to ✕).

Close button size

Before 1.5.0From 1.5.0
FuroDialog and FuroDrawer built-in close buttonFixed at 1.75rem wide and tall in the component's CSSReads --size-close-button-medium, which defaults to 1.75rem, 28px
Override from the appDeclaring the token changes nothing, because the component never reads itRedefine the token, and the button follows

From 1.5.0, an app raises the button to a larger touch target by overriding the token as /hof-lib-tokens describes, never the dialog's CSS. The token holds one value in both themes, so put it on :root, either unlayered or in @layer app:

css
:root {
  --size-close-button-medium: 2.5rem;
}

FuroAlertDialog has no close button, so the token does not touch it.

Fallthrough attributes

class and style compose onto the root. Every other attribute you write on the component (id, aria-*, data-*) is dropped and reaches no element.

Usage

vue
<script>
import {
  FuroDialog,
  FuroAlertDialog,
  FuroDrawer,
} from '@openreachtech/furo-vue'

export default {
  components: {
    FuroDialog,
    FuroAlertDialog,
    FuroDrawer,
  },
}
</script>

<template>
  <FuroDialog
    v-model:open="context.isEditDialogOpen"
    :parcel="{ title: 'Edit member', busy: context.isSubmitting }"
  >
    <template #trigger>
      <button type="button">
        Edit
      </button>
    </template>

    <template #default="{ close }">
      <MemberEditForm @submitted="close()" />
    </template>
  </FuroDialog>

  <FuroAlertDialog
    v-model:open="context.isDeleteConfirmOpen"
    :parcel="{
      title: 'Delete this member?',
      description: 'This action cannot be undone.',
      tone: 'destructive',
      busy: context.isDeleting,
    }"
    @confirm="context.onConfirmDelete()"
    @cancel="context.onCancelDelete()"
  />

  <FuroDrawer
    v-model:open="context.isFilterDrawerOpen"
    :parcel="{ side: 'right', title: 'Filters', dragHandle: true }"
  >
    <template #default>
      <FilterForm @apply="context.onApplyFilters({ payload: $event })" />
    </template>
  </FuroDrawer>
</template>

Rules (per project conventions)

  • All three use parcel + v-model:open for open/close state — this is the 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. FuroDrawer also supports v-model:activeSnapPoint.
  • None of the three follow the form-control (parcel.value) contract — they are visibility/overlay components, not inputs.
  • FuroAlertDialog is not a generic modal: it has no update:open-driven close button and no outside-click dismissal by design. Its real contract is the confirm / cancel events — always handle both, and do the actual destructive action (e.g. the delete mutation) inside the confirm handler in the page/component Context, never inline in the template.
  • Never import the underlying headless primitives (reka-ui's DialogRoot, etc.) — only the public FuroDialog / FuroAlertDialog / FuroDrawer exports.
  • Keep business logic (what happens on confirm/cancel/close, what data the dialog body submits) in the page/component Context, not inline in the template.
  • 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.

よくある質問

AIスキル「Hof Cp Dialog」では何ができますか?

Use when building a modal, a confirm/destructive-action prompt, or a side panel, in a repo that consumes @openreachtech/furo-vue — "modal", "confirmation dialog", "are you sure prompt", "side panel", "delete confirmation". Routes to FuroDialog, FuroAlertDialog, FuroDrawer.

TypingMindでHof Cp Dialogを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Hof Cp Dialogはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにHof Cp Dialogをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-cp-dialogを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Hof Cp Dialogを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Hof Cp Dialogで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもHof Cp Dialogを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Hof Cp Dialog」は無料ですか?

はい。openreachtechがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇