Aligning Parts By Connector Constraints logo

Aligning Parts By Connector Constraints

Organization
runtime-si
aligning-parts-by-connector-constraints

Turns connector statements about a LEGO or DUPLO build - "part P's tubes on base B's studs, P's stud (a, b) over B's stud (i, j), turned r" - into exact plate cells, layers and world poses, solving them in dependency order on the stud lattice (Manual2Skill++'s connector-aware pose alignment, which for studs and tubes reduces to integer lattice arithmetic). A part named by two statements (a bridge over two bases) must come out the same from both. Unsupported parts (on none of the base's studs), overlaps, cycles, unknown bases and parts off the plate are reported. Outputs the steps planning-brick-assembly-order reads and per-part cells for computing-brick-pose-from-stud-grid. Use when a build is described at the connector level (by a VLM reading a manual page, or a person saying "put the 1x2 on the left two studs of the red 2x4") rather than as an LDraw file, and needs exact stud-grid poses.

Overview

Publisherruntime-si
RepositoryRoboSkillHub
Skill namealigning-parts-by-connector-constraints
Stars
242
Forks
27
Bundled files
2
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by runtime-si on GitHub. Read the source before you install it.

Installation

Install the Aligning Parts By Connector Constraints AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/runtime-si/RoboSkillHub/tree/main/skills/aligning-parts-by-connector-constraints
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/runtime-si/RoboSkillHub.git /tmp/RoboSkillHub
mkdir -p .claude/skills
cp -r /tmp/RoboSkillHub/skills/aligning-parts-by-connector-constraints .claude/skills/aligning-parts-by-connector-constraints
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Aligning Parts By Connector Constraints in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Aligning Parts By Connector Constraints on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Aligning Parts By Connector Constraints is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

aligning-parts-by-connector-constraints

A manual page or a person describes a build by its connections: this brick on those studs of that one, turned this way. Manual2Skill++ turns such connector statements into 6D part poses by aligning connector frames. For studs and tubes every connector frame is a lattice node with a vertical axis, so the alignment is exact integer arithmetic; this skill does that part.

Statements

{part, on, at: [i, j], rotation, part_stud: [a, b]}: part's stud part_stud (default its stud (0, 0)) goes over the base's stud at, in the base's own stud coordinates (u along its first size number, v along its second), with the part turned rotation degrees (0, 90, 180, 270) about +z relative to the base. on: "plate" (or plate.id) is the baseplate, coordinates (0, 0) at its corner. size "AxB" (or in parts), height_units 3 for a brick and 1 for a plate.

How it solves

  1. Read the statements; a part's size and height come from parts, else from its first statement (a later different size is a conflict).
  2. Repeatedly place every part whose bases are all placed (cycles and unknown bases are reported): the part's stud (0, 0) goes to base.stud(at - R_r(part_stud)), its rotation is the base's plus r, its bottom on the base's top (base z + base height).
  3. Checks: at least min_support (1) of its studs sit over the base's studs; the same cells and height (rotation modulo the brick's symmetry) from every statement that names it; no shared cell with a part whose height range overlaps; inside the plate's stud area.
  4. Out: per part the plate cell of its footprint's corner (cell x, y, layer, rotation), spans, z_units, height_units, kind, step; with plate.origin the footprint centre's world position and yaw (cells to metres by the pitch, 8 mm LEGO / 16 mm DUPLO); steps_json is one step per part in solve order, in planning-brick-assembly-order's format.

Checked

No arm motion, no robot tools. Tests (tests/bundles/test_aligning_parts_by_connector_constraints.py): a turned brick on a brick, a part-stud anchor on a turned base, a bridge spelled from both bases (agreeing and disagreeing), each inconsistency kind, one-stud overhangs and min_support, world poses on a turned plate, plates stacking by their own height, and two LDraw models round-tripped: the hub's brick plans for pyramid.ldr (13 bricks) and the 1869 South African Flag (82 bricks) re-written as connector statements (each brick on the plate or on a brick under it, at that base's stud of its own stud (0, 0)) and solved back - every brick's cells and height identical to the plan - then fed to planning-brick-assembly-order, which places all of them (finger check off).

Limits

  • Stud-to-tube connections only (no SNOT, Technic pins, hinges, jumper half-stud offsets).
  • The statements must already be in stud coordinates; turning a manual page into them is a VLM's job (extracting-a-subassembly-tree-from-manual-pages or a prompt), and its mistakes come out as constraints_inconsistent only when they are inconsistent.
  • No stability analysis (checking-design-connectivity-and-collisions).

Provenance

The connector-alignment idea is Manual2Skill++'s (Tie et al., ICRA 2026). Its repository has no licence, so nothing was copied; for LEGO the solver is a few lines of lattice arithmetic written here. The lattice and cell conventions are computing-brick-pose-from-stud-grid's and planning-brick-assembly-order's.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Aligning Parts By Connector Constraints AI skill do?

Turns connector statements about a LEGO or DUPLO build - "part P's tubes on base B's studs, P's stud (a, b) over B's stud (i, j), turned r" - into exact plate cells, layers and world poses, solving them in dependency order on the stud lattice (Manual2Skill++'s connector-aware pose alignment, which for studs and tubes reduces to integer lattice arithmetic). A part named by two statements (a bridge over two bases) must come out the same from both. Unsupported parts (on none of the base's studs), overlaps, cycles, unknown bases and parts off the plate are reported. Outputs the steps planning-b...

Why use Aligning Parts By Connector Constraints on TypingMind?

Because you install it once and use it with any model. Aligning Parts By Connector Constraints is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Aligning Parts By Connector Constraints in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/runtime-si/RoboSkillHub/tree/main/skills/aligning-parts-by-connector-constraints. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Aligning Parts By Connector Constraints?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Aligning Parts By Connector Constraints?

As many as you like. As long as a model supports skills, you can use Aligning Parts By Connector Constraints with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Aligning Parts By Connector Constraints AI skill free?

Yes. It is published on GitHub by runtime-si under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