dsh-embedded-workbench 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/lib/index.js +197 -197
- package/lib/types/index.d.ts +43 -43
- package/package.json +5 -3
- package/skills/c-cpp-dev/SKILL.md +121 -121
- package/skills/debug-methodology/SKILL.md +83 -83
- package/skills/debug-methodology/references/iterative-debug-case-study.md +103 -103
- package/skills/embedded-firmware-dev/SKILL.md +133 -133
- package/skills/embedded-firmware-dev/references/architecture-principles.md +204 -204
- package/skills/embedded-firmware-dev/references/embedded-patterns.md +95 -95
- package/skills/embedded-firmware-dev/references/lvgl-pitfalls.md +68 -68
- package/skills/embedded-workbench/SKILL.md +242 -242
- package/skills/embedded-workbench/references/final-qc.md +40 -40
- package/skills/embedded-workbench/references/platform-tool-mapping.md +88 -88
- package/skills/fact-check/SKILL.md +57 -57
- package/skills/hardfault-triage/SKILL.md +237 -237
- package/skills/keil-mdk-build/SKILL.md +237 -237
- package/skills/state-machine-design/SKILL.md +190 -190
- package/src/index.ts +209 -209
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
# Platform Tool Mapping
|
|
2
|
-
|
|
3
|
-
This plugin's skills and agents are written with Claude Code tool names. This reference maps each tool to equivalents on other platforms. When an agent prompt says "use `Read`" but you are on Codex CLI, use the mapped tool instead.
|
|
4
|
-
|
|
5
|
-
## Core File Tools
|
|
6
|
-
|
|
7
|
-
| Claude Code | Codex CLI | Cursor | Kimi CLI | OpenCode | ZCode | Copilot CLI |
|
|
8
|
-
|-------------|-----------|--------|----------|----------|-------|-------------|
|
|
9
|
-
| `Read` | `read_file` | `read_file` | `read_file` | `read` | `read_file` | `read_file` |
|
|
10
|
-
| `Write` | `write_file` | `write_to_file` | `write_file` | `write` | `write_file` | `write_file` |
|
|
11
|
-
| `Edit` | `edit_file` | `replace_in_file` | `edit_file` | `edit` | `edit_file` | `edit_file` |
|
|
12
|
-
| `Glob` | `search_file` | `search_file` | `glob` | `glob` | `search_file` | `search_file` |
|
|
13
|
-
| `Grep` | `search_content` | `search_content` | `grep` | `grep` | `search_content` | `search_content` |
|
|
14
|
-
| `Bash` | `run_shell` | `execute_command` | `execute_command` | `terminal` | `run_shell` | `run_command` |
|
|
15
|
-
|
|
16
|
-
## Agent & Skill Tools
|
|
17
|
-
|
|
18
|
-
| Claude Code | Codex CLI | Cursor | Kimi CLI | OpenCode | ZCode | Copilot CLI |
|
|
19
|
-
|-------------|-----------|--------|----------|----------|-------|-------------|
|
|
20
|
-
| `Skill("name")` | `$name` (auto) | `use_skill` | `/skill:name` | `$name` | `$name` | `skill("name")` |
|
|
21
|
-
| `Agent` | `task` | `task` | `agent` | `task` | `agent` | `task` |
|
|
22
|
-
|
|
23
|
-
## Web Tools
|
|
24
|
-
|
|
25
|
-
| Claude Code | Codex CLI | Cursor | Kimi CLI | OpenCode | ZCode | Copilot CLI |
|
|
26
|
-
|-------------|-----------|--------|----------|----------|-------|-------------|
|
|
27
|
-
| `WebFetch` | `web_fetch` | `web_fetch` | `web_search` | `fetch` | `web_fetch` | `web_fetch` |
|
|
28
|
-
| `WebSearch` | `web_search` | `web_search` | `web_search` | `search` | `web_search` | `web_search` |
|
|
29
|
-
|
|
30
|
-
## Platform-Specific Notes
|
|
31
|
-
|
|
32
|
-
### Codex CLI
|
|
33
|
-
|
|
34
|
-
- Skills auto-load. Use `$skill-name` to invoke explicitly.
|
|
35
|
-
- `skill("name")` is the explicit Skill tool (equivalent to Claude Code's `Skill`).
|
|
36
|
-
- Tool names are snake_case and descriptive.
|
|
37
|
-
|
|
38
|
-
### Cursor
|
|
39
|
-
|
|
40
|
-
- `execute_command` runs in an integrated terminal.
|
|
41
|
-
- Cursor 2.5+ supports Agent Skills natively.
|
|
42
|
-
- Plugin auto-discovers skills from standard paths.
|
|
43
|
-
|
|
44
|
-
### Kimi CLI
|
|
45
|
-
|
|
46
|
-
- Skill invocation: `/skill:<name>` (slash command).
|
|
47
|
-
- Kimi auto-discovers from `.claude/skills/` paths.
|
|
48
|
-
- Agent system differs from Claude Code's `Agent` tool.
|
|
49
|
-
|
|
50
|
-
### OpenCode
|
|
51
|
-
|
|
52
|
-
- `$skill-name` or `skill("name")` for skill invocation.
|
|
53
|
-
- Skills auto-discover from `.claude/skills/` and `.codex/skills/`.
|
|
54
|
-
- Plugin installed via `opencode.json` `plugin` array.
|
|
55
|
-
|
|
56
|
-
### ZCode (Z.AI)
|
|
57
|
-
|
|
58
|
-
- ZCode 3.0+ follows Agent Skills standard.
|
|
59
|
-
- Skills invoked with `$skill-name`.
|
|
60
|
-
- No plugin marketplace — manual copy to `.zcode/skills/`.
|
|
61
|
-
- Auto-discovers from `.claude/skills/` and `.codex/skills/`.
|
|
62
|
-
|
|
63
|
-
### Copilot CLI (GitHub Copilot)
|
|
64
|
-
|
|
65
|
-
- `run_command` requires explicit approval for destructive operations.
|
|
66
|
-
- Skill invocation differs from Claude Code; check Copilot CLI docs.
|
|
67
|
-
- Copilot CLI 1.0.11+ supports Agent Skills.
|
|
68
|
-
|
|
69
|
-
## Sub-Agent Platform Equivalents
|
|
70
|
-
|
|
71
|
-
This plugin defines 4 sub-agents. On platforms without an `Agent` tool:
|
|
72
|
-
|
|
73
|
-
| Claude Code Agent | Alternative Approach |
|
|
74
|
-
|-------------------|---------------------|
|
|
75
|
-
| `architecture-steward` | Ask user to run a separate session with planning prompt |
|
|
76
|
-
| `design-reviewer` | Load `logicprobe` skill (standalone plugin; built-in `fact-check` fallback if logicprobe is not installed); manually verify claims |
|
|
77
|
-
| `execution-worker` | Sequential implementation in current session with approval gates |
|
|
78
|
-
| `quality-coordinator` | Self-review checklist from `references/final-qc.md` template |
|
|
79
|
-
|
|
80
|
-
## When to Load This Reference
|
|
81
|
-
|
|
82
|
-
Load this when:
|
|
83
|
-
|
|
84
|
-
- The session is NOT running on Claude Code (check environment: `$CLAUDE_PLUGIN_ROOT`, `$CODEX_CLI`, `$CURSOR_PLUGIN_ROOT`, etc.)
|
|
85
|
-
- An agent prompt references a tool you don't recognize
|
|
86
|
-
- You need to translate a skill or workflow instruction to your platform
|
|
87
|
-
|
|
88
|
-
**Rule**: Always use your platform's native tool names. The tool instructions in skills are Claude Code conventions — translate them, don't copy them verbatim.
|
|
1
|
+
# Platform Tool Mapping
|
|
2
|
+
|
|
3
|
+
This plugin's skills and agents are written with Claude Code tool names. This reference maps each tool to equivalents on other platforms. When an agent prompt says "use `Read`" but you are on Codex CLI, use the mapped tool instead.
|
|
4
|
+
|
|
5
|
+
## Core File Tools
|
|
6
|
+
|
|
7
|
+
| Claude Code | Codex CLI | Cursor | Kimi CLI | OpenCode | ZCode | Copilot CLI |
|
|
8
|
+
|-------------|-----------|--------|----------|----------|-------|-------------|
|
|
9
|
+
| `Read` | `read_file` | `read_file` | `read_file` | `read` | `read_file` | `read_file` |
|
|
10
|
+
| `Write` | `write_file` | `write_to_file` | `write_file` | `write` | `write_file` | `write_file` |
|
|
11
|
+
| `Edit` | `edit_file` | `replace_in_file` | `edit_file` | `edit` | `edit_file` | `edit_file` |
|
|
12
|
+
| `Glob` | `search_file` | `search_file` | `glob` | `glob` | `search_file` | `search_file` |
|
|
13
|
+
| `Grep` | `search_content` | `search_content` | `grep` | `grep` | `search_content` | `search_content` |
|
|
14
|
+
| `Bash` | `run_shell` | `execute_command` | `execute_command` | `terminal` | `run_shell` | `run_command` |
|
|
15
|
+
|
|
16
|
+
## Agent & Skill Tools
|
|
17
|
+
|
|
18
|
+
| Claude Code | Codex CLI | Cursor | Kimi CLI | OpenCode | ZCode | Copilot CLI |
|
|
19
|
+
|-------------|-----------|--------|----------|----------|-------|-------------|
|
|
20
|
+
| `Skill("name")` | `$name` (auto) | `use_skill` | `/skill:name` | `$name` | `$name` | `skill("name")` |
|
|
21
|
+
| `Agent` | `task` | `task` | `agent` | `task` | `agent` | `task` |
|
|
22
|
+
|
|
23
|
+
## Web Tools
|
|
24
|
+
|
|
25
|
+
| Claude Code | Codex CLI | Cursor | Kimi CLI | OpenCode | ZCode | Copilot CLI |
|
|
26
|
+
|-------------|-----------|--------|----------|----------|-------|-------------|
|
|
27
|
+
| `WebFetch` | `web_fetch` | `web_fetch` | `web_search` | `fetch` | `web_fetch` | `web_fetch` |
|
|
28
|
+
| `WebSearch` | `web_search` | `web_search` | `web_search` | `search` | `web_search` | `web_search` |
|
|
29
|
+
|
|
30
|
+
## Platform-Specific Notes
|
|
31
|
+
|
|
32
|
+
### Codex CLI
|
|
33
|
+
|
|
34
|
+
- Skills auto-load. Use `$skill-name` to invoke explicitly.
|
|
35
|
+
- `skill("name")` is the explicit Skill tool (equivalent to Claude Code's `Skill`).
|
|
36
|
+
- Tool names are snake_case and descriptive.
|
|
37
|
+
|
|
38
|
+
### Cursor
|
|
39
|
+
|
|
40
|
+
- `execute_command` runs in an integrated terminal.
|
|
41
|
+
- Cursor 2.5+ supports Agent Skills natively.
|
|
42
|
+
- Plugin auto-discovers skills from standard paths.
|
|
43
|
+
|
|
44
|
+
### Kimi CLI
|
|
45
|
+
|
|
46
|
+
- Skill invocation: `/skill:<name>` (slash command).
|
|
47
|
+
- Kimi auto-discovers from `.claude/skills/` paths.
|
|
48
|
+
- Agent system differs from Claude Code's `Agent` tool.
|
|
49
|
+
|
|
50
|
+
### OpenCode
|
|
51
|
+
|
|
52
|
+
- `$skill-name` or `skill("name")` for skill invocation.
|
|
53
|
+
- Skills auto-discover from `.claude/skills/` and `.codex/skills/`.
|
|
54
|
+
- Plugin installed via `opencode.json` `plugin` array.
|
|
55
|
+
|
|
56
|
+
### ZCode (Z.AI)
|
|
57
|
+
|
|
58
|
+
- ZCode 3.0+ follows Agent Skills standard.
|
|
59
|
+
- Skills invoked with `$skill-name`.
|
|
60
|
+
- No plugin marketplace — manual copy to `.zcode/skills/`.
|
|
61
|
+
- Auto-discovers from `.claude/skills/` and `.codex/skills/`.
|
|
62
|
+
|
|
63
|
+
### Copilot CLI (GitHub Copilot)
|
|
64
|
+
|
|
65
|
+
- `run_command` requires explicit approval for destructive operations.
|
|
66
|
+
- Skill invocation differs from Claude Code; check Copilot CLI docs.
|
|
67
|
+
- Copilot CLI 1.0.11+ supports Agent Skills.
|
|
68
|
+
|
|
69
|
+
## Sub-Agent Platform Equivalents
|
|
70
|
+
|
|
71
|
+
This plugin defines 4 sub-agents. On platforms without an `Agent` tool:
|
|
72
|
+
|
|
73
|
+
| Claude Code Agent | Alternative Approach |
|
|
74
|
+
|-------------------|---------------------|
|
|
75
|
+
| `architecture-steward` | Ask user to run a separate session with planning prompt |
|
|
76
|
+
| `design-reviewer` | Load `logicprobe` skill (standalone plugin; built-in `fact-check` fallback if logicprobe is not installed); manually verify claims |
|
|
77
|
+
| `execution-worker` | Sequential implementation in current session with approval gates |
|
|
78
|
+
| `quality-coordinator` | Self-review checklist from `references/final-qc.md` template |
|
|
79
|
+
|
|
80
|
+
## When to Load This Reference
|
|
81
|
+
|
|
82
|
+
Load this when:
|
|
83
|
+
|
|
84
|
+
- The session is NOT running on Claude Code (check environment: `$CLAUDE_PLUGIN_ROOT`, `$CODEX_CLI`, `$CURSOR_PLUGIN_ROOT`, etc.)
|
|
85
|
+
- An agent prompt references a tool you don't recognize
|
|
86
|
+
- You need to translate a skill or workflow instruction to your platform
|
|
87
|
+
|
|
88
|
+
**Rule**: Always use your platform's native tool names. The tool instructions in skills are Claude Code conventions — translate them, don't copy them verbatim.
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: fact-check
|
|
3
|
-
description: "Use when reviewing design documents, architecture specs, technical proposals, or plans that make claims about API names, file paths, enum values, counts, or mechanism feasibility — a lightweight claim-by-claim check against the codebase with evidence. Built into embedded-workbench as the fallback when the full logicprobe plugin is not installed. NOT for state machines, protocol/retry logic, or 'always'/'never' behavioral claims that need executable model verification — those require the logicprobe plugin."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Fact Check (fallback)
|
|
7
|
-
|
|
8
|
-
Lightweight claim verification built into this plugin. Use it when the full
|
|
9
|
-
`logicprobe` plugin is not installed — it checks every verifiable claim in a
|
|
10
|
-
document/plan against the codebase with evidence, without model escalation.
|
|
11
|
-
|
|
12
|
-
## When to use
|
|
13
|
-
|
|
14
|
-
- Design docs, architecture specs, technical proposals, refactoring plans
|
|
15
|
-
that name APIs, types, files, enums, counts, or mechanisms.
|
|
16
|
-
- Proactively when a plan will be approved (plan-mode gate) and logicprobe is
|
|
17
|
-
unavailable.
|
|
18
|
-
|
|
19
|
-
## What to verify (per claim)
|
|
20
|
-
|
|
21
|
-
| Claim type | Method |
|
|
22
|
-
|-----------|--------|
|
|
23
|
-
| Numeric claims (counts, sizes, frequencies) | `grep -c` / `grep -rn` |
|
|
24
|
-
| API/type/enum names | Extract actual signatures/values from headers |
|
|
25
|
-
| File paths and line numbers | Confirm existence and content |
|
|
26
|
-
| Mechanism feasibility | Check language standard / compiler support |
|
|
27
|
-
|
|
28
|
-
## Process
|
|
29
|
-
|
|
30
|
-
1. Enumerate every verifiable claim (quote it verbatim).
|
|
31
|
-
2. Verify each against the codebase with evidence (file:line + excerpt).
|
|
32
|
-
3. Output per claim: claim → evidence → verdict.
|
|
33
|
-
|
|
34
|
-
## Output format
|
|
35
|
-
|
|
36
|
-
- **Claim**: <verbatim quote>
|
|
37
|
-
- **Evidence**: <file:line + grep/read excerpt>
|
|
38
|
-
- **Verdict**: confirmed | refuted | unverifiable
|
|
39
|
-
- **Correction direction** (when refuted) — never fix inline.
|
|
40
|
-
|
|
41
|
-
Append a `## Plan Verification` block:
|
|
42
|
-
|
|
43
|
-
```markdown
|
|
44
|
-
## Plan Verification
|
|
45
|
-
- **Mode**: fact-check (fallback — logicprobe plugin not installed)
|
|
46
|
-
- **Claims checked**: [N] confirmed, [M] refuted, [K] unverifiable
|
|
47
|
-
- **Escalation**: model verification NOT run (requires logicprobe plugin)
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## Boundaries
|
|
51
|
-
|
|
52
|
-
- **No executable model verification** — no state-space exploration, no harness.
|
|
53
|
-
- State machines (≥3 states), ACK/NACK/retry/timeout logic, lock/unlock
|
|
54
|
-
ordering, and "always"/"never"/"guaranteed" claims require the `logicprobe`
|
|
55
|
-
plugin: install it (see `.dsh/INSTALL.md`) or tell the user verification is
|
|
56
|
-
degraded to manual mode for those claims.
|
|
57
|
-
- Checking a claim is not a security audit; being checked ≠ being safe.
|
|
1
|
+
---
|
|
2
|
+
name: fact-check
|
|
3
|
+
description: "Use when reviewing design documents, architecture specs, technical proposals, or plans that make claims about API names, file paths, enum values, counts, or mechanism feasibility — a lightweight claim-by-claim check against the codebase with evidence. Built into embedded-workbench as the fallback when the full logicprobe plugin is not installed. NOT for state machines, protocol/retry logic, or 'always'/'never' behavioral claims that need executable model verification — those require the logicprobe plugin."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Fact Check (fallback)
|
|
7
|
+
|
|
8
|
+
Lightweight claim verification built into this plugin. Use it when the full
|
|
9
|
+
`logicprobe` plugin is not installed — it checks every verifiable claim in a
|
|
10
|
+
document/plan against the codebase with evidence, without model escalation.
|
|
11
|
+
|
|
12
|
+
## When to use
|
|
13
|
+
|
|
14
|
+
- Design docs, architecture specs, technical proposals, refactoring plans
|
|
15
|
+
that name APIs, types, files, enums, counts, or mechanisms.
|
|
16
|
+
- Proactively when a plan will be approved (plan-mode gate) and logicprobe is
|
|
17
|
+
unavailable.
|
|
18
|
+
|
|
19
|
+
## What to verify (per claim)
|
|
20
|
+
|
|
21
|
+
| Claim type | Method |
|
|
22
|
+
|-----------|--------|
|
|
23
|
+
| Numeric claims (counts, sizes, frequencies) | `grep -c` / `grep -rn` |
|
|
24
|
+
| API/type/enum names | Extract actual signatures/values from headers |
|
|
25
|
+
| File paths and line numbers | Confirm existence and content |
|
|
26
|
+
| Mechanism feasibility | Check language standard / compiler support |
|
|
27
|
+
|
|
28
|
+
## Process
|
|
29
|
+
|
|
30
|
+
1. Enumerate every verifiable claim (quote it verbatim).
|
|
31
|
+
2. Verify each against the codebase with evidence (file:line + excerpt).
|
|
32
|
+
3. Output per claim: claim → evidence → verdict.
|
|
33
|
+
|
|
34
|
+
## Output format
|
|
35
|
+
|
|
36
|
+
- **Claim**: <verbatim quote>
|
|
37
|
+
- **Evidence**: <file:line + grep/read excerpt>
|
|
38
|
+
- **Verdict**: confirmed | refuted | unverifiable
|
|
39
|
+
- **Correction direction** (when refuted) — never fix inline.
|
|
40
|
+
|
|
41
|
+
Append a `## Plan Verification` block:
|
|
42
|
+
|
|
43
|
+
```markdown
|
|
44
|
+
## Plan Verification
|
|
45
|
+
- **Mode**: fact-check (fallback — logicprobe plugin not installed)
|
|
46
|
+
- **Claims checked**: [N] confirmed, [M] refuted, [K] unverifiable
|
|
47
|
+
- **Escalation**: model verification NOT run (requires logicprobe plugin)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Boundaries
|
|
51
|
+
|
|
52
|
+
- **No executable model verification** — no state-space exploration, no harness.
|
|
53
|
+
- State machines (≥3 states), ACK/NACK/retry/timeout logic, lock/unlock
|
|
54
|
+
ordering, and "always"/"never"/"guaranteed" claims require the `logicprobe`
|
|
55
|
+
plugin: install it (see `.dsh/INSTALL.md`) or tell the user verification is
|
|
56
|
+
degraded to manual mode for those claims.
|
|
57
|
+
- Checking a claim is not a security audit; being checked ≠ being safe.
|