YouTube MCP for Claude & ChatGPT
TubeLab is the YouTube MCP Server for Claude and ChatGPT. Real channels, viral outliers, video transcripts and much more - all in your AI chat.
翻訳待ち
Agent skill R2G. Initial version for leveraging OpenRoad.
翻訳待ち
スキルPython · ShellGitHub @ShenShan123自分でインストール所有者未確認
Paste into Claude or ChatGPT for installation instructions suited to your environment.
Have you tried it? One tap is enough. No sign-in needed.
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗r2g 是一个开源 EDA 自主 agent:给它一批 Verilog,它在后台跑完综合、布局布线、DRC/LVS 签核; 遇到失败自己读日志、诊断、选修法、重跑、复核;最后把签核通过的设计转成机器学习数据集 (GNN 图数据集 或 CNN 图像数据集),逐项独立校验后交给你。模型由你选择:DeepSeek、通义千问、 Kimi、智谱 GLM、豆包、OpenAI、Gemini、Claude 或本地 Ollama,配置即用。
需要一台 x86_64 Linux 机器(Ubuntu 22.04 及以上、Debian 12 及以上等 glibc ≥ 2.35 的发行版;安装过程不需要 root 权限),系统预先有 Git、curl、CA 证书及带 venv/ensurepip 的 Python 3.10+。三平台安装和小设计验收建议至少准备 80 GB 可用空间,其中包含默认运行磁盘保护要求的 50 GB 余量。下载需要访问 GitHub、Conda 和 Python 软件源;耗时取决于网络和磁盘速度。
git clone https://github.com/ShenShan123/r2g-skills.git
cd r2g-skills
bash install.sh
install.sh 会依次:检查机器 → 安装 EDA 工具链(下载生成所有 r2g 数据集所用的同一套 OpenROAD、Yosys、
KLayout 预编译包并校验 sha256,固定版本的 OpenROAD-flow-scripts,以及图数据集用的 PyTorch 环境;
已安装的依赖会被识别并跳过;SKY130/GF180 PDK 固定到实验使用的包版本并核对包哈希)→ 分别严格验证 nangate45、sky130hd、gf180 平台可用 → 安装 agent →
把 r2g 命令放进 ~/.local/bin → 让你选择模型并填写 API 密钥(只保存在本机)→ 可选地跑一次自检
(在每个所选平台上运行内置 counter8,从 RTL 到图数据集)。安装器的成功退出不代表完整语料全部通过;是否执行了物理自检会单独打印。
SystemVerilog 修复使用独立的实验版 Yosys/Slang(OSS CAD Suite 2025-03-29),安装器会自动下载并校验归档和二进制哈希,保存其路径;它不会替换布局布线流程使用的 Yosys。
常用参数:--yes(不逐项确认)、--prefix DIR(大文件放哪里)、--platforms nangate45(只安装并验证指定平台,多个平台用逗号分隔)、--skip-toolchain(工具链已就绪)、
--provider deepseek --key-env DEEPSEEK_API_KEY(不交互地配置模型)。无模型密钥的完整流程验收可以使用 bash install.sh --yes --prefix /your/install/path --no-config --selftest。完整说明:bash install.sh --help。
任务在装了 r2g 的那台机器上跑,浏览器只是看和操作的窗口。 r2g 只能装在 Linux 上(工具链是 Linux 预编译包),所以 Windows / Mac 用户把它装在 Linux 服务器上,自己电脑只开浏览器。
| 装在哪里 | 任务在哪里跑 | 怎么打开网页 |
|---|---|---|
| 自己的 Linux 电脑 | 本机 | r2g ui,浏览器打开 http://127.0.0.1:8770 |
| 服务器(推荐,算力大) | 服务器 | 服务器上 r2g ui 常驻,自己电脑转发端口后打开(见下) |
服务器上启动服务,并让它一直开着(放进 tmux,或者后台运行):
nohup r2g ui > ~/r2g_ui.log 2>&1 & # 默认端口 8770;换端口:r2g ui --port 9000
在自己电脑上把服务器的端口转发到本机,任选一种:
VS Code 远程连着服务器:底部「端口 / PORTS」面板里转发 8770,点地球图标打开。最省事。
SSH 隧道(Windows PowerShell、Mac、Linux 都一样):
ssh -N -L 8888:127.0.0.1:8770 用户名@服务器地址
输入密码后窗口不动是正常的,别关;然后浏览器打开 http://127.0.0.1:8888。
如果报 bind [127.0.0.1]:8888: Permission denied,说明本机这个端口被占用或被系统保留,
把 8888 换成别的数字(如 7070)再试;Windows 上可用
netsh interface ipv4 show excludedportrange protocol=tcp 查看保留端口。
几点说明:
~/.r2g/ 下,互不影响。| 开始 | 任务 | 对话 |
|---|---|---|
命令行与其他客户端:
r2g config --provider qwen --set-key # 更换模型
r2g check-model # 测试模型连通与工具调用
r2g run --example counter8 # 不经过对话,直接跑
r2g status # 查看任务
r2g chat # 终端里对话
r2g mcp # 作为 MCP 服务器,接入 Claude Code、Cursor 等客户端
| 图数据集(graph) | 图像数据集(image) | |
|---|---|---|
| 形式 | PyTorch Geometric:五种视图(b–f)+ 网表图,HeteroData | GCell 网格上的多通道数组(.npz,[x][y])+ 预览图 |
| 特征 | 单元、线网、引脚的几何与电气特征 | 单元密度、宏单元区域、RUDY、引脚 RUDY、引脚密度 —— 只取自放置后的版图,不含布线信息 |
| 标签 | 拥塞、线长、时序、IR drop、RC 寄生参数 | 拥塞、IR drop |
| 校验 | tools/verify_graph_dataset.py(数百项) | verify_images.py(17 项,含与图数据集拥塞标签的逐单元对齐) |
当前版本支持 nangate45(45 nm)平台;sky130hd、gf180 正在适配。设计文档:
docs/agent/AGENT_DESIGN.md。
A Claude Code skill that drives an open-source RTL-to-GDS flow — from natural-language spec (or existing RTL) through synthesis, place-and-route, and full signoff (DRC, LVS, RCX) — using Yosys, OpenROAD-flow-scripts, KLayout, and OpenRCX.
Install the r2g-skills skills (eda-install to set up the toolchain, rtl-acquire to grow an RTL corpus at scale, signoff-loop for RTL→GDS + signoff, def-graph for graph datasets), then ask Claude: "set up the EDA tools" followed by "synthesize this UART at 100 MHz on nangate45" — it handles everything from provisioning to GDSII. Recent changes: see CHANGELOG.md.
| Tool | Required | Purpose |
|---|---|---|
| Python 3.10+ | yes | skill scripts |
| Yosys | yes | synthesis |
| iverilog / vvp | yes | simulation |
| OpenROAD + ORFS | yes | place & route, RCX |
| Verilator | optional | faster lint |
| KLayout | optional | GDS viewer, DRC, LVS |
| Magic + Netgen | optional | sky130 DRC / LVS |
| OpenSTA | optional | standalone STA |
| sky130A PDK | optional | sky130 signoff |
| torch + torch_geometric + pandas | optional | PyG graph datasets (run_graphs.sh; venv on /proj, R2G_GRAPH_PYTHON) |
git clone https://github.com/ShenShan123/r2g-skills.git
cd r2g-skills
bash r2g-skills/install.sh --user # installs eda-install + rtl-acquire + signoff-loop + def-graph into ~/.claude/skills/
Restart Claude Code (or run /reload) after install.
Other options:
This is the beginning of the README. Read the rest at the original. Read the full README ↗