用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Mik-pe/launa --skill rust-worker命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | rust-worker |
| description | Rust workspace crate worker for launa project — implements features with TDD, runs tests, verifies no regressions. |
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
Features involving changes to workspace crates: launa-protocol, launa-ota, launa-sim, launa-integration-tests, launa-core. These are all desktop-testable Rust crates.
None. All work is done with Rust tooling (cargo test, cargo check, cargo fmt).
Read the feature description carefully. Identify which crate(s) need changes. Read the relevant source files before making any changes.
Before any implementation, write tests that will fail:
cargo test -p <crate> and verify the NEW tests FAIL (expected)#![no_std] — never use std::extern crate alloc and alloc:: collections where neededcargo test -p <crate> — all tests pass (new + existing)cargo test --workspace — no regressions in any cratecargo fmt — clean formattinglauna-ota, run cargo check -p launa-ota --no-default-features to verify no-alloc compilationCheck off the completed task items by changing - [ ] to - [x] for the items this feature covers.
Commit with a focused message describing the change. Use imperative mood.
#![no_std]launa-integration-tests/src/lib.rs (test groups), sim tests in tests/sim_tests.rsmake_spaapp(), make_status_frame(), make_ready_frame() in integration tests{
"salientSummary": "Added failure injection to MockOta (fail_on_begin, fail_on_write_after, fail_on_finalize) and OtaError context fields (byte_offset, address). All 6 new tests pass, all 359 existing tests still pass.",
"whatWasImplemented": "MockOta failure injection fields, OtaError thiserror derive with context fields, MAX_FIRMWARE_SIZE constant, in_progress guard. 8 new tests added to launa-ota.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{ "command": "cargo test -p launa-ota", "exitCode": 0, "observation": "All 14 tests passed" },
{ "command": "cargo test --workspace", "exitCode": 0, "observation": "All 367 tests passed" },
{ "command": "cargo check -p launa-ota --no-default-features"
app/ crate (ESP32-only, can't test on desktop)基于 SOC 职业分类