用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/babico/TeslaCANModder --skill tools-development命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | tools-development |
| description | Debug CLI and serial-to-HTTP bridge development for TeslaCANModder bench work and validation |
| license | GPL-3.0 |
| compatibility | opencode |
| metadata | {"area":"tools","stack":"nodejs, typescript"} |
Guide agents through the TeslaCANModder debug CLI and tooling in tools/. I cover:
Use this skill when:
tools/scripts/tools/
├── commands/ CLI command implementations
├── lib/ shared utility modules
├── test/ Jest ESM tests
├── debug.js main CLI entry point
├── serial-http-bridge.js serial-to-HTTP bridge
├── package.json package manifest ("type": "module")
└── README.md tools documentation
scripts/
├── npm-audit-actionable.cjs security audit helper
├── release-matrix-smoke.mjs release smoke tests
└── validate-serial-contract.mjs serial contract validator
"type": "module" in package.json)camelCase for variables and functions.console.log.The debug CLI (tools/debug.js) provides bench work and validation commands:
node tools/debug.js <command> [options]
Common commands:
drive-context - capture and validate drive context signalsmonitor - live CAN frame monitoringflash - firmware flashing helperbridge - start serial-to-HTTP bridgeDrive context validation (for runtime signal releases):
node tools/debug.js drive-context --port COM5 --drive-duration 60000 --drive-min-samples 10 --drive-expect-full --drive-output artifacts/drive-context-report.json --drive-note-output artifacts/drive-context-note.txt
The bridge (tools/serial-http-bridge.js) proxies serial CAN frames to HTTP endpoints for integration testing.
Run tools tests:
npm run test:tools
Tests use Jest with native ESM support. Add tests for:
Workspace-level scripts in scripts/:
validate-serial-contract.mjs - Validates serial contract between firmware and protocol packagerelease-matrix-smoke.mjs - Smoke tests for release firmware matrixnpm-audit-actionable.cjs - Actionable security audit (run via npm run audit:ci)npm run test:tools and ensure all tests pass.npm run lint:all from repo root.tools/debug.js - CLI entry pointtools/serial-http-bridge.js - HTTP bridgetools/commands/ - CLI command implementationsscripts/validate-serial-contract.mjs - contract validatorscripts/release-matrix-smoke.mjs - release smoke tests基于 SOC 职业分类