ワンクリックで
rust-worker
Implements Rust features with TDD, testing, and verification for the Wagner codebase
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Implements Rust features with TDD, testing, and verification for the Wagner codebase
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | rust-worker |
| description | Implements Rust features with TDD, testing, and verification for the Wagner codebase |
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
All implementation features in the Wagner codebase: bug fixes, new agent support, refactoring, UX improvements. Any feature that modifies Rust source code.
None
Read the feature description thoroughly. Understand preconditions, expectedBehavior, and verificationSteps. Read AGENTS.md for mission boundaries and coding conventions.
Investigate affected code. Read all files mentioned in the feature description. Understand the existing patterns, data structures, and control flow. Use Grep to find all call sites and references to functions/types you'll modify.
Write failing tests first (RED). Before any implementation:
devbox run cargo test to confirm tests fail as expectedImplement the fix/feature (GREEN). Make the tests pass:
Engine:: and AgentType:: match)Verify compilation and tests.
devbox run cargo check --all-features — must produce zero errorsdevbox run cargo test — all tests must pass (existing + new)devbox run cargo clippy --all-features -- -D warnings — zero warningsManual verification. For each behavioral change:
_ => catchalls for Engine/AgentType unless intentional)Commit with descriptive message. One commit per feature, referencing what was fixed/added.
{
"salientSummary": "Added Engine::Droid variant with launch/resume/process_name/enter_delay methods. Wrote 6 unit tests covering all Engine methods for Droid. cargo test passes (51 tests), cargo clippy clean.",
"whatWasImplemented": "Added Droid variant to Engine enum in src/model/task.rs with launch_command returning 'droid', resume_command returning 'droid --resume {session_id}', process_name returning 'droid', enter_delay_ms returning 5. Updated all match arms across the codebase (model, wagner.rs, command_executor.rs, daemon.rs, tui/app.rs). Added serde roundtrip test for TrackedPane with Engine::Droid.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{ "command": "devbox run cargo check --all-features", "exitCode": 0, "observation": "Clean compilation with no errors" },
{ "command": "devbox run cargo test", "exitCode": 0, "observation": "51 tests passed, 0 failed" },
{ "command": "devbox run cargo clippy --all-features -- -D warnings", "exitCode": 0, "observation": "No warnings" }
],
"interactiveChecks": [
{ "action": "Traced Engine::Droid match arms across all files using grep", "observed": "Found and updated 14 match expressions. No missing arms." },
{ "action": "Verified serde serialization of Engine::Droid", "observed": "Serializes as 'droid', deserializes correctly. Existing task.json without droid field still parses." }
]
},
"tests": {
"added": [
{
"file": "src/model/task.rs",
"cases": [
{ "name": "engine_launch_command_droid", "verifies": "Droid launch returns 'droid'" },
{ "name": "engine_resume_command_droid", "verifies": "Droid resume returns 'droid --resume {id}'" },
{ "name": "engine_process_name_droid", "verifies": "Droid process name is 'droid'" },
{ "name": "engine_enter_delay_droid", "verifies": "Droid enter delay is 5ms" },
{ "name": "tracked_pane_serde_roundtrip_droid", "verifies": "Engine::Droid serializes/deserializes" },
{ "name": "engine_deser_without_droid", "verifies": "Old task.json still works" }
]
}
]
},
"discoveredIssues": []
}