Token导航 LogoToken导航TokenDH.com
开发执行命令github未标认证来源可访问许可证需确认审计提醒

wsl-embedded-debuggingwsl 嵌入式调试

Agent Skill

wsl-embedded-debugging 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

360

周安装

15

GitHub Stars

公开资料未说明

下载量

120
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:wsl-embedded-debugging(wsl 嵌入式调试)
来源仓库:https://github.com/apsp-ag/agent-skills
仓库路径:skills/wsl-embedded-debugging
安装命令:
npx skills add https://github.com/apsp-ag/agent-skills --skill wsl-embedded-debugging
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/apsp-ag/agent-skills --skill wsl-embedded-debugging

简介

wsl-embedded-debugging 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 它适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从 GitHub 仓库安装,具体用法需结合原始 README 进一步确认。
  • 安装前请核实权限范围、维护状态,并注意是否涉及联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

WSL Embedded Debugging

Overview

Use Windows-side toolchains from WSL so code stays in the Linux workspace while USB-capable flashing and runtime logging happen through Windows executables.

Codex Sandbox and Setup Requirements

Require an execution mode that can launch Windows executables from WSL:

  • Prefer full-access sandboxing (for example danger-full-access) when running flash/debug commands from this skill.
  • If sandbox policy blocks *.exe or /mnt/c/... binaries, stop and switch to a less restricted mode before continuing.

Require Windows tools to be callable from the WSL shell:

  • Invoke by name when PATH bridging is configured (cargo.exe, probe-rs.exe, openocd.exe).
  • Invoke by explicit path when PATH bridging is not configured (for example /mnt/c/Users/<user>/.cargo/bin/cargo.exe).
  • Verify setup quickly with cargo.exe --version and probe-rs.exe --version.
  • Use wslpath -w <linux-path> when a Windows-native tool requires Windows-style paths.

Core Workflow

  1. Confirm that the hardware step needs Windows USB access.
  2. Run the command through scripts/run_windows_embedded.sh.
  3. Use a bounded timeout to capture useful logs quickly.
  4. Treat timeout exit 124 as expected log capture, not automatic failure.
  5. Iterate with adjusted timeout, bin target, and command flags.

Run Commands

Use this wrapper as the default execution path:

./scripts/run_windows_embedded.sh --timeout 15 -- cargo.exe run --bin <firmware-bin> --release

Capture logs to a file for later inspection:

./scripts/run_windows_embedded.sh --timeout 20 --log /tmp/embedded-run.log -- cargo.exe run --bin <firmware-bin> --release

Use log-only mode when log frequency is high and terminal/context noise is expensive:

./scripts/run_windows_embedded.sh --timeout 20 --log /tmp/embedded-run.log --log-only -- cargo.exe run --bin <firmware-bin> --release

Use artifacts mode when you want reproducible run bundles (run.log + run.json):

./scripts/run_windows_embedded.sh --timeout 20 --artifacts-dir /tmp/embedded-run --log-only --tail 40 -- cargo.exe run --bin <firmware-bin> --release

Run environment checks before long debugging loops:

./scripts/run_windows_embedded.sh --check -- cargo.exe run --bin <firmware-bin> --release

Pass any Windows executable command after -- (for example probe-rs.exe run..., openocd.exe..., or vendor CLI tools).

Choose Output Mode

Agents should intentionally choose output mode based on expected verbosity and run duration:

  • Use raw terminal output for short, low-frequency logs where live feedback is valuable.
  • Use --log for balanced runs that need both live stream and saved artifacts.
  • Use --log --log-only for noisy/long sessions to avoid blowing context while preserving complete logs for targeted inspection.
  • Use --artifacts-dir when reproducibility matters; this saves both run.log and run.json metadata.
  • Use --tail N with --log-only when you still need a compact end-of-run preview.

--log-only is an intended first-class option, not a workaround.

Interpret Exit Codes

  • 0: Command completed before timeout.
  • 124: Timeout reached; treat as successful bounded capture for long-running firmware sessions.
  • Any other non-zero code: Treat as a real error and debug.

Debug Loop

  1. Start with 10–20 second timeout.
  2. Confirm flash + early boot logs appear.
  3. Increase timeout only when deeper runtime phases are needed.
  4. Keep command explicit (--bin, --release, feature flags).
  5. Repeat with focused changes between runs.

Troubleshoot

  • If cargo.exe is missing, verify Windows Rust toolchain installation and PATH exposure to WSL.
  • If flashing fails with probe errors, verify the device is visible to Windows and no other process owns the probe.
  • If no runtime logs appear, confirm logger transport settings and runtime command configuration.

Use references/wsl-windows-embedded-troubleshooting.md for detailed checks and alternatives.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.69%
按下载量换算44

Claude

30.12%
按下载量换算36

Cursor

16.72%
按下载量换算20

Gemini CLI

9.57%
按下载量换算11

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/apsp-ag/agent-skills --skill wsl-embedded-debugging 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills