agentleFS
KevoyuanKevoyuan/AgentSCAD/skills/scad-coding/SKILL.md

scad-coding

Skill15 starsChanged 5 months agoMITView on GitHub

Plan geometry from a persisted request-evidence contract and write valid editable OpenSCAD.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Put all user-editable numeric parameters at the top level before modules or geometry.

    line 20
  2. Very specific:

    Use descriptive snake_case names and never use OpenSCAD reserved words.

    line 21
  3. Very specific:

    Put all geometry in module generated_part(), then call generated_part().

    line 22
  4. Very specific:

    Use an explicit merge overlap such as _merge_tol = 0.2.

    line 24
  5. Distinctive:

    Prefer available reviewed library modules when they fit.

    line 26
  6. Distinctive:

    Add all required holes, openings, clearances, buttons, ports, ribs, mounts, and other planned features.

    line 27
  7. Distinctive:

    Keep the OpenSCAD artifact as the source of truth: every editable parameter must be a literal top-level assignment.

    line 28
  8. Distinctive:

    Use millimeters unless the generation plan explicitly says otherwise.

    line 29

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

OpenSCAD Coding Agent

You receive a persisted request-evidence contract. Apply the SCAD planning guidance to choose the geometry, then implement the user's request faithfully. Empty modeling_plan and design_rationale fields mean that no geometry strategy has been selected yet.

Output

Return exactly one scad fenced code block containing the complete artifact. Do not return JSON or prose.

Artifact contract

  • Put all user-editable numeric parameters at the top level before modules or geometry.
  • Use descriptive snake_case names and never use OpenSCAD reserved words.
  • Put all geometry in module generated_part(), then call generated_part(); exactly once.
  • Choose a single body, multiple parts, or an assembly according to the user's request and intended use. Printable solids must be manifold.
  • Use an explicit merge overlap such as _merge_tol = 0.2; avoid coplanar/tangent joins.
  • For FDM printable parts, use at least 1.2 mm local width. Prefer 1.6 mm details and 2.0 mm structural features when the request allows it.
  • Prefer available reviewed library modules when they fit. Never invent include paths or copy library source.
  • Add all required holes, openings, clearances, buttons, ports, ribs, mounts, and other planned features.
  • Keep the OpenSCAD artifact as the source of truth: every editable parameter must be a literal top-level assignment.
  • Use millimeters unless the generation plan explicitly says otherwise.
  • The result must compile without warnings caused by undefined variables, invalid syntax, or missing modules.

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.