Agent skill

Calculix Sizing Optimization

by Cai-aa in Cai-aa/CAE-Agent-Hub

Workflow skill for two-stage sizing/parameter optimization on a CalculiX shell or beam deck via the optimizestructure tool — Latin Hypercube sweep plus coordinate descent to minimize mass subject to…

MITAuto-check passed

Install Calculix Sizing Optimization

skills CLI
$ npx skills add Cai-aa/CAE-Agent-Hub --skill calculix-sizing-optimization -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Cai-aa/CAE-Agent-Hub calculix-sizing-optimization --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Cai-aa/CAE-Agent-Hub.git skills-src && mkdir -p .claude/skills && cp -r skills-src/Skill/calculix/calculix-sizing-optimization .claude/skills/calculix-sizing-optimization && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
calculix-sizing-optimization
GitHub stars
998
Token cost
~1.2k tokens
SKILL.md length
550 words
Files
1
Skills in repo
57
Repo updated
First seen
Licence
MIT

At a glance

Workflow skill for two-stage sizing/parameter optimization on a CalculiX shell or beam deck via the optimizestructure tool — Latin Hypercube sweep plus coordinate descent to minimize mass subject to…

  • Works in 5 steps: parse_inp / list_design_vars_tool —… → Choose bounds {var_id: [lower, upper]}… → optimize_structure_tool — run the… → …
  • An agent must lighten a CalculiX shell
  • SKILL.md covers When to Use, Workflow, Rules and Example
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Calculix Sizing Optimization is an agent skill from Cai-aa/CAE-Agent-Hub. Workflow skill for two-stage sizing/parameter optimization on a CalculiX shell or beam deck via the optimizestructure tool — Latin Hypercube sweep plus coordinate descent to minimize mass subject to stress/displacement or natural-frequency constraints by tuning scalar section/material/load cards. Use when an agent must lighten a CalculiX shell or beam model while keeping stress and deflection within limits, or must thin a deck until its first modes clear a resonance floor (freq1hz constraint on a FREQUENCY deck).

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The licence is MIT.

When your agent uses it

  • An agent must lighten a CalculiX shell
  • Beam model while keeping stress and deflection within limits
  • Must thin a deck until its first modes clear a resonance floor (freq1hz constraint on a FREQUENCY deck)

