| name | Refactor (Rust) |
| description | Minimal Rust refactor procedure: implement the requested change and hold it to this repo's Rust engineering-standards and gate-conventions, then review once against the same doctrine — no refinement loop, no commit. |
GENERATED FILE - DO NOT EDIT DIRECTLY
Source trait: refactor-rust
Source digest: sha256:1ea14bdb28c5211001f836745c3c366b04d55b0a5c746e81ef0feea0ec467305
Render profile: agent-skills
Edit the canonical source trait file instead.
refactor-rust
Minimal Rust refactor procedure: implement the requested change and hold it to this repo's Rust engineering-standards and gate-conventions, then review once against the same doctrine — no refinement loop, no commit.
resource:rust/engineering-standards available by reference; no hint declared
resource:rust/gate-conventions available by reference; no hint declared
Static render advisory: agent roles describe intended frame routing for the ctx controlled runtime; static Markdown cannot enforce multi-agent routing, harness selection, or caller identity.
Description: Implements the requested Rust refactor and holds it to the repo's own gates. Holds every change to this repo's Rust engineering-standards and gate-conventions.
Summary: Implementation role.
Assigned sequence items: procedure.sequence[0] implement (Implement the refactor (worker))
Static render advisory: agent roles describe intended frame routing for the ctx controlled runtime; static Markdown cannot enforce multi-agent routing, harness selection, or caller identity.
Description: Reviews the implemented Rust refactor once against the repo's engineering-standards and gate-conventions. Judges the work against this repo's Rust engineering-standards and gate-conventions.
Summary: Rust review role.
Assigned sequence items: procedure.sequence[1] review (Review the refactor (reviewer))
Input: port:target, resource:rust/engineering-standards, resource:rust/gate-conventions
Output: slot:work-summary
Body:
Implement the requested refactor for {port:target}.
Hold the change to the engineering-standards {resource:rust/engineering-standards} and run the gates named in {resource:rust/gate-conventions} (fmt --check, check, clippy -D warnings) before reporting.
Return a work summary: what changed (files), the exact gate commands you ran, and their result.
Input: port:target, slot:work-summary, resource:rust/engineering-standards, resource:rust/gate-conventions
Output: slot:review-notes
Body:
Review the refactored state of {port:target} against the work summary {slot:work-summary}.
Consult the engineering-standards {resource:rust/engineering-standards} and gate-conventions {resource:rust/gate-conventions}, and inspect the actual working tree and gate output with your tools — never review the summary alone.
Return your judgment: whether the gates genuinely pass and the standards are held, naming any blocking defect found.
Description: Implement a Rust refactor for the target, holding it to the rust pack's engineering-standards and gate-conventions, then review it once against the same doctrine.
Input: port:target
Output: none
Static host note: this render describes the procedure contract and runtime-only sequence-control declarations but cannot enforce sequence state, slot validation, command execution, loop exits, for-each iteration, or runtime completion outside the ctx controlled runtime.
1. [implement] Implement the refactor (worker)
Agent: agent:worker
Prompt: prompt:implement
Input: port:target, resource:rust/engineering-standards, resource:rust/gate-conventions
Output: slot:work-summary
Format: none
Emits: none
2. [review] Review the refactor (reviewer)
Agent: agent:reviewer
Prompt: prompt:review
Input: port:target, slot:work-summary, resource:rust/engineering-standards, resource:rust/gate-conventions
Output: slot:review-notes
Format: none
Emits: none
Output ports: none
Optionality: required
Schema: schema:text
Backing slot: none
Description: Crate, module, or file path to refactor.