소스 정보
- 저장소
- opendatahub-io/ai-helpers
- 최근 소스 활동
- 2026년 8월 26일 12:08
- 감지된 SKILL.md 언어
- 영어
- 스타
- 37
- 포크
- 75
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/opendatahub-io/ai-helpers --skill torchtalk-setup명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | torchtalk-setup |
| description | Install and configure TorchTalk MCP server for PyTorch cross-language analysis |
odh-ai-helpers:torchtalk-setup
/torchtalk:setup
The torchtalk:setup command guides you through the complete installation and configuration of the TorchTalk MCP server, which enables cross-language binding analysis for PyTorch codebases (Python/C++/CUDA). This command:
After setup, you can use /torchtalk:trace and the full suite of TorchTalk MCP tools across all Claude Code sessions.
python3 --version
Minimum required: Python 3.10
If Python is too old or missing:
Python 3.10+ is required for TorchTalk.
Install or upgrade Python:
- macOS: brew install python@3.12
- Ubuntu/Debian: sudo apt install python3.12
- Fedora/RHEL: sudo dnf install python3.12
python3 -m pip --version
If pip is missing, provide platform-specific installation instructions.
which torchtalk
If torchtalk is found:
torchtalk status to show current configurationAsk the user where they want to install TorchTalk:
Where would you like to install TorchTalk?
1. ~/src/torchtalk (recommended)
2. ~/.local/share/torchtalk
3. Custom path
Store the chosen directory as $TORCHTALK_DIR.
mkdir -p "$(dirname "$TORCHTALK_DIR")"
git clone https://github.com/adabeyta/torchtalk.git "$TORCHTALK_DIR"
Handle errors:
cd "$TORCHTALK_DIR"
pip install -e .
Verify installation:
torchtalk --help
If install fails:
If libclang fails to install:
libclang requires the clang development libraries.
Install:
- macOS: xcode-select --install (usually already present)
- Ubuntu/Debian: sudo apt install libclang-dev
- Fedora/RHEL: sudo dnf install clang-devel
Search common locations:
echo "$PYTORCH_SOURCE"
ls -d ~/pytorch ~/src/pytorch /myworkspace/pytorch 2>/dev/null
If PyTorch source is found, confirm with the user:
Found PyTorch source at: /path/to/pytorch
Is this the correct PyTorch source directory? (y/n)
PyTorch source code is required for TorchTalk to index bindings.
Options:
1. Enter the path to an existing PyTorch checkout
2. Clone PyTorch now (requires ~2GB disk space, takes a few minutes)
3. Exit setup and clone manually
If cloning:
git clone https://github.com/pytorch/pytorch "$PYTORCH_CLONE_DIR"
Store the PyTorch path as $PYTORCH_SOURCE.
Run checks separately so users get actionable error messages:
test -d "$PYTORCH_SOURCE/torch"
If the torch/ directory is missing:
No 'torch/' directory found — does not appear to be a PyTorch checkout.
Please verify the path and try again.
test -f "$PYTORCH_SOURCE/aten/src/ATen/native/native_functions.yaml"
If native_functions.yaml is missing:
native_functions.yaml not found (required for operator indexing).
The PyTorch checkout may be incomplete or too old.
Consider running: cd "$PYTORCH_SOURCE" && git pull
These checks mirror TorchTalk's validate_pytorch_path() which validates both the torch/ directory and native_functions.yaml.
torchtalk init --pytorch-source "$PYTORCH_SOURCE"
This writes the PyTorch path to ~/.config/torchtalk/config.toml so future runs need no arguments.
Verify configuration:
torchtalk status
Confirm the output shows:
claude mcp add torchtalk -s user -- torchtalk mcp-serve
This registers TorchTalk at user scope, making it available across all Claude Code sessions regardless of working directory.
If claude command is not found:
The Claude Code CLI is required to register MCP servers.
If you're running this from within Claude Code, the registration
may need to be done from a terminal. Copy and run:
claude mcp add torchtalk -s user -- torchtalk mcp-serve
Run validation checks to confirm torchtalk status reports all green and mcp-serve starts without errors:
torchtalk status
timeout 5 torchtalk mcp-serve 2>&1 || true
Display summary:
Setup Complete!
===============
TorchTalk installed at: $TORCHTALK_DIR
PyTorch source: $PYTORCH_SOURCE
Config file: ~/.config/torchtalk/config.toml
MCP server: Registered at user scope
Next Steps:
-----------
1. Restart Claude Code to activate the MCP server
2. Verify MCP tools are available:
Run: mcp__torchtalk__get_status
3. Trace your first operator:
/torchtalk:trace matmul
Optional - Build PyTorch for full call graph support:
cd $PYTORCH_SOURCE && python setup.py develop
Available Commands:
-------------------
- /torchtalk:trace <function> [focus] -- Trace binding chains
- The TorchTalk Analyzer skill handles broader questions like
"How does nn.Linear work?" or "What breaks if I change gemm?"
Documentation:
--------------
- TorchTalk: https://github.com/adabeyta/torchtalk
After the main setup is complete, inform the user about optional advanced features:
Optional: C++ Call Graph Support
================================
TorchTalk can analyze C++ function call relationships (impact analysis,
caller/callee tracking) if PyTorch has been built at least once.
This generates compile_commands.json which TorchTalk uses for
libclang-based static analysis.
Would you like to:
1. Skip for now (you can build later)
2. Learn how to build PyTorch
If the user wants build instructions:
Building PyTorch (one-time, takes 30-60 minutes):
cd $PYTORCH_SOURCE
python setup.py develop
After building, the call graph features (impact, calls, called_by)
will be automatically available on the next Claude Code session.
Check if compile_commands.json already exists:
test -f "$PYTORCH_SOURCE/build/compile_commands.json" && echo "found" || echo "not found"
If found: compile_commands.json already exists. Call graph features are available.
Fresh install with existing PyTorch source:
/torchtalk:setup
> Python 3.12.1 detected
> Installing TorchTalk to ~/src/torchtalk...
> Found PyTorch source at ~/pytorch
> Running torchtalk init...
> Registering MCP server...
Setup complete! Restart Claude Code to activate.
Fresh install, clone everything:
/torchtalk:setup
> Python 3.11.5 detected
> Installing TorchTalk to ~/src/torchtalk...
> Cloning PyTorch to ~/src/pytorch...
> Running torchtalk init...
> Registering MCP server...
Setup complete! Restart Claude Code to activate.
Reconfigure existing installation:
/torchtalk:setup
> TorchTalk already installed at ~/src/torchtalk
> Reconfigure? yes
> Updating PyTorch source path...
> Re-registering MCP server...
Reconfiguration complete!
Scenario: pip install -e . fails on the libclang dependency.
Action:
libclang failed to install. This is usually a missing system package.
Install the clang development libraries:
- macOS: xcode-select --install
- Ubuntu/Debian: sudo apt install libclang-dev
- Fedora/RHEL: sudo dnf install clang-devel
Then retry: pip install -e .
Scenario: The PyTorch checkout is missing expected files.
Action:
The PyTorch source may be incomplete or too old.
Expected files not found:
- aten/src/ATen/native/native_functions.yaml
Try updating your PyTorch checkout:
cd $PYTORCH_SOURCE && git pull
Or clone a fresh copy:
git clone https://github.com/pytorch/pytorch
Scenario: claude mcp add command fails.
Action:
Failed to register MCP server with Claude Code.
You can register manually by running in a terminal:
claude mcp add torchtalk -s user -- torchtalk mcp-serve
Or add to ~/.claude.json manually:
{
"mcpServers": {
"torchtalk": {
"command": "torchtalk",
"args": ["mcp-serve"]
}
}
}
/torchtalk:trace - Trace PyTorch function binding chains