用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/mihai-dinculescu/tapo --skill pre-commit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Control TP-Link Tapo smart home devices (lights, plugs, power strips, hubs and sensors, cameras) via [Tapo MCP](https://github.com/mihai-dinculescu/tapo/tree/main/tapo-mcp).
Release a new version of the OpenClaw skill in `tapo-mcp/openclaw-skill/` by bumping its version, committing, and publishing via `npx clawhub`
Create a signed git commit following Conventional Commits, after running /pre-commit and /changelog when appropriate
基于 SOC 职业分类
正在显示 SKILL.md
| name | pre-commit |
| description | Run Rust/Python/MCP checks, fix issues, then summarize findings before committing |
Run all checks, fix any issues found, then present a summary table.
Run the following checks if there are changes in the tapo/, tapo-py/, or tapo-mcp/ directories. Fix all issues found. Run independent checks (cargo check, cargo clippy, cargo fmt, cargo test) in parallel.
Unless otherwise specified, run checks at the workspace level (no -p flags) with --all-features to ensure cross-crate issues are caught.
Link-free checks (check, clippy) take --workspace so they cover tapo-py too; cargo test must NOT — it links test binaries and examples, which fails with tapo-py's pyo3/extension-module, so it relies on default-members excluding tapo-py.
cargo check --workspace --all-featurescargo clippy --workspace --all-featurescargo fmt --allcargo test --all-featurescargo clean --doc && RUSTDOCFLAGS="-D warnings" cargo doc -p tapo --no-deps --all-featuresunwrap() in non-test code without a // safe: commentunsafe in non-test code without a // SAFETY: commentuse (max one level of {} nesting)Run the following checks if there are changes in the tapo/ or tapo-py/ directories. Fix all issues found.
.pyi stubs if Python-exposed Rust types changed#[pyclass] types are imported and registered in tapo-py/src/lib.rstapo-py/examples/ are updated to match corresponding Rust examples in tapo/examples/cd tapo-py and activate the virtual environmentuv run mypy . — fix all type errorsuv run black . — fix all formatting issuesRun the following checks if there are changes in the tapo-mcp/ directory. Fix all issues found.
#[derive(JsonSchema)] types have schemars annotations — including tool input params, response types, enums, and their fields/variants. Check for descriptions and range constraints where applicable.tapo-mcp/README.md reflects any MCP API changes (tools, resources, capabilities, env vars, auth)tapo-mcp/openclaw-skill/SKILL.md — frontmatter (description, version, requires), Setup, Tools section with example npx mcporter call invocationstapo-mcp/openclaw-skill/references/setup.md — verification table (tool, description, parameters)tapo-mcp/openclaw-skill/references/tapo-mcp-setup.md — Tools table, Resources table, Configuration env vars, Authentication, Deployment (kept in sync with tapo-mcp/README.md)tapo-mcp/src/server.rs with_instructions(...) (e.g. "plugs, lights, power strips, hubs and their child sensors, cameras")tapo-mcp/openclaw-skill/SKILL.md frontmatter description: (e.g. (lights, plugs, power strips, hubs and sensors, cameras))Run the following checks if there are changes in the tapo/ or tapo-py/ directories. Fix all issues found.
SUPPORTED_DEVICES.md is up to date: add, remove, or regroup rows/columns when a handler's public method list changed, a device model was added/removed, or a method's #[cfg(feature = "debug")] gating changedAfter fixing all issues found in the checks, review the code changes for correctness, readability, and maintainability and propose improvements. Summarize the findings according to severity.