StreamFlow Documentation — Adding Examples
SkillDocs & knowledgeThis 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/`.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the StreamFlow Documentation — Adding Examples skill
What this skill tells your AI
The instructions your AI receives, as published by alpha-unito/streamflow in .agents/skills/docs/examples/SKILL.md and read by ahel’s review.
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.ymluses../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 — onlystreamflow.ymlis 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/.
Signals
- GitHub stars
- 65
- Forks
- 19
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
streamflow-documentation-adding-examples- Source
- github.com/alpha-unito/streamflow