oxidizer / seatbelt
AGENTS.md178 starsChanged 3 months agoMITView on GitHub
Code in this crate should follow the Microsoft Rust Guidelines. Each middleware has two logic-equivalent Service trait impls in the same file: one for layered::Service (execute) and one for tower_service::Service (call). The business logic flow must be identical between the two — they differ only mechanically (boxed futures, poll_ready, Arc cloning, Result output type). Any change to execute must be mirrored in call, and vice versa. Prefer adding logic to the shared *Shared helper structs rather than inlining into both…
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- crates/bytesbuf/AGENTS.mdAGENTS.md
- crates/fetch/AGENTS.mdAGENTS.md
- crates/seatbelt/examples/AGENTS.mdAGENTS.md
- cargo-anvil-adoptionSkill
- code-reviewSkill
The file
Files
AI Agents Guidelines for seatbelt
Code in this crate should follow the Microsoft Rust Guidelines.
Dual Service Implementations
Each middleware has two logic-equivalent Service trait impls in the same file: one for
layered::Service (execute) and one for tower_service::Service (call). The business
logic flow must be identical between the two — they differ only mechanically (boxed futures,
poll_ready, Arc cloning, Result output type).
Any change to execute must be mirrored in call, and vice versa. Prefer adding logic to
the shared *Shared helper structs rather than inlining into both methods. Integration tests
use rstest cases that exercise both implementations — new test scenarios should do the same.
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.

