ワンクリックで
rust-worker
A worker that implements features and writes tests in the Specgate Rust codebase.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
A worker that implements features and writes tests in the Specgate Rust codebase.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | rust-worker |
| description | A worker that implements features and writes tests in the Specgate Rust codebase. |
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
Use this skill when you need to implement a new feature, rule, or diagnostic tool in the Rust codebase (src/ and tests/).
features.json.rg to find where the feature should be implemented. Understand the Rule trait if implementing a rule, or the DoctorCommand if implementing a diagnostic.tests/contract_fixtures.rs.tests/fixtures/golden/tier-a/.cargo test contract_fixtures to ensure core logic is intact.cargo test tier_a_golden to verify architectural rule outputs.cargo clippy -- -D warnings to enforce Rust standards.cargo run -- check --project-root <path>.{
"salientSummary": "Implemented C02 pattern-aware boundary rules in src/rules/boundary.rs. Added programmatic tests to tests/contract_fixtures.rs and verified they pass. Ran cargo clippy and ensured all deterministic output invariants hold.",
"whatWasImplemented": "Added the PatternMatch struct to RuleContext. Modified the evaluate fn in src/rules/boundary.rs to check imports against defined patterns in the spec.yml file.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{
"command": "cargo test contract_fixtures -- --grep 'pattern_aware'",
"exitCode": 0,
"observation": "2/2 tests passed"
},
{
"command": "cargo clippy -- -D warnings",
"exitCode": 0,
"observation": "No warnings found"
}
],
"interactiveChecks": [
{
"action": "cargo run -- check --project-root tests/fixtures/golden/tier-a/c02-pattern-aware/intro/",
"observed": "CLI correctly reported pattern-matching violations matching the expected .verdict.json."
}
]
},
"tests": {
"added": [
{
"file": "tests/contract_fixtures.rs",
"cases": [
{
"name": "test_c02_pattern_matching_violates",
"verifies": "Ensures an import violating the pattern rule fails."
},
{
"name": "test_c02_pattern_matching_passes",
"verifies": "Ensures an import conforming to the pattern rule passes."
}
]
}
]
},
"discoveredIssues": []
}
Cargo.toml that hasn't been approved.