PAIDF Auto-Labeling
Use this skill when a user wants to kick off PAIDF Auto-Labeling on their
own data, domain, or use case, or when the request matches a shipped cookbook,
stage, authoring, or migration task. This is a router: sequence the specialized
references instead of duplicating their detail.
Routing (Read First)
| Request looks like |
Read |
| New user, clean checkout, first validated run, "how do I get started" |
This file, then the matching reference below |
| Choose annotation targets / stage subset for a domain |
references/scenario-planning.md |
| Create, review, or adapt a cookbook |
references/cookbook-authoring.md |
| Write or adapt VLM/LLM prompts or question banks |
references/prompt-authoring.md |
| Migrate an existing annotation repo into this one |
references/pipeline-migration.md |
| Run the video data augmentation cookbook |
references/video-data-augmentation.md |
| Run or choose an EPAS / PAS cookbook |
references/event-and-person-attribute-search.md |
| Run event-verification reasoning |
references/event-verification-reasoning.md |
| Debug an already-integrated workflow |
references/workflow-runner-debugging.md |
| Implement or review a new stage or Dockerized service |
references/workflow-stage-integration.md |
| Configure or debug one production stage |
The matching file under references/stages/ |
Stage references: super-resolution,
detection-and-tracking,
captioning,
visual-qa,
reasoning,
person-attribute-search,
grounding-2d,
referring-expressions,
training-export.
Instructions
- Confirm the critical run inputs with the user before doing anything else, and
ask a concise question whenever one is missing or ambiguous - never guess or
silently invent a default. At minimum confirm: input data path, output path,
VLM/LLM endpoint URLs and model names, model cache path, GPU ids, and (for
reasoning-capable models) the
max_tokens cap. Restate the confirmed values
back to the user before the first execution.
- Verify the environment: repository cloned,
make targets available, the
model cache path exists, the VLM/LLM endpoints are reachable, and a GPU is
available. State any missing prerequisite as a blocker instead of assuming it.
- Run a shipped example first to confirm the stack works end to end before
customizing. Pick the closest operator pipeline - video data augmentation,
event-and-person-attribute-search, or event-verification-reasoning - and
run its committed cookbook. Use the matching operator reference.
- Plan the target scenario: define modality, domain, intended consumer, and
required annotations, and get a minimal stage subset. Use
scenario-planning.
- Adapt the closest shipped cookbook to the new domain rather than authoring
from scratch. Use cookbook-authoring.
- Author the domain prompts and question banks. Use
prompt-authoring.
- Configure the per-stage settings for the domain (detector classes or SAM3
prompts, endpoints, windowing,
max_tokens). Use the relevant stage
reference, starting with
detection-and-tracking.
- Dry-run the adapted cookbook, then execute and validate the outputs. Use
workflow-runner-debugging.
Adopting an existing external annotation or dataset-generation repository into
PAIDF instead of starting from a shipped cookbook is a migration task; use
pipeline-migration for that path.
Examples
New user, new domain: "I cloned the repo and have my own warehouse-safety video.
How do I produce auto-labels for my domain?"
Guided path:
- Confirm env (model cache, VLM/LLM endpoints, GPU), then prove the stack on a
shipped example before customizing:
make run SCRIPT=workflow-runner:main \
ARGS='--cookbook-file cookbooks/video_data_augmentation/configs/pipeline_video.yaml --container-dry-run'
- Plan the domain (scenario-planning) -> subset
detection_and_tracking -> captioning -> visual_qa -> reasoning -> training_export
(add grounding_2d for caption→boxes or referring_expressions for boxes→phrases;
use grounding-2d /
referring-expressions).
- Copy the closest cookbook to
cookbooks/warehouse_safety/configs/pipeline.yaml
and adapt inputs, detector classes/SAM3 prompts, prompts, and question banks.
- Dry-run the new cookbook, then run for real and validate outputs:
make run SCRIPT=workflow-runner:main \
ARGS='--cookbook-file cookbooks/warehouse_safety/configs/pipeline.yaml --container-dry-run'
Guardrails
- Do not guess or fabricate the critical inputs enumerated in step 1; if any is
missing or ambiguous, ask the user and confirm before executing.
- Do not customize a cookbook before a shipped example runs clean; a broken base
makes domain debugging ambiguous.
- Keep the first custom pipeline minimal - only the stages needed for the
requested annotations - and expand later.
- Verify that every selected stage's service package and image exist in the
current branch before promising an end-to-end run.
- Do not put secrets, tokens, or absolute home paths in committed cookbooks; use
placeholders such as
<model-cache> and env vars for endpoint keys.
- For reasoning-capable models (for example Gemini 3 Flash), raise
max_tokens
on the visual_qa and reasoning LLM substages to avoid the thinking-token
tax; keep the default cap for non-reasoning models.
- Do not rely on non-PAIDF pipelines, commands, or file locations. A first run
must be reproducible through
workflow-runner:main inside this repo.
1---2name: paidf-auto-labeling3description: Use when a user needs to get started with PAIDF Auto-Labeling, plan a scenario, run or debug a shipped cookbook, author prompts or cookbooks, migrate a pipeline, or configure a stage. Confirm critical inputs (data path, output path, endpoints) and ask when any are missing. This is a router: read the matching reference instead of inventing a workflow.4license: Apache-2.05---67# PAIDF Auto-Labeling89Use this skill when a user wants to kick off PAIDF Auto-Labeling on their10own data, domain, or use case, or when the request matches a shipped cookbook,11stage, authoring, or migration task. This is a router: sequence the specialized12references instead of duplicating their detail.1314## Routing (Read First)1516| Request looks like | Read |17| --- | --- |18| New user, clean checkout, first validated run, "how do I get started" | This file, then the matching reference below |19| Choose annotation targets / stage subset for a domain | [`references/scenario-planning.md`](references/scenario-planning.md) |20| Create, review, or adapt a cookbook | [`references/cookbook-authoring.md`](references/cookbook-authoring.md) |21| Write or adapt VLM/LLM prompts or question banks | [`references/prompt-authoring.md`](references/prompt-authoring.md) |22| Migrate an existing annotation repo into this one | [`references/pipeline-migration.md`](references/pipeline-migration.md) |23| Run the video data augmentation cookbook | [`references/video-data-augmentation.md`](references/video-data-augmentation.md) |24| Run or choose an EPAS / PAS cookbook | [`references/event-and-person-attribute-search.md`](references/event-and-person-attribute-search.md) |25| Run event-verification reasoning | [`references/event-verification-reasoning.md`](references/event-verification-reasoning.md) |26| Debug an already-integrated workflow | [`references/workflow-runner-debugging.md`](references/workflow-runner-debugging.md) |27| Implement or review a new stage or Dockerized service | [`references/workflow-stage-integration.md`](references/workflow-stage-integration.md) |28| Configure or debug one production stage | The matching file under [`references/stages/`](references/stages/) |2930Stage references: [super-resolution](references/stages/super-resolution.md),31[detection-and-tracking](references/stages/detection-and-tracking.md),32[captioning](references/stages/captioning.md),33[visual-qa](references/stages/visual-qa.md),34[reasoning](references/stages/reasoning.md),35[person-attribute-search](references/stages/person-attribute-search.md),36[grounding-2d](references/stages/grounding-2d.md),37[referring-expressions](references/stages/referring-expressions.md),38[training-export](references/stages/training-export.md).3940## Instructions41421. Confirm the critical run inputs with the user before doing anything else, and43 ask a concise question whenever one is missing or ambiguous - never guess or44 silently invent a default. At minimum confirm: input data path, output path,45 VLM/LLM endpoint URLs and model names, model cache path, GPU ids, and (for46 reasoning-capable models) the `max_tokens` cap. Restate the confirmed values47 back to the user before the first execution.482. Verify the environment: repository cloned, `make` targets available, the49 model cache path exists, the VLM/LLM endpoints are reachable, and a GPU is50 available. State any missing prerequisite as a blocker instead of assuming it.513. Run a shipped example first to confirm the stack works end to end before52 customizing. Pick the closest operator pipeline - video data augmentation,53 event-and-person-attribute-search, or event-verification-reasoning - and54 run its committed cookbook. Use the matching operator reference.554. Plan the target scenario: define modality, domain, intended consumer, and56 required annotations, and get a minimal stage subset. Use57 [scenario-planning](references/scenario-planning.md).585. Adapt the closest shipped cookbook to the new domain rather than authoring59 from scratch. Use [cookbook-authoring](references/cookbook-authoring.md).606. Author the domain prompts and question banks. Use61 [prompt-authoring](references/prompt-authoring.md).627. Configure the per-stage settings for the domain (detector classes or SAM363 prompts, endpoints, windowing, `max_tokens`). Use the relevant stage64 reference, starting with65 [detection-and-tracking](references/stages/detection-and-tracking.md).668. Dry-run the adapted cookbook, then execute and validate the outputs. Use67 [workflow-runner-debugging](references/workflow-runner-debugging.md).6869Adopting an existing external annotation or dataset-generation repository into70PAIDF instead of starting from a shipped cookbook is a migration task; use71[pipeline-migration](references/pipeline-migration.md) for that path.7273## Examples7475New user, new domain: "I cloned the repo and have my own warehouse-safety video.76How do I produce auto-labels for my domain?"7778Guided path:7980- Confirm env (model cache, VLM/LLM endpoints, GPU), then prove the stack on a81 shipped example before customizing:8283```bash84make run SCRIPT=workflow-runner:main \85 ARGS='--cookbook-file cookbooks/video_data_augmentation/configs/pipeline_video.yaml --container-dry-run'86```8788- Plan the domain ([scenario-planning](references/scenario-planning.md)) -> subset89 `detection_and_tracking -> captioning -> visual_qa -> reasoning -> training_export`90 (add `grounding_2d` for caption→boxes or `referring_expressions` for boxes→phrases;91 use [grounding-2d](references/stages/grounding-2d.md) /92 [referring-expressions](references/stages/referring-expressions.md)).93- Copy the closest cookbook to `cookbooks/warehouse_safety/configs/pipeline.yaml`94 and adapt inputs, detector classes/SAM3 prompts, prompts, and question banks.95- Dry-run the new cookbook, then run for real and validate outputs:9697```bash98make run SCRIPT=workflow-runner:main \99 ARGS='--cookbook-file cookbooks/warehouse_safety/configs/pipeline.yaml --container-dry-run'100```101102## Guardrails103104- Do not guess or fabricate the critical inputs enumerated in step 1; if any is105 missing or ambiguous, ask the user and confirm before executing.106- Do not customize a cookbook before a shipped example runs clean; a broken base107 makes domain debugging ambiguous.108- Keep the first custom pipeline minimal - only the stages needed for the109 requested annotations - and expand later.110- Verify that every selected stage's service package and image exist in the111 current branch before promising an end-to-end run.112- Do not put secrets, tokens, or absolute home paths in committed cookbooks; use113 placeholders such as `<model-cache>` and env vars for endpoint keys.114- For reasoning-capable models (for example Gemini 3 Flash), raise `max_tokens`115 on the `visual_qa` and `reasoning` LLM substages to avoid the thinking-token116 tax; keep the default cap for non-reasoning models.117- Do not rely on non-PAIDF pipelines, commands, or file locations. A first run118 must be reproducible through `workflow-runner:main` inside this repo.