Skip to content

feat(skills): add the oxc-playground-url skill - #29223

Merged
graphite-app[bot] merged 1 commit into
mainfrom
transformer-pr-description-guide
Nov 11, 2026
Merged

graphite-app[bot] merged 1 commit into
mainfrom
transformer-pr-description-guide

Conversation

@Dunqing

@Dunqing Dunqing commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Building or checking a playground.oxc.rs share link is manual today: the URL packs the source, tab, options, lint rules, and formatter panels into query parameters. This adds a repository skill that does both directions so a reproduction can be shared and inspected consistently.

The encoder re-parses its own output before printing, so a malformed link is rejected instead of shared. The decoder preserves the state and writes the source only when asked, into a directory that must not exist yet. Both scripts resolve paths relative to the skill, so they work from any checkout.

Verified with npx oxfmt --check, Oxlint, typos, and an encode/decode round-trip of a transformer example. The encoder rejects malformed option JSON and the decoder reproduces the source byte for byte.

AI assistance was used to implement and verify this change.

@Dunqing
Dunqing force-pushed the transformer-pr-description-guide branch from 0a88aa0 to fb3e86d Compare November 10, 2026 14:10
@Dunqing Dunqing changed the title docs(contributing): require reproductions in fix PR descriptions feat(skills): add the oxc-playground-url skill Nov 10, 2026
@Dunqing
Dunqing marked this pull request as ready for review November 10, 2026 14:14
@Dunqing
Dunqing requested a review from camc314 November 10, 2026 14:14
@Dunqing Dunqing added the 0-merge Merge with Graphite Merge Queue label Nov 11, 2026

Dunqing commented Nov 11, 2026 •

Copy link
Copy Markdown
Member Author

Merge activity

Building or checking a playground.oxc.rs share link is manual today: the URL packs the source, tab, options, lint rules, and formatter panels into query parameters. This adds a repository skill that does both directions so a reproduction can be shared and inspected consistently.

The encoder re-parses its own output before printing, so a malformed link is rejected instead of shared. The decoder preserves the state and writes the source only when asked, into a directory that must not exist yet. Both scripts resolve paths relative to the skill, so they work from any checkout.

Verified with `npx oxfmt --check`, Oxlint, `typos`, and an encode/decode round-trip of a transformer example. The encoder rejects malformed option JSON and the decoder reproduces the source byte for byte.

AI assistance was used to implement and verify this change.
@graphite-app
graphite-app Bot force-pushed the transformer-pr-description-guide branch from fb3e86d to 3862ce2 Compare November 11, 2026 00:38
@graphite-app
graphite-app Bot merged commit 3862ce2 into main Nov 11, 2026
29 checks passed
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Nov 11, 2026
@graphite-app
graphite-app Bot deleted the transformer-pr-description-guide branch November 11, 2026 00:42
graphite-app Bot pushed a commit that referenced this pull request Nov 11, 2026
Transformer fix PRs can explain the mechanism without showing the failure, which leaves reviewers to rebuild the reproducer and trust claimed output. This adds crate guidance for fix descriptions: lead with the problem, then include an Input, Before output, and After output example, followed by the observable runtime difference when the output alone does not show it.

The guide documents how to capture the example with the transformer command at the parent commit and at the change, how to use an `exec.js` conformance assertion with `--exec` when the printed output looks correct but behavior differs, and how to include a playground link with the `oxc-playground-url` skill from #29223 while noting that playground.oxc.rs runs the released version. Refactor descriptions must state what stays identical and how both commits were compared.

Verified with `npx oxfmt --check`, `typos`, and `git diff --check`. The documented transformer command prints the `Original:` and `Transformed:` blocks for the parameter logical-assignment example.

AI assistance was used to implement and verify this change.
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.

2 participants