Agent skill

Composite Layup

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

Define composite layup with ply angles, thickness, and count.

MITAuto-check passed

Install Composite Layup

skills CLI
$ npx skills add Cai-aa/CAE-Agent-Hub --skill composite-layup -a claude-code

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

GitHub CLI
$ gh skill install Cai-aa/CAE-Agent-Hub composite-layup --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/abaqus/composite-curing-simulation/modeling/composite-layup .claude/skills/composite-layup && 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
composite-layup
GitHub stars
1k
Token cost
~2.5k tokens
SKILL.md length
953 words
Files
1
Skills in repo
57
Repo updated
First seen
Licence
MIT

At a glance

Define composite layup with ply angles, thickness, and count.

  • Works in 3 steps: Locate the *Solid Section, composite… → For each ply line, replace the 4th field… → Save the INP file. The mesh and element…
  • Asks to change ply angles
  • SKILL.md covers Ply Definition Format, How to Change Ply Angles, How to Change Ply Count and 4-Ply vs 8-Ply Comparison, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Composite Layup is an agent skill from Cai-aa/CAE-Agent-Hub. Define composite layup with ply angles, thickness, and count. Invoke when user asks to change ply angles, modify layup, or adjust ply count for curing simulation.

Its SKILL.md is about 2.5k 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

  • Asks to change ply angles
  • Adjust ply count for curing simulation

Example prompts

  • “/composite-layup”

Requirements

  • Python 3

Workflow steps

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

  1. Locate the *Solid Section, composite block in the INP file.
  2. For each ply line, replace the 4th field with the desired angle.
  3. Save the INP file. The mesh and element connectivity remain unchanged.

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 (its code samples are python).

    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

Composite Layup loads about 2.5k tokens when it runs. Until then it costs about 45 tokens; SKILL.md has 953 words of instructions outside code blocks.

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

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). 953 words, ~2,545 tokens.

