
morganlinton/beautifulrust
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Agent Skills that teaching coding Agent to write, 검토, 그리고 포트 관용 Rust, 플러스 테스트 clippy config. Claude Code, Codex, Copilot, Cursor 및 Gemini CLI와 함께 작동합니다.
개요
3개의 표준 대리인 기술 및 lints 구성은 부호화 대리인을 쓰고, 검토, 항구, 및 강제적인 녹을 가르칩니다: - 에이전트가 Rust를 작성하거나 변경할 때마다 로드, steers는 관용, 견고한, 유지 가능한 코드를 향해. - 기존 Rust 코드, 파일, 크레이트, 또는 디프를 검토하고, 모든 cites를 발견하는 사전적인 보고서를 작성하고 수정을 보여줍니다. - 포트 C, C ++, 파이썬, 이동, 또는 같은 행동과 관용 Rust에 JavaScript, 원래 테스트를 먼저 포팅하여 두 경기를 증명할 수 있습니다. - CI의 기계 검사 규칙을 시행하는 drop-in Clippy 구성입니다. 그들은 Claude Code, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI 및 에이전트 스킬 형식을 읽는 다른 에이전트와 함께 작동합니다. 기술에서 모든 코드 예제는 안정적인 Rust에 컴파일하고, 구성의 모든 lint는 현재 clippy에 대해 확인되었습니다.
개요(AI 번역)
3개의 표준 Agent Skills와 코딩을 가르치는 lints config 작성, 검토, 포트 및 집행 관용 Rust에 에이전트:
- **
rust-best-practices** 에이전트가 쓰거나 Rust를 변경할 때마다 로드, steers it 관대, 견고한 유지 가능한 코드로. rust-review기존 Rust 코드, 파일, 크레이트, 또는 디프를 검토하고, 쓰기 모든 발견이 규칙을 깨우고 수정을 보여줍니다.rust-port포트 C, C++, Python, Go, 또는 동일하게 관용 Rust에 대한 JavaScript 행동, 원래 테스트를 먼저 포팅하여 두 경기를 증명할 수 있습니다.- **
lints/**는 기계 검사 규칙을 시행하는 drop-in clippy 구성입니다. CI 소개
Claude Code, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI 및 기타 모든 작업을 수행합니다. Agent Skills 형식을 읽는 대리인. 기술에서 모든 코드 예는 위에 컴파일 안정되어 있는 녹 및 config에 있는 각 lint는 현재 clippy에 대하여 검사되었습니다.
지도는 5개의 근원에서 증류됩니다, 각 묶음의 응축한 소화로 기술 그래서 대리인은 그것을 필요로 할 때 본래 이유를 상담할 수 있습니다:
- Google Rust 스타일 가이드
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Beautiful Rust
Three standard Agent Skills and a lints config that teach coding agents to write, review, port, and enforce idiomatic Rust:
rust-best-practicesloads whenever an agent writes or changes Rust, and steers it toward idiomatic, robust, maintainable code.rust-reviewreviews existing Rust code, a file, a crate, or a diff, and writes a prioritized report where every finding cites the rule it breaks and shows the fix.rust-portports C, C++, Python, Go, or JavaScript to idiomatic Rust with the same behavior, porting the original tests first so you can prove the two match.lints/is a drop-in clippy configuration that enforces the machine-checkable rules in CI.
They work with Claude Code, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, and any other agent that reads the Agent Skills format. Every code example in the skills compiles on stable Rust, and every lint in the config was checked against current clippy.
The guidance is distilled from five sources, with a condensed digest of each bundled in the skill so the agent can consult the original reasoning when it needs to:
- Google Rust Style Guide
- Rust API Guidelines (official rust-lang checklist)
- Effective Rust by David Drysdale
- Rust Design Patterns (idioms, patterns, anti-patterns)
- Microsoft Pragmatic Rust Guidelines
Where the sources disagree, the skill picks a side and says why.
What it changes
Asked for a small semver-parsing library, an agent without the skill produced working
code with public fields, no # Errors docs, and unwrap() in its doc examples. With the
skill, the same agent kept the fields private, documented failure modes, and wrote doc
examples users can copy safely. Condensed from those two runs:
// Without the skill
/// A semantic version. The fields are public for convenience.
pub struct Version {
pub major: u64,
pub minor: u64,
pub patch: u64,
pub pre: Vec,
pub build: Vec,
}
impl Version {
/// Parses a version string.
///
/// ```
/// let v = Version::parse("1.2.3").unwrap();
/// ```
pub fn parse(s: &str) -> Result { /* ... */ }
}
// With the skill
/// A semantic version. Equality, hashing, and ordering ignore build metadata.
pub struct Version {
major: u64,
minor: u64,
patch: u64,
pre: Vec,
build: Vec,
}
impl Version {
추천 도구
다른 키워드를 입력하거나 필터를 제거해 보세요.
설치
npx skillfish add morganlinton/beautifulrust