Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .agents/skills/isaaclab-opening-issues
1 change: 1 addition & 0 deletions .agents/skills/isaaclab-writing-with-spri
2 changes: 2 additions & 0 deletions skills/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Developer skills:
- `developer/test-audit/`: gate new tests and audit existing ones for low-value, implementation-coupled, or duplicated coverage.
- `developer/issue-audit/`: check one issue against current code and draft an evidence-backed resolution.
- `developer/issue-backlog-triage/`: triage multiple issues and draft closing comments.
- `developer/issue-opening/`: search for duplicates, check facts, and file an issue on Isaac Lab or an upstream project after user approval.
- `developer/spri-writing/`: structure issues, PR descriptions, and messages to other teams as Situation, Problem, Resolution, Information.
- `developer/isaaclab-updating-environment-docs/`: synchronize the environment browser with registrations and presets.

User skills:
Expand Down
66 changes: 66 additions & 0 deletions skills/developer/issue-opening/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
name: isaaclab-opening-issues
description: Drafts and files a GitHub issue on Isaac Lab or an upstream project (Isaac Sim, Newton, Warp) after a duplicate search, a fact check against the target's current code, and the user's approval of the final text. Use when asked to open, file, raise, or draft an issue, bug report, feature request, or proposal, or to report a problem upstream.

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.

I believe descriptions should be short since that's what the agents use to find these skills, and too much detail could confuse them

audience: developer
status: experimental
owners:
- isaaclab-maintainers
---

# Opening Issues

## When To Use

Use this skill to create a new issue, on `isaac-sim/IsaacLab` or on an upstream project such as `newton-physics/newton` or `NVIDIA/warp`.

For deciding whether an existing issue is still valid, or drafting the reply before closing it, use `isaaclab-auditing-an-issue`. For many issues at once, use `isaaclab-triaging-issue-backlog`.

## Core Principle

An issue is a request to a busy team. It is written with `isaaclab-writing-with-spri`, every claim in it is checked against the target's current code, and it is filed only after the user has read the final text. Filing is public: once posted, the issue is emailed to watchers and indexed even if deleted later.

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.

🟡 Warning · Style Consistency — Qualify the public-filing warning

The workflow supports private repositories, so “Filing is public” is inaccurate for those targets. Limit the public-indexing warning to public repositories.


## Workflow

1. Load `isaaclab-writing-with-spri` and follow it for the whole body.
2. Pin the target `owner/repo`. If the user did not name it and the context does not make it certain, ask. Check it with `gh repo view OWNER/REPO --json visibility,hasIssuesEnabled`.

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.

🟡 Warning · Implementation — Stop when issues are disabled

The repository check reads hasIssuesEnabled but gives no action for false. Stop before searching or filing, and ask for another target or reporting channel.

3. Search for duplicates with two or three different term sets: `gh issue list --repo OWNER/REPO --state all --search "TERMS" --limit 20`. If one matches, show it to the user and propose a comment on it instead of a new issue. Keep related issues for step 6.

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.

🟡 Warning · Implementation — End the duplicate-issue path

A matching issue calls for a proposed comment, yet the numbered workflow continues to gh issue create. End the new-issue path on a match; obtain separate approval before commenting.

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.

If a duplicate turns up, the workflow still goes on to gh issue create. That path should stop here, and commenting on the existing issue needs its own OK from the user.

4. Read the target's issue templates and contribution guide. For Isaac Lab, use the [bug, proposal, and question templates](../../../.github/ISSUE_TEMPLATE/) and the [contribution guide](../../../docs/source/refs/contributing.rst). Keep the template's title prefix and fields, put the 30-second SPRI first in its description field, and add sections the template lacks after its fields. Check what you may set with `gh api repos/OWNER/REPO --jq .permissions`; labels and issue types need triage or push rights, so propose none without them.
5. Check every version, symbol, `file:line`, and behavior against the target's current default branch or the release the issue is about. Prefer running a minimal script over reading code. For Isaac Lab links and paths, apply the URL traps in `isaaclab-auditing-an-issue`. Claims you cannot check go in a "Not verified" section. Where the user's notes disagree with the target, the draft uses the target's facts and the correction is listed for the user in step 7.
6. Write the draft to a scratch file, with these sections where they apply:

| Section | Holds |
| --- | --- |
| **In 30 seconds** | The four-line SPRI, ending with the ask: a decision, a fix, a review, or "is this expected?". |

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.

Instead of 30 seconds, should we just do "short summary" or something like that, the instructions can still use 30s just don't want to see it in the PR description everywhere

| **Reproduce** (bugs) | A minimal script that uses only the target's public API, the command to run it, versions (package, Python, OS, GPU, driver), the expected result, and the actual result with the exact error text. |
| **Why it matters** | The stake for the target team's users. |
| **Proposal** | The suggested change, its rough cost in their code, and the alternatives weighed. Omit for a plain bug report. |
| **What we need from you** | Numbered questions or decisions, and the date if there is one. |
| **Not verified** | Claims not checked against the target. |

Link related issues as `Related: #N`. The title states the defect or the ask, not the topic.
7. Show the user the target repo, title, proposed labels, full body, the corrections made to their notes, and open questions. Wait for an explicit yes; an approval of an earlier draft does not cover a later one.
8. File it with `gh issue create --repo OWNER/REPO --title "TITLE" --body-file FILE`, adding `--label` only for labels that exist and that you may set. Report the issue URL.

When the target is public and the issue comes from private or unreleased work, the draft calls that work "a downstream project" and step 7 asks the user whether to name it. The body holds no private paths, branch names, internal links, unreleased results, or private code; the reproduction is rewritten on the target's public API.

## Validation

Before step 7, confirm:

- The duplicate search ran with more than one term set, and its result is reported.
- The "In 30 seconds" block passes the checks in `isaaclab-writing-with-spri`.
- Each `file:line`, symbol, and version was checked against the target, or is listed under "Not verified".
- The reproduction imports only the target project and its documented dependencies.
- Every link resolves: `curl -s -o /dev/null -w "%{http_code}" -L "URL"` returns 200.

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.

Running curl on every link feels heavy. Checking the file:line permalinks on the target seems enough.

- `@` mentions name only real logins the user asked to notify.

## Maintenance

Review this skill when `.github/ISSUE_TEMPLATE/`, `docs/source/refs/contributing.rst`, or `skills/developer/issue-audit/SKILL.md` change, and when the `gh issue` command-line options change.

## References

- [Isaac Lab issue templates](../../../.github/ISSUE_TEMPLATE/)
- [Contribution guide](../../../docs/source/refs/contributing.rst)
- `isaaclab-writing-with-spri`
- `isaaclab-auditing-an-issue`
2 changes: 2 additions & 0 deletions skills/developer/pr-workflow/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Use when preparing the final change for a commit or PR. Follow the user's existi
3. For changed tests, apply [test audit](../test-audit/SKILL.md). For source package changes, use [changelog fragments](../changelog-fragments/SKILL.md).
4. For skill changes, inspect the affected examples and evaluation scenarios. Confirm they still match the guidance; read supporting references only when needed.
5. Inspect staged changes and prepare the authorized commit or PR with the validation results and remaining limitations.
6. Write the PR description with [SPRI writing](../spri-writing/SKILL.md): the 30-second opening goes first in the template's Description section, then the validation results and limitations from step 5.

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.

🟡 Warning · Style Consistency — Update authoritative PR guidance first

The skill's Maintenance section requires PR-workflow rules to be updated in their authoritative file first. Put the new description-format requirement in the PR template or contribution guide, then route to it here.

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.

This makes every PR get a 4-bullet "In 30 seconds" block, even a one-kernel fix. Can the format scale with the size of the change? A small fix is fine as two sentences and a table.


## Validation

