Command Palette

Search for a command to run...

Назад к скиллам
скилл № 13465

scistudio-build-workflow

Use when the user wants to design a new workflow, choose block types, wire edges between blocks, or convert a verbal pipeline description into a valid…

БесплатноБез исполняемых скриптов
jiazhenz026от jiazhenz026★ 30 звёзд на GitHub

Установить scistudio-build-workflow в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

scistudio-build-workflow

1. What a workflow is

A workflow is a graph of typed blocks saved as workflows/<id>.yaml. It holds the steps of an analysis that are settled, so they can be rerun on new data, reused, and traced back through lineage. The runtime validates structure and types before a run, and the GUI canvas shows and edits the same file.

Build a workflow when the user knows the steps. When the next step is still unclear and the user wants to try things on a result, offer a MiniApp first (scistudio-write-miniapp), then build the settled step into the workflow.

2. Steps to build a workflow

  1. Understand the analysis. Confirm the input data, the steps, and the outputs the user wants. Ask only about the science.
  2. Find the blocks. Call list_blocks, then get_block_schema for each candidate to read its exact ports and config. If no block fits a step, write one with scistudio-write-block.
  3. Check the types. Where blocks with unfamiliar types meet, call list_types to confirm each edge connects compatible types.
  4. Write the workflow. Create it with write_workflow at workflows/<id>.yaml; change an existing one with edit_workflow or update_block_config.
  5. Validate. Call validate_workflow and fix every error before running.
  6. Run and confirm. Call run_workflow, poll get_run_status until a terminal state, then check the outputs with get_block_output and inspect_data / preview_data.
  7. Report. Tell the user what the workflow does, where its outputs are, and which parameters they can tune in each block's config.

3. Anti-patterns

  • Guessing port names or block types instead of reading get_block_schema.
  • Putting a block's display name in block_type; use its type_name.
  • Using the canvas four-field edge shape; workflow edges are two strings, "node_id:port_name".
  • Putting a package IO block or a self-written IO block in a workflow as its own node; every read and write goes through core load_data / save_data.
  • Re-emitting a whole existing workflow through write_workflow for a small change; it drops the user's block config and comments.
  • Running an unvalidated workflow, or declaring done while a run is running.
  • Re-running a failed workflow without diagnosing the failure first.
  • Editing workflows/*.yaml with file tools instead of the workflow tools.

4. Defaults, tool sequence, and failure handling

Always load and save with the core blocks. Every read uses load_data and every write uses save_data, configured with core_type (the data type) and the format: the file extension of the path, or capability_id to pick one registered format capability explicitly. get_block_schema lists the capabilities a block can pick under format_capabilities; get_block_config reports the one a node will use and whether the choice is ambiguous. Leave capability_id unset when the extension decides it, and set it when several formats match; update_block_config refuses an id that does not fit the direction, data type, and extension. Both blocks use a port named data. Never put a package IO block or a self-written IO block in the workflow as its own node.

The core blocks route to whichever registered capability handles the type and format, including package readers and writers and IO blocks written in this project. When no capability covers a format the user needs, write an IO block for it with scistudio-write-block, reload, and then read or write through core load_data / save_data, which runs that block's code.

Tool sequence.

list_blocks
get_block_schema(block_type)          # each candidate block
list_types                            # only for unfamiliar type pairs
write_workflow(path, content)         # create; edit_workflow / update_block_config to change
validate_workflow(path)
run_workflow(path)                    # returns run_id
get_run_status(run_id)                # poll until terminal
get_block_output(run_id, block_id, port)
inspect_data(ref) / preview_data(ref, fmt)

Every write-class result carries next_step; read it and follow it. write_workflow refuses a file name whose stem differs from the workflow id, so always write workflows/{id}.yaml; a mismatched pair collides with the file that id names on save and import. run_workflow(path) runs exactly the file at path.

Changing an existing workflow. write_workflow replaces the whole file, so use it only to create a workflow. To change part of one, call get_workflow and copy the exact text to replace, then call edit_workflow(workflow_path, edits=[{old_string, new_string}]): each old_string must match exactly once, or set replace_all to replace every occurrence. To change only one block's parameters, use update_block_config(workflow_path, block_id, params). Validate after either.

When validation fails. validate_workflow returns `ValidateWorkflowResult(valid: bool, erro

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл scistudio-build-workflow?

Use when the user wants to design a new workflow, choose block types, wire edges between blocks, or convert a verbal pipeline description into a valid workflow YAML. NOT for debugging existing runs (use scistudio-debug-run) or for writing custom blocks (use scistudio-write-block).

Как установить скилл scistudio-build-workflow?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл scistudio-build-workflow запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить scistudio-build-workflow с