科研技能库/前端实验开发
科研编程
未发现用户侧风险

前端实验开发

指导 `packages/frontend/editor-ui` 实验功能开发。适用于创建、扩展、接线、测试、审查或退役编辑器 UI 实验、PostHog 功能标志、实验键索引、变体、Store/Composable、持久化实验状态或实验遥测。

文件预览

2 个文件
SKILL.md
1.1 KB · 可预览
---
name: experiments
description: >-
  Guides work on `packages/frontend/editor-ui` experiments. Use when creating,
  extending, wiring, testing, reviewing, or retiring editor-ui experiments,
  PostHog feature flags, experiment key indexes, variants, stores/composables,
  persisted experiment state, or experiment telemetry.
---

# Experiments

Use this skill for frontend experiment code lifecycle work in `packages/frontend/editor-ui`.

Start with the relevant mode in [reference.md](reference.md):

- `Create` for a new experiment folder, constant, store/composable, and tests.
- `Extend` for new variants, behavior, display logic, or telemetry on an existing experiment.
- `Wire` for host-surface integration through routes, modals, views, or components.
- `Test` for store, composable, persistence, telemetry, and UI behavior coverage.
- `Review` for auditing experiment changes.
- `Retire` for cleaning up completed or abandoned experiments.

When experiment work touches Vue components or user-facing copy, also follow `n8n:design-system` and `n8n:content-design`.

SKILL.md

元数据
nameexperiments
description指导 `packages/frontend/editor-ui` 实验功能开发。适用于创建、扩展、接线、测试、审查或退役编辑器 UI 实验、PostHog 功能标志、实验键索引、变体、Store/Composable、持久化实验状态或实验遥测。

实验

在 packages/frontend/editor-ui 中使用此技能进行前端实验代码生命周期工作。

从 reference.md 中的相关模式开始:

  • 创建 用于新的实验文件夹、常量、Store/Composable 和测试。
  • 扩展 用于现有实验的新变体、行为、显示逻辑或遥测。
  • 接线 用于通过路由、模态框、视图或组件进行宿主界面集成。
  • 测试 用于覆盖 Store、Composable、持久化、遥测和 UI 行为。
  • 审查 用于审核实验更改。
  • 退役 用于清理已完成或废弃的实验。

当实验工作涉及 Vue 组件或面向用户的文案时,还需遵循 n8n:design-system 和 n8n:content-design。