Repository navigation
Add SPRI writing and issue-opening developer skills - #9348
AntoineRichard wants to merge 2 commits into
Conversation
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.
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Scope and over-engineering (2), Implementation (2), Style consistency (4). Other reviewed categories look good.
- PR description: The title and seven-file scope match the diff; replace “Both are fixed” with the required behavior, since adapted skills remain untested, and shorten the repeated rationale while preserving template sections and validation limitations.
- Design and architecture: Architecture looks good.
- Scope and over-engineering: Minimal implementation: Keep both skill directories, the example, discovery aliases, and catalog entries; extend PR-workflow and authoritative contribution guidance for routing. Delete repeated mistake rules and collapse per-section SPRI openings into one opening followed by details. No source modules were added. Replace with one smaller PR: these seven guidance/discovery files plus the authoritative rule update; validate skill discovery, examples, and template integration.
- API: API changes look good.
- Compatibility and deprecation: No breaking changes identified.
- Implementation: The duplicate-match branch proposes a comment but still leads to issue creation; explicitly end that path and require separate authorization before commenting.
- Style consistency: The new mandatory PR-description format exists only in a routing skill, contrary to its authoritative-owner rule; add the requirement to the template or contribution guide first.
- Test quality: Test quality looks good.
Minor fixes needed. Posted 8 inline findings.
Automated review; human maintainers own approval decisions.
|
|
||
| ## 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. |
There was a problem hiding this comment.
🟡 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`. |
There was a problem hiding this comment.
🟡 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.
|
|
||
| 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. |
There was a problem hiding this comment.
🟡 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.
| 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. |
There was a problem hiding this comment.
🟡 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.
| 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. |
There was a problem hiding this comment.
🟡 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.
|
|
||
| | Mistake | Fix | | ||
| | --- | --- | | ||
| | Opening with what happened, in order | Start from the shared Situation; history goes in Information, if at all. | |
There was a problem hiding this comment.
🟡 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.
|
|
||
| ## 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. |
There was a problem hiding this comment.
🟡 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.
|
|
||
| > 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. |
There was a problem hiding this comment.
🟡 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.
Confidence Score: 4/5
[Medium impact] The PR changes guidance for agent-written developer communications and issue filing. The PR appears safe to merge, with a non-blocking correction needed in the writing examples. Findings
SummaryAdds SPRI writing guidance and an issue-opening workflow, then routes PR descriptions through SPRI.
Reviews (1) · Last reviewed commit: "Route PR descriptions to SPRI and keep t..." · Reviewed by Greptile |
| > **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. |
There was a problem hiding this comment.
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!
StafaH
left a comment
There was a problem hiding this comment.
The issue-opening skill looks useful. The duplicate search, checking claims against the target, user approval before filing, and keeping private details out are all good. It just needs the duplicate path to stop.
I'm less sure about the SPRI skill for PR descriptions. Leading with the point is right, but the fixed 30-second block, the no-numbers rule and the per-section SPRI will produce padded, templated descriptions, and the PR here already shows some of that. For PRs I think a short guide works better: say what was true before and what changes, give numbers with their setup and a baseline on main, list alternatives tried, limitations and tests that fail without the change, and keep the length in line with the size of the change. Back that with a few real merged PR descriptions as examples. It would also help to re-run the final versions before merging, e.g. regenerate descriptions for a few merged PRs with and without the skill and compare them.
| 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. |
There was a problem hiding this comment.
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.
| 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. |
There was a problem hiding this comment.
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.
| 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. |
There was a problem hiding this comment.
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.
| @@ -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. | |||
There was a problem hiding this comment.
"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.
|
|
||
| ## 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. |
There was a problem hiding this comment.
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.
| @@ -0,0 +1,24 @@ | |||
| # SPRI Examples | |||
There was a problem hiding this comment.
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.
|
|
||
| 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. |
There was a problem hiding this comment.
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.
| - 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. |
There was a problem hiding this comment.
Running curl on every link feels heavy. Checking the file:line permalinks on the target seems enough.
| | **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. | |
There was a problem hiding this comment.
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.
StafaH
left a comment
There was a problem hiding this comment.
There was also a recent discussion online about ASD-STE100, it's a controlled language specification originally developed for aerospace maintenance documentation.
People have said asking agents to use 90% of that description type was also producing good results. Just a thought, don't need to take action on it.
| @@ -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. | |||
There was a problem hiding this comment.
I believe descriptions should be short since that's what the agents use to find these skills, and too much detail could confuse them
|
|
||
| | Section | Holds | | ||
| | --- | --- | | ||
| | **In 30 seconds** | The four-line SPRI, ending with the ask: a decision, a fix, a review, or "is this expected?". | |
There was a problem hiding this comment.
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
Description
In 30 seconds
skills/developer/the right home for these skills?Why agent-written text is slow to read
A reader of an issue or PR wants three things first: what is wrong, what is proposed, and what they are asked to do. Without guidance, agents put those last. Given the same raw notes, an agent wrote a manager update that opened with "What happened" and kept the ask for the final sentence; another made up a deadline to complete a ticket's ask. Both are fixed by a fixed order and a rule about missing facts, which is what the SPRI skill encodes.
What this PR adds
Two new skills and one routing line. SPRI (Situation, Problem, Resolution, Information) is Louis Timbal-Duclaux's writing method: what the reader already knows, what is wrong, the answer, then the details. The SPRI skill encodes it; the issue skill and the existing PR skill now use it.
skills/developer/spri-writing/(SKILL.md,examples.md): the four parts with a check for each, a short-message shape and a document shape (a 30-second opening of four one-sentence bullets, then sections that each open with their own short SPRI), and the rule that a missing deadline, owner or figure is stated as missing.skills/developer/issue-opening/SKILL.md: pin the target repo, search for duplicates, follow the target's templates, check every claim against the target (reusing the URL traps inisaaclab-auditing-an-issue), show the user the final text, thengh issue create. For public targets, private paths, branches and code stay out.skills/developer/pr-workflow/SKILL.md: one new step routes the PR description to the SPRI skill..agents/skills/aliases andskills/README.mdcatalog entries for both.How it was tested, and what was not
Earlier versions were tested outside this repo with subagents; the versions here were adapted to this repo's skill format and have not been re-run.
newton-physics/newtonfound no duplicate, used the repo's feature template, caught two wrong claims in the source notes by checking them onmain, and stopped before filing.uv run --no-project python tools/skills/cli.py checkreports "Validated 26 skills";pre-commit run --fileson the changed files passes;git diff --checkis clean.Type of change
Checklist
pre-commitchecks on the changed filesskills/README.mdcatalog)source/<pkg>/changelog.d/for every touched package (no source package touched)CONTRIBUTORS.mdor my name already exists there