Parametric packaging dielines, Kawasaki/Maekawa foldability verification, spot-color print PDFs/DXFs, and source-derived 3D fold previews.
Generate production-ready tuck boxes, mailers, sleeves, trays, and origami crease patterns with zero third-party Python dependencies and a 13-check mechanical validation gate.
Quickstart · What it makes · Install · How it works · Commands · Limits
Asking a general LLM to draw a packaging dieline produces disconnected SVG lines that cannot fold in 3D, lack paperboard caliper allowances, and fail commercial die-cutting separation checks. design-os-origami is a pure-Python stdlib parametric CAD engine with topological graph verification, spot-color PDF/DXF generation, and source-derived 3D fold kinematics.
| Dimension | Generic AI / Manual Workflow | DESIGN:OS Origami CAD (DESIGN:OS) |
|---|---|---|
| Fold Topology | Hallucinated SVG rectangles with unattached flaps | Mathematically verified planar face graph + Kawasaki/Maekawa flat-foldability checks |
| Printer Exchange | RGB screen drawings rejected by pre-press RIPs | True /Separation spot-color PDF (CUT, CREASE_VALLEY, CREASE_MOUNTAIN, BLEED) + R2000 DXF |
| 3D Fold Preview | Fake decorative mockups disconnected from the dieline | Exact polygon faces and signed hinge angles derived directly from the 2D crease pattern |
| Runtime Footprint | Heavy CAD binaries or cloud subscriptions | 100% Python standard library runtime (dependencies = []) |
| Privacy & Telemetry | Opaque cloud telemetry or unverified third-party APIs | Zero telemetry — 100% local execution (PRIVACY.md audited) |
In Claude Code:
/plugin marketplace add jangtrinh/design-os-origami
/plugin install design-os-origami@design-os-origami
Or from your terminal (Codex, Gemini CLI, Antigravity, OpenCode, or standalone CLI):
git clone https://github.com/jangtrinh/design-os-origami.git
cd design-os-origami
PYTHONPATH=src python3 -B -m unittest discover -s tests -vOpen your project in your AI coding agent and describe what you need:
"Generate a reverse-tuck end carton (120x80x45mm, 0.45mm paperboard) with print bleed, spot-color PDF/DXF dielines, and 3D fold preview."
"Validate this packaging output directory across all 13 mechanical checks (topology, Kawasaki/Maekawa, DXF layers, and printer spots)."
"Render a 9-panel visual inspection contact sheet for our sleeve-and-tray packaging spec and verify zero panel collisions."
python3 scripts/self_check.pyEvery deliverable produced by design-os-origami is backed by a deterministic verification gate rather than freehand AI guesswork.
Prompt: "Generate a reverse-tuck end carton (120x80x45mm, 0.45mm paperboard) with print bleed, spot-color PDF/DXF dielines, and 3D fold preview."
| Deliverable / Mode | Best for | Output Format | Verification Gate |
|---|---|---|---|
| Production Dieline Suite | Generating cutter-ready vector files with caliper & bleed allowances | SVG + Spot-Color PDF + AutoCAD DXF + FOLD JSON |
13-check validate.py gate PASS |
| Interactive 3D Fold Viewer | Inspecting flat-to-folded hinge progression in the browser | Self-contained HTML + fold-model JSON |
preview_records_match parity check |
| 9-Panel Visual Evidence Sheet | Headless Chromium inspection sheet (L1–L9) for human pre-press review |
evidence/look-sheet.png + receipt.json |
look.py 9-checkpoint verifier |
Download 1080p 60fps Showreel (MP4) · Open Pure-Time window.seek(t) HTML
Choose the setup that matches your AI coding agent. Every option installs the same canonical skill (skills/es-origami-cad/SKILL.md) and /doctor diagnostic suite.
Run these two commands inside Claude Code:
/plugin marketplace add jangtrinh/design-os-origami
/plugin install design-os-origami@design-os-origami
Install to your personal Codex skills directory:
git clone https://github.com/jangtrinh/design-os-origami.git /tmp/design-os-origami
mkdir -p ~/.codex/skills/es-origami-cad ~/.codex/prompts
cp -R /tmp/design-os-origami/skills/es-origami-cad/* ~/.codex/skills/es-origami-cad/
cp /tmp/design-os-origami/prompts/doctor.md ~/.codex/prompts/es-origami-cad-doctor.md
rm -rf /tmp/design-os-origamigit clone https://github.com/jangtrinh/design-os-origami.git /tmp/design-os-origami
mkdir -p ~/.gemini/skills/es-origami-cad
cp -R /tmp/design-os-origami/skills/es-origami-cad/* ~/.gemini/skills/es-origami-cad/
rm -rf /tmp/design-os-origamigit clone https://github.com/jangtrinh/design-os-origami.git /tmp/design-os-origami
mkdir -p ~/.agents/skills/es-origami-cad
cp -R /tmp/design-os-origami/skills/es-origami-cad/* ~/.agents/skills/es-origami-cad/
rm -rf /tmp/design-os-origamiVerify or uninstall
Verify installation:
python3 scripts/self_check.pyOr run /doctor inside Claude Code / Codex to inspect installed skill paths, plugin manifests, and gate health.
Uninstall:
rm -rf ~/.claude/skills/es-origami-cad ~/.codex/skills/es-origami-cad ~/.gemini/skills/es-origami-cad ~/.agents/skills/es-origami-cadOnce installed, skills/es-origami-cad/SKILL.md activates automatically when your prompt matches its domain triggers. Browse docs/cookbook.md for copy-paste prompt recipes.
Generate & Scaffold
"Generate a reverse-tuck end carton (120x80x45mm, 0.45mm paperboard) with print bleed, spot-color PDF/DXF dielines, and 3D fold preview."
Audit & Verify
"Validate this packaging output directory across all 13 mechanical checks (topology, Kawasaki/Maekawa, DXF layers, and printer spots)."
Export & Automate
"Render a 9-panel visual inspection contact sheet for our sleeve-and-tray packaging spec and verify zero panel collisions."
| Command | Environment | What it does |
|---|---|---|
/doctor |
Claude Code / Codex | Read-only diagnostic check of installed skill paths, plugin manifests, and runtime prerequisites |
python3 scripts/self_check.py |
Terminal / CI | Deterministic offline verification of manifests, skill contracts, and governance files |
python3 -B scripts/skill_contract.py --check && python3 -B scripts/sync_host_bundles.py --check |
Terminal / CI | Verify canonical skill contract and portable host bundle synchronization across Claude Code, Codex, and Gemini |
- Intent Routing — Your AI agent matches your request against
skills/es-origami-cad/SKILL.mdfrontmatter triggers. - Progressive Context Loading — Only the entry-point
SKILL.mdrouter loads initially; detailed recipes and scripts load on demand. - Deterministic Execution — Domain scripts and contracts execute locally with reproducible inputs and outputs.
- Gate Verification —
scripts/self_check.pyand domain verifiers (PYTHONPATH=src python3 -B -m unittest discover -s tests -v) validate the artifact before completion. - Zero-Telemetry Delivery — Verified files are written directly to your workspace with zero external network calls.
User Prompt / CLI Invocation
│
▼
┌───────────────────────────────────────────────┐
│ skills/es-origami-cad/SKILL.md
│ Progressive disclosure router & hard rules │
└───────────┬───────────────────────────────────┘
│ loads on demand
▼
┌───────────────────────────────────────────────┐
│ python3 -B scripts/skill_contract.py --check && python3 -B scripts/sync_host_bundles.py --check
│ Deterministic build & contract enforcement │
└───────────┬───────────────────────────────────┘
│ verifies
▼
┌───────────────────────────────────────────────┐
│ python3 scripts/self_check.py + /doctor │
│ Zero-telemetry local verification gate │
└───────────────────────────────────────────────┘
design-os-origami uses progressive context disclosure so your agent's context window stays fast and focused:
| File | Loaded when |
|---|---|
skills/es-origami-cad/SKILL.md |
Always (~100–150 lines) — routing rules, triggers, and execution workflow |
docs/cookbook.md |
When selecting multi-step prompt recipes or domain patterns |
commands/doctor.md / prompts/doctor.md |
Only when running /doctor diagnostics |
llms.txt |
When indexed by AI answer engines, RAG pipelines, or repo crawlers |
design-os-origami/
├── .claude-plugin/
│ ├── plugin.json # Claude Code plugin manifest
│ └── marketplace.json # Claude Code marketplace catalog
├── .codex-plugin/
│ └── plugin.json # OpenAI Codex plugin & interface manifest
├── .agents/
│ └── plugins/marketplace.json # Cross-agent local plugin registry
├── .factory-plugin/
│ ├── plugin.json # Factory / Droid plugin manifest
│ └── marketplace.json # Factory marketplace metadata
├── skills/
│ └── es-origami-cad/
│ └── SKILL.md # Canonical agent skill entrypoint
├── commands/
│ └── doctor.md # /doctor diagnostic slash command
├── prompts/
│ └── doctor.md # Codex diagnostic prompt mirror
├── scripts/
│ └── self_check.py # Deterministic repository & skill self-check
├── docs/
│ ├── cookbook.md # Copy-paste prompt recipes by job
│ └── llms.txt # GEO / LLM discovery index
├── PRIVACY.md # Zero-telemetry & local-first privacy commitment
├── SECURITY.md # Vulnerability disclosure & security policy
├── CONTRIBUTING.md # Contribution workflow & verification rules
├── CODE_OF_CONDUCT.md # Contributor Covenant code of conduct
├── CHANGELOG.md # Release history
├── llms.txt # Root LLM indexing manifest
├── LICENSE # PolyForm Shield 1.0.0
└── README.md
python3 scripts/self_check.pyprintsok: design-os-origami self-check passed (es-origami-cad)and exits0.PYTHONPATH=src python3 -B -m unittest discover -s tests -vpasses with zero contract or test regressions.- Your AI coding agent loads
skills/es-origami-cad/SKILL.mdautomatically when given any prompt fromdocs/cookbook.md. - Network traffic during execution remains zero (guaranteed by
PRIVACY.md).
- Curved thermoformed plastic blisters, blow-molded bottles, or injection-molded enclosures (use
design-os-3d-blender). - Substituting for physical sample cutting on your target paperboard stock (
PHYSICAL_FOLD_FITalways requires a real physical sample). - Freeform artistic illustration unrelated to foldable sheet geometry.
design-os-origami is one of the 13 source-available engines in the DESIGN:OS ecosystem:
Built by Jang Trịnh. More projects, case studies and writing at jang.work.
- Contributing: See
CONTRIBUTING.mdfor pull request guidelines and verification gates (python3 scripts/self_check.py). - Code of Conduct: Governed by
CODE_OF_CONDUCT.md. - Security & Privacy: Zero telemetry — see
SECURITY.mdandPRIVACY.md. - Changelog & LLM Index: Track releases in
CHANGELOG.mdand machine-readable index inllms.txt. - License: PolyForm Shield 1.0.0 © Jang Trinh. Free to use and modify, including for paid client work; you may not resell it or build a competing product from it.
If design-os-origami saves you time, a star on GitHub helps other engineers and AI agents find it.