step-parts
earthtojake/text-to-cad
Search and download off-the-shelf CAD parts from step.parts catalog via API.
What is step-parts?
Integrates with the step.parts hosted catalog to find, evaluate, and download real purchasable components like actuators, servos, motors, connectors, and fasteners as STEP files. Use this when your CAD assembly needs named off-the-shelf parts instead of placeholder geometry, or to resolve fuzzy part names and standards.
- Search step.parts API for named actuators, servos, motors, electronics, connectors, fasteners, and other catalog components
- Resolve fuzzy part names, aliases, standards, and dimensions against the canonical catalog
- Download STEP files with SHA256 checksum verification
- Query by exact facets (category, family, standard, tag) or free-text search tokens
- Retry common model aliases and vendor spellings before treating a search as a miss
- Return part metadata including id, name, standard, attributes, and provenance URLs
How to install step-parts
npx skills add https://github.com/earthtojake/text-to-cad --skill step-parts- Python 3 (for bundled download_step_part.py script)
- Network access to https://api.step.parts and https://www.step.parts
- Optional: custom hosted mirror URL if not using the default step.parts endpoints
How to use step-parts
- 1.Identify the part name, model number, or search terms (e.g., 'M3 socket head 12', 'STS3215 servo')
- 2.Call the search endpoint or use the bundled script: python scripts/download_step_part.py "<query>" to list candidates
- 3.Review returned records (id, name, standard, attributes) and select the best match
- 4.Download the STEP file by passing --download flag or fetching the stepUrl directly
- 5.Verify the downloaded file against the sha256 checksum if provided in the record
- 6.Use the local STEP file path in your CAD assembly; record the part id and API URL for provenance
Use cases
- Replace placeholder geometry with real STEP files for a servo motor by searching its model number
- Find and download an M3 socket head cap screw matching ISO 4762 standard
- Resolve a fuzzy actuator name like 'STS3215' by searching aliases and family facets
- Verify part availability and dimensions before committing to an assembly design
- Batch download multiple matching connector or fastener variants for comparison
- CAD/mechanical engineers building assemblies with off-the-shelf components
- Hardware designers who need canonical STEP files for real purchasable parts
- Teams using text-to-CAD workflows that require accurate part libraries
- Anyone resolving part names, standards, or dimensions against a hosted catalog
step-parts FAQ
The skill retries common aliases, vendor spellings, and family facets before treating a search as a miss. For example, 'STS3215' will also search 'ST3215', '3215', and 'family=feetech'. If the API is reachable and no match is found, a simplified placeholder is used instead.
Yes. Pass --origin to the download script or configure the API origin in your environment to point to a different hosted mirror instead of https://api.step.parts.
The skill compares the downloaded file's SHA256 hash against the sha256 field in the part record. The download script prints both the saved path and checksum for verification.
Network failures are treated as inconclusive. The skill will retry once with network permission before reporting a miss. Only if the API is reachable and returns no results is a part considered unavailable.
Yes. Use repeatable facet filters like --standard, --family, --category, or --tag to narrow results. For example, --standard ISO4762 filters to ISO 4762 socket head cap screws.
Full instructions (SKILL.md)
Source of truth, from earthtojake/text-to-cad.
name: step-parts description: Find, evaluate, and download common purchasable CAD parts from step.parts, including named off-the-shelf actuators, servos, motors, electronics boards, connectors, screws, bolts, nuts, washers, bearings, standoffs, and other catalog components. Use when Codex needs to search the hosted step.parts catalog before creating simplified placeholder geometry, resolve fuzzy part names, standards, aliases, or dimensions, choose a matching part, fetch a canonical .step file, verify checksums, or use the step.parts API/OpenAPI/catalog endpoints for standard part discovery.
STEP Parts
Provenance: maintained in earthtojake/text-to-cad. Use the installed local skill files as the runtime source of truth; the repository link is only for provenance and release review.
Overview
Use the hosted step.parts machine endpoints instead of scraping HTML or relying on local repository files. Treat https://api.step.parts as the canonical API origin and https://www.step.parts as the site/static-asset origin unless the user provides a different hosted mirror. Network/DNS failures are inconclusive: if api.step.parts cannot be reached from the sandbox, retry once with network permission before reporting a miss or using placeholder geometry. Do not describe a part as unavailable unless the API was reachable and returned no relevant candidates.
When a CAD assembly includes named off-the-shelf actuators, servos, motors, electronics boards, connectors, or other purchasable components, search step.parts before creating simplified placeholder geometry. For named servos, motors, and actuators, search both exact model strings and common aliases/vendor spellings before giving up. For example, STS3215 may also appear as ST3215, 3215, Waveshare Feetech ST3215, or under family=feetech. If the API was reachable and no exact or near-exact match is available, record the search miss and then use a documented envelope or simplified stand-in.
Quick Workflow
- Interpret the requested part into search terms and optional facets:
qfor fuzzy tokens, standards, aliases, dimensions, source/product URLs, and attribute names/values.category,family,standard, ortagwhen the user gives an exact facet.
- Search
/v1/partsand inspectitems,total, andfacets. For actuator model numbers, retry likely aliases, dropped letters, vendor names, and relevant family facets before treating an empty result as a miss. - If results are ambiguous, present the best few options with
id,name,standard, and key attributes before choosing. If one result clearly matches, return the selected record details without downloading unless the user asked for a local STEP file. - When an exact or near-exact off-the-shelf actuator model is found, prefer downloading and using its STEP file unless there is a clear assembly-time reason to use a simplified envelope. Record that choice explicitly.
- When the user asks to download or save a STEP file, download its
stepUrl, then verify the file with the record'ssha256when present. - Return the local path when downloaded, plus the selected part id and page/API URLs so the user can trace provenance.
Bundled Downloader
Use scripts/download_step_part.py for deterministic search, download, and checksum verification:
python scripts/download_step_part.py "M3 socket head 12" --download
python scripts/download_step_part.py --id iso4762_socket_head_cap_screw_m3x12 --download
python scripts/download_step_part.py "bearing 608zz" --limit 5
Useful options:
--origin: overridehttps://api.step.partsonly when the user provides another hosted API origin.--tag,--category,--family,--standard: repeatable facet filters.--out-dir: destination directory for downloads. It defaults to the system temp directory, so pass it whenever the file should survive in the project.--filename: rename the one downloaded file; rejected together with--all.--limit,--page: search page size (default 10, API cap 500) and 1-based page.--all: with--download, download every result on the returned page as individual STEP downloads.--overwrite: replace an existing output file. Without it, an existing destination is refused rather than overwritten.
The script prints JSON to stdout. For searches, it prints matched records. For downloads, it prints saved file paths, checksums, and source URLs. Failures print a one-line plain-text message to stderr and exit 1.
API Reference
Read references/step-parts-api.md when you need endpoint details, field meanings, or query semantics. Prefer:
/v1/partsfor filtered search with absolute asset URLs./v1/parts/{id}for one enriched record.- Returned
stepUrlfor STEP downloads. /v1/catalog/parts.index.jsonfor a compact discovery index./v1/catalog/schemafor field and family attribute meanings./v1/openapi.jsonwhen generating a client or tool.
Search Guidance
- Query tokens are ANDed by the API, so start specific but not overconstrained. For example, use
M3 SHCS 12before adding exact family and standard filters. - Values within one facet are ORed together, and selected
tag,category,family, andstandardfields are ANDed together. Use exact facets to narrow within known categories, then rank manually by name and attributes. - Standards can be queried as
ISO 4762,ISO4762, or the exactstandard.designation. - The
attributesobject contains family-specific facts such asthread,lengthMm,bore1Mm,material,profileSeries,slotSizeMm, and dimensions in millimeters. - Part, GLB, and PNG URL patterns are predictable on
https://www.step.parts; STEP URLs are environment-aware and may resolve to GitHub LFS media in production. Use catalog/APIstepUrlfor downloads.
Related skills
More from earthtojake/text-to-cad and the wider catalog.

urdf
Author, validate, and inspect URDF robot descriptions with frame semantics and inertial correctness.

bambu-labs
Dry-run, upload, and start Bambu Lab print jobs locally via validated G-code and LAN FTPS/MQTT.

cad
Generate parametric CAD models from Python, export to STEP/STL/3MF/GLB, and inspect geometry.

cad-viewer
Open CAD and robot-description files in a live web viewer with browsable catalog and compile status.

effect-ts
Set up Effect TypeScript library in your repository with proper agent instructions.

swift-architecture-skill
Swift iOS architecture guidance for MVVM, MVI, TCA, Clean Architecture, VIPER, MVP, Coordinator, and Reactive patterns.