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.
mdr add shenshan123/r2g-skills/def-graph@git:20261023.d4762bePins 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
mdr add shenshan123/r2g-skills/def-graph@sha256:f6cb01d66331d76fThe 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.
[](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.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261023.d4762be latest | 2026-10-23 | d4762be | 20,292 B | A | view · diff |
| git:20260924.1ead9fb | 2026-09-24 | 1ead9fb | 18,555 B | A | view · diff |
| git:20260801.67e1f6f | 2026-08-01 | 67e1f6f | 18,470 B | A | view · diff |
| git:20260801.03e61d0 | 2026-08-01 | 03e61d0 | 18,466 B | A | view · diff |
| git:20260724.f25d424 | 2026-07-24 | f25d424 | 15,271 B | A | view · diff |
| git:20260721.8c1fa14 | 2026-07-21 | 8c1fa14 | 14,874 B | A | view · diff |
| git:20260716.de4717c | 2026-07-16 | de4717c | 13,901 B | A | view |
Audit of the latest version
- 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
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.