Favicon of rust-locator-patterns

rust-locator-patterns Skill

AI Agent SkillRustOpen source

PET (Python Environment Tools) Rust coding conventions: locator ordering, thread safety, platform gating, JSONRPC rules, version detection, and path/symlink handling. Reference when writing or reviewing Rust code in this repo to avoid convention violations that cause review churn. Published by microsoft in python-environment-tools.

What is rust-locator-patterns Skill?

PET (Python Environment Tools) Rust coding conventions: locator ordering, thread safety, platform gating, JSONRPC rules, version detection, and path/symlink handling. Reference when writing or reviewing Rust code in this repo to avoid convention violations that cause review churn. Published by microsoft in python-environment-tools. This profile combines repository metadata with install, compatibility, and usage signals so developers can quickly decide whether it fits their agent workflow before opening the source repository.

Trust signal
95/100
Maintenance signal
90/100
Adoption signal
57/100

Automated repository signals based on public metadata such as recency, license, installation evidence, and adoption. These are not a security audit or endorsement.

Key capabilities

  • Includes SKILL.md support
  • Reusable instructions support
  • Writing
  • Writing use cases

Technical details

Copy skill directory
  • Install or run with Copy skill directory

When to use rust-locator-patterns Skill

  • Use it for writing.

Built with

RustCopy skill directory

Editorial notes

Source

  • Creator: microsoft
  • Repository: microsoft/python-environment-tools
  • Skill file: .github/skills/rust-locator-patterns/SKILL.md

What it does

PET (Python Environment Tools) Rust coding conventions: locator ordering, thread safety, platform gating, JSONRPC rules, version detection, and path/symlink handling. Reference when writing or reviewing Rust code in this repo to avoid convention violations that cause review churn.

Skill instructions

PET Rust Locator Patterns & Conventions Domain knowledge for writing correct Rust code in the Python Environment Tools (PET) repository. Following these patterns prevents the most common review feedback and CI failures. Locator Ordering (CRITICAL) The order of locators in createlocators() in crates/pet/src/locators.rs determines identification priority. More specific locators MUST come before generic ones. Priority Chain (required order): 1. Windows-specific: Windows Store → Windows Registry → WinPython 2. Managed environments: PyEnv → Pixi → Conda 3. Virtual envs (specific → generic): Poetry → PipEnv → VirtualEnvWrapper → Venv → VirtualEnv 4. macOS-specific: Homebrew → MacXCode → MacCmdLineTools → MacPythonOrg 5. Linux fallback: LinuxGlobalPython (MUST BE LAST) Why it matters: If Venv runs before Poetry, a Poetry environment (which IS a venv) gets misidentified as a plain venv. The first locator whose tryfrom() returns Some wins. Environment Identification (tryfrom) Each tryfrom() mus

Explore related resources

Frequently asked questions

What is rust-locator-patterns?

rust-locator-patterns is a open-source AI agent skill with Copy skill directory. PET (Python Environment Tools) Rust coding conventions: locator ordering, thread safety, platform gating, JSONRPC rules, version detection, and path/symlink handling.

Who is rust-locator-patterns best for?

rust-locator-patterns is best for reusing agent instructions, scripts, and references, writing workflows.

How do I install rust-locator-patterns?

Install or run rust-locator-patterns using Copy skill directory. Check rust-locator-patterns for the latest setup command.

Is rust-locator-patterns actively maintained?

rust-locator-patterns may need a closer maintenance check before production use.

Share:

Stars
206
Forks
42
Last commit
26 days ago
Repository age
2 years
License
MIT

Auto-fetched from GitHub.

Ad
Favicon

 

  
 

Similar to rust-locator-patterns