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★ 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
- Understand the analysis. Confirm the input data, the steps, and the outputs the user wants. Ask only about the science.
- Find the blocks. Call
list_blocks, thenget_block_schemafor each candidate to read its exact ports and config. If no block fits a step, write one withscistudio-write-block. - Check the types. Where blocks with unfamiliar types meet, call
list_typesto confirm each edge connects compatible types. - Write the workflow. Create it with
write_workflowatworkflows/<id>.yaml; change an existing one withedit_workfloworupdate_block_config. - Validate. Call
validate_workflowand fix every error before running. - Run and confirm. Call
run_workflow, pollget_run_statusuntil a terminal state, then check the outputs withget_block_outputandinspect_data/preview_data. - 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 itstype_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_workflowfor 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/*.yamlwith 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
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
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), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…