ワンクリックで
create-workflow
Create a Datagrok Compute2 workflow (pipeline configuration with steps, links, and actions)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Create a Datagrok Compute2 workflow (pipeline configuration with steps, links, and actions)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use whenever you need the Datagrok browser to actually execute JavaScript — adding viewers, filtering, modifying the view, or returning a result widget to the chat. Open this skill before calling the datagrok_exec tool.
Filter rows of a Datagrok DataFrame inside a datagrok-exec block through the Filters panel — by range, equals/contains/in-set, multi-value, boolean, free-text row expressions, or substructure (SMILES / SMARTS / molblock). Also covers clearing, inverting, the show-only-filtered vs destructive-drop split, and the filter event lifecycle (onRowsFiltering / onFilterChanged / onRowsFiltered). Use whenever the user says "filter", "show only", "hide rows where", "narrow to subset", "find rows that", "contains", "substructure search", "categorical filter", "range filter", "invert", "clear the filter", "clear filters", "drop rows", or asks for the filtered subset as a new table. Does NOT cover selection (separate skill) or generic DataFrame cloning (datagrok-df-and-columns).
Add a calculated, formula-based column to a dataframe inside a datagrok-exec block. Use whenever the user asks to compute, derive, add, or create a new column from existing columns — LipE, ratios, log/round, heavy atom count, any expression in the Datagrok formula DSL. Replaces hand-written addNewFloat/addNewInt + for-loop with a single formula-attached column that recomputes when source columns change.
Find, describe, add, remove, rename, clone, or set metadata on columns of a Datagrok DataFrame inside a datagrok-exec block. Use whenever the user asks to locate "the X column", summarize a column, add a typed/empty/values-filled/virtual column, set semantic type / units / format / friendly name, apply linear or categorical or conditional color coding, drop or rename columns, or copy a DataFrame. Covers everything in DataFrame.columns and Column.meta — but not row filtering/selection (datagrok-filtering, datagrok-selection) and not formula-only columns (datagrok-calc-column).
Sort, hide, show, reorder, resize, pin, format, and color-code columns in a Datagrok TableView grid from a datagrok-exec block. Use whenever the user asks to sort by a column (any direction), multi-sort, hide / show / reorder / pin / resize columns, freeze the first N columns, change number-format display, color-code cells (defaults and grid-only tint here; full per-type reference in datagrok-df-and-columns), set row height, or reset the grid back to defaults. Distinct from datagrok-df-and-columns (which owns column-level data metadata like semType, units, friendlyName, and is also where canonical color-coding lives) and from datagrok-viewers (which owns scatter plot / histogram / etc.). Does NOT cover filtering (`datagrok-filtering`), selection (`datagrok-selection`), custom cell renderer authoring (`create-cell-renderer`), saving / restoring layouts, or grid event handlers.
Add a viewer, configure a viewer, change viewer options, find viewer, close viewer, view a scatter plot, bar chart, histogram, line chart, box plot, pie chart, heat map, correlation plot, 3D scatter, trellis, density plot, statistics, on a Datagrok TableView inside a datagrok-exec block. Use whenever the user asks to plot, chart, visualize, show a graph, draw a distribution, color by a column, swap a viewer's axis, toggle a legend / regression line / log scale, replace one viewer with another, close every chart, reset the view to just the grid, or find an existing viewer by type. Plugin viewers like "Chem space", "sequence space", "activity cliffs" are NOT viewer types — they're registered functions — route those to `grok.functions.call`. Does NOT cover filtering (separate skill `datagrok-filtering`), selection (`datagrok-selection`), grid cell rendering (`datagrok-grid-customization`), layout save/restore, or custom-viewer authoring.
| name | create-workflow |
| description | Create a Datagrok Compute2 workflow (pipeline configuration with steps, links, and actions) |
| when-to-use | When the user asks to create, design, or scaffold a Compute2 workflow or pipeline configuration. NOT for general scripting, viewers, or UI work. |
| context | fork |
| effort | high |
| argument-hint | [workflow description] |
| disable-model-invocation | true |
The user wants a PipelineConfiguration — a Datagrok Compute2 workflow that wires
multiple scripts together with reactive data links, validators, and metadata handlers.
The authoritative reference lives in the docs. This skill is a working procedure; when you need to know what something is or how a field behaves, read the docs.
Read these before you write any configuration:
help/compute/workflows/overview.mdx — terms (node, link, controller, action, FuncCall, nqName, RichFunctionView).help/compute/workflows/configuration.mdx — every field of PipelineConfiguration,
the workflow types, states, custom exports, and the
constraints / review checklist (consult the section before publishing).help/compute/workflows/link-types.mdx — link/action types, controller methods, handler signatures.Read on demand:
help/compute/workflows/links-spec.mdx — Link Query Language grammar. Needed only when the
workflow uses tag selectors, template queries, or relative (base / @base) refs.help/compute/workflows/examples.mdx — Wine Quality walkthrough end-to-end.help/compute/workflows/code-usage.mdx — only if the workflow will be launched
programmatically.Reference examples (also linked from examples.mdx):
| File | Use when |
|---|---|
examples/minimal-static.ts | Fixed sequence of scripts, no links, user fills inputs manually. |
examples/dynamic-with-links.ts | User can add/remove steps; outputs propagate to all downstream instances. |
examples/validators-and-meta.ts | Cross-field validation, conditional input visibility, user-triggered actions. |
Setup (install + dayjs/timezone imports) is covered in examples.mdx#dependencies.
Ask the user:
Verify that every referenced script exists. A script may be deployed, scaffolded locally but not yet published, or only an idea in the user's head. Check each location and stop searching once you find a match:
grok s functions list --filter "<nqName>".
A non-empty result means the script is live and the nqName is correct.package.ts: grep for //name:\s*<FunctionName> in src/package.ts
(and any src/package-*.ts entries). Each annotated export becomes a function
with nqName: <PackageName>:<FunctionName> once published.scripts/ directory: grep for ^#name:\s*<scriptName> in
scripts/**/*.{py,r,js,jl,m,sql}. Each #name-annotated file becomes a
function with nqName: <PackageName>:<scriptName> once published.If a script is found locally but not on the server, note it as "scaffolded — will be
published with this workflow". If a script is missing in all three places, ask the
user whether to scaffold it (and follow the appropriate skill: see /init or the
scripting docs) or to drop it from the workflow.
Present a plain-language summary of the workflow for approval before coding. Mark each step as deployed, scaffolded, or to be created so the user can see the integration surface at a glance.
configuration.mdx for the discriminated union of
static / dynamic / action / ref.PipelineConfiguration object: steps with id and nqName; data links
with from/to; validators and meta links if needed; actions for user-triggered
operations.links-spec.mdx.import type {PipelineConfiguration} from '@datagrok-libraries/compute-api';
//name: MyWorkflow
//description: Description of the workflow
//tags: model
//editor: Compute2:TreeWizardEditor
//input: object params
//output: object result
export function myWorkflow(): PipelineConfiguration {
return {
id: 'my-workflow',
nqName: 'MyPackage:MyWorkflow',
version: '1.0',
/* approved configuration */
};
}
link-types.mdx.package.ts if not already there.grok api to regenerate wrappers.Validate the configuration against the constraints and review checklist. Spawn a sub-agent for an independent pass if the configuration is non-trivial. Fix anything that fails before proceeding.
grok check --soft — verify function signatures.webpack or npm run build — build the package.grok publish --release — --release is mandatory; debug-mode packages are only
visible to the publishing user.in1:step1/a
over complex selectors.@datagrok-libraries/compute-api. This is the public API. Do not
import from @datagrok-libraries/compute-utils directly — those are internal paths.--release./ui skill only in two cases: (1) an action needs to show custom inputs
inline (e.g. a confirmation form with extra fields), or (2) a script's output viewer
needs tweaks applied through its DG.Viewer JS API inside a
viewersHook.
Workflow scaffolding, links, validators, and meta-driven UI changes do not need /ui.