gcode-to-text

Extract encoded text from GCODE toolpaths by parsing X/Y coordinates.

134|21|Updated Nov 12, 2025
One-click install
npx skills add https://github.com/letta-ai/skills --skill gcode-to-text
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gcode-to-text
Source: https://github.com/letta-ai/skills/tree/main/ai/benchmarks/letta/terminal-bench-2/trajectory-feedback/gcode-to-text
Command: npx skills add https://github.com/letta-ai/skills --skill gcode-to-text

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides strategies for extracting text content that is encoded geometrically within GCODE toolpaths, enabling text recovery from coordinate data used in 3D printing and CNC programs.

Core Features & Use Cases

  • Metadata-first checks: Quick searches for M117 and metadata that may hint at text.
  • Geometric reconstruction: Parse X/Y coordinates to infer letter shapes and spacing.
  • Visualization guidance: Plot toolpaths to visually validate reconstructed text.

Quick Start

Example: extract G0/G1 coordinates from a GCODE file and plot the toolpath to reveal encoded text shapes.

Frequently Asked Questions about gcode-to-text

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from GCODE toolpaths?

Extract text from GCODE by parsing G0/G1 coordinate streams to recover X/Y pairs, then reconstruct letter shapes from the geometric data. Visualizing the toolpath reveals encoded text patterns embedded in CNC or 3D printer coordinate files.

Can I decode text hidden in CNC or 3D printer files?

Yes. Text encoded geometrically within GCODE files can be recovered by analyzing toolpath geometry and coordinate data. This applies to embossed, engraved, or CTF-style challenges where text is represented as toolpath sequences.

What metadata should I check first when analyzing GCODE for hidden text?

Start with metadata-first checks by searching for M117 comments and other markers like M486 object boundary indicators, which may hint at or delimit encoded text regions before performing full geometric reconstruction.

How do I visualize decoded text from GCODE coordinates?

Plot the extracted X/Y coordinate pairs to render the toolpath geometry visually. This visualization validates that reconstructed letter shapes match the intended text and confirms successful extraction from the coordinate stream.

Does this work for forensic analysis of 3D printer or CNC files?

Yes. Geometric text extraction supports forensic analysis and recovery scenarios where text is encoded in embossed or engraved features within GCODE outputs, including CTF-style challenges and artifact examination.