L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Développement · SKILL.md

flow-authoring

flow-authoring

Guides authoring, checking, running, resuming, and debugging local Metaflow FlowSpec workflows with parameters, configs, files, foreach, and decorators.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: flow-authoring description: "Guides authoring, checking, running, resuming, and debugging local Metaflow FlowSpec workflows with parameters, configs, files, foreach, and decorators." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

Flow Authoring

Use this sub-skill when the task is to create or debug a Metaflow flow script, inspect the flow graph, run locally, resume, or reason about FlowSpec, @step, self.next, parameters, configs, IncludeFile, foreach, or local step decorators.

Quick Route

Minimal Flow Pattern

from metaflow import FlowSpec, Parameter, step

class ExampleFlow(FlowSpec):
    count = Parameter("count", default=3, type=int)

    @step
    def start(self):
        self.values = list(range(self.count))
        self.next(self.work, foreach="values")

    @step
    def work(self):
        self.result = self.input * 2
        self.next(self.join)

    @step
    def join(self, inputs):
        self.results = [task.result for task in inputs]
        self.next(self.end)

    @step
    def end(self):
        print(self.results)

if __name__ == "__main__":
    ExampleFlow()

Use python flow.py --no-pylint check before run when lint dependencies are not installed. Use python flow.py version for the package version.

Boundaries

Skills enregistrées