Prototype Wpのロゴ

Prototype Wp

コミュニティ
nathanonn
prototype-wp

Prototype a WordPress or WooCommerce plugin from its written spec as a runnable offline browser simulation — admin screens, front-end surfaces, and the rules connecting them — so the spec can be evaluated as a product before any PHP is written. Use when asked to prototype or simulate a WP plugin, build a clickable or demoable version of one, or check whether plugin requirements hold together. A focused mode builds only named surfaces, for requests like "build me a working WordPress admin settings screen" or "show me what this settings tab would look like". Not for writing production plugin code, not for logic-only prototypes with no WordPress surface, and not for exploring visual variations of a single component.

概要

公開者nathanonn
リポジトリagent-skills
スキル名prototype-wp
スター
23
フォーク
4
同梱ファイル
19
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 19個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

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

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

スキルの指示

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

Prototype a WordPress plugin

A prototype is throwaway code that answers a question. This one answers:

Does this specified plugin hold together as a product?

Not "does this logic feel right?" and not "what should this look like?" Those are different prototypes. A state machine with no WordPress surface wants a throwaway terminal app that re-renders the whole state after every keystroke. Visual variations on one component want several structurally different renderings of one route, switched from a floating bar. If the question is really one of those, say so and build that instead — this skill is the wrong shape for it.

This skill applies when there is a WordPress plugin, an admin or front-end surface, and an intent to evaluate behaviour before implementing it.

What this needs

Static file serverOne command, any runtime. kit/package.json aliases python3 -m http.server 4174; npx serve, php -S localhost:4174 and ruby -run -e httpd -- -p 4174 are equivalents
Browser driverAnything that can evaluate JavaScript in the page and capture a screenshot — see VERIFY.md
ffmpegOptional, for the video recipes only; kit/RECIPES.md covers its absence

No Node version, no dependency install, no build step. The prototype is classic scripts served as files.

Three layers

Every prototype is built as three separable layers. Keeping them separate is what makes two-thirds of the work copyable and the last third portable.

LayerWhere it comes from
SpineWordPress-generic chrome — admin bar, menu, notices, list tables, metaboxes, capability and dependency gatesCopied from kit/KIT.md
OverlayHost-plugin chrome — WooCommerce settings tabs, product editor, storefrontCopied from kit/, optional
EngineThe spec's own rules: resolution, precedence, validation, derivation. DOM-freeWritten fresh, every time

The engine is the single resolution path. Every surface consumes it; no surface re-implements a rule that belongs in it.

The kit and every measured claim in these documents come from the source run — a 4,916-line WooCommerce gallery-plugin prototype built from a written spec. Every file in this skill uses that phrase for it.

Modes

State the mode before building and put it in the README. The user steers the budget — never size the work silently.

Full-coverageFocused
InputA spec meeting the bar in P0A spec, or a named surface
OutputEvery spec section representedOnly the named surfaces
Spine + overlayFullFull
EngineCompleteOnly rules the named surfaces touch
Driver panelRequiredRequired
VerificationBoth passesBoth passes, scoped
Porting noteRequiredOptional
CaptureMay stay on main as a durable reference — state which and whyThrowaway branch out of main, with a pointer on the implementation issue

Focused mode exists because neither of the other two prototype shapes serves "build me a working WordPress settings screen."


The build

Twelve phases. The order is a dependency graph, not a preference.

P0 · Assess the spec

Read the spec in full. The questions in P1 are only visible to someone who has read the whole document.

Run a pre-flight and report what is present and what is absent — state the consequence for the build, and stop there. Deliver the report before building anything:

CheckLooking for
StructureNumbered sections that can become a build order and a coverage table
Rule IDsBR-*, REQ-*, FR-*, or "shall" sentences — anything addressable
Worked examplesCases stating both inputs and expected output
Non-goals"out of scope", "deferred", "later stage"
TablesState tables, decision tables, precedence rules
Acceptance criteriaGiven/When/Then, checklists, release criteria

Full-coverage needs all six of: an entity model with fields · a resolution or precedence rule where more than one source of truth exists · enumerated settings with types and defaults · the failure states that matter · at least one worked example with stated expected output · explicit non-goals.

Below that bar, say so, offer focused mode, and wait for the answer. Settling the mode is not a shape question — the round-trip limit at the foot of this file counts shape questions only. Rule IDs, acceptance criteria and state tables are upside, not requirements.

No worked example anywhere? Propose one — inputs and expected output — and get agreement before building. A prototype with no assertable expected output cannot be verified, only admired.

No spec at all? State the gap and offer the fork: write a thin spec first — problem, solution, user stories, implementation decisions, out of scope — or build a narrow prototype answering one question. If the user proceeds anyway, drop to focused mode, elicit only the six-item list inline as a handful of questions, and record every assumption at the top of the README so invented requirements stay visible as inventions. Never present an assumed requirement as a specified one.

Honour stated non-goals as constraints. Leave a deferred feature unimplemented and exercise its absence — implementing it silently short-circuits the fallback rule the spec does define.

Done when: the pre-flight report is delivered and the mode is named.

P1 · Ask

Escalate shape. Decide construction.

One batched question round — AskUserQuestion where the harness provides it, otherwise a single numbered message — after reading the spec and before writing any code. Three questions — four in focused mode. Every option carries a recommendation and its reasoning; the recommended option is listed first and marked.

  1. Fidelity — WordPress admin lookalike, or neutral prototype UI? Lookalike reproduces admin chrome faithfully so the artifact doubles as a visual spec, and costs the full spine plus overlay (505 lines of CSS). Neutral is much cheaper and useless as a visual reference. This has the largest blast radius of anything asked here, and nothing in a spec or a repo predicts the answer.

  2. Debug surface — a live rule/state inspector, a state-only inspector, or neither? If the answer is neither, state in one line that this overrides the standing rule that a prototype renders the full relevant state after every action, so the override is a recorded choice rather than an omission — then honour it, and leave it honoured. Rule IDs still go into source comments either way (P5): declining an on-screen surface never costs traceability.

  3. Overlay — detect it first, from plugin headers, composer.json / package.json, required-plugin statements in the spec, and domain vocabulary (product, variation, cart). Present the detection as the recommendation with its evidence, for the user to confirm or correct. Asked rather than inferred because a wrong guess means rebuilding the most expensive layer, and a third question inside a round that is already happening costs nothing. Only WooCommerce ships as an overlay — where none applies, the answer is plain WordPress admin and only the spine is built.

  4. Surfaces (focused mode) — which surfaces are in scope. Build nothing outside them.

After this round, do not ask again unless proceeding under any assumption would be unsafe or would make the work useless if wrong. Construction questions — libraries, file layout, naming, styling — are answered by the table at the bottom of this file.

Done when: three (or four) answers are in hand, from one round trip.

P2 · Scaffold → kit/KIT.md

Copy the spine into the prototype root — a directory whose name identifies it as a prototype, inside the repository the plugin belongs to, at the repo root or beside the module it concerns, never inside the plugin's own source tree. Decide it here, because this is where the copy happens; the Capture section of OUTPUTS.md reasons about the choice at P10.

Copy the overlay if the answer to question 3 named one. Wire up the four configure calls, uncomment the four prototype <script> tags in index.html, and delete the placeholder boot block beneath them.

The shell does not stand up on kit files alone. WP.configure() resets the store as it runs, so it throws without a fixtures function, and the router renders an error notice with no route registered. Write a throwaway stub fixture function and one stub route — scaffolding, not spec work, replaced by P4 and P7.

Done when: the shell serves from one command with an admin bar, a menu and a routed empty screen, and the placeholder boot block is gone. A page reading "no prototype scripts are wired up yet" is that block still in place — the index.html edit at the top of this phase, not a boot bug.

P3 · Media → kit/RECIPES.md

Before fixtures — a fixture pointing at a missing file is invisible until render.

Done when: every file the fixtures will reference exists, at varied aspect ratios.

P4 · Fixtures → BUILD.md

Done when: every spec worked example is a fixture verbatim, the adversarial checklist is covered, and the fixture pre-flight passes all three checks.

P5 · Domain engine → BUILD.md

Done when: the engine holds every rule the mode covers, contains no DOM reference, and cites spec rule IDs in source comments with none invented.

P6 · Verify the engine → VERIFY.md

A distinct phase, before any screen exists. Do not fold it into P9.

Done when: every worked example, state table, validation rule, precedence level and derived-key stability check has been asserted with measured values quoted.

P7 · Screens → BUILD.md

Done when: every screen and meaningful sub-state has a URL, and the mode's surfaces are built.

P8 · Driver panel → DRIVER.md

Done when: every baseline state the spec mentions is drivable, and each has an observable effect on a default route.

P9 · Verify the interface → VERIFY.md

Done when: both measurement and visual review have run, every route loads with zero console errors, and every spec acceptance criterion has been exercised.

P10 · Document → OUTPUTS.md

Done when: the README carries all seven sections, a coverage table organised by the spec's own sections, and three honest-limits lists.

P11 · Porting note → OUTPUTS.md

Required in full-coverage mode, optional in focused mode.

Done when: the engine is mapped to its intended PHP home, and rules validated by measurement are distinguished from rules implemented by reading — or, in focused mode, the phase is declined out loud rather than skipped quietly.


Decided without asking

Each of these is settled so that a future change is a deliberate revision rather than drift.

DecisionDefault
RoutingHash-routed single page; every state deep-linkable
LanguageClassic scripts, window globals, no modules, no framework
BuildNone
RunStatic file server, one command
NetworkZero calls; remote resources validated for real, resolved to bundled files
PersistenceIn memory; reload resets to fixtures
MediaGenerated; real browser primitives where cheap
Driver panelAlways present, always labelled
EngineDOM-free, single resolution path
FixturesEncode the spec's worked examples verbatim
Rule IDsSource comments only, never on screen
VerificationTwo passes, measured
PolishNone — no tests, no abstractions, no error handling beyond runnability

Mark the prototype as throwaway in the README title and in a header comment in every source file.

What failure looks like

The prototype has failed, however good it looks, if it produces:

  • fidelity that makes invented requirements look specified — the worst outcome available here;
  • a coverage claim the verification did not establish;
  • no assertable expected output anywhere;
  • a driver panel indistinguishable from the plugin's own UI;
  • a rule ID in the source that does not exist in the spec;
  • more than one round trip of shape questions.

Credit

Derived from Matt Pocock's prototype skill (github.com/mattpocock/skills, skills/engineering/prototype/), which supplies this skill's framing and its throwaway / one-command / in-memory / no-polish / surface-the-state / capture-it rules. The WordPress-specific build — the twelve phases, the spine/overlay/engine split, the driver panel, the asset kit and the two-pass verification — is new here. Matt's skills are MIT licensed.

同梱ファイル

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

よくある質問

AIスキル「Prototype Wp」では何ができますか?

Prototype a WordPress or WooCommerce plugin from its written spec as a runnable offline browser simulation — admin screens, front-end surfaces, and the rules connecting them — so the spec can be evaluated as a product before any PHP is written. Use when asked to prototype or simulate a WP plugin, build a clickable or demoable version of one, or check whether plugin requirements hold together. A focused mode builds only named surfaces, for requests like "build me a working WordPress admin settings screen" or "show me what this settings tab would look like". Not for writing production plugin...

TypingMindでPrototype Wpを使うメリットは何ですか?

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

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

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

Prototype Wpを使えるAIモデルはどれですか?

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

Prototype Wpは何個のAIモデルで使えますか?

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

AIスキル「Prototype Wp」は無料ですか?

はい。nathanonnがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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