Rust Port Code Review vs TypeScript

VerifiedSafe

Review Rust port code against original TypeScript source for fidelity, conventions, and error handling.

Sby Skills Guide Bot
DevelopmentIntermediate
8/29/2026
Claude Code
#rust#code-review#typescript-port#error-handling#git-diff

Recommended for

Automated summary

Reviews Rust changes in a compiler port by diffing them against the original TypeScript sources to check port fidelity, convention compliance, and error handling.

Strengths

  • Works from an actual Git diff (uncommitted, single commit, or range) so only touched Rust files are examined
  • Hands the analysis to a dedicated sub-agent that reads the architecture guide and the matching TypeScript files
  • Returns a numbered list of issues that is easy to work through
  • Exits cleanly with a clear message when there are no Rust changes

Limitations

  • Tightly bound to this repo: the compiler/crates/ paths, architecture guide, and compiler-review agent must all be present
  • Scoped to compiler/crates/ only and ignores the rest of the repository
  • Fixes nothing — it outputs a report only
When to use it

Use it before committing or merging Rust changes in the compiler port, to confirm they stay faithful to the TypeScript original.

When not to use it

Not useful for Rust work outside the port, or when you want automatic fixes rather than a review report.

Security analysis

Safe
Quality score82/100

The skill only instructs read-only git diff commands and delegation to a review agent; there are no destructive, network, or secret-exfiltration actions. The Agent tool could access repository files, but the intended scope is local code review.

No concerns found

How this analysis is made

Examples

Review uncommitted changes
/compiler-review
Review a commit range
/compiler-review HEAD~3..HEAD
Review a single commit
/compiler-review 4f2a9c1

name: compiler-review description: Review Rust port code for port fidelity, convention compliance, and error handling. Compares against the original TypeScript source.

Compiler Review

Review Rust compiler port code for correctness and convention compliance.

Arguments:

  • $ARGUMENTS: Optional commit ref or range (e.g., HEAD~3..HEAD, abc123). If omitted, reviews uncommitted/staged changes.

Instructions

  1. Get the diff based on arguments:

    • No arguments: git diff HEAD -- compiler/crates/ (uncommitted changes). If empty, also check git diff --cached -- compiler/crates/ (staged changes).
    • Commit ref (e.g., abc123): git diff abc123~1..abc123 -- compiler/crates/
    • Commit range (e.g., HEAD~3..HEAD): git diff HEAD~3..HEAD -- compiler/crates/
  2. If no Rust changes found, report "No Rust changes to review." and stop.

  3. Identify changed Rust files from the diff using git diff --name-only with the same ref arguments.

  4. Launch the compiler-review agent via the Agent tool, passing it the full diff content. The agent will:

    • Read the architecture guide
    • Find and read the corresponding TypeScript files
    • Review for port fidelity, convention compliance, and error handling
    • Return a numbered issue list
  5. Report the agent's findings to the user.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/rust-port-code-review-vs-typescript-mte1lirr/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/rust-port-code-review-vs-typescript-mte1lirr' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/rust-port-code-review-vs-typescript-mte1lirr/download' --output '.skill-downloads/rust-port-code-review-vs-typescript-mte1lirr/SKILL.md.part' && mv '.skill-downloads/rust-port-code-review-vs-typescript-mte1lirr/SKILL.md.part' '.skill-downloads/rust-port-code-review-vs-typescript-mte1lirr/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/rust-port-code-review-vs-typescript-mte1lirr/SKILL.md' && test -s '.skill-downloads/rust-port-code-review-vs-typescript-mte1lirr/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/compiler-review' && cp -R '.skill-downloads/rust-port-code-review-vs-typescript-mte1lirr' '.claude/skills/compiler-review'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/rust-port-code-review-vs-typescript-mte1lirr'

openskills read 'rust-port-code-review-vs-typescript-mte1lirr'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/rust-port-code-review-vs-typescript-mte1lirr/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills