Skip to content

archibate/dotfiles-opencode / skills/openscad

openscad

Verified

Create and render OpenSCAD 3D models. Generate preview images from multiple angles, extract customizable parameters, validate syntax, and export STL files for 3D printing.

FileKindSize
SKILL.mdskill md6.1 KB
examples/parametric_box.scadother2.6 KB
examples/phone_stand.scadother3.1 KB
tools/common.shexecutablescript1.1 KB
tools/export-stl.shexecutablescript1.1 KB
tools/extract-params.shexecutablescript4.3 KB
tools/multi-preview.shexecutablescript1.4 KB
tools/preview.shexecutablescript1.6 KB
tools/render-with-params.shexecutablescript2.1 KB
tools/validate.shexecutablescript954 B

examples/phone_stand.scad

View on GitHub
// Adjustable Phone/Tablet Stand
// Parametric stand with customizable angle and size

// === Device Parameters ===
device_width = 80;       // [50:200] Device width in mm
device_thickness = 12;   // [6:20] Device thickness (with case)

// === Stand Parameters ===  
stand_angle = 65;        // [45:85] Viewing angle in degrees
stand_depth = 80;        // [50:150] Base depth in mm
stand_height = 100;      // [60:200] Back support height in mm

// === Construction ===
material_thickness = 4;  // [2:0.5:8] Material thickness
slot_depth = 15;         // [10:30] How deep device sits in slot

// === Features ===
cable_hole = true;       // Add cable pass-through hole
cable_diameter = 15;     // [8:25] Cable hole diameter
add_feet = true;         // Add anti-slip feet

// === Quality ===
$fn = 48;

module stand_profile() {
    // 2D profile of the stand side
    polygon([
        [0, 0],                                          // Front bottom
        [stand_depth, 0],                                // Back bottom
        [stand_depth, material_thickness],               // Back bottom inner
        [stand_depth - material_thickness, material_thickness], // Base top back
        [slot_depth + material_thickness, material_thickness],  // Base top front (behind slot)
        [slot_depth + material_thickness, slot_depth * tan(90 - stand_angle) + material_thickness], // Slot back
        [material_thickness, slot_depth * tan(90 - stand_angle) + material_thickness + device_thickness / sin(stand_angle)], // Slot front top
        [0, slot_depth * tan(90 - stand_angle) + material_thickness], // Front face bottom of slot
        [0, 0]                                           // Close
    ]);
}

module back_support() {
    // Back angled support
    translate([stand_depth - material_thickness, 0, material_thickness]) {
        rotate([0, -90 + stand_angle, 0]) {
            cube([stand_height, device_width, material_thickness]);
        }
    }
}

module cable_cutout() {
    if (cable_hole) {
        translate([stand_depth/2, device_width/2, -1])
            cylinder(h = material_thickness + 2, d = cable_diameter);
    }
}

module foot() {
    cylinder(h = 2, d1 = 10, d2 = 8);
}

module stand() {
    difference() {
        union() {
            // Left side
            linear_extrude(material_thickness)
                stand_profile();
            
            // Right side
            translate([0, device_width - material_thickness, 0])
                linear_extrude(material_thickness)
                stand_profile();
            
            // Base plate
            cube([stand_depth, device_width, material_thickness]);
            
            // Front lip
            cube([material_thickness, device_width, slot_depth * tan(90 - stand_angle) + material_thickness]);
            
            // Back support
            back_support();
        }
        
        // Cable hole
        cable_cutout();
    }
    
    // Feet
    if (add_feet) {
        translate([10, 10, 0]) foot();
        translate([10, device_width - 10, 0]) foot();
        translate([stand_depth - 10, 10, 0]) foot();
        translate([stand_depth - 10, device_width - 10, 0]) foot();
    }
}

stand();
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 197kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall