address-review-rust

Collect Rust code review comments and assess them against coding guidelines.

5|Updated Dec 4, 2024
Ready to run
npx skills add https://github.com/mimul/axum-rusty --skill address-review-rust
๐Ÿ’ฌ Prompt for ChatGPT / Claude Chatโ–ผ
Please help me install this Agent Skill.
Skill: address-review-rust
Source: https://github.com/mimul/axum-rusty/tree/main/.claude/skills/address-review-rust
Command: npx skills add https://github.com/mimul/axum-rusty --skill address-review-rust

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

address-review-rust ์ปค๋งจ๋“œ๋กœ ์‹คํ–‰๋˜๋Š” ๋ฆฌ๋ทฐ ๋Œ€์‘ ์Šคํ‚ฌ. ์ฝ”๋“œ ๋ฆฌ๋ทฐ ๊ฒฐ๊ณผ๋ฅผ ๋ฐ›์€ ์‚ฌ๋žŒ์ด ๊ฐ ์ง€์  ์‚ฌํ•ญ์˜ ํƒ€๋‹น์„ฑ์„ ํŒ๋‹จํ•˜๊ณ  ์ˆ˜์ •์„ ์ˆ˜ํ–‰ํ•˜๋Š” ๋ฐ Claude๊ฐ€ ๋ณด์กฐํ•˜๋Š” ์Šคํ‚ฌ์ด๋‹ค. ๋‘ ๊ฐ€์ง€ ๋ชจ๋“œ๋ฅผ ์ง€์›ํ•œ๋‹ค: ๋Œ€ํ™” ๋ชจ๋“œ โ€” ์ธ์ˆ˜ ์—†์ด ์‹คํ–‰ ์‹œ ์ง์ „ ๋Œ€ํ™”์˜ ๋ฆฌ๋ทฐ ๋‚ด์šฉ์„ ์ž๋™ ์ถ”์ถœํ•˜์—ฌ ๋Œ€์‘ํ•œ๋‹ค. PR ๋ชจ๋“œ โ€” PR ๋ฒˆํ˜ธ ์ง€์ • ์‹œ gh api๋กœ ํ•ด๋‹น PR์˜ ๋ฆฌ๋ทฐยท์ธ๋ผ์ธ ์ฝ”๋ฉ˜ํŠธ๋ฅผ ๊ฐ€์ ธ์™€ ๋Œ€์‘ํ•œ๋‹ค. STEP 1~4๋ฅผ ํ†ตํ•ด ์ง€์  ๋ชฉ๋ก์„ ์ •๋ฆฌํ•˜๊ณ  ํƒ€๋‹น์„ฑ ํ‰๊ฐ€๋ฅผ ์ˆ˜ํ–‰ํ•˜๋ฉฐ, Before/After ์ œ์‹œ์™€ ์ตœ์ข… ์š”์•ฝ์„ ์ถœ๋ ฅํ•œ๋‹ค. ์ปค๋งจ๋“œ ๋ฌธ๋ฒ•์€ ๋Œ€ํ™” ๋ชจ๋“œ์™€ PR ๋ชจ๋“œ๋ฅผ ๊ตฌ๋ถ„ํ•œ๋‹ค.

Core Features & Use Cases

  • ๋ฆฌ๋ทฐ ์ฝ”๋ฉ˜ํŠธ ์ˆ˜์ง‘: ๋Œ€ํ™” ์ด๋ ฅ์ด๋‚˜ PR API๋ฅผ ํ†ตํ•ด ๋ฆฌ๋ทฐ ๋‚ด์šฉ์„ ๋ชจ์€๋‹ค.
  • ๋…๋ฆฝ ํŒ๋‹จ: coding-style.md ์›์น™๊ณผ ๊ธฐ์ˆ ์  ํƒ€๋‹น์„ฑ์„ ๋ฐ”ํƒ•์œผ๋กœ ์ง€์ ์˜ ์ ์šฉ ์—ฌ๋ถ€๋ฅผ ํŒ๋‹จํ•œ๋‹ค.
  • ์ˆ˜์ • ์ œ์•ˆ: Before/After๋ฅผ ์ œ์‹œํ•˜๊ณ  ์ธ๊ฐ„ ํ™•์ธ ํ›„์—๋งŒ ์ˆ˜์ •ํ•œ๋‹ค.
  • ์•ˆ์ „์„ฑ ํ™•์ธ: cargo test + clippy๋กœ ๋ณ€ํ™”์˜ ์•ˆ์ „์„ฑ์„ ๊ฒ€์ฆํ•œ๋‹ค.
  • ์ตœ์ข… ์š”์•ฝ: ๋Œ€์‘ ๊ฒฐ๊ณผ๋ฅผ ๋ช…ํ™•ํ•˜๊ฒŒ ์š”์•ฝํ•œ๋‹ค.

Quick Start

Run the address-review-rust command to start the review response workflow.

Frequently Asked Questions about address-review-rust

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Rust code review responses for GitHub PR comments?โ–ผ

Automate Rust code review responses by collecting reviewer comments from chat history or GitHub PR APIs and validating fixes against coding guidelines using cargo test and clippy. The Skill assesses each comment's validity, proposes Before/After changes, and outputs a summary.

What's the best way to validate Rust code fixes after addressing reviewer feedback?โ–ผ

Validate Rust code fixes by running cargo test and clippy after applying changes. The Skill confirms safety by executing these checks automatically, ensuring that modifications align with coding-style.md and security-rust.md guidelines before finalizing the review response.

Can I use cargo and clippy to assess whether PR review comments are valid?โ–ผ

Yes, cargo test and clippy are used to assess the safety and validity of changes prompted by PR review comments. The Skill loads reference guidelines like coding-style.md and security.md, evaluates technical validity, and confirms whether suggested fixes pass automated checks.

How does conversation mode differ from PR mode for collecting Rust review comments?โ–ผ

Conversation mode extracts review content from the most recent chat history without arguments, while PR mode fetches reviews and inline comments via gh api for a specified PR number. Both modes process comments through the same validation workflow.

Do I need coding-style.md and security-rust.md files to review Rust PR comments?โ–ผ

The Skill loads coding-style.md, security.md, security-rust.md, and test-style.md as reference guidelines to evaluate the validity of reviewer comments. These files provide the coding principles and security rules that inform whether each suggested fix should be applied.

Why does my Rust code review automation propose changes without applying them?โ–ผ

The Skill proposes Before/After code changes for human confirmation before applying any modifications. This safety-first approach ensures a developer reviews each suggested fix, and subsequent cargo test and clippy validation confirms the change's integrity before finalizing.