Expand All @@ -40,4 +41,5 @@ Keep this skill synchronized with `AGENTS.md`, `.github/PULL_REQUEST_TEMPLATE.md
- [PR template](../../../.github/PULL_REQUEST_TEMPLATE.md)
- [Contributing guide](../../../docs/source/refs/contributing.rst)
- [Changelog skill](../changelog-fragments/SKILL.md)
- [SPRI writing skill](../spri-writing/SKILL.md)
- [Examples](examples.md)
73 changes: 73 additions & 0 deletions skills/developer/spri-writing/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
name: isaaclab-writing-with-spri
description: Structures written communication with the SPRI method (Situation, Problem, Resolution, Information). Use when writing anything another person or team will read to understand a problem or act on it, such as an issue, a PR description, a design note, a status update, or a message asking another team for a decision, or when asked for a write-up someone can follow in 30 seconds.

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.

"Anything another person or team will read" also covers commit messages, review comments and chat replies. I'd narrow the trigger to issues, PR descriptions and cross-team requests.

audience: developer
status: experimental
owners:
- isaaclab-maintainers
---

# Writing with SPRI

## When To Use

Use this skill for any text written for a reader who has to understand a problem or act on it: issues, PR descriptions, design notes, review summaries, status updates, and requests to other teams (Isaac Sim, Newton, Warp).

For filing an issue, use `isaaclab-opening-issues`, which applies this skill. For replying to an existing issue before closing it, use `isaaclab-auditing-an-issue`.

## Core Principle

SPRI is Louis Timbal-Duclaux's writing method (Situation, Problème, Résolution, Information). It orders a message the way a reader thinks: what we agree on, what is wrong, what to do about it, then the details. A busy reader gets the whole point from the first four sentences and reads on only for what they need. The problem and its answer come before any history, evidence, or detail.

## Workflow

1. Name the reader and what you need from them: a decision, a fix, a review, or only awareness.
2. Collect the source facts. Every fact, number, date, and name in the text comes from them. When a part has nothing to stand on (no deadline, no owner, no cost), write that it is missing or ask the user; do not fill it.
3. Write the four parts in order:

| Part | What it is | Test |
| --- | --- | --- |
| **Situation** | Facts the reader already knows or accepts at once, just enough for the problem to make sense. | The reader nods. Nothing they could dispute, no jargon they would need defined. |
| **Problem** | What changed, broke, or is missing, and why it matters to this reader: the stake, the cost of doing nothing, the deadline. | The reader now wants the answer. It is their problem, not only ours. |
| **Resolution** | The answer to that problem: the fix, the proposal, the decision. | One or two sentences the reader could repeat to someone else. |
| **Information** | What the reader needs to act on or trust the Resolution: the ask (who does what, by when), evidence, options and trade-offs, cost, references. | Every item serves the Resolution or the ask. The rest is cut or linked. |

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.

Most of what makes a PR description believable is the evidence, and it's all lumped into Information here. Could we add a few concrete rules: compare against main, give the setup (GPU, nworld, commits, runs), check for regressions on untouched paths, list alternatives tried with their numbers, and name tests that fail without the change plus any that were already failing on main.


The ask always appears in the opening, inside Resolution or right after it, even if Information details it again.
4. Pick the shape by length:
- **Short message** (comment, chat, email, status update): four short paragraphs or sentences, S then P then R then I, no headings. The first sentence is the Situation. When the reader needs the point before opening the message, put the Resolution or the ask in the subject line.
- **Document** (issue, PR description, design note): a title that states the Resolution or the ask; an opening called "In 30 seconds" with one bullet for each of S, P, R, I, each a single plain sentence of about 20 words, with no code names, numbers, or parentheses unless the reader cannot follow without them; then one section per part, each opening with its own two-to-four-sentence SPRI before its details. Name sections by what they carry ("Why the reset drifts", "What we need from you") rather than by the bare labels. Long evidence (tables, logs, measurements) goes in Information or behind a link.

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.

🟡 Warning · Scope Complexity — Drop per-section SPRI openings

Requiring another SPRI in every section repeats the document opening and pads short issues and PR descriptions. Keep one opening and let later sections present their details directly.

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.

For PRs the code names and numbers are usually the point. "2.6 ms -> 0.75 ms per frame" or "clip keys on RMPFlow indexed joints" is what a reviewer wants up top. I'd drop the no-names/no-numbers rule for PR descriptions.

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 mini SPRI at the start of every section is going to read as padding. You can already see it in this PR's description, where the same reasoning shows up three times. One opening paragraph and then the details seems enough.

5. When a template applies (the [PR template](../../../.github/PULL_REQUEST_TEMPLATE.md), an issue template), keep its fields and put the 30-second SPRI in its summary or description field.

See [examples](examples.md) for a short message and the opening of an issue written from the same notes.

## Validation

Before sending, check:

- Read only the first four sentences, or the "In 30 seconds" block. They state the situation, the problem, the answer, and the ask.
- Each "In 30 seconds" bullet is one sentence a reader takes in at a glance. Detail that makes a bullet long moves to the sections below.
- The first sentence is something the reader already accepts, not a headline of the problem and not the start of a chronology.
- The Problem says what it costs the reader or their users.
- Every number, date, owner, and `file:line` traces to the source facts or to a check you ran.
- Each document section opens with its own short SPRI rather than a bare list of facts.

Common mistakes:

| Mistake | Fix |
| --- | --- |
| Opening with what happened, in order | Start from the shared Situation; history goes in Information, if at all. |

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.

🟡 Warning · Scope Complexity — Remove repeated mistake rules

Most common-mistake rows restate Workflow and Validation, creating a third place to maintain the same rules. Remove the repeated rows and retain only distinct advice.

| Situation uses internal names or a claim the reader could debate | Rewrite it in the reader's terms; move anything debatable to Problem. |
| Resolution hedged or split across paragraphs | One direct answer; open questions go in Information. |
| A 30-second opening packed with names, figures, and clauses | One plain sentence per part; the details go in the sections. |
| The ask only at the end | Put it in the opening, then detail it in Information. |
| A made-up deadline, owner, or figure so the opening looks complete | State that it is missing, or ask the user. |

## Maintenance

This skill has no code dependency. Review it when `.github/PULL_REQUEST_TEMPLATE.md`, the issue templates in `.github/ISSUE_TEMPLATE/`, or the contribution guide in `docs/source/refs/contributing.rst` change the structure they require.

## References

- [Examples](examples.md)
- [PR template](../../../.github/PULL_REQUEST_TEMPLATE.md)
- Louis Timbal-Duclaux, the SPRI plan (Situation, Problème, Résolution, Information) from his work on written technical communication.
24 changes: 24 additions & 0 deletions skills/developer/spri-writing/examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# SPRI Examples

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.

I'd replace this with 2-3 real merged PR descriptions: a short bug fix, a perf change with numbers, and a feature. Those will teach more than the manager email.


Both examples are written from the same notes. The project, numbers, and dates are illustrative.

Notes: a downstream library kept its simulation clock in float32 and it drifted 0.4 s over a 3-hour run, which fired scheduled wind gusts late and desynchronized worlds reset at different times. The library fixed it locally with a float64 clock. The physics engine's `State` has no time field, so every wrapper keeps its own clock. The proposal is a per-world float64 `State.world_time`. The open question is whether the engine or the caller advances it. A decision is needed before a release branch cut on Dec 15.

## Short Message to a Manager

> Every library built on the engine keeps its own simulation clock, because the engine has none. Ours drifted 0.4 s over a 3-hour run, enough to desynchronize scheduled disturbances; we fixed it on our side, but other wrappers will hit the same thing. We propose that the engine carry one shared high-precision clock per world, a small change. **We need the engine team's decision before the Dec 15 branch cut; can you get it on their agenda?** Details and the one open question are in the issue.

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.

🟡 Warning · Style Consistency — Ground examples in their notes

The notes establish neither that other wrappers will drift nor that the engine change is small; the issue opening also assigns engine-owned resets without support. Remove these claims or add their basis to the notes.

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.

The notes don't say "a small change" or that other wrappers will hit it. That's the kind of invention the skill tells agents not to do, and agents copy examples more than they follow rules.


The first sentence is the Situation. The ask is bold and sits in the opening, not at the end.

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.

🟡 Warning · Style Consistency — Remove example narration

This sentence labels the visible Situation and bold ask without explaining a non-obvious choice. Remove it and let the example demonstrate the format.


## Opening of the Issue to the Engine Team

> **Title:** Add a per-world float64 `State.world_time`: decision needed before Dec 15
>
> **In 30 seconds**
>
> - Every library built on the engine keeps its own simulation clock, because the engine has none.
> - These clocks drift on long runs and disagree with each other, so timed events fire late.

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.

P2 Examples add unsupported claims

The notes establish float32 clock drift in one library, but both examples extend that finding to other wrappers: “other wrappers will hit the same thing” and “These clocks drift.” Their clock types and behavior were not established. This teaches agents to add unsupported claims despite the skill's source-facts rule. Keep the claim specific to the measured library, or mark the wider impact as unverified.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

> - We propose one high-precision clock per world, kept and reset by the engine.
> - We need your yes or no, and who advances the clock, before the Dec 15 branch cut.

The figures (0.4 s after 3 hours) and the field name go in the sections that follow: "Why a float32 clock drifts", "The proposal", and "What we need from you". Each opens with a two-to-four-sentence SPRI before its details.
Loading