fiftyone-develop-plugin
БесплатноБез исполняемых скриптовНе проверенDevelops custom FiftyOne plugins (operators and panels) from scratch. Use when creating plugins, extending FiftyOne with custom operators, building…
от voxel51★ 49 звёзд на GitHubОб этом скилле
Develop FiftyOne Plugins
TL;DR — Read This First
Step 1: Decide what you're building.
| Goal | Type | Read next |
|---|---|---|
| Run a computation, process samples, trigger actions | Operator | PYTHON-OPERATOR.md |
| Persistent panel in the grid, simple/form UI | Python Panel | PYTHON-PANEL.md |
| Persistent panel in the grid, rich/interactive UI | Hybrid Panel | HYBRID-PLUGINS.md + JAVASCRIPT-PANEL.md |
| Panel that opens inside the sample modal | JS Modal Panel | JAVASCRIPT-PANEL.md |
Step 2: Read that file NOW — before generating any code. Each file contains patterns that are not in SKILL.md. Missing them causes the most common failures (wrong default= usage, handler binding errors, panel not appearing in App).
If something isn't rendering or you hit an error: Read TROUBLESHOOTING.md for the one-shot diagnostic command, reload vs restart table, and the top 5 error patterns with exact fixes.
For input types, Panel UI components reference, and a minimal working example: Read QUICK-REFERENCE.md.
Step 3: Clone the official plugins repo for reference patterns:
git clone https://github.com/voxel51/fiftyone-plugins.git /tmp/fiftyone-plugins 2>/dev/null || true
Step 4: Install your plugin by placing it (or symlinking it) in the plugins directory:
PLUGINS_DIR=$(python -c "import fiftyone as fo; print(fo.config.plugins_dir)")
# Convention: use underscores in the directory name (e.g. myorg_my_plugin) for shell compatibility
# The @org/name URI lives only inside fiftyone.yml — the directory name doesn't need to match
ln -s /path/to/my_plugin "$PLUGINS_DIR/my_plugin"
Step 5: Launch in debug mode so you see all server logs:
fiftyone app debug <dataset-name>
Key Directives
ALWAYS follow these rules:
1. Understand before coding
Ask clarifying questions. Never assume what the plugin should do.
2. Plan before implementing
Present file structure and design. Get user approval before generating code.
3. Search existing plugins for patterns
# Clone official plugins for reference
git clone https://github.com/voxel51/fiftyone-plugins.git /tmp/fiftyone-plugins 2>/dev/null || true
# Search for similar patterns
grep -r "keyword" /tmp/fiftyone-plugins/plugins/ --include="*.py" -l
list_plugins(enabled=True)
list_operators(builtin_only=False)
get_operator_schema(operator_uri="@voxel51/brain/compute_similarity")
4. Test locally before done
# Get plugins directory
PLUGINS_DIR=$(python -c "import fiftyone as fo; print(fo.config.plugins_dir)")
# Develop plugin in plugins directory
cd $PLUGINS_DIR/my-plugin
Write tests:
- Python:
pytestfor operators/panels - JavaScript:
vitestfor React components
Verify in FiftyOne App before done.
5. Test complex logic outside the plugin first
If the plugin wraps non-trivial processing (model inference, image transforms, external APIs), verify that logic works as standalone Python before integrating it into the plugin:
# Test independently first
result = my_processing_fn(sample_path)
print(result) # confirm correctness
# Only then wrap in execute()
def execute(self, ctx):
result = my_processing_fn(ctx.dataset.first().filepath)
...
This prevents debugging two systems (plugin framework + custom logic) at once.
6. Iterate on feedback
Run server separately to see logs:
# Terminal 1: Python logs
python -m fiftyone.server.main
# Terminal 2: Browser at localhost:5151 (JS logs in DevTools console)
fiftyone app debug # logs printed to shell; use with a dataset:
fiftyone app debug <dataset-name>
For automated iteration, use Playwright e2e tests:
npx playwright test
Refine until the plugin works as expected.
Critical Patterns
Gotcha 1 — default= must never reference state (causes infinite render loops)
# WRONG — triggers a render loop: schema changes → re-render → schema changes → ...
def render(self, ctx):
panel = types.Object()
panel.str("threshold", default=ctx.panel.get_state("threshold")) # ← NEVER do this
# CORRECT — pass a literal; read state separately for display logic
def render(self, ctx):
panel = types.Object()
panel.str("threshold", default="0.5") # literal only
current = ctx.panel.get_state("threshold", "0.5") # read separately if needed
The default= value is part of the schema the frontend uses to decide whether to re-render. If it changes between renders (because state changed), the frontend re-dispatches, which re-renders, infinitely.
Gotcha 2 — Event handlers must be bound instance methods, not static methods
# WRONG — @staticmethod strips __self__, breaking the handler URI silently
@staticmethod
Установить fiftyone-develop-plugin в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл fiftyone-develop-plugin?
Develops custom FiftyOne plugins (operators and panels) from scratch. Use when creating plugins, extending FiftyOne with custom operators, building interactive panels, or integrating external APIs.
Как установить скилл fiftyone-develop-plugin?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл fiftyone-develop-plugin запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic