rustwright: Command for GitHub Copilot

.github/prompts/code-review.md

code-review is a command for GitHub Copilot from Skyvern-AI/rustwright. It costs 0 tokens per session (734 once invoked), scanned A, original, MIT.

Please review this pull request for the Rustwright repository and give concise, actionable feedback.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt. Also seen: mentions CLAUDE.md.

This is Skyvern-AI/rustwright's own configuration. It tells GitHub Copilot how to work on rustwright itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything rustwright configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Skyvern-AI/rustwright. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Skyvern-AI/rustwright/main/.github/prompts/code-review.md
Clone the repo
git clone --depth 1 https://github.com/Skyvern-AI/rustwright

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/skyvern-ai/rustwright/code-review.svg)](https://agentmods.dev/commands/skyvern-ai/rustwright/code-review)
Your own site
<a href="https://agentmods.dev/commands/skyvern-ai/rustwright/code-review"><img src="https://agentmods.dev/badge/commands/skyvern-ai/rustwright/code-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 734 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00734
Opus 5 $0.00000 $0.00367
Sonnet 5 $0.00000 $0.00147
Haiku 4.5 $0.00000 $0.00073

Measured today against content hash 2f3f2cc67e26, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

code-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/prompts/code-review.md · 57 lines

What it actually says

Please review this pull request for the Rustwright repository and give concise, actionable feedback.

Rustwright is a Rust engine (PyO3 for Python, napi-rs for Node) that speaks raw Chrome DevTools Protocol and exposes a Playwright-compatible API. It is alpha, Chromium-only, MIT-licensed. The Rust core lives in src/lib.rs; the Python API in python/rustwright/; the Node bindings in node/.

Review for:

  • Correctness & bugs — logic errors, unhandled edge cases, error handling. Pay special attention to:
    • the FFI boundaries — PyO3 Bound<'py, T> usage and GIL handling (py.detach around blocking work), and napi async/threadsafe-function usage;
    • the CDP layer — session/frame routing (OOPIF), the tokio-tungstenite WebSocket transport, and message dispatch/correlation.
  • Memory & concurrency safety — any new unsafe; unwrap()/expect()/panic! on fallible paths that could crash a user's process across the FFI boundary; races or deadlocks in the async CDP client; holding the GIL across I/O.
  • Security (this is browser-automation software) — untrusted-input handling, JS/CDP injection, and anything that silently changes the trusted-input-by-default behavior. Rustwright must not overclaim on anti-detection: flag any change that adds "undetectable" / "bypass Cloudflare" / "stealth" style claims, or that weakens the honest signal-hygiene framing (it currently passes 3/4 public fingerprint targets and says so plainly).
  • API compatibility — the Python/Node surface mirrors Playwright. Flag divergence from Playwright's shape/behavior that isn't justified, and missing parity coverage.
  • Performance — avoidable allocations/copies on the per-CDP-message hot path; blocking calls inside async paths.
  • Tests — is the change covered by the pytest suite (tests/)? Does it warrant a parity test against real Playwright?
  • Honesty of claims — if the PR touches README/docs/benchmarks, verify the claims match what the code and tests actually support (no inflated numbers, no unverified platform/behavior claims, MSRV kept accurate).

Use CONTRIBUTING.md (and CLAUDE.md if present) for conventions. Be constructive.

Keep the review concise and scannable:

  • Start with a 1–2 sentence overall assessment.
  • Group feedback by severity using GitHub <details>/<summary> collapsible sections.
  • Expand 🔴 Critical by default; keep 🟡 Suggestions and 📝 Minor collapsed.
  • If there are no issues, post a brief LGTM (with the marker).

Format:

<!-- claude-code-review -->
## Summary
Brief overall assessment.

<details open>
<summary>🔴 Critical Issues (X)</summary>

- ...

</details>

<details>
<summary>🟡 Suggestions (X)</summary>

- ...

</details>

<details>
<summary>📝 Minor / Style (X)</summary>

- ...

</details>

IMPORTANT: Start your comment with the exact marker <!-- claude-code-review --> on the first line — this lets a later commit replace the previous review instead of stacking comments.

Use gh pr comment (via your Bash tool) to post the review as a single comment on the PR.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 57 lines · 0 tokens per session scan A 2f3f2cc67e26

Subscribe to this mod's changes

code-review is a command published in the GitHub repository Skyvern-AI/rustwright (874 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 734 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.