界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

cards-and-observability

cards-and-observability

【效率与协作】Guides Metaflow Cards, current.card customization, card CLI workflows, task logs, sidecars, and observability troubleshooting.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: cards-and-observability description: "Guides Metaflow Cards, current.card customization, card CLI workflows, task logs, sidecars, and observability troubleshooting." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

Cards and Observability

Use this sub-skill when the task involves @card, current.card, card components, card CLI commands, runtime card refreshes, task stdout/stderr logs, or sidecar/logging behavior.

Quick Route

Minimal Card Pattern

from metaflow import FlowSpec, card, current, step
from metaflow.cards import Markdown

class CardFlow(FlowSpec):
    @card(type="default", id="summary", customize=True)
    @step
    def start(self):
        current.card.append(Markdown("# Run summary"))
        self.next(self.end)

    @step
    def end(self):
        pass

After a run, use python flow.py card list <pathspec> or python flow.py logs show <task-pathspec> depending on the evidence needed.

Boundaries

我的收藏