fabro/.fabro/skills/rust-style-guide/guidelines
Scott Werner 9af0296469
Add rust-style-guide skill for workflow agents (#558)
## Summary

Adds the `rust-style-guide` Agent Skill under
`.fabro/skills/rust-style-guide/` so Fabro workflow agent stages can
apply the project's Rust conventions when writing or reviewing Rust
code.

Skills are discovered by convention from
`{git_root}/.fabro/skills/*/SKILL.md` at agent-session startup — there's
no manifest wiring or per-workflow declaration. Once present, every
agent stage lists the skill in its system prompt and registers the
`use_skill` tool, so an agent can load it (or a node prompt can
reference `/rust-style-guide`). Committing it here (rather than relying
on a local `~/.fabro/skills` copy) is what makes it available to
**remote, clone-based runs** (Docker/Daytona), which only see committed
+ pushed files.

## Contents (44 files)

- `SKILL.md` — entry point (with a short note pointing the agent at the
in-repo location of the supporting files, since Fabro hands the agent
the `SKILL.md` body and it reads the rest itself)
- `guidelines.md` + `guidelines/` — 38 Rust style policy pages
- `workflows/` — 4 procedure pages (new project, library release,
performance investigation, code review/refactor)

## Source / attribution

Vendored from https://github.com/brynary/rust-style-guide (commit
`8fd2a4f`), trimmed to the runtime skill payload; the upstream repo's
mdBook site and authoring scaffolding are omitted. Note: the upstream
repo has **no LICENSE file** — flagging for a call on
attribution/licensing before merge.

## Notes

- No behavior/code change — this is skill content only; nothing is
compiled or bundled.
- No `{{user_input}}` placeholder was added; agents reference the skill
in prose or via `use_skill`. (If we later want deterministic
`/rust-style-guide <task>` slash expansion in node prompts, add the
placeholder to `SKILL.md` then.)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-07 21:12:04 -04:00
..
async-api-design-and-task-lifecycle.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
async-runtime-and-when-to-use-async.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
cancellation-shutdown-and-blocking-work.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
cargo-workspaces-features-and-dependencies.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
collections-and-data-structures.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
concurrency-primitives.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
constructors-and-builders.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
control-flow.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
conversions-getters-and-method-naming.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
deriving-and-common-trait-implementations.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
documentation-and-rustdoc-examples.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
enums-vs-traits-vs-generics-vs-trait-objects.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
error-propagation-context-and-messages.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
error-taxonomy-and-layer-boundaries.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
house-style-and-rust-philosophy.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
iterators-closures-and-loops.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
library-errors-vs-application-errors.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
library-vs-application-conventions.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
lifetimes.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
logging-and-observability.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
modules-visibility-and-re-exports.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
naming-imports-and-prelude-policy.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
newtype-pattern-and-semantic-wrappers.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
option-and-result-idioms.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
ownership-borrowing-and-clone-policy.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
panics-unwrap-expect-and-assertions.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
property-tests-snapshots-benchmarks-and-ci.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
public-api-evolution.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
rust-edition-and-msrv.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
rustc-and-clippy-lints.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
rustfmt-and-formatting.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
smart-pointers-and-interior-mutability.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
struct-design-and-encapsulation.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
testing-and-doctests.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
trait-design.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
typestate-and-state-machines.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
unsafe-code-and-macros.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00
validation-and-invariants.md Add rust-style-guide skill for workflow agents (#558) 2026-07-07 21:12:04 -04:00