assembly

assembly is a skill for Claude Code, Codex from halsyourpal422/Battenmark. It costs 0 tokens per session (697 once invoked), scanned A, original, Apache-2.0.

A guide for building a mechanical assembly from two or more CAD parts. It explains how to position parts with constraints, which are rules describing how components fit or move relative to one another.

In plain words
What is it for?
It is for creating component instances, fixing a reference part, adding constraints step by step, checking remaining degrees of freedom, detecting interference, and exporting the assembly.
Why use it?
It helps avoid parts that interfere or assemblies that are either too loose or constrained in conflicting ways.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for creating component instances, fixing a reference part, adding constraints step by step, checking remaining degrees of freedom, detecting interference, and exporting the assembly.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/halsyourpal422/battenmark/assembly
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add halsyourpal422/Battenmark --skill assembly
Clone the repo
git clone --depth 1 https://github.com/halsyourpal422/Battenmark

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for assembly

README.md
[![agentmods](https://agentmods.dev/badge/skills/halsyourpal422/battenmark/assembly/github.svg)](https://agentmods.dev/skills/halsyourpal422/battenmark/assembly)
Your own site
<a href="https://agentmods.dev/skills/halsyourpal422/battenmark/assembly"><img src="https://agentmods.dev/badge/skills/halsyourpal422/battenmark/assembly/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for assembly

Your own site · 80×15
<a href="https://agentmods.dev/skills/halsyourpal422/battenmark/assembly"><img src="https://agentmods.dev/badge/skills/halsyourpal422/battenmark/assembly.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 697 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00697
Opus 5.5 $0.00000 $0.00279
Sonnet 5.5 $0.00000 $0.00139
Haiku 4.5 $0.00000 $0.00070

Measured 1mo ago against content hash ab1a148dce79, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

assembly scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/assembly/SKILL.md · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mechanical Assembly

Purpose

Build a multi-part assembly from component definitions, create instances, ground a reference frame, apply constraints incrementally, inspect degrees of freedom (DOF) after meaningful steps, detect over-constraint and interference, then export.

Use when

  • Two or more parts must be positioned with mechanical constraints.
  • You need honest remaining-DOF feedback after each major mate.

Do not use when

  • Still designing a single solid (use basic-part or enclosure).
  • Need kinematics, gear joints, or path mates (not in the current bounded rigid subset).

Preconditions

  • REQUIRED: Parts exist as bodies or will be modelled first.
  • RECOMMENDED: inspect_backend_capabilities for assembly support.

Planning rules

  1. Model or import each part independently.
  2. Create assembly → define components → create instances.
  3. Ground exactly one reference instance with fix_instance.
  4. Add constraints one at a time; after each major step call inspect_assembly.
  5. Prefer under-constraint you can tighten over over-constraint you must undo.
  6. Use solver errors as evidence.
  1. REQUIRED — Model parts or import; validate.
  2. REQUIRED — create_assembly → define_component → create_instance.
  3. REQUIRED — fix_instance on reference (grounds 6 DOF).
  4. REQUIRED — Incremental: mate_faces, align_axes (concentric), set_distance, set_angle, …
  5. REQUIRED — After each major constraint: inspect_assembly (read remaining_dof).
  6. RECOMMENDED — check_interference.
  7. REQUIRED — rebuild_assembly → export_assembly.

Geometry / mechanical rules

DOF expectations (diagnostic — always trust inspect_assembly)

State Typical remaining DOF
Free instance 6
After planar mate_faces 3
After concentric 2
Concentric + axial stop 1
Fully constrained 0

Constraints evaluate in insertion order; second referenced instance moves; grounded never move. Do not stack redundant constraints blindly. Do not reproduce the solver inside the skill; inspect the real output.

Read the full file on GitHub · 62 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 62 lines · 0 tokens per session scan A ab1a148dce79

Subscribe to this mod's changes

assembly is a skill published in the GitHub repository halsyourpal422/Battenmark (1 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 697 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

freecad

Use when doing parametric 3D CAD modeling, BIM/architectural design, FEM simulation, CAM toolpath generation, or robot simulation with Python scripting. FreeCAD: the leading open-source parametric 3D CAD with Sketcher, Part, PartDesign, Arch, CAM, and FEM workbenches.

znlgis/opengis-skills · 67 tokens

cadquery

Use when scripting parametric 3D CAD models in Python — programmatic part generation, parametric design optimization, STEP export. CadQuery: Python-based parametric CAD built on OCCT kernel with a fluent API.

znlgis/opengis-skills · 47 tokens

simplecadapi

Build, assemble, inspect, reconstruct, and export parametric CAD models with the SimpleCADAPI Python SDK. Use for SimpleCAD geometry modeling, constrained sketches, parts and assemblies, standard gears and bearings, STEP/BREP inspection and reconstruction, vector-PDF drawing reconstruction, durable product packages…

NiJingzhe/SimpleCADAPI · 71 tokens

skill-creator

Create new FreeCAD AI skills, modify existing skills, and iteratively improve them. Use when users want to create a skill from scratch, update or optimize an existing skill, capture a workflow as a reusable skill, or improve an existing skill's instructions. Also trigger when the user says "turn this into a skill"…

ghbalf/freecad-ai · 85 tokens

create-validation

Generate a draft VALIDATION.md for a skill by analyzing its SKILL.md construction steps.

ghbalf/freecad-ai · 20 tokens

enclosure

Generate a parametric electronics enclosure with a base and lid.

ghbalf/freecad-ai · 15 tokens