[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6997CC9R4YBXAV1NF5XNR1A":3,"skill-same:01M6997CC9R4YBXAV1NF5XNR1A":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":17,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M6997CC9R4YBXAV1NF5XNR1A","create_lightflows","Lightflow DAG 工作流构建","Guides the design, authoring, compilation, and verification of new Python DAG workflows using Lightflow (YAML or JSON). Use when building a new multi-stage pipeline, authoring `actions.py` and `lightflow.yaml`, or scaffolding a workflow with the `create_lightflow` meta-workflow. For merely running or resuming an existing workflow, use `run_lightflows` instead.","指导使用 Lightflow（YAML 或 JSON）设计、编写、编译和验证新的 Python DAG 工作流。在构建新的多阶段流水线、编写 `actions.py` 和 `lightflow.yaml`，或使用 `create_lightflow` 元工作流搭建工作流骨架时使用。若仅运行或恢复已有工作流，请改用 `run_lightflows`。","google\u002Flightflow","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M69977GFZ9R8AT9B3T2D7BK7",19,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fskills\u002Fcreate_lightflows\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSFHC0DJXKNN0QBZDDS4K9","定时任务与自动化编排","SCENARIO","使用场景",[31,32,33,34,35],"create lightflows","design","python","dag","workflow","2026-11-10 10:12:30",false,"---\nname: create_lightflows\ndescription: Guides the design, authoring, compilation, and verification of new Python DAG workflows using Lightflow (YAML or JSON). Use when building a new multi-stage pipeline, authoring `actions.py` and `lightflow.yaml`, or scaffolding a workflow with the `create_lightflow` meta-workflow. For merely running or resuming an existing workflow, use `run_lightflows` instead.\n---\n\n# Creating Lightflow Workflows (`create_lightflows`)\n\nLightflow coordinates multi-step operations between AI agents and human\noperators using an append-only state ledger (`passport.json`), safe AST-based\nCEL-like expressions, and selective subgraph re-arming.\n\n> **Note**: If you only need to execute, inspect, or resume an *existing*\n> Lightflow workflow, read the `run_lightflows` skill instead.\n\n## 1. Scaffolding a New Workflow via `create_lightflow` (3-Phase Meta-Workflow)\n\nInstead of authoring a workflow from scratch in one shot, run the built-in\n3-phase meta-workflow, which gates progress on deterministic AST signature\nchecks, `sample_payload` return-contract smoke tests, unit test execution, and\n`payload.outputs.\u003Cstage>` DAG cross-checks. The meta-workflow ships in the\nLightflow repository under `examples\u002Fcreate_lightflow\u002F`: run it from a clone of\n`github.com\u002Fgoogle\u002Flightflow`, or pass the absolute path to\n`examples\u002Fcreate_lightflow` in your clone:\n\n```bash\nlightflow start \\\n  --lightflow=\u002Fpath\u002Fto\u002Flightflow\u002Fexamples\u002Fcreate_lightflow \\\n  --log_id=scaffold_\u003Cworkflow_name>\n```\n\n(`python3 -m lightflow` is equivalent to `lightflow` whenever the console script\nis not on `PATH`.)\n\n1.  **`align_on_design`** (`operator_action`): Align with the user on stage\n    boundaries (separate read\u002Fcompute stages from external write\u002Fmutate stages),\n    `operator_action` gates, and the output keys each stage produces under\n    `payload.outputs.\u003Cstage>`.\n2.  **`implement_and_test_actions` $\\rightarrow$ `verify_actions`**: Write\n    `actions.py` + unit tests (or pass `sample_payload`); `verify_actions`\n    parses the AST, smoke-tests that every action returns a JSON-serializable\n    `(dict, str)` tuple, and runs `unittest`.\n3.  **`draft_and_explain_manifest` $\\rightarrow$ `prove_manifest_dry_run`**:\n    Write `lightflow.yaml` and explain the DAG to the user;\n    `prove_manifest_dry_run` compiles the DAG, verifies that every\n    `payload.outputs.\u003Cstage>` reference points to an upstream dependency in\n    `run_after`, runs `dry_run`, and emits `visualizer.html`.\n\n## 1b. Starting From an Existing `SKILL.md`\n\nMost procedures worth moving into Lightflow already exist as a skill: a numbered\nlist of steps an agent follows by hand. The translation is mechanical once each\nstep is classified:\n\nA step that…                                                                             | becomes                                                               | because\n---------------------------------------------------------------------------------------- | --------------------------------------------------------------------- | -------\nruns a command, calls an API, transforms data, writes a file                             | `python_action`                                                       | deterministic, testable, retryable; the agent never re-derives it\nneeds judgment but no outside decision (triage findings, draft text, pick a remediation) | `operator_action` whose `instructions` tell the agent what to produce | the gate pauses the run, the agent does the work, then resumes with the result as payload\nneeds a decision from a person (approve spend, confirm a destructive change)             | `operator_action` whose `instructions` say who must decide            | the resume stamp records who decided and from which session\n\nWorked example. A skill that reads:\n\n```\n1. Query last week's incidents from the tracker.\n2. Group them by service and draft a summary.\n3. Get the on-call lead to confirm the summary.\n4. Post it to the channel.\n```\n\nmaps to:\n\n```yaml\nname: weekly_incident_digest\nactions:\n  - {id: fetch,  python_import: digest.actions.fetch_incidents}\n  - {id: group,  python_import: digest.actions.group_by_service}\n  - {id: post,   python_import: digest.actions.post_to_channel}\nstages:\n  - name: fetch_incidents                       # step 1: mechanical\n    python_action: {action_id: fetch}\n    retry_policy: {max_attempts: 3, initial_backoff_seconds: 5}\n  - name: group_by_service                      # step 2a: mechanical\n    run_after: [fetch_incidents]\n    python_action: {action_id: group}\n  - name: draft_summary                         # step 2b: agent judgment\n    run_after: [group_by_service]\n    operator_action:\n      instructions: \"'Draft a 5-line summary of ' + string(payload.outputs.group_by_service.count) + ' incidents grouped by service; resume with summary_md.'\"\n      json_schema: '{\"type\": \"object\", \"required\": [\"summary_md\"], \"properties\": {\"summary_md\": {\"type\": \"string\"}}}'\n  - name: lead_confirms                         # step 3: a person decides\n    run_after: [draft_summary]\n    operator_action:\n      instructions: \"'Ask the on-call lead to confirm this summary before it is posted: ' + payload.outputs.draft_summary.summary_md\"\n  - name: post_to_channel                       # step 4: mechanical\n    run_after: [lead_confirms]\n    python_action: {action_id: post}\n```\n\nKeep the skill: replace its step list with `lightflow start --lightflow=\u003Cdir>`\nand the gate-handling rules from `skills\u002Frun_lightflows\u002FSKILL.md`. The judgment\nand the decision stay where they were; only the mechanical steps and the\nordering move into code. Run the `create_lightflow` meta-workflow above to\nscaffold and prove the result.\n\n## 2. Workflow Manifest Reference (`lightflow.yaml`)\n\nDefine actions and stages in `lightflow.yaml` (or `.json`). `python_import`\nresolves relative to the workflow's directory (e.g. `actions.fetch_metrics` for\n`actions.py` in the same folder) as well as package paths:\n\n```yaml\nname: release_verification_pipeline\ndescription: Fetch metrics, pause for operator review, and publish report.\n# Optional: payload keys (any depth) shown as \u003Credacted> in the visualizer,\n# status --verbose and dry-run output. passport.json keeps the real values.\nsecret_keys: [api_token]\n\nactions:\n  - id: fetch_metrics\n    python_import: actions.fetch_metrics\n  - id: publish_report\n    python_import: actions.publish_report\n  - id: cleanup_temp\n    python_import: actions.cleanup_temp\n\nstages:\n  - name: fetch\n    description: Fetch latest metrics\n    timeout_seconds: 60\n    python_action:\n      action_id: fetch_metrics\n      static_kwargs:\n        limit: 500\n    retry_policy:\n      max_attempts: 3\n      initial_backoff_seconds: 5\n      backoff_multiplier: 2.0\n    rollback_action:\n      action_id: cleanup_temp\n\n  - name: approve\n    description: Operator approval gate\n    run_after: [fetch]\n    operator_action:\n      # CEL-like expression: string literals MUST be quoted inside the string.\n      instructions: \"'Ready to publish: ' + payload.outputs.fetch.summary\"\n      json_schema:\n        type: object\n        required: [approved]\n        properties:\n          approved:\n            type: boolean\n\n  - name: publish\n    description: Publish verified report\n    run_after: [approve]\n    run_if: \"payload.outputs.approve.approved == true\"\n    python_action:\n      action_id: publish_report\n\n  - name: always_cleanup\n    run_after: [publish]\n    trigger_rule: ALL_DONE\n    python_action:\n      action_id: cleanup_temp\n```\n\n## 3. Rules for Crash-Free Python Actions\n\n```python\nfrom typing import Any\n\ndef fetch_metrics(\n    payload: dict[str, Any], **static_kwargs: Any\n) -> tuple[dict[str, Any], str]:\n  limit = static_kwargs.get(\"limit\", 100)\n  return {\"row_count\": limit, \"summary\": f\"{limit} rows\"}, \"Fetched metrics\"\n```\n\n1.  **One Side Effect per Stage**: Separate read\u002Fcompute stages from external\n    write\u002Fmutate stages. Lightflow's `Passport` never re-runs `COMPLETED` stages\n    on `resume`; make write stages safe to retry if they fail mid-execution\n    (overwrite files instead of appending, or attach a `rollback_action`).\n2.  **Consistent Output Keys (`payload.outputs.\u003Cstage_name>`)**: Every return\n    path of an action (including any `offline` test mode for external APIs) must\n    return a JSON-serializable `(dict, str)` with the **exact same dictionary\n    keys** so downstream `run_if` and `instructions` expressions never crash.\n3.  **Cross-Check `payload.outputs.\u003Cstage>` Against `run_after`**: Any stage\n    whose `run_if` or `instructions` reads `payload.outputs.\u003Cupstream>.\u003Ckey>`\n    must list `\u003Cupstream>` (directly or transitively) in `run_after`.\n4.  **Timeouts, Polling & Resilience**: Set stage-level `timeout_seconds`\n    (`0`–`86400`; `0` disables the bound) on a stage to bound a `python_action`\n    (or individual poll tick); for long-running external jobs, prefer\n    `polling_policy` (`condition`, `interval_seconds`, `timeout_seconds`,\n    `max_attempts`, optional `poll_tick_action`), which persists each tick's\n    progress message to `passport.json` so `lightflow status` shows live\n    progress. Use `retry_policy` for transient errors and `rollback_action` \u002F\n    `trigger_rule: ALL_DONE` for cleanup; keep cleanup stages idempotent, since\n    an `ALL_DONE` stage that ran on a failure path runs again after `resume`.\n\n    A polling stage in YAML (the tick action goes under `poll_tick_action`; a\n    stage may not also set `python_action`):\n\n    ```yaml\n    - name: await_job\n      run_after: [submit_job]\n      polling_policy:\n        condition: \"payload.outputs.await_job.status == 'READY'\"\n        interval_seconds: 5\n        timeout_seconds: 600        # or max_attempts: 120\n        poll_tick_action:\n          action_id: check_job      # (dict, message) per tick\n    ```\n\n    Each tick's returned dict is merged into `payload.outputs.await_job` before\n    `condition` is evaluated, so a tick can read its own previous output.\n5.  **Converging After a Conditional Branch**: Two stages with complementary\n    `run_if` conditions leave one of them `SKIPPED`. A stage that `run_after`s\n    both must set `trigger_rule: NONE_FAILED` to run (the default `ALL_SUCCESS`\n    skips it because an upstream was skipped; `ALL_DONE` would also run it after\n    an upstream *failure*, which is only right for cleanup stages). `dry_run`\n    points this out when it sees it.\n6.  **Optional Keys with `has(...)`**: Under `strict_expressions`, read a key\n    that may be absent (e.g. an optional gate field) as\n    `!has(payload.outputs.gate.note) || payload.outputs.gate.note != 'skip'`.\n    `has()` never raises.\n7.  **Strict Expressions \\& Explicit Namespaces**: Set top-level\n    `strict_expressions: true` on new lightflows so a misspelled or\n    not-yet-populated key in `run_if` \u002F `condition` \u002F `instructions` fails the\n    stage instead of silently evaluating to `null` (guard optional keys with\n    `has(...)`). Read upstream values as `payload.outputs.\u003Cstage>.\u003Ckey>` rather\n    than the top-level mirror, which is last-writer-wins across stages; the\n    engine warns when a stage overwrites a top-level key that an expression\n    reads. `outputs` is a reserved top-level key (`--payload` may not set it).\n\n## 4. Validating Your New Workflow\n\nBefore handing off or running in production, always verify compilation, CEL-like\nexpression evaluation, and gate schemas:\n\n```bash\nlightflow dry_run --lightflow=lightflow.yaml\nlightflow render --lightflow=lightflow.yaml\nlightflow visualize --lightflow=lightflow.yaml --output=\u002Ftmp\u002Fvisualizer.html\n```\n","# Creating Lightflow Workflows (`create_lightflows`)\n\nLightflow coordinates multi-step operations between AI agents and human\noperators using an append-only state ledger (`passport.json`), safe AST-based\nCEL-like expressions, and selective subgraph re-arming.\n\n> **Note**: If you only need to execute, inspect, or resume an *existing*\n> Lightflow workflow, read the `run_lightflows` skill instead.\n\n## 1. Scaffolding a New Workflow via `create_lightflow` (3-Phase Meta-Workflow)\n\nInstead of authoring a workflow from scratch in one shot, run the built-in\n3-phase meta-workflow, which gates progress on deterministic AST signature\nchecks, `sample_payload` return-contract smoke tests, unit test execution, and\n`payload.outputs.\u003Cstage>` DAG cross-checks. The meta-workflow ships in the\nLightflow repository under `examples\u002Fcreate_lightflow\u002F`: run it from a clone of\n`github.com\u002Fgoogle\u002Flightflow`, or pass the absolute path to\n`examples\u002Fcreate_lightflow` in your clone:\n\n```bash\nlightflow start \\\n  --lightflow=\u002Fpath\u002Fto\u002Flightflow\u002Fexamples\u002Fcreate_lightflow \\\n  --log_id=scaffold_\u003Cworkflow_name>\n```\n\n(`python3 -m lightflow` is equivalent to `lightflow` whenever the console script\nis not on `PATH`.)\n\n1.  **`align_on_design`** (`operator_action`): Align with the user on stage\n    boundaries (separate read\u002Fcompute stages from external write\u002Fmutate stages),\n    `operator_action` gates, and the output keys each stage produces under\n    `payload.outputs.\u003Cstage>`.\n2.  **`implement_and_test_actions` $\\rightarrow$ `verify_actions`**: Write\n    `actions.py` + unit tests (or pass `sample_payload`); `verify_actions`\n    parses the AST, smoke-tests that every action returns a JSON-serializable\n    `(dict, str)` tuple, and runs `unittest`.\n3.  **`draft_and_explain_manifest` $\\rightarrow$ `prove_manifest_dry_run`**:\n    Write `lightflow.yaml` and explain the DAG to the user;\n    `prove_manifest_dry_run` compiles the DAG, verifies that every\n    `payload.outputs.\u003Cstage>` reference points to an upstream dependency in\n    `run_after`, runs `dry_run`, and emits `visualizer.html`.\n\n## 1b. Starting From an Existing `SKILL.md`\n\nMost procedures worth moving into Lightflow already exist as a skill: a numbered\nlist of steps an agent follows by hand. The translation is mechanical once each\nstep is classified:\n\nA step that…                                                                             | becomes                                                               | because\n---------------------------------------------------------------------------------------- | --------------------------------------------------------------------- | -------\nruns a command, calls an API, transforms data, writes a file                             | `python_action`                                                       | deterministic, testable, retryable; the agent never re-derives it\nneeds judgment but no outside decision (triage findings, draft text, pick a remediation) | `operator_action` whose `instructions` tell the agent what to produce | the gate pauses the run, the agent does the work, then resumes with the result as payload\nneeds a decision from a person (approve spend, confirm a destructive change)             | `operator_action` whose `instructions` say who must decide            | the resume stamp records who decided and from which session\n\nWorked example. A skill that reads:\n\n```\n1. Query last week's incidents from the tracker.\n2. Group them by service and draft a summary.\n3. Get the on-call lead to confirm the summary.\n4. Post it to the channel.\n```\n\nmaps to:\n\n```yaml\nname: weekly_incident_digest\nactions:\n  - {id: fetch,  python_import: digest.actions.fetch_incidents}\n  - {id: group,  python_import: digest.actions.group_by_service}\n  - {id: post,   python_import: digest.actions.post_to_channel}\nstages:\n  - name: fetch_incidents                       # step 1: mechanical\n    python_action: {action_id: fetch}\n    retry_policy: {max_attempts: 3, initial_backoff_seconds: 5}\n  - name: group_by_service                      # step 2a: mechanical\n    run_after: [fetch_incidents]\n    python_action: {action_id: group}\n  - name: draft_summary                         # step 2b: agent judgment\n    run_after: [group_by_service]\n    operator_action:\n      instructions: \"'Draft a 5-line summary of ' + string(payload.outputs.group_by_service.count) + ' incidents grouped by service; resume with summary_md.'\"\n      json_schema: '{\"type\": \"object\", \"required\": [\"summary_md\"], \"properties\": {\"summary_md\": {\"type\": \"string\"}}}'\n  - name: lead_confirms                         # step 3: a person decides\n    run_after: [draft_summary]\n    operator_action:\n      instructions: \"'Ask the on-call lead to confirm this summary before it is posted: ' + payload.outputs.draft_summary.summary_md\"\n  - name: post_to_channel                       # step 4: mechanical\n    run_after: [lead_confirms]\n    python_action: {action_id: post}\n```\n\nKeep the skill: replace its step list with `lightflow start --lightflow=\u003Cdir>`\nand the gate-handling rules from `skills\u002Frun_lightflows\u002FSKILL.md`. The judgment\nand the decision stay where they were; only the mechanical steps and the\nordering move into code. Run the `create_lightflow` meta-workflow above to\nscaffold and prove the result.\n\n## 2. Workflow Manifest Reference (`lightflow.yaml`)\n\nDefine actions and stages in `lightflow.yaml` (or `.json`). `python_import`\nresolves relative to the workflow's directory (e.g. `actions.fetch_metrics` for\n`actions.py` in the same folder) as well as package paths:\n\n```yaml\nname: release_verification_pipeline\ndescription: Fetch metrics, pause for operator review, and publish report.\n# Optional: payload keys (any depth) shown as \u003Credacted> in the visualizer,\n# status --verbose and dry-run output. passport.json keeps the real values.\nsecret_keys: [api_token]\n\nactions:\n  - id: fetch_metrics\n    python_import: actions.fetch_metrics\n  - id: publish_report\n    python_import: actions.publish_report\n  - id: cleanup_temp\n    python_import: actions.cleanup_temp\n\nstages:\n  - name: fetch\n    description: Fetch latest metrics\n    timeout_seconds: 60\n    python_action:\n      action_id: fetch_metrics\n      static_kwargs:\n        limit: 500\n    retry_policy:\n      max_attempts: 3\n      initial_backoff_seconds: 5\n      backoff_multiplier: 2.0\n    rollback_action:\n      action_id: cleanup_temp\n\n  - name: approve\n    description: Operator approval gate\n    run_after: [fetch]\n    operator_action:\n      # CEL-like expression: string literals MUST be quoted inside the string.\n      instructions: \"'Ready to publish: ' + payload.outputs.fetch.summary\"\n      json_schema:\n        type: object\n        required: [approved]\n        properties:\n          approved:\n            type: boolean\n\n  - name: publish\n    description: Publish verified report\n    run_after: [approve]\n    run_if: \"payload.outputs.approve.approved == true\"\n    python_action:\n      action_id: publish_report\n\n  - name: always_cleanup\n    run_after: [publish]\n    trigger_rule: ALL_DONE\n    python_action:\n      action_id: cleanup_temp\n```\n\n## 3. Rules for Crash-Free Python Actions\n\n```python\nfrom typing import Any\n\ndef fetch_metrics(\n    payload: dict[str, Any], **static_kwargs: Any\n) -> tuple[dict[str, Any], str]:\n  limit = static_kwargs.get(\"limit\", 100)\n  return {\"row_count\": limit, \"summary\": f\"{limit} rows\"}, \"Fetched metrics\"\n```\n\n1.  **One Side Effect per Stage**: Separate read\u002Fcompute stages from external\n    write\u002Fmutate stages. Lightflow's `Passport` never re-runs `COMPLETED` stages\n    on `resume`; make write stages safe to retry if they fail mid-execution\n    (overwrite files instead of appending, or attach a `rollback_action`).\n2.  **Consistent Output Keys (`payload.outputs.\u003Cstage_name>`)**: Every return\n    path of an action (including any `offline` test mode for external APIs) must\n    return a JSON-serializable `(dict, str)` with the **exact same dictionary\n    keys** so downstream `run_if` and `instructions` expressions never crash.\n3.  **Cross-Check `payload.outputs.\u003Cstage>` Against `run_after`**: Any stage\n    whose `run_if` or `instructions` reads `payload.outputs.\u003Cupstream>.\u003Ckey>`\n    must list `\u003Cupstream>` (directly or transitively) in `run_after`.\n4.  **Timeouts, Polling & Resilience**: Set stage-level `timeout_seconds`\n    (`0`–`86400`; `0` disables the bound) on a stage to bound a `python_action`\n    (or individual poll tick); for long-running external jobs, prefer\n    `polling_policy` (`condition`, `interval_seconds`, `timeout_seconds`,\n    `max_attempts`, optional `poll_tick_action`), which persists each tick's\n    progress message to `passport.json` so `lightflow status` shows live\n    progress. Use `retry_policy` for transient errors and `rollback_action` \u002F\n    `trigger_rule: ALL_DONE` for cleanup; keep cleanup stages idempotent, since\n    an `ALL_DONE` stage that ran on a failure path runs again after `resume`.\n\n    A polling stage in YAML (the tick action goes under `poll_tick_action`; a\n    stage may not also set `python_action`):\n\n    ```yaml\n    - name: await_job\n      run_after: [submit_job]\n      polling_policy:\n        condition: \"payload.outputs.await_job.status == 'READY'\"\n        interval_seconds: 5\n        timeout_seconds: 600        # or max_attempts: 120\n        poll_tick_action:\n          action_id: check_job      # (dict, message) per tick\n    ```\n\n    Each tick's returned dict is merged into `payload.outputs.await_job` before\n    `condition` is evaluated, so a tick can read its own previous output.\n5.  **Converging After a Conditional Branch**: Two stages with complementary\n    `run_if` conditions leave one of them `SKIPPED`. A stage that `run_after`s\n    both must set `trigger_rule: NONE_FAILED` to run (the default `ALL_SUCCESS`\n    skips it because an upstream was skipped; `ALL_DONE` would also run it after\n    an upstream *failure*, which is only right for cleanup stages). `dry_run`\n    points this out when it sees it.\n6.  **Optional Keys with `has(...)`**: Under `strict_expressions`, read a key\n    that may be absent (e.g. an optional gate field) as\n    `!has(payload.outputs.gate.note) || payload.outputs.gate.note != 'skip'`.\n    `has()` never raises.\n7.  **Strict Expressions \\& Explicit Namespaces**: Set top-level\n    `strict_expressions: true` on new lightflows so a misspelled or\n    not-yet-populated key in `run_if` \u002F `condition` \u002F `instructions` fails the\n    stage instead of silently evaluating to `null` (guard optional keys with\n    `has(...)`). Read upstream values as `payload.outputs.\u003Cstage>.\u003Ckey>` rather\n    than the top-level mirror, which is last-writer-wins across stages; the\n    engine warns when a stage overwrites a top-level key that an expression\n    reads. `outputs` is a reserved top-level key (`--payload` may not set it).\n\n## 4. Validating Your New Workflow\n\nBefore handing off or running in production, always verify compilation, CEL-like\nexpression evaluation, and gate schemas:\n\n```bash\nlightflow dry_run --lightflow=lightflow.yaml\nlightflow render --lightflow=lightflow.yaml\nlightflow visualize --lightflow=lightflow.yaml --output=\u002Ftmp\u002Fvisualizer.html\n```\n",{"name":5,"description":7},"main","e39cf06db18a3a316ef912393cb06caf1671c955","skills\u002Fcreate_lightflows",4,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-06 00:36:47",{"source":9,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add google\u002Flightflow --skill create_lightflows",{"tool":56,"command":57},"bunx","bunx skills add google\u002Flightflow --skill create_lightflows",{"tool":59,"command":60},"pnpm","pnpm dlx skills add google\u002Flightflow --skill create_lightflows","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fskills\u002Fcreate_lightflows\u002FSKILL.md",true,[],[65,79],{"skillNo":66,"name":67,"nameZh":68,"description":69,"descriptionZh":70,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":71,"categories":72,"keywords":75,"publishedAt":36},"01M6997E3YXCXSY44K36EK43K4","run_lightflows","Lightflow 工作流执行与恢复","Executes, inspects, and resumes existing Lightflow DAG workflows via CLI (`lightflow`, or the equivalent `python3 -m lightflow`). Use when asked to run, dry-run, check status, visualize, resolve an `operator_action` human-in-the-loop checkpoint (`EXIT_CODE=2`), or recover a failed Lightflow run without authoring a new workflow. Run `start` directly without pre-reading the manifest or `actions.py`.","通过 CLI（`lightflow` 或等效的 `python3 -m lightflow`）执行、检查并恢复已有的 Lightflow DAG 工作流。当用户要求运行、试运行、检查状态、可视化、处理 `operator_action` 人工干预检查点（`EXIT_CODE=2`），或恢复失败的 Lightflow 运行而无需编写新工作流时使用。直接运行 `start`，无需预先读取清单或 `actions.py`。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fskills\u002Frun_lightflows\u002FSKILL.md",[73,74],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[76,77,78,34,35],"run lightflows","cli","visualize",{"skillNo":80,"name":81,"nameZh":82,"description":83,"descriptionZh":84,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":85,"categories":86,"keywords":93,"publishedAt":36},"01M69979E0NXDV2EVM0WQ50AWF","benchmark_lightflow","Lightflow 基准测试","Runs, verifies and extends the Lightflow benchmark suites: Part I, step-adherence under operator pressure (benchmarks\u002Freliability_benchmark.py, workflow prod_hotfix_rollout, 20 matched seeds, Arm A Lightflow vs Arm B prose runbook); Part II, deterministic context-footprint measurement (benchmarks\u002Fcontext_footprint.py) across the 7 bundled example workflows.","运行、验证并扩展 Lightflow 基准测试套件：第一部分，操作员压力下的步骤遵循度（benchmarks\u002Freliability_benchmark.py、工作流 prod_hotfix_rollout、20 个匹配种子、Arm A Lightflow 对比 Arm B 散文式 runbook）；第二部分，跨 7 个内置示例工作流的确定性上下文占用测量（benchmarks\u002Fcontext_footprint.py）。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Flightflow\u002Fblob\u002Fmain\u002Fbenchmarks\u002FSKILL.md",[87,90],{"categoryNo":88,"categoryName":89,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",{"categoryNo":91,"categoryName":92,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",[94],"benchmark lightflow"]