Bullframe Convertのロゴ

Bullframe Convert

コミュニティ
marcop135
bullframe-convert

既存のHTMLとCSSをBullframe CSSに変換します。Bootstrap、Tailwind、独自のスタイルシート、旧バージョンのBullframeからページを移行するときや、フレームワークを使って独自のCSSをなくすよう求められたときに使います。

Add to TypingMind

概要

公開者marcop135
リポジトリbullframe.css
スキル名bullframe-convert
スター
47
フォーク
3
同梱ファイル
2
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/marcop135/bullframe.css.git /tmp/bullframe.css
mkdir -p .claude/skills
cp -r /tmp/bullframe.css/src/skills/bullframe-convert .claude/skills/bullframe-convert
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Convert to Bullframe

This is advisory work, not a codemod. Read the source, rewrite the markup, and report what could not be mapped. Never run a blind find and replace: class names from other frameworks look similar to Bullframe's and are not the same.

When to use

Migrating a page or component onto Bullframe, stripping custom CSS that the framework already covers, or upgrading markup from Bullframe v5.

Inputs to gather

The HTML, the stylesheet that styles it, which framework it uses today, the target build, and how aggressive to be: replace the reset only, or convert the whole page.

Rules

  1. Work in four passes, in order: base styles, layout, utilities, leftovers.
  2. Pass 1, base. Delete the reset, normalize and base typography rules; link one Bullframe build instead. Most of the deleted CSS is now element styling.
  3. Pass 2, layout. Map the page's container and grid onto .bf-container (--fluid, --break-xs|md|lg), .bf-row and .bf-col-1 … .bf-col-12. Per-breakpoint column classes have no equivalent: collapse them to the desktop span and put the breakpoint on the container.
  4. Pass 3, utilities. Map declaration by declaration against api.json. Never guess a name from the source framework.
  5. Pass 4, leftovers. Anything with no equivalent stays as project CSS. List it. Do not silently drop a rule.
  6. Upgrade the markup while you are there: a <div class="header"> becomes <header>, <div class="card-title"> becomes a heading, a clickable <div> becomes a <button> or <a>.
  7. Preserve every accessibility attribute: alt, aria-*, for, id, lang, scope, tabindex. Add the skip link if the page lacks one.
  8. Output the converted file plus a mapping table and a residual list. The user needs to see what moved and what stayed.

Name mapping

Common false friends. The left column does not exist in Bullframe.

SourceBullframe
container, container-fluidbf-container, bf-container--fluid
row, col-md-6bf-row, bf-col-6 + bf-container--break-md
d-flex, justify-content-endbf-display-flex, bf-display-flex--justify-end
mt-3, mb-4bf-m-t-3, bf-m-b-4
p-3bf-p-3 (padding-bottom) or bf-p-t-3
text-center, text-startbf-t-center, bf-t-left
fw-bold, font-weight-boldbf-t-weight-700
text-truncatebf-t-truncate
btn btn-primarybf-btn bf-btn--primary
table table-stripedbf-table bf-table--zebra
visually-hidden, sr-onlybf-sr-only
card, card-bodyno equivalent: compose <article> with tokens
badge, alert, navbarno equivalent: semantic markup plus tokens

Spacing steps do not translate by number. Bullframe's 1 … 4 are 0.5rem, 1rem, 2rem, 3rem, and the unsuffixed .bf-m-N sets margin-bottom only.

Recipe

  1. Inventory: list every class in the source and every rule in its stylesheet.
  2. Decide the target build.
  3. Convert the markup pass by pass.
  4. Diff the result against the original visually, not just structurally.
  5. Emit: converted file, mapping table, residual CSS with a one-line reason for each rule that stayed, and a count of removed declarations.

Example

examples/before.html is a div-heavy page on a custom stylesheet. examples/after.html is the same page converted: two stylesheets replaced by one, div wrappers replaced by landmarks, card titles promoted to headings, inline footer styling replaced by .bf-t-center and <small>.

Expected output

The converted markup, plus the mapping table and the residual list. The converted page must validate and must reference only classes present in api.json.

Failure modes

  • Mechanical prefixing: mt-3 becoming bf-mt-3, d-flex becoming bf-d-flex, text-center becoming bf-text-center. All three are wrong.
  • Keeping per-breakpoint column classes with a bf- prefix.
  • Dropping rules that had no mapping instead of reporting them.
  • Losing aria-*, alt or for attributes during the rewrite.
  • Linking Bullframe while leaving the old framework's stylesheet in place.
  • Converting a page that only needed the utilities build, and rewriting its base styles for no reason.
  • Treating a .bf-m-N class as all-sides margin.

Do not

  • Do not run a regex replace over class attributes.
  • Do not rewrite the project's own component CSS that Bullframe does not cover.
  • Do not change copy, structure or behaviour while converting styles.
  • Do not delete a rule you cannot explain.

Canonical docs

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Bullframe Convert」では何ができますか?

既存のHTMLとCSSをBullframe CSSに変換します。Bootstrap、Tailwind、独自のスタイルシート、旧バージョンのBullframeからページを移行するときや、フレームワークを使って独自のCSSをなくすよう求められたときに使います。

TypingMindでBullframe Convertを使うメリットは何ですか?

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

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

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/marcop135/bullframe.css/tree/main/src/skills/bullframe-convertを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Bullframe Convertを使えるAIモデルはどれですか?

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

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

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

AIスキル「Bullframe Convert」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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