agentleFS
DongDuong2001DongDuong2001/pudo-code-system/skills/backend/rust/SKILL.md

rust

Skill5 starsChanged 6 months agoMITView on GitHub

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use python.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • rogue-dev-studioSkill

    python

    Python 3.13 with uv package manager via mise. Use when the project needs this capability or the user / team manifest asks for it. Use for specialized `python` work when listed in TEAM.yaml or explicitly requested.

    Also in 5 projects that use this

The file

We found no rules to list in this file: it reads as prose or reference rather than instructions.

Files
SKILL.md

Rust (Backend) PUDO Checklist

1. PLAN (Architecture & Strategy)

  • Framework Selection: Choose web framework (Axum, Actix-web) based on performance vs. ecosystem needs.
  • Crate Ecosystem: Plan dependencies (e.g., tokio for async runtime, serde for serialization, sqlx or sea-query for DB).
  • Error Handling: Define a centralized application error type using crates like thiserror or anyhow.
  • State Management: Plan how application state (DB pools, config) will be shared across thread workers.

2. UNDERSTAND (Context & Auditing)

  • Borrow Checker & Lifetimes: Audit data structures to minimize clones; rely on references where safe across async boundaries.
  • Async Context: Ensure types crossing .await points implement Send and Sync.
  • Safety: Review unsafe blocks if any exist. Justify their existence.

3. DEVELOP (Implementation)

  • Structs & Traits: Define core domain models. Use #[derive(Serialize, Deserialize)] for data transfer objects.
  • Routes: Implement handlers with strongly typed extractors (Json, Path, Query).
  • Database: Use compile-time checked SQL queries (e.g., sqlx::query!) for type safety.
  • Testing: Write inline unit tests (#[test]) and asynchronous integration tests (#[tokio::test]).

4. OPTIMIZE (Performance & Review)

  • Binary Size & Speed: Review Cargo.toml profiles (e.g., strictly opt-level = 3, LTO enabled for release).
  • Memory Allocation: Profile long-lived objects. Consider Arc for shared read-only state instead of cloning.
  • Compilation Time: Use cargo clippy and cargo fmt to enforce idiomatic code and avoid macro bloat where unnecessary.
  • Logging: Configure structured async logging using tracing and tracing-subscriber.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.