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

rust

Skill5 starsChanged 5 months agoMITView on GitHub

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)

  • Other versions37 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 37

    1. ccusage/ccusage★ 19ksame name
    2. ryoppippi/ccusage★ 19ksame name
    3. microsoft/fast★ 9.7ksame name
    4. pgdogdev/pgdog★ 5.6ksame name
    5. crbnos/carbon★ 2.8ksame name
    6. Mindrally/skills★ 275same name
    7. Moosync/Moosync★ 264same name
    8. wado-lang/wado★ 119same name
    9. databricks-solutions/apx★ 91same name
    10. youlaitech/youlai-skills★ 63same name

    27 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • Used alongsideProjects with it also use java, python and 5 more.

    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.
    • infiniumtekSkill

      java

      Expert code-review guidance for Java (.java) changes. Flags correctness bugs, concurrency hazards, security vulnerabilities, performance problems, and unidiomatic code in a diff. Use when reviewing modified or added Java source.

      Also in 3 projects that use this

    • lambdamechanicSkill

      python

      Default Python stack for Lambda: uv + Astral tools, typed code, schemas, and Hypothesis.

      Also in 5 projects that use this

    • trotsky1997Skill

      ast-grep

      Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for code patterns, find specific language constructs, or locate code with particular structural characteristics.

      Also in 3 projects that use this

    • VercelSkill

      react

      React renderer for json-render that turns JSON specs into React components. Use when working with @json-render/react, building React UIs from JSON, creating component catalogs, or rendering AI-generated specs.

      Also in 3 projects that use this

    • SentrySkill

      create-pr

      Create pull requests following Sentry conventions. Use when opening PRs, writing PR descriptions, or preparing changes for review. Follows Sentry's code review guidelines.

      Also in 3 projects that use this

    • SentrySkill

      commit

      Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.

      Also in 3 projects that use this

    • +1 more from getsentry
  • In this repository38 other files it gives its agents.

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.