一键导入
test-coverage
Analyze test coverage and identify gaps. Run tests, identify modules without tests, and suggest specific functions that need test coverage.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze test coverage and identify gaps. Run tests, identify modules without tests, and suggest specific functions that need test coverage.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Run clippy with auto-fix and report issues. Automatically fix issues that clippy knows how to fix safely, then report remaining warnings that need manual attention.
Run all pre-commit checks before committing. Run all quality checks including format check, clippy, tests, and verify no secrets or TODOs are staged.
Step-by-step checklist for adding a new agent type to Panoptes. Follow the checklist to add the enum variant, create the adapter implementation, and update the factory method.
Step-by-step checklist for adding a new input mode to Panoptes. Follow the checklist to add the enum variant, create the handler in the appropriate module, and update the dispatcher.
Generate test scaffolding for untested modules. Analyze public functions, identify test cases, and create comprehensive test coverage.
Step-by-step checklist for adding a new view to Panoptes. Follow the checklist to create the view enum variant, render function, input handler, and update all dispatch points.
基于 SOC 职业分类
| name | test-coverage |
| description | Analyze test coverage and identify gaps. Run tests, identify modules without tests, and suggest specific functions that need test coverage. |
Analyze test coverage and identify modules needing tests.
Run all tests and collect results
cargo test 2>&1
Note total test count and any failures.
Identify modules without tests
Search for Rust source files and check for #[cfg(test)] blocks:
# Find files without test modules
for f in src/**/*.rs; do
if ! grep -q '#\[cfg(test)\]' "$f" 2>/dev/null; then
echo "$f"
fi
done
Analyze untested modules For each untested module, identify:
Generate coverage report Report modules by priority:
app/state.rs, session/mod.rs)Test Coverage Report:
Total tests: 261
Modules with tests: 26/42 (62%)
High Priority Gaps:
- src/input/dispatcher.rs - No direct tests (routes to handlers)
- src/input/session_mode.rs - No tests (PTY interaction)
Medium Priority Gaps:
- src/tui/views/*.rs - Rendering modules (integration tests recommended)
Coverage by Area:
- Core (app, session, hooks): 80%
- Input handling: 40%
- TUI rendering: 20%
- Utilities: 90%
After running this skill, consider: