Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.
Quelldateien prüfen
Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Ein direkter Befehl überspringt den Prüf-Prompt. Prüfen Sie die Quelle, bevor Sie ihn ausführen.
// ❌ WRONG - obvious from code// Increment the counterself.counter += 1;
// Set the title to "Hello"self.title = "Hello".into();
// ✅ CORRECT - explains non-obvious reasoning// We must update the cache before notifying observers// to ensure they see the most recent dataself.update_cache();
cx.notify();
// ✅ ALSO CORRECT - explains tricky logic// Use saturating_sub to avoid underflow when count is 0self.count = self.count.saturating_sub(1);
# ❌ WRONG
cargo clippy
# ✅ CORRECT (for Zed-based projects)
./script/clippy
# Always use -q flag for cargo
cargo build -q
cargo test -q
Code Organization
Prefer Existing Files
Rule: Add functionality to existing files unless it's a new logical component
// Instead of creating many small files:// src/button_click.rs// src/button_hover.rs// src/button_focus.rs// Keep related functionality together:// src/button.rs (with all button behavior)
Module Organization
// Good module structure
src/
ui/
components.rs // Component definitions
theme.rs // Theme and colors
styles.rs // Shared styles
data/
models.rs // Data models
state.rs // Application state
Summary of Best Practices
Rule
Rationale
Never use unwrap()
Prevents panics, forces explicit error handling
Never let _ = on fallible ops
Errors should be handled or logged
Use full variable names
Improves readability and maintainability
Avoid mod.rs files
Cleaner project structure
Call cx.notify() after mutations
Ensures UI updates
Use WeakEntity for back-refs
Prevents memory leaks
Keep render() pure
Avoids race conditions
Use SharedString for text
Reduces allocations
Detach or store tasks
Prevents cancelled work
Use GPUI timers in tests
Prevents test failures
Only comment "why", not "what"
Reduces noise, focuses on reasoning
Propagate errors to UI
Provides user feedback
Use background_spawn() for CPU work
Keeps UI responsive
Checklist for Code Review
No unwrap() calls
No silently discarded errors (let _ = on fallible ops)