Add support for a new curve data format in the Curves package converter system
日本語の概要は準備中です。原文の説明を表示しています。
Create a Datagrok Compute2 workflow (pipeline configuration with steps, links, and actions)
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
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.まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Add support for a new curve data format in the Curves package converter system
日本語の概要は準備中です。原文の説明を表示しています。
Create info panels that appear in the context panel based on semantic types
日本語の概要は準備中です。原文の説明を表示しています。
Add a new single-objective optimization algorithm to the sci-comp library. Use when the user asks to implement a new optimizer (e.g. gradient descent, BFGS, simulated annealing, differential evolution).
日本語の概要は準備中です。原文の説明を表示しています。
Add unit tests to a Datagrok package
日本語の概要は準備中です。原文の説明を表示しています。
Answer a "how do I …" question about the platform with a Gherkin scenario on @datagrok-libraries/bdd that is filmed into a how-to video (grok-bdd guide), so the answer is demonstrated, sent as a video plus numbered steps, and kept as a regression test
日本語の概要は準備中です。原文の説明を表示しています。
Translate hand-written Playwright specs (or any existing UI tests) into Gherkin features on @datagrok-libraries/bdd, then prove the features test what they claim by backward-matching them against the originals with independent reviewers, and fix the gaps in the core, the library and the features
日本語の概要は準備中です。原文の説明を表示しています。