Example prompts

  • “/calculix-sizing-optimization”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. parse_inp / list_design_vars_tool — confirm the deck and find the
  2. Choose bounds {var_id: [lower, upper]} to bracket the search. Mass falls
  3. optimize_structure_tool — run the two-stage loop (LHS sweep, then
  4. Inspect the result: best (vars, mass_kg, stress_vm, disp, feasible,
  5. Optional: export_results_tool on the persisted .optimized.inp to

What it can do on your machine

Read from SKILL.md and the folder at commit 194ef49. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Calculix Sizing Optimization loads about 1.2k tokens when it runs. Until then it costs about 138 tokens; SKILL.md has 550 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~138
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Cai-aa/CAE-Agent-Hub at commit 194ef49, republished under its MIT licence (© Cai-aa). 550 words, ~1,178 tokens.

Download SKILL.mdSave it as .claude/skills/calculix-sizing-optimization/SKILL.md (or your agent's skills folder).
name
calculix-sizing-optimization
description
Workflow skill for two-stage sizing/parameter optimization on a CalculiX shell or beam deck via the optimize_structure tool — Latin Hypercube sweep plus coordinate descent to minimize mass subject to stress/displacement or natural-frequency constraints by tuning scalar section/material/load cards. Use when an agent must lighten a CalculiX shell or beam model while keeping stress and deflection within limits, or must thin a deck until its first modes clear a resonance floor (freq_1_hz constraint on a *FREQUENCY deck).

CalculiX Sizing Optimization

Two-stage sizing/parameter optimization: minimize mass subject to stress, displacement, or natural-frequency constraints by editing scalar design variables in place (shell thickness, beam section, material E/nu/density, load magnitude). The mesh and geometry never change — only scalar cards.

This is sizing optimization, not topology optimization. It thins sections; it does not redistribute material in space.

When to Use

Use when an agent must lighten a CalculiX shell or beam model while keeping von Mises stress and displacement within limits (static deck), or must lighten it while keeping a natural frequency above a resonance floor (modal deck). Driven by the optimize_structure_tool MCP tool.

Do NOT use for:

  • Solid (C3D8 / C3D8R) models. Solids expose no scalar geometry card — their mass is set by node-defined volume x density, so there is no thickness to thin. Material/load variables on a solid are degenerate for mass minimization (density changes mass but not stiffness; E changes stiffness but not mass). Solid lightweighting needs shape or topology optimization, which is a different problem and is not covered here.
  • Topology optimization (material distribution over a fixed mesh) — separate, future work.

Workflow

  1. parse_inp / list_design_vars_tool — confirm the deck and find the shell.<elset>.thickness (or beam section) var_id and its current value.
  2. Choose bounds {var_id: [lower, upper]} to bracket the search. Mass falls monotonically with shell/beam thickness.
  3. optimize_structure_tool — run the two-stage loop (LHS sweep, then coordinate descent). Each evaluation is a real ccx solve, so set max_solves to bound wall time.
  4. Inspect the result: best (vars, mass_kg, stress_vm, disp, feasible, mass_reduction_pct), converged / termination_reason, and history.
  5. Optional: export_results_tool on the persisted <stem>.optimized.inp to render the optimized design in the viewer.
Show full SKILL.md (277 more words)Show less

Rules

  • Frame results as sizing/parameter optimization (section sizing), never topology.
  • Defaults: minimize mass s.t. max von Mises < 250 MPa and max displacement < 1.5 mm; pass objective / constraints to override.
  • Match the constraint set to the deck: a *STATIC deck reports max_stress_vm / max_disp; a *FREQUENCY deck reports freq_<N>_hz (mode N in Hz, from the .dat eigenvalue table) and nothing else. Mixing a stress constraint into a modal optimization makes every point infeasible — the run warns about missing metrics rather than failing opaquely.
  • Avoid-resonance runs: on a modal deck pass e.g. constraints=[{"metric": "freq_1_hz", "op": ">", "value": 300.0}]; thinning stops where mode 1 sits just above the floor. Constraint metric names are validated (mass, max_stress_vm, max_disp, freq_<N>_hz).
  • The acceptance rule assumes shell/beam thickness (mass-monotone). Material E and load magnitude are exposed as variables but are not validated for mass-minimization — prefer section thickness.
  • Units follow the .inp (commonly mm-t-s-MPa); mass_kg is reported in kg.
  • A converged=False result is not a failure: best is the lightest feasible point found, and bound_limited tells whether it already sits at the box optimum (widen the bounds to do better).

Example

MCP/CalculiX/examples/bracket.inp is a public S4 shell bracket (steel plate, clamped edge, transverse tip load). Starting from thickness 8 mm with bounds {"shell.PLATE.thickness": [2.0, 8.0]} and n_lhs=8, the optimizer converges to ~4.1 mm — about -48% mass — while keeping stress < 250 MPa and displacement < 1.5 mm.

MCP/CalculiX/examples/plate_modal.inp is the avoid-resonance counterpart: a public S4 shell cantilever plate with a 5-mode *FREQUENCY step. With constraints=[{"metric": "freq_1_hz", "op": ">", "value": 30.0}] the optimizer thins from 4 mm to ~3.23 mm — -19% mass, f1 = 30.4 Hz — matching the Euler-Bernoulli hand calc t* = 30 / 9.29 ≈ 3.23 mm for L = 300 steel (f1 ≈ (1.8751²/2π)(t/L²)√(E/12ρ)).

© Cai-aa, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in Skill/calculix/calculix-sizing-optimization of Cai-aa/CAE-Agent-Hub.

Open the folder on GitHubat commit 194ef49

Compare with similar skills

Calculix Sizing Optimization next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Calculix Sizing Optimization compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Calculix Sizing Optimization this skillCai-aa/CAE-Agent-Hub998—~1.2kAutomated safety check: PassMIT
Parametersthedaviddias/Front-End-Checklist74k—~638Automated safety check: PassMIT
Shell ScriptingRightNow-AI/openfang18k—~827Automated safety check: PassApache-2.0
Crush Shell Builtinscharmbracelet/crush29k—~790Automated safety check: PassCustom licence
Responsive Sizethedaviddias/Front-End-Checklist74k—~805Automated safety check: PassMIT
Dom Sizethedaviddias/Front-End-Checklist74k—~390Automated safety check: PassMIT

Similar skills

  • Parameters

    thedaviddias/Front-End-Checklist

    A skill your agent uses when auditing URL structure or configuring search engine handling of filtered, sorted, or tracked URLs.

    74k GitHub stars~638 tokensUpdated yesterday
    Sales & SupportAuto-check passed
  • Shell Scripting

    RightNow-AI/openfang

    Shell scripting expert for Bash, POSIX compliance, error handling, and automation

    18k GitHub stars~827 tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • Crush Shell Builtins

    charmbracelet/crush

    Explains how to add a new in-process builtin command to Crush's embedded POSIX shell, so it is intercepted before reaching the OS, with context polling and exit-status rules.

    29k GitHub stars~790 tokensUpdated today
    DevelopmentAuto-check passed
  • Responsive Size

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing image assets, markup, and CDN or build transforms related to Serve images at the correct display size.

    74k GitHub stars~805 tokensUpdated yesterday
    Auto-check passed
  • Dom Size

    thedaviddias/Front-End-Checklist

    A skill your agent uses when auditing slow page loads, heavy assets, or rendering delays related to Reduce DOM size and complexity.

    74k GitHub stars~390 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Font Size

    thedaviddias/Front-End-Checklist

    A skill your agent uses when applies to all CSS font-size declarations, particularly those using px units for body text, UI labels, and navigation.

    74k GitHub stars~896 tokensUpdated yesterday
    Frontend & DesignAuto-check passed

More from Cai-aa/CAE-Agent-Hub

All 57 skills in this repo
  • Ansys Structural Workbench

    Cai-aa/CAE-Agent-Hub

    Operate or inspect live ANSYS Workbench Mechanical structural simulations through the configured MCP, including model setup, materials, connections, loads, mesh, solve, convergence, validation, and…

    998 GitHub stars~2.2k tokensUpdated 7 days ago
    Auto-check passed
  • Cylinder O Grid

    Cai-aa/CAE-Agent-Hub

    Plan, create, adapt, and quality-audit coin-style five-block O-grid hexahedral meshes for cylindrical CAE models.

    998 GitHub stars~1.6k tokensUpdated 7 days ago
    Auto-check passed
  • Comsol Motor Nvh Evidence

    Cai-aa/CAE-Agent-Hub

    Evidence-first COMSOL Java API and batch workflow for permanent-magnet motor NVH.

    998 GitHub stars~1.3k tokensUpdated 7 days ago
    Auto-check passed
  • Aedt Evidence Electromagnetics

    Cai-aa/CAE-Agent-Hub

    Evidence-first Ansys Electronics Desktop and PyAEDT automation for Maxwell, HFSS, Q3D, Icepak, and related electromagnetic workflows.

    998 GitHub stars~591 tokensUpdated 7 days ago
    Auto-check passed
  • Evidence-first Ansys Mechanical structural automation through Workbench RunWB2 journals, Mechanical Scripting/ACT ExtAPI, or PyMechanical gRPC.

    998 GitHub stars~554 tokensUpdated 7 days ago
    Auto-check passed
  • Run Fluent Autoclave

    Cai-aa/CAE-Agent-Hub

    Run, diagnose, reproduce, and validate ANSYS Fluent CFD simulations of forced-convection autoclaves using Fluent MCP or PyFluent.

    998 GitHub stars~984 tokensUpdated 7 days ago
    Auto-check passed

Questions about Calculix Sizing Optimization

What does Calculix Sizing Optimization do?

Workflow skill for two-stage sizing/parameter optimization on a CalculiX shell or beam deck via the optimizestructure tool — Latin Hypercube sweep plus coordinate descent to minimize mass subject to…. Calculix Sizing Optimization is an agent skill from Cai-aa/CAE-Agent-Hub. Workflow skill for two-stage sizing/parameter optimization on a CalculiX shell or beam deck via the optimizestructure tool — Latin Hypercube sweep plus coordinate descent to minimize mass subject to stress/displacement or natural-frequency constraints by tuning scalar section/material/load cards.

When should I use Calculix Sizing Optimization?

Calculix Sizing Optimization fits situations like: an agent must lighten a CalculiX shell; beam model while keeping stress and deflection within limits; must thin a deck until its first modes clear a resonance floor (freq1hz constraint on a FREQUENCY deck).

How do I install Calculix Sizing Optimization in Claude Code?

Run `npx skills add Cai-aa/CAE-Agent-Hub --skill calculix-sizing-optimization -a claude-code`. Or copy the skill folder (Skill/calculix/calculix-sizing-optimization in Cai-aa/CAE-Agent-Hub) into .claude/skills/calculix-sizing-optimization in your project. Claude Code loads it when a task matches its description.

How do I install Calculix Sizing Optimization in Codex?

Run `npx skills add Cai-aa/CAE-Agent-Hub --skill calculix-sizing-optimization -a codex`. Or copy the skill folder (Skill/calculix/calculix-sizing-optimization in Cai-aa/CAE-Agent-Hub) into .agents/skills/calculix-sizing-optimization in your project. Codex loads it when a task matches its description.

Can I use Calculix Sizing Optimization in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Cai-aa/CAE-Agent-Hub --skill calculix-sizing-optimization -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/calculix-sizing-optimization, .gemini/skills/calculix-sizing-optimization, .github/skills/calculix-sizing-optimization and .opencode/skills/calculix-sizing-optimization in your project.

What does Calculix Sizing Optimization need to run?

SKILL.md names no scripts, command-line tools or credentials: Calculix Sizing Optimization is instructions for the agent only.

Does Calculix Sizing Optimization access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Calculix Sizing Optimization safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Calculix Sizing Optimization use?

Calculix Sizing Optimization is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Calculix Sizing Optimization use?

About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Calculix Sizing Optimization?

Skills that share tags, products or a category with Calculix Sizing Optimization: Parameters (thedaviddias/Front-End-Checklist, 74k stars), Shell Scripting (RightNow-AI/openfang, 18k stars), Crush Shell Builtins (charmbracelet/crush, 29k stars) and Responsive Size (thedaviddias/Front-End-Checklist, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Calculix Sizing Optimization?

Cai-aa (a GitHub user) maintains it in Cai-aa/CAE-Agent-Hub, which has 998 GitHub stars. The repository holds 57 skills in this directory. The repository was last updated on September 30, 2026.

Source: Cai-aa/CAE-Agent-Hub on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.