跳到正文
cccskills
免费在 GitHub 公开

StreamFlow Documentation — Adding Examples

This skill should be used when the user asks to "add an example", "write a tutorial", "document a new workflow example", or when creating a new worked example under `docs/source/examples/`.

中文简介正在准备中。当前显示原文说明。

集成工具Kubernetes
查看安装方法

包含的文件(1)

  • SKILL.md2.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

StreamFlow Documentation — Adding Examples

Creates a worked example under docs/source/examples/<name>/. Load StreamFlow Documentation for general RST style rules.

Directory Layout

docs/source/examples/<name>/
├── <name>.rst          # tutorial · streamflow.yml  # primary config
├── cwl/main.cwl · config.yml · clt/*.cwl
├── data/               # input files
└── environment/<connector>/

Typical Sections

Intro → Concepts covered → Prerequisites → Project layout → Steps (source files, CWL tools, Workflow, inputs, environment, streamflow.yml) → Run the workflow → Expected output → Alternative deployments → Troubleshooting

Key Rules

  • Explanations before code listings — never after.
  • Use .. literalinclude:: for file content; .. code-block:: only when the file contains values the user must substitute.
  • Use :emphasize-lines: for lines that differ from a previous listing.
  • data/ is at the project root; config.yml uses ../data/<file>.
  • Never reference a file without first telling the user how to create it.
  • Authoring-aid files (e.g. streamflow-k8s.yml) must not appear in the tutorial — only streamflow.yml is visible to the reader.
  • Alternative backends go in a .. _Alternative deployments: section.

Register and Test

docs/source/index.rst — add to the Examples toctree:

   examples/<name>/<name>.rst

docs/tests/test_examples.py — one function per streamflow*.yml:

@pytest.mark.asyncio
async def test_<name>_<backend>() -> None:
    """Run the <Name> example using the <Backend> backend."""
    await _run(
        pathlib.Path(__file__).parent.parent
        / "source" / "examples" / "<name>" / "streamflow[-<backend>].yml"
    )

Naming: test_<example>_<backend> (e.g. test_mpi_kubernetes). Verify with make test from docs/.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

This skill should be used when the user asks to "update the changelog", "add a changelog entry", "write a CHANGELOG entry", or when preparing a git commit in StreamFlow that requires updating the `## [Unreleased]` section of `CHANGELOG.md`.

中文简介正在准备中。当前显示原文说明。

alpha-unito/streamflow672026年10月19日 更新

This skill should be used when the user asks to "add docstrings", "write error handling", "use naming conventions", "handle exceptions", or when writing new Python code for StreamFlow that requires docstring format, naming conventions, exception handling, or async cleanup patterns.

中文简介正在准备中。当前显示原文说明。

alpha-unito/streamflow672026年10月19日 更新

This skill should be used when the user asks to "write documentation", "add a doc page", "update RST files", "add a tutorial", or when writing or editing Sphinx RST documentation for StreamFlow.

中文简介正在准备中。当前显示原文说明。

alpha-unito/streamflow672026年10月19日 更新

This skill should be used when the user asks to "write a commit message", "create a commit", "format a commit", "what commit type to use", or when preparing changes for a git commit in StreamFlow. Provides commit message format, type conventions, and examples.

中文简介正在准备中。当前显示原文说明。

alpha-unito/streamflow672026年10月19日 更新

This skill should be used when the user encounters "no-untyped-def" mypy errors, asks to "fix no-untyped-def errors", "add type annotations to functions", or mentions "Function is missing a type annotation". Provides specific workflow for fixing missing type annotations while respecting forbidden type constraints.

中文简介正在准备中。当前显示原文说明。

alpha-unito/streamflow672026年10月19日 更新

This skill should be used when the user asks to "fix mypy errors", "add type annotations", "fix type checking", "resolve no-untyped-def", "fix mypy type errors", or when working with type hints while respecting StreamFlow's forbidden type constraints (no Any, dict[str, Any], etc.).

中文简介正在准备中。当前显示原文说明。

alpha-unito/streamflow672026年10月19日 更新

查看 alpha-unito 的全部技能

报告此技能的问题