gen-rust

Solid

Sync Rust implementation with Python changes (exclude UI/login) by reviewing recent changes, mapping modules, porting logic, and updating tests.

AI & Automation 27 stars 8 forks Updated today MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
48
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# gen-rust Use this skill when the user wants Rust (kagent/pythinker-core/pythinker-host) to stay logically identical to Python (pythinker_code/pythinker_core/pythinker_host), excluding UI and login/auth. This includes code and tests: Rust behavior and tests must be fully synchronized with Python changes. Note: The Rust binary is named `kagent`. User-facing CLI/output text in Rust must use `kagent` instead of `pythinker` to match the Rust command name. ## Quick workflow 1) **Build a complete change inventory** Review recent changes to understand what needs syncing: ```sh # Check staged changes git diff --cached --name-only git diff --cached -- src packages # Check recent commits git log --oneline -20 -- src packages git diff HEAD~20..HEAD -- src packages # Review CHANGELOG.md for context head -50 CHANGELOG.md ``` 2) **Classify changes** - Exclude UI and login/auth changes (Shell/Print/ACP UI, login/logout commands). - Everything else must be mirrored in Rust. - Keep a small checklist: file -> change summary -> Rust target -> status. 3) **Map Python -> Rust** Common mappings: - `src/pythinker_code/llm.py` -> `rust/kagent/src/llm.rs` - `src/pythinker_code/soul/*` -> `rust/kagent/src/soul/*` - `src/pythinker_code/tools/*` -> `rust/kagent/src/tools/*` - `src/pythinker_code/utils/*` -> `rust/kagent/src/utils/*` - `src/pythinker_code/wire/*` -> `rust/kagent/src/wire/*` - `packages/pythinker-core/*` -> `rust/pythinker-core/*` - `packages/pythinker-host/*` -> `rust/pythin...

Details

Author
Pythoughts-labs
Repository
Pythoughts-labs/pythinker-code
Created
4 months ago
Last Updated
today
Language
TypeScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

dev-rust

Use when a Rust source change must be implemented, ported, or refactored across APIs, crates, services, CLIs, async, persistence, unsafe or FFI boundaries, tests, or docs; owns source edits and validation, not audit-only, review-only, or Git-delivery work.

6 Updated 1 weeks ago
idaibin
AI & Automation Listed

setup-rust-skills

Configure a Rust repo for this skill set — lint and format configuration, and a recorded project posture (edition, MSRV, async runtime, no_std, unsafe policy) at docs/agents/rust.md.

4 Updated 1 months ago
rewrite-rs
API & Backend Listed

why-not-rust

Evaluate whether an existing project, service, subsystem, or migration RFC should adopt Rust. Compare staying, adopting an existing native tool, extracting a Rust kernel, replacing one component, and full migration through evidence-gated performance, safety, cost, compatibility, and delivery analysis. Produce a clear STAY / EXTRACT / PARTIAL / MIGRATE recommendation plus APPROVE / REJECT / DEFER–MEASURE authorization and a self-contained bilingual HTML report. Covers servers, CLIs and libraries as well as desktop applications — Electron, Tauri, Qt, AppKit and native Mac apps — including whether to keep an Electron shell and put Rust only at the OS seam. Use for questions such as “should we rewrite this in Rust?”, “would Rust make this faster?”, “should our Mac app be Rust?”, “is Tauri worth it over Electron?”, “评估迁移 Rust”, “要不要用 Rust 重写”, “桌面应用要不要换 Rust”, “why not rust”, or when reviewing a Rust migration RFC.

2 Updated 1 months ago
xiaotonng