一键导入
generate-npa-workflow
Use when inventing a new npa.workflow/v0.0.1 pipeline from the tool catalog — creative stage graphs, loops, gates, and golden YAML output.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when inventing a new npa.workflow/v0.0.1 pipeline from the tool catalog — creative stage graphs, loops, gates, and golden YAML output.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when ingesting, validating, curating, or querying production sensor data as a versioned dataset-of-record, or wiring the dataset-ingest-curate workflow.
Use when generating adversarial scenarios via RL, ranking mined failures of a policy-under-test, or wiring the adversarial-scenario-hardening workflow.
Use when navigating the Cosmos3 integration in NPA or locating upstream Cosmos3 framework files, defaults, scripts, configs, recipes, and docs.
Use when Cosmos3 setup, fetch, inference, CUDA, uv, Docker, Hugging Face, GitHub, NGC, or checkpoint staging fails in NPA or in an upstream Cosmos framework checkout.
Use when setting up Cosmos3 access through NPA, checking source or Hugging Face reachability, staging the public Cosmos3 framework and checkpoint cache, or deciding which NPA workflow to use before inference.
Use for Claude Code reviews that need robotics, simulation, GPU-routing, sim-to-real, or BDD100K pipeline domain context.
| name | generate-npa-workflow |
| description | Use when inventing a new npa.workflow/v0.0.1 pipeline from the tool catalog — creative stage graphs, loops, gates, and golden YAML output. |
Load after author-npa-workflow when the task is to design a new pipeline
(not edit an existing golden spec). Use for creative mashups, customer demos, and
SkyPilot-to-spec conversions.
toolRef values from
npa/src/npa/orchestration/npa_workflow/catalog.py. Add catalog entries before
inventing shell.metadata.description (what flows where).bucket, prefix, runtime knobs (vlm_backend, iteration counts)*_uri) built from s3://{{config.bucket}}/{{config.prefix}}/…| Pattern | YAML shape |
|---|---|
| Linear chain | next: edges |
| Fan-in deps | needs: (ordering hints only) |
| Fixed repeat | loop.max: "{{config.attr}}" |
| Dynamic exit | loop.until: promote_checkpoint |
| Runtime branch | transitions + writesDecision: true on the decision state |
config.decision_uri must set
writesDecision: true (never rely on a magic state name like decide).terminal: true.{{config.*}} and bad loop bounds fail at
validate-spec, not at plan/execute.apiVersion: npa.workflow/v0.0.1 + kind: Workflow at top> under metadata.descriptionconfig runtime keys and URI keysresources profiles referenced by states.*.resourcesdescription on every nodeinputs / outputs with uri + schema labels when artifacts cross stagestoolRef over run.shellnpa/workflows/workbench/npa-workflows/tokenfactory-cosmos-gate.yaml — Token Factory
reason → Cosmos augment → VLM critique loop with promote / re-augment gate.
# 1. Write YAML under npa/workflows/workbench/npa-workflows/
# 2. Validate structure + tokens + cycles
npa/.venv/bin/npa workbench workflow validate-spec <new.yaml> --json
# 3. Plan (use --assume-decision when transitions exist)
npa/.venv/bin/npa workbench workflow plan-spec <new.yaml> \
--run-id creative-demo --assume-decision loop_back --json
# 4. Register in tests — add filename to:
# - npa/tests/orchestration/npa_workflow/test_spec.py parametrize
# - npa/tests/smoke/test_npa_workflow_smoke.py parametrize
# - skills/index.yaml npa_workflow_yaml smoke list (optional)
npa/.venv/bin/python -m pytest npa/tests/orchestration/npa_workflow/ \
npa/tests/smoke/test_npa_workflow_smoke.py npa/tests/smoke/test_all_workflow_yamls.py -q
engine.py stages — specs invoke catalog tools only.eval, or shell for control flow.example-bucket placeholders.