agentleFS
gugu-2gugu-2/Prompt-CAD/skills/cam/SKILL.md

cam

Skill2 starsChanged 6 months agoMITView on GitHub

Direct-to-CAM module. Analyzes generated CAD, selects CNC/3D-Printing tools, validates Design for Manufacturing (DFM), and outputs G-code.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Tool Selection: Run scripts/tool_selector.py on the geometry.

    line 15
  2. Very specific:

    Generate G-Code: Run scripts/generate_gcode.py.

    line 17

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Computer-Aided Manufacturing (Direct-to-CAM)

Purpose

Convert generated .step or .stl geometry into physical machine instructions (.nc or .gcode). Use this skill to validate that a generated CAD design is physically manufacturable on a specific machine.

Use this skill when

The user asks to manufacture a part, generate G-code, 3D print a design, or verify if a design can be CNC milled.

Required workflow

  1. Tool Selection: Run scripts/tool_selector.py on the geometry. It will recommend end-mills or drills based on the smallest features in the part.
  2. Select Machine Config: Choose a machine configuration from configs/ (e.g., haas_minimill.json for CNC or prusa_mk3.json for FDM 3D printing). This ensures correct speeds, feeds, and travel limits.
  3. Generate G-Code: Run scripts/generate_gcode.py.
  4. Iterate on Failure (DFM): If generate_gcode.py fails (e.g., detecting a perfectly sharp internal corner that a round CNC bit cannot cut), do not manually fix the G-code. Instead, rewrite the build123d python script to add "dog-bone" fillets or increase the corner radius, then regenerate the CAD and run the CAM script again.

Available tools

python scripts/tool_selector.py --step part.step
python scripts/generate_gcode.py --step part.step --type cnc --config configs/haas_minimill.json --material aluminum --output part.nc

References

  • references/design-for-manufacturing.md - Key DFM rules you must follow when redesigning a part that failed the CAM generation step.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.