Download SKILL.mdSave it as .claude/skills/composite-layup/SKILL.md (or your agent's skills folder).
name
composite-layup
description
Define composite layup with ply angles, thickness, and count. Invoke when user asks to change ply angles, modify layup, or adjust ply count for curing simulation.

Composite Layup Definition

This skill defines and modifies the composite layup for curing simulation. It covers ply angles, ply thickness, ply count, and the orientation system used by the *Solid Section, composite card in Abaqus.

Ply Definition Format

The composite layup is defined inside the P8 Part using *Solid Section, composite. Each ply is specified on a single data line with five fields:

*Solid Section, elset=CompositeLayup-1-1, composite, orientation=Ori-1, stack direction=3, layup=CompositeLayup-1
<thickness>, 3, COM, <angle>, Ply-<N>
Field Breakdown
FieldValueDescription
1thicknessPly thickness in model units (mm). E.g., 1. or 0.250
23Stack direction index (always 3 for this model)
3COMMaterial name (references *Material, name=COM with UMAT)
4anglePly angle in degrees. E.g., 0., 45., -45., 90.
5Ply-NPly label (N is the ply number, starting from 1)

All plies are listed consecutively under a single *Solid Section card. The element set (CompositeLayup-1-1) covers all elements in the composite part.

Example: 4-Ply Layup (1 mm each)
*Solid Section, elset=CompositeLayup-1-1, composite, orientation=Ori-1, stack direction=3, layup=CompositeLayup-1
1., 3, COM, 0., Ply-1
1., 3, COM, 0., Ply-2
1., 3, COM, 0., Ply-3
1., 3, COM, 0., Ply-4
Example: 8-Ply Layup (0.25 mm each)
*Solid Section, elset=CompositeLayup-1-1, composite, orientation=Ori-1, stack direction=3, layup=CompositeLayup-1
0.250, 3, COM, 0., Ply-1
0.250, 3, COM, 0., Ply-2
0.250, 3, COM, 0., Ply-3
0.250, 3, COM, 0., Ply-4
0.250, 3, COM, 0., Ply-5
0.250, 3, COM, 0., Ply-6
0.250, 3, COM, 0., Ply-7
0.250, 3, COM, 0., Ply-8

How to Change Ply Angles

Changing ply angles is a text-level edit. You modify the 4th field (angle in degrees) in each ply data line. No mesh regeneration is required.

Step-by-Step
  1. Locate the *Solid Section, composite block in the INP file.
  2. For each ply line, replace the 4th field with the desired angle.
  3. Save the INP file. The mesh and element connectivity remain unchanged.
Regex Pattern for Automated Replacement

When automating ply angle changes with Python, use the following regex pattern to replace a specific ply's angle:

python
import re

def change_ply_angle(content, ply_num, angle):
    """
    Replace the angle of a specific ply in the *Solid Section composite block.

    Args:
        content: Full INP file content as a string.
        ply_num: Ply number (integer, e.g., 1 for Ply-1).
        angle: New angle in degrees (float, e.g., 45.0).

    Returns:
        Updated INP content as a string.
    """
    pattern = r'(0\.250,\s*3,\s*COM,\s*)([0-9.\-]+)(,\s*Ply-' + str(ply_num) + ')'
    replacement = r'\g<1>' + str(float(angle)) + r'\g<3>'
    return re.sub(pattern, replacement, content)

Note: The regex above assumes 0.25 mm ply thickness (8-ply model). For a 4-ply model with 1 mm thickness, adjust the thickness portion of the pattern:

python
# For 4-ply model (1.0 mm per ply)
pattern = r'(1\.,\s*3,\s*COM,\s*)([0-9.\-]+)(,\s*Ply-' + str(ply_num) + ')'
Example Layup Sequences
[0]*8 Layup (all 0 degrees)
0.250, 3, COM, 0., Ply-1
0.250, 3, COM, 0., Ply-2
0.250, 3, COM, 0., Ply-3
0.250, 3, COM, 0., Ply-4
0.250, 3, COM, 0., Ply-5
0.250, 3, COM, 0., Ply-6
0.250, 3, COM, 0., Ply-7
0.250, 3, COM, 0., Ply-8
[45/-45]*4 Layup (alternating 45 and -45 degrees)
0.250, 3, COM, 45., Ply-1
0.250, 3, COM, -45., Ply-2
0.250, 3, COM, 45., Ply-3
0.250, 3, COM, -45., Ply-4
0.250, 3, COM, 45., Ply-5
0.250, 3, COM, -45., Ply-6
0.250, 3, COM, 45., Ply-7
0.250, 3, COM, -45., Ply-8
[90]*8 Layup (all 90 degrees)
0.250, 3, COM, 90., Ply-1
0.250, 3, COM, 90., Ply-2
0.250, 3, COM, 90., Ply-3
0.250, 3, COM, 90., Ply-4
0.250, 3, COM, 90., Ply-5
0.250, 3, COM, 90., Ply-6
0.250, 3, COM, 90., Ply-7
0.250, 3, COM, 90., Ply-8

How to Change Ply Count

Changing ply count is not a text-level edit. The number of through-thickness elements in the mesh must match the ply count. You cannot simply add or remove ply lines in the INP file, because the element connectivity and node layout are tied to the mesh topology.

Why Mesh Regeneration Is Required

Each ply corresponds to one layer of C3D8 elements through the thickness. The *Solid Section, composite card assigns one ply per element layer. If you add a ply line without adding a corresponding element layer, Abaqus will error because there are more plies than element layers. If you remove a ply line, elements will be left without a ply assignment.

Approach: Merge Strategy

When the reference INP has 4 plies but 8 plies are needed (or vice versa), use the merge strategy to swap the P8 Part from a pre-built model that already has the correct mesh.

  1. Source P8 model (correct ply count, e.g., P8_only_recipe_1.inp for 8 plies): Contains the correct through-thickness mesh and composite layup.

  2. Reference model (e.g., Job-0_0_0_0.inp): Contains the mold, contact, loads, and steps that should be preserved.

  3. Merge: Replace the reference model's P8 Part (nodes, elements, connectivity, composite layup) with the source model's P8 Part. Then update all assembly-level sets that reference P8 nodes or elements.

Key Updates Needed When Merging
  • Replace P8 Part: nodes, elements, connectivity, and *Solid Section, composite block
  • Update _PickedSet333 node/element ranges (e.g., 3025 to 5445 nodes, 2160 to 4320 elements)
  • Replace _com-surface_S1 elset (composite outer surface elements)
  • Replace __PickedSurf337_S2 elset (composite inner surface elements)
  • Replace _PickedSet334/335/336 nsets (reference points)
  • Match Set-2 nodes by coordinate matching (inner corner nodes for springback constraint)
  • Remove SET-EXPORT nset if present (reference-specific)
Show full SKILL.md (376 more words)Show less

4-Ply vs 8-Ply Comparison

Property4-Ply Model8-Ply Model
Ply thickness1.0 mm each0.25 mm each
Total thickness4.0 mm2.0 mm
Through-thickness elements48
Total elements21604320
Total nodes30255445
In-plane nodes per layer605605
Ply angle granularityCoarse (4 angles)Fine (8 angles)
Mesh generationBuilt into reference INPRequires separate model

Note: The in-plane mesh (605 nodes per through-thickness layer) is shared between the 4-ply and 8-ply models. Only the through-thickness discretization differs.

Orientation Definition

The ply angles are interpreted relative to a local coordinate system defined by the *Orientation card. The orientation must be defined before the *Solid Section, composite card that references it.

Orientation Card
*Orientation, name=Ori-1, system=RECTANGULAR
<origin_x>, <origin_y>, <origin_z>,
<a1_x>, <a1_y>, <a1_z>,
<a2_x>, <a2_y>, <a2_z>
*Distribution Table, name=Ori-Table
ANGLES,
*Distribution, location=ELEMENT, table=Ori-Table
<elset_name>, <angle_offset>
Orientation Parameters
ParameterValueDescription
nameOri-1Orientation name (referenced by *Solid Section)
systemRECTANGULARRectangular coordinate system
Origin0., 0., 0.Origin of the local coordinate system
a-axisDefined per modelDirection of the local 1-axis (fiber reference direction)
b-axisDefined per modelDirection of the local 2-axis (transverse direction)

The stack direction (3rd field in *Solid Section) corresponds to the local 3-axis, which is the through-thickness direction. Ply angles are measured as rotations about this axis.

Distribution Table for Discrete Orientations

When different element sets need different orientation offsets, use a distribution table. The table maps element sets to angle offsets:

*Distribution Table, name=Ori-Table
ANGLES,
*Distribution, location=ELEMENT, table=Ori-Table
Ply-1-elset, 0.
Ply-2-elset, 0.
Ply-3-elset, 0.
Ply-4-elset, 0.

In this model, all element layers share the same base orientation (Ori-1). The ply-specific angles come from the 4th field in each *Solid Section, composite data line, not from the distribution table. The distribution table is used when the base orientation itself needs to vary by element set.

Common Pitfalls

  1. Ply count mismatch: Adding ply lines without corresponding element layers causes Abaqus errors. Always regenerate the mesh when changing ply count.
  2. Angle format: Angles must include a decimal point (e.g., 0. not 0, 45. not 45). Abaqus parses these as floating-point values.
  3. Stack direction: The stack direction is always 3 for this model. Changing it will misalign the ply assignment with the mesh.
  4. Material name: The material name in the ply line must match the *Material, name= card exactly (case-sensitive). For this model, it is COM.
  5. Ply numbering: Ply labels (Ply-1, Ply-2, ...) must be sequential and unique. Gaps or duplicates will cause errors.

© 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/abaqus/composite-curing-simulation/modeling/composite-layup of Cai-aa/CAE-Agent-Hub.

Open the folder on GitHubat commit 194ef49

Compare with similar skills

Composite Layup 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.

Composite Layup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Composite Layup this skillCai-aa/CAE-Agent-Hub1k—~2.5kAutomated safety check: PassMIT
Composition Patternssickn33/agentic-awesome-skills47k1 repos~742Automated safety check: PassMIT
Vercel Composition Patternssupabase/supabase111k58 repos~726Automated safety check: PassMIT
Word Countthedaviddias/Front-End-Checklist74k—~577Automated safety check: PassMIT
Define Loopyc-software/qm15k—~1.6kAutomated safety check: PassMIT
Team Composition Patternswshobson/agents40k—~2kAutomated safety check: PassMIT

Similar skills

  • Composition Patterns

    sickn33/agentic-awesome-skills

    A skill your agent uses when working with composition-patterns tasks or workflows

    47k GitHub starsUsed in 1 repo~742 tokens
    DevelopmentAuto-check passed
  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 58 repos~726 tokens
    DevelopmentAuto-check passed
  • Word Count

    thedaviddias/Front-End-Checklist

    A skill your agent uses when applies to key landing pages, blog posts, product pages, and any page targeting competitive queries.

    74k GitHub stars~577 tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Define Loop

    yc-software/qm

    Define a Loop — a durable scaffold that works a queue of recurring tasks autonomously (Sentry issues, Front tickets, small perf PRs) with its outputs held for human review.

    15k GitHub stars~1.6k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Design optimal agent team compositions with sizing heuristics, preset configurations, and agent type selection.

    40k GitHub stars~2k tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • Deploying Software Defined Perimeter

    mukul975/Anthropic-Cybersecurity-Skills

    Deploys a Software-Defined Perimeter per the CSA v2.0 specification, configuring Single Packet Authorization, mutual TLS, and SDP controller/gateway components to enforce zero trust network access.

    34k GitHub stars~1.9k tokensUpdated 1 mo ago
    SecurityAuto-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…

    1k GitHub stars~2.2k tokensUpdated 9 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.

    1k GitHub stars~1.6k tokensUpdated 9 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.

    1k GitHub stars~1.3k tokensUpdated 9 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.

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

    1k GitHub stars~554 tokensUpdated 9 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.

    1k GitHub stars~984 tokensUpdated 9 days ago
    Auto-check passed

Questions about Composite Layup

What does Composite Layup do?

Define composite layup with ply angles, thickness, and count. Composite Layup is an agent skill from Cai-aa/CAE-Agent-Hub. Define composite layup with ply angles, thickness, and count.

When should I use Composite Layup?

Composite Layup fits situations like: asks to change ply angles; adjust ply count for curing simulation.

How do I install Composite Layup in Claude Code?

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

How do I install Composite Layup in Codex?

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

Can I use Composite Layup 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 composite-layup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/composite-layup, .gemini/skills/composite-layup, .github/skills/composite-layup and .opencode/skills/composite-layup in your project.

What does Composite Layup need to run?

SKILL.md names no scripts, command-line tools or credentials: Composite Layup is instructions for the agent only. Our summary lists: Python 3.

Does Composite Layup 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 Composite Layup 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 Composite Layup use?

Composite Layup 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 Composite Layup use?

About 2.5k tokens (SKILL.md is roughly 10k 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 Composite Layup?

Skills that share tags, products or a category with Composite Layup: Composition Patterns (sickn33/agentic-awesome-skills, 47k stars), Vercel Composition Patterns (supabase/supabase, 111k stars), Word Count (thedaviddias/Front-End-Checklist, 74k stars) and Define Loop (yc-software/qm, 15k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Composite Layup?

Cai-aa (a GitHub user) maintains it in Cai-aa/CAE-Agent-Hub, which has 1,003 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.