Skip to content
Back to skills

Model Workflow

ASecurity

Create, understand, modify or debug local PyTorch nn.Module models with a current TensorViz graph. Use for local model architecture, forward-pass tensor flow, shape errors and activation or layer changes. Exclude unrelated Python work, conceptual questions without local code and requests to avoid graphing or execution.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 20, 2026
ai-agentspythonshellnode

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 20, 2026

npx -y skills add tensorviz-org/tensorviz --skill model-workflow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Model Workflow?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Model Workflow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tensorviz-org-model-workflow/badge)](https://www.skillsdirectory.com/skills/tensorviz-org-model-workflow)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: model-workflow
description: Create, understand, modify or debug local PyTorch nn.Module models with a current TensorViz graph. Use for local model architecture, forward-pass tensor flow, shape errors and activation or layer changes. Exclude unrelated Python work, conceptual questions without local code and requests to avoid graphing or execution.
---

# TensorViz model workflow

Read the user's request first. Do not run anything on startup. Explicit opt-outs,
read-only instructions and the client's native execution/edit approvals take
priority. Work only on projects relevant to the user's request.

Discover the advertised TensorViz tools and host capabilities once. Use the exact
workspace checkout, model file and class from the current task. Do not infer a
workspace from the launcher's directory or silently use another worktree.

If discovery reports the relevant current graph, use `get_model_context` when
advertised before requesting another capture. Reuse complete retained facts for
the same captured source/setup; omitted unrelated modules do not invalidate an
included module's complete retained call list. Counts are unique registered
parameter elements at call entry, not trainable-only counts or memory. Respect
unknowns and capture omissions; retained input/state identity does not reverify
current inputs, weights or dependencies. Use exact `focus`/a larger `maxBytes` for
omitted modules and `inspect_capture` for oversized call lists. Reading context
never refreshes execution. New source/setup or missing required measurements need
an explicit capture through the host's existing permission flow.

Graph recording uses `limits.max_capture_bytes` (16 MiB by default, 1024–16777216
bytes). `max_record_bytes` is a separate validation-record budget capped at 4 MiB;
raising it cannot expand a graph. Preserve explicit smaller capture limits. When a
capture reports `byte_limit`, inspect its resolved capture limits and coverage
before changing the saved recipe. A passing forward is not a complete recording.

Use `open_graph` when a capture is needed and the tool is advertised. It waits briefly for completion and yields early
for permission or setup. Poll the same requestId only while it remains pending;
never start duplicate captures or sleep repeatedly in the agent. Continue its returned next action until a
current capture succeeds, a model failure has evidence, the user cancels, or a
concrete blocker requires their input. Inspect repository evidence for missing
setup; ask about unresolved domain choices or assets. A source preview, connected
server or tool call is not a successful capture. Do not change inputs to hide a
model failure or retry an unchanged failed action.

Use the environment reported by tensorViz. The tensorViz plugin remembers the
saved/project environment and offers available previously used interpreters when
there is no project choice. Start without `managedRuntime`; select an offered
interpreter when the user or project identifies it. Do not search arbitrary
directories or guess shell Python. With no available choices on a supported
platform, the host prepares a managed environment under its existing permission.
An explicit `managedRuntime: true` requests a separate environment.
The tensorViz plugin remembers the
user's plugin permission from installation or first use. Once granted, continue
inspection, setup, dependency repair and capture without asking for additional
TensorViz approvals. Honor a declined or revoked permission. Never approve a
permission prompt, invoke the permission helper, edit permission records, change
client permission settings or send an invented approval flag on the user's behalf.
If the user explicitly asks to enable TensorViz after a declined or cancelled
decision, use the stopped opening's `request_permission` recovery action. It
shows the user's confirmation and resumes the same opening after acceptance;
it does not grant permission itself. Never repeat it automatically after a decline.
If the project defines example inputs in a Python function such as `graph_inputs`,
reference that exact function with `inputs: { factory: { file, callable, kwargs } }`
in the setup draft. Read its source first; do not guess a function or manually
serialize its tensors. It must return named forward inputs or an explicit
`{args, kwargs}` binding. TensorViz executes it once in the capture worker.
Keep saved inputs
and recapture after a coherent source change, not after every file write.

In clients supporting MCP Apps, use `open_graph_panel` when advertised to show
the native Model graph panel beside this chat. Open it once; it follows the current
capture. Check `list_models` for a connected current view before claiming display,
and use that viewId for `get_selection` and `focus_view`. Do not call the panel's
app-only transport tools. The panel opening alone does not prove rendering.

For clients without MCP Apps, use `open_graph_view`: open the returned private
URL once in a browser and poll its handoff for the exact display receipt. The
link expires after two minutes and is consumed on first bootstrap. Display
failure is separate from capture failure. Keep private links out of logs and
external messages.

For plugin hosts, ordinary source edits use the coding agent's normal review
workflow. Use TensorViz source proposals only when the host advertises and supports
the complete review path. Never bypass a pending proposal. Use graph comparison
only when advertised; focusing a changed node does not show a diff.

Finish with the graph result, the model result and any evidenced limitation. If
the installed host lacks a required capability, name it accurately rather than
claiming completion or routing to a different host.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.