Create a new Linkr plugin with R and Python templates. Use this when the user wants to add a new plugin for the Lab (datasets/dashboards) or Warehouse (patient data) scope.
インストール
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Create a new Linkr plugin with R and Python templates. Use this when the user wants to add a new plugin for the Lab (datasets/dashboards) or Warehouse (patient data) scope.
Create a Linkr Plugin
You are creating a new plugin for Linkr. Follow these steps precisely.
Step 1: Gather requirements
Ask the user for:
Plugin name (en + fr)
Scope: lab (operates on datasets) or warehouse (operates on patient data)
Description (en + fr)
What the plugin does — what it computes, what visualization it produces
Config parameters — what the user should be able to configure
Place lab plugins with the other lab plugins, warehouse plugins with the warehouse section.
Step 4: Keep the create-project inventory in sync
The create-project skill hard-lists every built-in Lab plugin so it can wire
dashboard widgets. Adding, removing, or renaming a Lab plugin (or changing its
column-select config keys) makes that inventory stale. Update it in the same change:
.claude/skills/create-project/references/dashboards.md — the widget inventory
table + the per-plugin config/column-key notes.
.claude/skills/create-project/assets/build_zip.py — PLUGIN_COLUMN_KEYS
(which config keys are single vs. multi column-selects) and, if relevant,
PLUGIN_DEFAULT_SIZE.
(Warehouse plugins are not part of that inventory — patient-data widgets aren't
seedable via a project ZIP — so only Lab-plugin changes require this step.)
Step 5: Verify
Run npx tsc --noEmit from the apps/web directory and fix any TypeScript errors.
Checklist
plugin.json has all required fields (id, name, description, version, tags, runtime, languages, icon, configSchema, templates)
Labels in configSchema have both en and fr
Templates use {{placeholder}} without extra quotes for select/string fields
Python template uses matplotlib.use('Agg') before import matplotlib.pyplot as plt
Warehouse plugin uses await sql_query() in Python, sql_query() in R
Plugin is registered in default-plugins.ts
For a Lab plugin: create-project inventory updated (Step 4)