协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
flow-authoring【开发与工程】Guides authoring, checking, running, resuming, and debugging local Metaflow FlowSpec workflows with parameters, configs, files, foreach, and decorators.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
references/workflows.md for the standard local authoring and CLI loop.references/parameters-and-configs.md for Parameter, JSONType, Config, config_expr, and IncludeFile behavior.references/advanced-flow-patterns.md for foreach, joins, merge_artifacts, resume, and local decorators.references/troubleshooting.md for reserved parameter names, invalid graph transitions, username failures, and file/config issues.scripts/hello_flow.py when you need a self-contained starter flow with parameters and foreach.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.
Runner, NBRunner, or programmatic execution, route to ../runner-and-programmatic/SKILL.md.../client-and-data/SKILL.md.current.card, route to ../cards-and-observability/SKILL.md.../deployment-orchestration/SKILL.md.@pypi, @conda, --environment, or package suffixes, route to ../dependency-environments/SKILL.md.