rust-workspace
Skill1 starsChanged 38 days agoApache-2.0View on GitHub
Create or extend the company's Rust workspace for Loams services: crate boundaries, edition and toolchain, errors, config, tracing, lints, and tests. Use when starting the Rust rewrite or adding a bounded context.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- sshine/managed-skillstheir own version, first seen Nov 29, 2026
- jeffer1312/hangartheir own version, first seen Nov 8, 2026
- full-stack-skills/rust-skillstheir own version, first seen Oct 15, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- jeffer1312/hangar★ 15same name
- full-stack-skills/rust-skills★ 8same name
- sshine/managed-skills★ 0same name
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.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- company/AGENTS.mdAGENTS.md
- agent-platformSkill
- app-migrationSkill
- byog-deploySkill
- conformance-testingSkill
- cutover-operationsSkill
- data-migrationSkill
- decision-recordsSkill
- identity-authzSkill
- loams-adoptionSkill
- loams-fitSkill
- loams-rust-sdkSkill
- observability-meteringSkill
- sdk-portabilitySkill
- stack-inventorySkill
- target-architectureSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 2 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Use the starter/ workspace as the shape.
- Very specific: line 50
Add workspace lints: unsafe_code = "forbid", unwrap_used = "warn", todo = "warn", dbg_macro = "warn".
- Distinctive: line 53
Put config in one typed struct, parsed once from env.
- Very specific: line 56
Add tests: pure domain tests, platform tests with a fake, API tests with tower::ServiceExt::oneshot, and an ignored E2E test gated by …
- Very specific: line 70
Do not put Loams types in domain.
- Very specific: line 71
Do not add unwrap/expect in request paths.
- Distinctive: line 72
Do not add a dependency that duplicates one already in the workspace.
- Very specific: line 73
Do not use unsafe.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Rust workspace
Use the starter/ workspace as the shape; do not invent a new one per service.
When to use
- Stage 3, when the pilot starts.
- A new bounded context needs a crate.
- A service is being extracted from a monolith.
Inputs
company/architecture/target.md.- The first bounded context and its API.
starter/and Rust conventions.
Shape
Cargo.toml # workspace, resolver 3
rust-toolchain.toml # 1.97.1
crates/domain/ # types, invariants, ports; no I/O
crates/platform/ # Loams client, config, telemetry
crates/api/ # transport + main
tests/ # cross-crate integrationRules:
domaindepends on nothing butserde,thiserror, and small pure crates.platformowns theloamsclient and all I/O.apiowns HTTP/Connect/gRPC and maps errors to transport codes.- One binary per deployable; keep
main.rsthin.
Procedure
- Copy
starter/or add a crate to its workspace. Keep one workspace per deployable group, not one per file. - Set
edition = "2024",rust-version = "1.97",license = "Apache-2.0". - Add workspace lints:
unsafe_code = "forbid",unwrap_used = "warn",todo = "warn",dbg_macro = "warn". - Define errors per crate with
thiserror; useanyhowonly at the binary edge. - Put config in one typed struct, parsed once from env; fail fast with a clear message. Never log secrets.
- Initialize
tracingwithRUST_LOGand optional OTLP. - Add tests: pure domain tests, platform tests with a fake, API tests with
tower::ServiceExt::oneshot, and an ignored E2E test gated byLOAMS_ENDPOINT. - Run
cargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo test.
Outputs
- Workspace and crate skeletons.
docs/rust-conventions.mdupdates if the company adds a rule.- CI job that runs the three commands.
Guardrails
- Do not put Loams types in
domain; keep the domain independent. - Do not add
unwrap/expectin request paths; map the error. - Do not add a dependency that duplicates one already in the workspace.
- Do not use
unsafe.
References
- Rust conventions
- Starter
- Loams Rust SDK
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.

