exec-rust
Skill4 starsChanged 4 days agoMITView on GitHub
Rust execution idioms to embed into Codex prompts when the target project is Rust — ownership discipline, error handling with Result, and idiomatic API design.
In this repository76 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accounting-bookkeepingSkill
- agent-context-persistenceSkill
- asoSkill
- brainstorm-argumentationSkill
- brainstorm-debateSkill
- brainstorm-lensesSkill
- causal-inferenceSkill
- context-disciplineSkill
- creative-briefSkill
- customer-support-opsSkill
- data-quality-checksSkill
- design-fundamentalsSkill
- ecommerce-operationsSkill
- event-taxonomySkill
- exec-coding-standardsSkill
- exec-cppSkill
- exec-csharpSkill
- exec-deliverableSkill
- exec-github-actionsSkill
- exec-goSkill
- exec-jvmSkill
- exec-phpSkill
- exec-pythonSkill
- exec-rubySkill
- exec-self-testingSkill
- exec-swiftSkill
- exec-typescriptSkill
- executor-fallbackSkill
- exec-visualizationSkill
- fast-pathSkill
- final-reviewSkill
- financial-auditSkill
- hr-recruitingSkill
- influencer-strategySkill
- interview-ask-backSkill
- interview-elicitationSkill
- jev-assistSkill
- json-data-wranglingSkill
- legal-contract-basicsSkill
- localization-copySkill
- manufacturing-ops-planningSkill
- marketing-attributionSkill
- media-planningSkill
- okr-planningSkill
- pack-game-analyticsSkill
- parallel-executionSkill
- performance-marketingSkill
- personal-financeSkill
- plan-architectureSkill
- plan-backlogSkill
- plan-research-firstSkill
- preflightSkill
- profile-contentSkill
- profile-designSkill
- profile-pilotSkill
- profile-planSkill
- real-estate-analysisSkill
- review-conformanceSkill
- review-dualSkill
- The first 60 shown.
The file
Files
Rust Idioms (embed when project is Rust)
Rust standards:
- Errors: return Result<T, E> for fallible functions; no unwrap()/expect()/panic! in library code
(reserve panic for truly unrecoverable invariants). Propagate with ?; model domain errors with
an enum (thiserror if present), wrap sources with context (anyhow only at bin/top level).
- Ownership: borrow (&T/&mut T) over cloning; clone only when a clear owner is needed. No needless
.to_owned()/.clone() to appease the borrow checker — restructure instead.
- Prefer iterators/combinators (map/filter/collect) over index loops; use ? and Option combinators
(map/and_then/ok_or) instead of manual match when clearer.
- Types: newtypes over primitive obsession; derive(Debug, Clone, PartialEq) where sensible; make
illegal states unrepresentable with enums. Accept impl Trait / generics, expose concrete types.
- Concurrency: prefer message passing or the project's async runtime (tokio/async-std) consistently;
Send/Sync only where needed; no blocking calls inside async without spawn_blocking.
- No unsafe unless unavoidable — if used, isolate it, document the invariant it upholds, and justify.
- Follow rustfmt (non-negotiable) and clippy if configured; match the repo's module layout.
- Tests: #[cfg(test)] mod tests with #[test]; table cases via loops or rstest if present; assert
behavior, not internals; use the repo's assertion style.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
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.

