From a057e255311bff72c55c119bdfb3c597c338747b Mon Sep 17 00:00:00 2001 From: AntoineRichard Date: Wed, 2 Dec 2026 15:24:02 +0100 Subject: [PATCH 1/2] Add SPRI writing and issue-opening developer skills Add isaaclab-writing-with-spri, which structures issues, PR descriptions and messages to other teams as Situation, Problem, Resolution, Information with a 30-second opening, and isaaclab-opening-issues, which uses it to file issues on Isaac Lab or upstream projects after a duplicate search, a fact check against the target, and the user's approval of the final text. --- .agents/skills/isaaclab-opening-issues | 1 + .agents/skills/isaaclab-writing-with-spri | 1 + skills/README.md | 2 + skills/developer/issue-opening/SKILL.md | 66 +++++++++++++++++++++ skills/developer/spri-writing/SKILL.md | 71 +++++++++++++++++++++++ skills/developer/spri-writing/examples.md | 24 ++++++++ 6 files changed, 165 insertions(+) create mode 120000 .agents/skills/isaaclab-opening-issues create mode 120000 .agents/skills/isaaclab-writing-with-spri create mode 100644 skills/developer/issue-opening/SKILL.md create mode 100644 skills/developer/spri-writing/SKILL.md create mode 100644 skills/developer/spri-writing/examples.md diff --git a/.agents/skills/isaaclab-opening-issues b/.agents/skills/isaaclab-opening-issues new file mode 120000 index 000000000000..a48d295858e8 --- /dev/null +++ b/.agents/skills/isaaclab-opening-issues @@ -0,0 +1 @@ +../../skills/developer/issue-opening \ No newline at end of file diff --git a/.agents/skills/isaaclab-writing-with-spri b/.agents/skills/isaaclab-writing-with-spri new file mode 120000 index 000000000000..aa5c474bcf11 --- /dev/null +++ b/.agents/skills/isaaclab-writing-with-spri @@ -0,0 +1 @@ +../../skills/developer/spri-writing \ No newline at end of file diff --git a/skills/README.md b/skills/README.md index 1d5be2d55d6c..e3d1104a57eb 100644 --- a/skills/README.md +++ b/skills/README.md @@ -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: diff --git a/skills/developer/issue-opening/SKILL.md b/skills/developer/issue-opening/SKILL.md new file mode 100644 index 000000000000..e8afe0c487c1 --- /dev/null +++ b/skills/developer/issue-opening/SKILL.md @@ -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. +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. + +## 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`. +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. +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?". | + | **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. +- `@` 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` diff --git a/skills/developer/spri-writing/SKILL.md b/skills/developer/spri-writing/SKILL.md new file mode 100644 index 000000000000..9320f198dee7 --- /dev/null +++ b/skills/developer/spri-writing/SKILL.md @@ -0,0 +1,71 @@ +--- +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. +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. | + + 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 short paragraph or bullet for each of S, P, R, I; 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. +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. +- 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. | +| 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. | +| 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. diff --git a/skills/developer/spri-writing/examples.md b/skills/developer/spri-writing/examples.md new file mode 100644 index 000000000000..b32a282c7855 --- /dev/null +++ b/skills/developer/spri-writing/examples.md @@ -0,0 +1,24 @@ +# SPRI Examples + +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. + +The first sentence is the Situation. The ask is bold and sits in the opening, not at the end. + +## 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** +> +> - The engine's `State` has no time field, so each library built on it keeps its own clock and resets it its own way. +> - A float32 clock drifts on long runs: one downstream library was 0.4 s off after 3 hours, which fired scheduled disturbances late and desynchronized worlds reset at different times. Each wrapper fixing this alone gives several clocks that disagree. +> - Proposal: `State.world_time`, float64, one value per world, reset by the engine with the world. One open question: does the engine or the caller advance it? +> - We need a yes or no, and engine or caller, before the Dec 15 branch cut. We can send the minimal PR. + +The sections that follow ("Why a float32 clock drifts", "The proposal", "What we need from you") each open with a two-to-four-sentence SPRI before their details. From 9faab2cf276a63cdda01d72466b186848c05acf2 Mon Sep 17 00:00:00 2001 From: AntoineRichard Date: Wed, 2 Dec 2026 15:40:38 +0100 Subject: [PATCH 2/2] Route PR descriptions to SPRI and keep the 30-second opening short --- skills/developer/pr-workflow/SKILL.md | 2 ++ skills/developer/spri-writing/SKILL.md | 4 +++- skills/developer/spri-writing/examples.md | 10 +++++----- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/skills/developer/pr-workflow/SKILL.md b/skills/developer/pr-workflow/SKILL.md index 392885a61ef9..8ff0c8960d6d 100644 --- a/skills/developer/pr-workflow/SKILL.md +++ b/skills/developer/pr-workflow/SKILL.md @@ -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. ## Validation @@ -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) diff --git a/skills/developer/spri-writing/SKILL.md b/skills/developer/spri-writing/SKILL.md index 9320f198dee7..b40d51830770 100644 --- a/skills/developer/spri-writing/SKILL.md +++ b/skills/developer/spri-writing/SKILL.md @@ -35,7 +35,7 @@ SPRI is Louis Timbal-Duclaux's writing method (Situation, Problème, Résolution 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 short paragraph or bullet for each of S, P, R, I; 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. + - **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. 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. @@ -45,6 +45,7 @@ See [examples](examples.md) for a short message and the opening of an issue writ 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. @@ -57,6 +58,7 @@ Common mistakes: | Opening with what happened, in order | Start from the shared Situation; history goes in Information, if at all. | | 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. | diff --git a/skills/developer/spri-writing/examples.md b/skills/developer/spri-writing/examples.md index b32a282c7855..bd208689dda0 100644 --- a/skills/developer/spri-writing/examples.md +++ b/skills/developer/spri-writing/examples.md @@ -16,9 +16,9 @@ The first sentence is the Situation. The ask is bold and sits in the opening, no > > **In 30 seconds** > -> - The engine's `State` has no time field, so each library built on it keeps its own clock and resets it its own way. -> - A float32 clock drifts on long runs: one downstream library was 0.4 s off after 3 hours, which fired scheduled disturbances late and desynchronized worlds reset at different times. Each wrapper fixing this alone gives several clocks that disagree. -> - Proposal: `State.world_time`, float64, one value per world, reset by the engine with the world. One open question: does the engine or the caller advance it? -> - We need a yes or no, and engine or caller, before the Dec 15 branch cut. We can send the minimal PR. +> - 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. +> - 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 sections that follow ("Why a float32 clock drifts", "The proposal", "What we need from you") each open with a two-to-four-sentence SPRI before their details. +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.