Skip to content

Commit 6c20c18

Browse files
tob-scott-aclaude
andcommitted
Fix diagram skill to use uv run instead of plain python
The diagram.py script carries PEP 723 inline metadata declaring trailmark as a dependency. Plain python ignores this metadata, causing ImportError for users who haven't pre-installed trailmark. uv run processes the metadata and handles dependency resolution. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7286147 commit 6c20c18

File tree

1 file changed

+8
-8
lines changed
  • plugins/trailmark/skills/diagramming-code

1 file changed

+8
-8
lines changed

plugins/trailmark/skills/diagramming-code/SKILL.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ report the error to the user.
4747
## Quick Start
4848

4949
```bash
50-
python {baseDir}/scripts/diagram.py \
50+
uv run {baseDir}/scripts/diagram.py \
5151
--target {targetDir} --type call-graph \
5252
--focus main --depth 2
5353
```
@@ -123,7 +123,7 @@ contains at least one node. If empty or malformed, consult
123123
## Script Reference
124124

125125
```
126-
python {baseDir}/scripts/diagram.py [OPTIONS]
126+
uv run {baseDir}/scripts/diagram.py [OPTIONS]
127127
```
128128

129129
| Argument | Short | Default | Description |
@@ -140,22 +140,22 @@ python {baseDir}/scripts/diagram.py [OPTIONS]
140140

141141
```bash
142142
# Call graph centered on a function
143-
python {baseDir}/scripts/diagram.py -t src/ -T call-graph -f parse_file
143+
uv run {baseDir}/scripts/diagram.py -t src/ -T call-graph -f parse_file
144144

145145
# Class hierarchy for a Rust project
146-
python {baseDir}/scripts/diagram.py -t src/ -l rust -T class-hierarchy
146+
uv run {baseDir}/scripts/diagram.py -t src/ -l rust -T class-hierarchy
147147

148148
# Module dependency map, left-to-right
149-
python {baseDir}/scripts/diagram.py -t src/ -T module-deps --direction LR
149+
uv run {baseDir}/scripts/diagram.py -t src/ -T module-deps --direction LR
150150

151151
# Class members
152-
python {baseDir}/scripts/diagram.py -t src/ -T containment
152+
uv run {baseDir}/scripts/diagram.py -t src/ -T containment
153153

154154
# Complexity heatmap (threshold 5)
155-
python {baseDir}/scripts/diagram.py -t src/ -T complexity --threshold 5
155+
uv run {baseDir}/scripts/diagram.py -t src/ -T complexity --threshold 5
156156

157157
# Data flow from entrypoints to a specific function
158-
python {baseDir}/scripts/diagram.py -t src/ -T data-flow -f execute_query
158+
uv run {baseDir}/scripts/diagram.py -t src/ -T data-flow -f execute_query
159159
```
160160

161161
---

0 commit comments

Comments
 (0)