lsdyna-kfile

lsdyna-kfile is a skill for Claude Code from LLK-LL/K-agent. It costs 69 tokens per session (3,836 once invoked), scanned A, original, MIT.

A workflow for creating, changing, debugging, testing, parsing, and validating LS-DYNA input files, called K, KEY, or DYN decks, for explicit dynamics simulations.

In plain words
What is it for?
Use it for collision, drop, penetration, forming, ALE, or SPH simulations, including repairing an existing deck or preparing a reusable template.
Why use it?
It turns an unclear simulation request into a checked model and requires the resulting file to be tested with the local solver before delivery.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the lsdyna-kagent plugin — 1 skill, 1 agent shipped together

Good fit Use it for collision, drop, penetration, forming, ALE, or SPH simulations, including repairing an existing deck or preparing a reusable template.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/llk-ll/k-agent/lsdyna-kfile
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LLK-LL/K-agent --skill lsdyna-kfile
Clone the repo
git clone --depth 1 https://github.com/LLK-LL/K-agent

Made for: Claude Code.

Or install lsdyna-kagent, the plugin that ships this one along with the rest of its 1 skill, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lsdyna-kfile

README.md
[![agentmods](https://agentmods.dev/badge/skills/llk-ll/k-agent/lsdyna-kfile/github.svg)](https://agentmods.dev/skills/llk-ll/k-agent/lsdyna-kfile)
Your own site
<a href="https://agentmods.dev/skills/llk-ll/k-agent/lsdyna-kfile"><img src="https://agentmods.dev/badge/skills/llk-ll/k-agent/lsdyna-kfile/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lsdyna-kfile

Your own site · 80×15
<a href="https://agentmods.dev/skills/llk-ll/k-agent/lsdyna-kfile"><img src="https://agentmods.dev/badge/skills/llk-ll/k-agent/lsdyna-kfile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,836 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00069 $0.03836
Opus 5.5 $0.00028 $0.01534
Sonnet 5.5 $0.00014 $0.00767
Haiku 4.5 $0.00007 $0.00384

Measured 3d ago against content hash 7eddebbfcd07, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lsdyna-kfile scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

The scan reads SKILL.md. This mod also ships 12 executable files (scripts/check_kfile.py, scripts/fetch_manuals.py, scripts/gen_mesh.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/lsdyna-kfile/SKILL.md · 160 lines

How it starts

The opening of the file, as written. The whole thing — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LS-DYNA K 文件编写与自动验证

完整模型交付物只能是经本机求解器实际计算验证的完整 k 文件和验证报告,不可“写完就交”。 仅要求独立关键字卡片时走下述极简模式,只承诺 L0 静态检查。 以下把本文件所在目录称为 SKILL_DIR;脚本、知识、协议和模板分别位于 SKILL_DIR/scripts/、 SKILL_DIR/knowledge/、SKILL_DIR/references/、SKILL_DIR/templates/。

1. 路由与环境

  • 极简模式(优先路由):用户明确只要一个或少量独立关键字卡片/片段(如 *MAT_*、 *EOS_*),且不要求完整模型、修改现有 deck 或试算时启用。直接生成目标卡片,按要求交付文本 或 .k 文件;不走任务书确认、模板/基准检索、M0~M3、L1/L2、求解器或 §5 完整报告。 参数优先取用户给定值和本地资料,用 units.py 核对换算、用 kfile-format.md 或手册核对字段; 缺少参数时可按 references/literature-parameter-routing.md 的参数检索链路按需联网,但不触发 完整模型的强制基准/文献双链路。除非用户明确要求记录来源,不创建 spec.md、 research/literature-evidence.json 或文献来源清单;关键值无可靠依据就询问,不编造。 将卡片置于临时 *KEYWORD/*END 包裹的独立文件,以 python "SKILL_DIR/scripts/check_kfile.py" fragment.k --fragment 做 L0,要求 0 errors; 仅用户要求文件时保留 .k,否则交付卡片文本。若卡片依赖未提供的外部模型实体, 不虚构配套模型;说明引用检查结果及静态检查覆盖边界。简要报告单位制、假设、 L0 errors/warnings 和未验证项,不把 L0 PASS 称为求解器验证或参数标定。
  • 模板制作模式:用户上传主 .k/.key/.dyn,明确说明其要作为某类模板,并要求抽象、整理、 参数化或沉淀。优先执行 references/template-authoring-protocol.md;先运行 python "SKILL_DIR/scripts/prepare_existing_deck.py" user_model.k --outdir template_build/<模板名称> --objective "制作 <模板用途> 模板", 将源文件和 include 闭包置于只读 source/,只在独立 working/(候选模板)与 validation/ 目录工作。 该模式必须先完成结构化分析和模板适用性判断;会影响模板物理、参数接口或验收结论的问题,整个请求 最多集中询问 5 个关键问题。问题未回答前不得抽象最终模板或进行最终 L2 验证;用户确认后才写入 template_spec.md、NOTES.md 和模板文件。来源 deck 的验证结果不可直接替代模板候选的重新验证。
  • 已有 deck 模式:用户提供主 .k/.key/.dyn 并要求修改、调试、运行或修复。跳过 §1 需求头脑风暴、 spec.md 确认、模板/基准/学术门和新建流程,执行 references/existing-deck-repair.md;仍须做 环境检查、knowledge/errors.md 预检、L0/L1/L2、§5 交付报告和经验追加。无 spec.md 时保持 原 deck 的物理意图,仅解决用户目标范围的问题。先运行 python "SKILL_DIR/scripts/prepare_existing_deck.py" user_model.k --objective "用户目标",不得直接修改原文件。
  • 新建 deck 模式:无可用主 deck 或要求重新建模,执行 §2-§5。

完整模型模式会话首次运行:

python "SKILL_DIR/scripts/kagent_config.py"

默认求解器为 C:\Program Files\ANSYS Inc\v242\ansys\bin\winx64(LS-DYNA R14.1.1);用 LSDYNA_BIN、LSDYNA_MPIEXEC 或 ~/.lsdyna-kagent.json 覆盖。不得使用 R14 之后才支持的关键字或字段。 凡标注 R15 及以上的功能一律回避。手册缺失时运行 python "SKILL_DIR/scripts/fetch_manuals.py"。

Read the full file on GitHub · 160 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · +8 lines 7eddebbfcd07
  2. 1mo ago Changed · +13 lines · -37 tokens per session d543b895121c
  3. 1mo ago First seen · 139 lines · 106 tokens per session scan A 0a5a2c94307f

Subscribe to this mod's changes

lsdyna-kfile is a skill published in the GitHub repository LLK-LL/K-agent (23 stars, last pushed 4d ago), licensed MIT. It adds 69 tokens to every session and 3,836 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

matlab-orchestrator

MATLAB agentic workflow router. Use this whenever the user asks for MATLAB, Simulink, .m/.mlx/.slx work, toolbox-driven engineering, paper reproduction, simulation, code generation, data analysis, control, robotics, signal/image/AI workflows, or wants an end-to-end automated MATLAB task with validation. For Simulink…

wzyn20051216/matlab-agent-skills · 0 tokens

matlab-runner

Run MATLAB tasks from Codex with reliable MCP-based execution, logs, artifacts, toolbox inventory, smoke tests, and reproducible validation. Use whenever MATLAB code, .m/.mlx scripts, MATLAB tests, local toolbox probing, or command-line automation is needed.

wzyn20051216/matlab-agent-skills · 57 tokens

matlab-simulink-modeling

MATLAB and Simulink workflow for creating, inspecting, modifying, simulating, validating, and exporting .slx models. Use for Simulink, Stateflow, Simscape, model-based design, parameter sweeps, signal logging, requirements, and simulation automation. On this machine, Simulink tasks should be visual-first: open the…

wzyn20051216/matlab-agent-skills · 0 tokens

matlab-robotics-autonomy

MATLAB robotics and autonomy workflow for ROS Toolbox, Robotics System Toolbox, Navigation Toolbox, UAV Toolbox, sensor fusion, trajectory planning, simulation, and reproducible robot experiments. Use for ROS/ROS 2 bags, robot models, path planning, SLAM, state estimation, and autonomy prototyping.

wzyn20051216/matlab-agent-skills · 68 tokens

matlab-signal-vision-ai

MATLAB workflow for signal processing, DSP, image processing, computer vision, lidar, medical imaging, deep learning, and AI-assisted reproducible experiments. Use for filters, spectrograms, wavelets, object detection, segmentation, classification, training, inference, and generated figures.

wzyn20051216/matlab-agent-skills · 64 tokens

matlab-control-optimization

MATLAB workflow for control systems, system identification, robust control, MPC, Simulink Control Design, parameter tuning, constrained optimization, and numerical validation. Use whenever the user asks for controllers, transfer functions, state-space models, tuning, identification, optimal control, or solver-based…

wzyn20051216/matlab-agent-skills · 64 tokens