def-graph SKILL.md skillA

def-graph from shenshan123/r2g-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add shenshan123/r2g-skills/def-graph@git:20261023.d4762be

Pins git:20261023.d4762be in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
shenshan123/r2g-skills
Path
r2g-skills/def-graph/SKILL.md
Versions recorded
7
Latest version
git:20261023.d4762be, committed Oct 23, 2026
First version recorded
Jul 16, 2026
Size
20,292 bytes
Repository stars
44
License
MIT

Convert clean, signed-off physical-design files (DEF/LEF/liberty/SPEF from an ORFS backend run) into training-ready PyTorch-Geometric graph datasets. Use when the user wants to build a graph dataset from placed-and-routed designs — the five graph views (b–f), the tech-lib/LEF/DEF parser, node/edge feature extraction, or per-cell/per-net labels (congestion, RC parasitics, wirelength, timing, IR drop). Companion to the signoff-loop skill, which produces the physical-design inputs this skill…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# def-graph Skill

Turn a completed, signed-off backend run into a **training-ready graph dataset**. This is the
X/Y dataset-construction half of the RTL→GDS→Graph pipeline: it reads the physical-design
artifacts a signoff flow produces (`6_final.def`, `6_final.odb`, optional `6_final.spef`, plus
the platform liberty/LEF) and emits per-node/per-edge **features (X)**, per-cell/per-net
**labels (Y)**, and five PyTorch-Geometric **graph topologies (b–f)**.

Produce the inputs with the **signoff-loop** skill (or any ORFS run that leaves a
`6_final.def`); this skill consumes them. It never runs place-and-route.

## Environment Setup

Every stage sources `scripts/flow/_env.sh` on entry, which autodetects ORFS + tool paths
(shared resolver, identical contract to the signoff-loop skill). Nothing to source manually.
Resolution order (first hit wins, per value): caller env → `$R2G_ENV_FILE` → in-skill
`references/env.local.sh` → `$ORFS_ROOT/env.sh` → `/opt/openroad_tools_env.sh` → autodetect.

The graph-assembly stage additionally needs a **torch venv** (torch + torch_geometric +
pandas). Point `R2G_GRAPH_PYTHON` at its `bin/python`; the label/feature/techlib stages do not
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add shenshan123/r2g-skills/def-graph@sha256:f6cb01d66331d76f

The line at the top of this page pins the label git:20261023.d4762be, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_g2a6c5rnrfhiv3l2.svg)](https://markdownregistry.com/a/art_g2a6c5rnrfhiv3l2)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 7 versions of this file, between Jul 16, 2026 and Oct 23, 2026, about one every 16 days.

versioncommittedcommitsizeaudit
git:20261023.d4762be latest2026-10-23 d4762be 20,292 BA view · diff
git:20260924.1ead9fb2026-09-24 1ead9fb 18,555 BA view · diff
git:20260801.67e1f6f2026-08-01 67e1f6f 18,470 BA view · diff
git:20260801.03e61d02026-08-01 03e61d0 18,466 BA view · diff
git:20260724.f25d4242026-07-24 f25d424 15,271 BA view · diff
git:20260721.8c1fa142026-07-21 8c1fa14 14,874 BA view · diff
git:20260716.de4717c2026-07-16 de4717c 13,901 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (20292 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

shenshan123/r2g-skills · 44 stars · license MIT · pushed 2026-10-29 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_g2a6c5rnrfhiv3l2
GET https://markdownregistry.com/api/v1/resolve?ref=shenshan123/r2g-skills/def-graph
GET https://markdownregistry.com/api/v1/blob/f6cb01d66331d76fd78d1433e83ebf8ec1382fd90caf94077310da4ffa8fc26b

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from shenshan123/r2g-skills

CLAUDE.md CLAUDE.md file
shenshan123/r2g-skills · CLAUDE.md
git:20261018.0a36d7c · audit A · 44 stars
eda-install SKILL.md skill
shenshan123/r2g-skills · r2g-skills/eda-install/SKILL.md · Detect a machine's environment and install + verify the open-source EDA toolchain that the signoff-loop and def-graph…
git:20261023.62ecfc8 · audit A · 44 stars
rtl-acquire SKILL.md skill
shenshan123/r2g-skills · r2g-skills/rtl-acquire/SKILL.md · Discover, screen, and acquire RTL at corpus scale (local trees, repo manifests, keyword search) and expand it —…
git:20260924.1ead9fb · audit A · 44 stars
signoff-loop SKILL.md skill
shenshan123/r2g-skills · r2g-skills/signoff-loop/SKILL.md · Drive an open-source EDA workflow from RTL to GDS with full signoff (DRC, LVS, RCX) using OpenROAD-flow-scripts (ORFS)…
git:20261028.2b824f5 · audit A · 44 stars

Every file in shenshan123/r2g-skills

Browse by kind, by grade A, or by owner.