cli-anything-inkstitch
Stateful CLI for machine-embroidery digitization with Ink/Stitch — built so an LLM (or a human at a terminal) can take a vector design from raw SVG to stitchable DST/PES/JEF without leaving the command line.
See SPEC.md for the full technical specification, skills/cli-anything-inkstitch/SKILL.md for agent-facing CLI usage, and skills/embroidery-digitization/SKILL.md for the parameter-decision wisdom that informs which settings to pick.
Install (dev)
pip install -e '.[dev]'
The CLI itself is pure Python (lxml + click + pyembroidery). For binary-backed commands (tools, preview generate, export, validate run/fix) install Ink/Stitch. For raster previews (preview generate --raster, preview rasterize) install Inkscape 1.0+.
Quick start
PROJ=/tmp/logo.inkstitch-cli.json
# Open an SVG into a project, prep it (assigns IDs, inlines CSS-class fills,
# detects Illustrator stroke-to-outline rings)
cli-anything-inkstitch document open --project $PROJ --svg /tmp/logo.svg
cli-anything-inkstitch document prep --project $PROJ --illustrator-rings satin
# Capture material/intent so subsequent param decisions are grounded
cli-anything-inkstitch document set-context --project $PROJ \
--material "knit cotton t-shirt" --stretch high \
--thread "40wt polyester" --stabilizer "medium cut-away" \
--intent "wash-durable team logo"
# Get rich per-element context (size, position, neighbors, color name)
cli-anything-inkstitch --json element describe --project $PROJ
# Set stitch type and parameters
cli-anything-inkstitch params set --project $PROJ --id logo_outline \
--stitch-type satin_column --pull-compensation-mm 0.4
# Validate and auto-fix what can be fixed
cli-anything-inkstitch --json validate fix --project $PROJ
# Preview the stitch plan as PNG so the LLM (or you) can visually evaluate
cli-anything-inkstitch preview generate --project $PROJ \
--out /tmp/logo-preview.svg --raster --dpi 200
# Export
cli-anything-inkstitch export file --project $PROJ --format dst --out /tmp/logo.dst
What's in here
Core CLI (Python):
document— project & SVG management, prep for Illustrator-exported SVGs, design-intent context capture, palette + thread color enumerationelement— list, get, describe (with bbox/position/color/neighbors), classify, delete, clear-paramsparams— set, get, copy, presets — with full inkstitch param-schema validationcommands— attach/detach Ink/Stitch visual commands (stops, trims, fill markers)validate— static schema checks, binary-backed troubleshoot run, fix dispatcher (auto + manual suggestions)tools— binary-backed geometry rewrites (auto-satin, auto-run, convert satin↔stroke, cleanup)preview— stitch-plan SVG generation, raster (PNG) output via Inkscape, parsed statsexport— single-format file, multi-format ZIP with optional threadlistschema— introspect the inkstitch param schema (extracted from inkstitch source)session— undo / redo / history (50 levels)
Two skills:
cli-anything-inkstitch— agent-facing CLI usage: every command, every flag, every output format, agent gotchas.embroidery-digitization— the wisdom layer: per-element decision flow, fabric-specific push/pull comp tables, satin width thresholds, underlay strategies, color/needle ordering, visual failure-mode diagnosis, three full starting recipes.
Status
v0.1 — core surface complete. ~180 tests cover both pure-Python paths and binary-mocked integrations; the binary-backed commands are also live-verified against Ink/Stitch v3.2.2 on macOS.
Out of scope (per SPEC.md §4.12): GUI, Inkscape extension wrapping, lettering UI, real-time machine control.
Tests
pytest # full suite
pytest -k fix # one area
License
Apache-2.0 — see LICENSE.
Metadata
Release files for cli-anything-inkstitch 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cli_anything_inkstitch-0.1.3.tar.gz | 100.2 kB | Without provenance | Details for cli_anything_inkstitch-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cli_anything_inkstitch-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for cli_anything_inkstitch-0.1.3-py3-none-any.whl |
Total release size: 171.6 kB
Release files / cli_anything_inkstitch-0.1.3.tar.gz
| Download URL | cli_anything_inkstitch-0.1.3.tar.gz |
|---|---|
| Size | 100.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f08dcaa02c9cd32a664853e7b9094088d2737a4587ee25de242b5d30b06fde7a
|
|
BLAKE2b-256 checksum How to use checksums |
7ece181e5cbc640f2530e34c3356ae7bcece4321d7823fbbca7f9f73a7555731
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / cli_anything_inkstitch-0.1.3-py3-none-any.whl
| Download URL | cli_anything_inkstitch-0.1.3-py3-none-any.whl |
|---|---|
| Size | 71.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
56b7d8406e0c3edcd43f16f202fc4bba431c033c2d0eca0515194092eceaeaa8
|
|
BLAKE2b-256 checksum How to use checksums |
b2623a40ffaa7400683c409798cdf6ed9b82bbf13dcfc7d6aa53c2975a40eee2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for cli-anything-inkstitch 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.