Skip to content

Add Litmus-proposed isaac-autodata-generate-datasets skill tree - #55

Merged
hguillen merged 1 commit into
mainfrom
hguillen/litmus-skill-draft
Aug 14, 2026
Merged

hguillen merged 1 commit into
mainfrom
hguillen/litmus-skill-draft

Conversation

@hguillen

@hguillen hguillen commented Aug 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Adds the skills/isaac-autodata-generate-datasets/ skill tree proposed by Litmus, including workflow guidance, references, evals, example YAML, and test/benchmark documentation.
  • Uses the base Isaac Lab environment Isaac-Stack-Cube-Franka-IK-Rel-v0 for Franka MimicGen generation and replay; the skill has no isaaclab_mimic environment-registration dependency.
  • Documents the current SkillGen scope precisely: single-arm Franka only, with a cuRobo planner profile. Bimanual collision-aware planning is not available in this release.

Details

The generation helper invokes scripts/generate_dataset.py directly with the verified container interpreter, verifies the pinned IsaacLab-Arena submodule, and strictly validates completed datasets. The replay helper delegates directly to Isaac Lab's replay tool for the base Franka environment.

Validation

  • Ran a MimicGen Franka cube-stacking smoke test in the default Docker container on an NVIDIA RTX 3090.
  • Strict validation passed for datasets/generated_dataset_franka_base_env_smoke.hdf5: five successful episodes from ten requested trials, environment Isaac-Stack-Cube-Franka-IK-Rel-v0, and expected simulation arguments.
  • Launched the replay helper successfully: Isaac Sim started, loaded FrankaCubeStackEnvCfg, and created the base Franka environment.
  • Checked the helpers with bash -n, verified evals/evals.json, and ran pre-commit run --all-files before each commit. Pre-commit could not start because the container's bundled Python lacks PyYAML (ModuleNotFoundError: yaml); no environment mutation was performed.

Evaluation scope

The documented with-skill/without-skill benchmark remains intentionally pending; no comparative metrics are claimed until both runs are measured.

@coderabbitai

coderabbitai Bot commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Added the Isaac AutoData dataset-generation skill with workflow guidance, YAML configuration, generation and replay scripts, validation instructions, evaluation cases, and benchmark documentation.

Changes

Isaac AutoData dataset generation

Layer / File(s) Summary
Workflow and configuration contracts
skills/isaac-autodata-generate-datasets/SKILL.md, skills/isaac-autodata-generate-datasets/references/*, skills/isaac-autodata-generate-datasets/assets/*
Defines activation rules, prerequisites, algorithm selection, CLI usage, YAML structure, and the Franka cube-stacking configuration.
Generation, annotation, and replay execution
skills/isaac-autodata-generate-datasets/scripts/*, skills/isaac-autodata-generate-datasets/SKILL.md, AGENTS.md
Adds generation orchestration, deferred MimicGen registration, strict HDF5 validation, annotation guidance, replay support, and read-only submodule guardrails.
Testing and evaluation coverage
skills/isaac-autodata-generate-datasets/TESTING.md, skills/isaac-autodata-generate-datasets/BENCHMARK.md, skills/isaac-autodata-generate-datasets/evals/evals.json
Documents acceptance and GPU-free tests, benchmark procedures, and positive and negative evaluation cases.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

Suggested reviewers: njawale42, peterd-nv

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant run_generation.sh
  participant run_mimicgen_generation.py
  participant generate_dataset.py
  participant validate_dataset.py
  User->>run_generation.sh: Provide generation options
  run_generation.sh->>run_mimicgen_generation.py: Select MimicGen launcher
  run_mimicgen_generation.py->>generate_dataset.py: Register environments on demand and run generation
  generate_dataset.py-->>run_generation.sh: Produce HDF5 output
  run_generation.sh->>validate_dataset.py: Validate output when requested
  validate_dataset.py-->>User: Return validation status
Loading
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the addition of the Isaac AutoData dataset-generation skill tree.
Description check ✅ Passed The description explains the change, rationale, implementation details, impact, validation, and pending benchmark scope.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch hguillen/litmus-skill-draft

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@skills/isaac-autodata-generate-datasets/scripts/run_generation.sh`:
- Around line 5-17: Update the usage references for run_generation.sh in
SKILL.md, TESTING.md, and evals/evals.json to use
skills/isaac-autodata-generate-datasets/scripts/run_generation.sh from the
repository root, matching the helper’s actual location.
- Line 1: Mark the run_generation.sh script as executable by changing its file
mode to 100755, stage the mode-only change, and run pre-commit run --all-files
inside the Docker container to verify the executable-shebang check passes.
- Around line 83-85: Update the validation flow in run_generation.sh so that
when VALIDATE is enabled, a missing OUTPUT is rejected instead of silently
skipping validation; alternatively resolve the generator’s default output path
and validate it. Preserve the existing behavior when --no-validate disables
validation, and keep the strict validate_dataset.py invocation for a resolved
output.

In `@skills/isaac-autodata-generate-datasets/SKILL.md`:
- Around line 34-36: Update the environment description for Isaac AutoData to
remove the optional conda environment reference. State that all Python and shell
commands run exclusively inside the Docker container started with
./docker/run_docker.sh, while preserving the existing Linux, NVIDIA GPU, and
mounted repository details.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: ea764ee6-cbae-481d-8896-c417156cdc46

📥 Commits

Reviewing files that changed from the base of the PR and between 056ea61 and 7ea5dbb.

📒 Files selected for processing (9)
  • skills/isaac-autodata-generate-datasets/BENCHMARK.md
  • skills/isaac-autodata-generate-datasets/SKILL.md
  • skills/isaac-autodata-generate-datasets/TESTING.md
  • skills/isaac-autodata-generate-datasets/assets/franka_cube_stack.example.yaml
  • skills/isaac-autodata-generate-datasets/evals/evals.json
  • skills/isaac-autodata-generate-datasets/references/algorithm-selection.md
  • skills/isaac-autodata-generate-datasets/references/cli-reference.md
  • skills/isaac-autodata-generate-datasets/references/yaml-config-guide.md
  • skills/isaac-autodata-generate-datasets/scripts/run_generation.sh

@steple

steple commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Skill review: isaac-autodata-generate-datasets

Overall the skill is well-structured and accurately grounded in the real CLI/YAML/container layout — the example asset mirrors the shipped franka_cube_stack.yaml, the algorithm/container guidance matches generate_dataset.py and run_docker.sh -c, and the validate_dataset.py / annotate_demos.py flag descriptions check out. A few issues worth fixing:

  1. references/cli-reference.md — --task_descriptor and --embodiment are marked Required = "no", but both are required=True in scripts/generate_dataset.py. An agent following the reference could omit them and hit an argparse error. The SKILL.md quickstart includes them correctly, so only the reference table needs correcting.

  2. references/cli-reference.md — --output_file default is listed as "—" (none), but the script defines default="./datasets/output_dataset.hdf5". Minor, but inaccurate.

  3. BENCHMARK.md / TESTING.md are entirely placeholder — every result cell is <pending — run on hardware> and the skill is explicitly testable: no. Structurally complete but empirically unvalidated. The evals.json trigger-routing cases are gradeable doc-only, but no benchmark numbers exist yet. Worth flagging so reviewers know this is proposal-only.

  4. scripts/run_generation.sh usage() reads lines 2–25 of itself (sed -n '2,25p' "$0"), while the usage comment block is lines 3–13. --help works but prints extra blank lines. Cosmetic.

Concrete ask: fix the Required column for --task_descriptor / --embodiment and the --output_file default in references/cli-reference.md. The rest are non-blocking.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@skills/isaac-autodata-generate-datasets/scripts/replay_franka_mimicgen.sh`:
- Around line 21-25: Update the replay command in replay_franka_mimicgen.sh to
preflight the /isaac-sim/python.sh interpreter before exec, and report the
required ./docker/run_docker.sh container command when it is unavailable. Only
execute the existing replay flow after this check succeeds, preserving its
current arguments and behavior.

In `@skills/isaac-autodata-generate-datasets/scripts/run_generation.sh`:
- Around line 12-20: Update the help-output extraction in the run_generation
script to stop at the final usage-comment line, so --help prints only the
documented usage block and does not include trailing blank lines. Preserve the
existing required-option and --no-validate documentation within that block.
- Around line 65-70: Update the submodule_status validation in run_generation.sh
to reject every state other than a clean, initialized submodule at the pinned
commit, including +, -, U, and empty or command-failure results. Keep the
existing error message and exit behavior, and ensure the check validates the
status returned for submodules/IsaacLab-Arena rather than suppressing invalid
states.

In `@skills/isaac-autodata-generate-datasets/TESTING.md`:
- Around line 3-4: Update the acceptance-status statements in TESTING.md to
explicitly mark GPU/Franka MimicGen live smoke testing and benchmark
measurements as pending, unless measured results and model versions are added.
Do not describe the skill as release-ready while those hardware acceptance
checks remain incomplete.
- Around line 40-42: Update the live-test instructions in TESTING.md to show a
complete run_generation.sh invocation for pos-mimicgen-franka, including
required --alg, --task, --embodiment, and --input arguments plus the output path
used by the subsequent validate_dataset.py command.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: a1f27567-7fee-4f7b-9111-1270f0eee460

📥 Commits

Reviewing files that changed from the base of the PR and between 7ea5dbb and 3657454.

📒 Files selected for processing (8)
  • scripts/generate_dataset.py
  • skills/isaac-autodata-generate-datasets/SKILL.md
  • skills/isaac-autodata-generate-datasets/TESTING.md
  • skills/isaac-autodata-generate-datasets/evals/evals.json
  • skills/isaac-autodata-generate-datasets/references/algorithm-selection.md
  • skills/isaac-autodata-generate-datasets/references/cli-reference.md
  • skills/isaac-autodata-generate-datasets/scripts/replay_franka_mimicgen.sh
  • skills/isaac-autodata-generate-datasets/scripts/run_generation.sh

@steple

steple commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

@steple Addressed the review items: the CLI reference now marks --task_descriptor and --embodiment required and documents the output default; TESTING.md records the measured RTX 3090 10-episode acceptance run and explicitly leaves comparative benchmark metrics pending.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
skills/isaac-autodata-generate-datasets/evals/evals.json (1)

47-56: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Make the YAML-edit case idempotent.

skills/isaac-autodata-generate-datasets/assets/franka_cube_stack.example.yaml already contains the requested “Stack green cube on top of red cube” final subtask with no subtask_term_signal and a [0, 0] offset. The current ground truth and expected behavior require appending another entry, which can duplicate the subtask and violate the final-subtask convention.

Update the case to add the subtask only when it is absent. Otherwise, preserve the existing single final subtask.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@skills/isaac-autodata-generate-datasets/evals/evals.json` around lines 47 -
56, Update the pos-yaml-edit case in evals.json so the ground_truth and
expected_behavior require an idempotent edit: inspect
franka_cube_stack.example.yaml and append the green-on-red subtask only when
absent. Preserve a single existing final subtask with no subtask_term_signal and
a [0, 0] offset, avoiding duplicate entries.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@skills/isaac-autodata-generate-datasets/TESTING.md`:
- Around line 53-64: Add a blank line immediately before and after the fenced
command block in the pos-mimicgen-franka instructions under TESTING.md, without
changing the command content.

---

Outside diff comments:
In `@skills/isaac-autodata-generate-datasets/evals/evals.json`:
- Around line 47-56: Update the pos-yaml-edit case in evals.json so the
ground_truth and expected_behavior require an idempotent edit: inspect
franka_cube_stack.example.yaml and append the green-on-red subtask only when
absent. Preserve a single existing final subtask with no subtask_term_signal and
a [0, 0] offset, avoiding duplicate entries.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 595cc0a4-f832-4438-9e6d-935064e24523

📥 Commits

Reviewing files that changed from the base of the PR and between 3657454 and 30404bd.

📒 Files selected for processing (5)
  • skills/isaac-autodata-generate-datasets/SKILL.md
  • skills/isaac-autodata-generate-datasets/TESTING.md
  • skills/isaac-autodata-generate-datasets/evals/evals.json
  • skills/isaac-autodata-generate-datasets/scripts/replay_franka_mimicgen.sh
  • skills/isaac-autodata-generate-datasets/scripts/run_generation.sh

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@AGENTS.md`:
- Line 40: Update the submodule guidance in AGENTS.md to use the compound words
“git-related” and “read-only,” and replace “don't commit nor push” with “do not
commit or push” while preserving the existing restrictions.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: ca138d20-5ccc-40db-9a5d-474f8a3645f2

📥 Commits

Reviewing files that changed from the base of the PR and between 30404bd and fdd6bec.

📒 Files selected for processing (5)
  • AGENTS.md
  • skills/isaac-autodata-generate-datasets/SKILL.md
  • skills/isaac-autodata-generate-datasets/TESTING.md
  • skills/isaac-autodata-generate-datasets/scripts/run_generation.sh
  • skills/isaac-autodata-generate-datasets/scripts/run_mimicgen_generation.py

Comment thread AGENTS.md Resolved
@steple

steple commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Addressed the outside-diff eval finding: pos-yaml-edit now checks whether the green-on-red final subtask already exists, adds it only when absent, and preserves the single existing final subtask otherwise.

@peterd-NV peterd-NV left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall format looks good, thanks for adding.

The main thing that needs changing is the removal of the deps on isaaclab_mimic and envs. AutoData does not use any Mimic envs from lab and should be using the base, non-Mimic versions. See example here of the env used for data generation: https://vigilant-tribble-eevqwv3.pages.github.io/main/pages/workflows/franka_cube_stack_mimicgen/step_3_generate_dataset.html#full-scale-generation

@njawale42

Copy link
Copy Markdown
Collaborator

All my comments were addressed, lgtm now

@peterd-NV peterd-NV left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few stale licence headers but other lgtm

@hguillen
hguillen force-pushed the hguillen/litmus-skill-draft branch from 775b7bc to e6767ec Compare August 12, 2026 22:50
@hguillen
hguillen merged commit 52a979e into main Aug 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants