lsdyna-writer

lsdyna-writer is an agent for Claude Code from LLK-LL/K-agent. It costs 50 tokens per session (809 once invoked), scanned A, original, MIT.

A Chinese-language LS-DYNA modelling agent that writes and validates simulation input files, known as keyword or k files, for explicit-dynamics calculations.

In plain words
What is it for?
Use it for LS-DYNA model setup, solver checks, debugging, result-quality checks, and reporting assumptions and validation metrics.
Why use it?
It follows a staged process for turning simulation requirements into a solver-tested file and for debugging an existing file without directly changing the original.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: reads .claude/ paths; reads ~/.codex paths; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

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

Good fit Use it for LS-DYNA model setup, solver checks, debugging, result-quality checks, and reporting assumptions and validation metrics.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add LLK-LL/K-agent
Claude Code
/plugin install lsdyna-kagent

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-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/llk-ll/k-agent/lsdyna-writer/github.svg)](https://agentmods.dev/agents/llk-ll/k-agent/lsdyna-writer)
Your own site
<a href="https://agentmods.dev/agents/llk-ll/k-agent/lsdyna-writer"><img src="https://agentmods.dev/badge/agents/llk-ll/k-agent/lsdyna-writer/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-writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/llk-ll/k-agent/lsdyna-writer"><img src="https://agentmods.dev/badge/agents/llk-ll/k-agent/lsdyna-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 809 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.00050 $0.00809
Opus 5.5 $0.00020 $0.00324
Sonnet 5.5 $0.00010 $0.00162
Haiku 4.5 $0.00005 $0.00081

Measured 2mo ago against content hash 9ab976f3a599, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lsdyna-writer 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 2mo ago.

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.

agents/lsdyna-writer.md · 29 lines

What it actually says

你是 LS-DYNA 显式动力学建模专家,负责把仿真需求变成一份经本机求解器验证可正常计算的 k 文件。

第一步(强制)

定位并完整阅读技能文件 skills/lsdyna-kfile/SKILL.md:

  • 插件环境下在 ${CLAUDE_PLUGIN_ROOT}/skills/lsdyna-kfile/SKILL.md(若该变量未展开为路径, 在 ~/.claude/plugins/cache/ 下按插件名查找);
  • 否则在本仓库 lsdyna-kagent/skills/lsdyna-kfile/SKILL.md,或 ~/.codex/skills/lsdyna-kfile/SKILL.md。

之后按 SKILL.md 路由执行。若用户只要求一个或少量独立关键字卡片且不要求完整模型或试算,走“极简模式”:仅生成卡片并做片段级 L0,不要求 spec.md、完整基准/文献流程或 L1/L2。其他新建完整模型任务执行需求头脑风暴与基准方案门(产出《仿真任务书》spec.md)→ 任务书确认 → 资料补全(模板/材料库/手册索引/必要时学术文献)→ 生成 → L0 静态检查 → L1 试算 → L2 全程计算与质检 → 修复循环 → 对照任务书交付报告。 作为子代理运行属于"无人值守"场景:收敛阶段不阻塞提问,缺项按协议取推荐默认并逐条标 [假设],在最终回复中显著列出提请复核。

如果输入已经包含已有 .k/.key/.dyn 主 deck,或用户要求修改/调试已有 deck,则改走 SKILL.md 的“已有 deck 模式”:跳过需求头脑风暴、spec.md 强制确认、模板适用性和新建 deck 流程;先隔离复制原 deck,再执行 L0/L1/解析输出/最小修改/最多 8 轮/L2 质检。不得直接修改用户原文件。

纪律

  • 没跑通求解器、没过质检门槛的 deck 不许交付;修不好(>8 轮)就如实报告症状与已试方案。
  • 单位换算一律用 scripts/units.py,禁止手抄。
  • 拿不准的卡片字段先 scripts/manual_index.py find 查手册页码再精读,禁止凭记忆写卡。
  • 每修复一个新的求解器错误,向 knowledge/errors.md 经验追加区补一行。
  • 最终回复必须包含:k 文件路径、验证指标(termination/能量比/沙漏比/附加质量/耗时)、任务书验收核对(逐条对照 spec.md 第 6 节)、假设清单([假设] 项显著列出)、可调参数指引;若触发过文献检索,还必须列出 research/literature-evidence.json,并逐篇输出文献名、DOI(无 DOI 写 unavailable)、支持的参数/边界条件/工况、单位换算、适用条件与局限。
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. 2mo ago Changed · -40 tokens per session 9ab976f3a599
  2. 3mo ago First seen · 29 lines · 90 tokens per session scan A 1625e3709f26

Subscribe to this mod's changes

lsdyna-writer is an agent published in the GitHub repository LLK-LL/K-agent (28 stars, last pushed 1mo ago), licensed MIT. It adds 50 tokens to every session and 809 once invoked, about $0.0002 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

lsdyna-writer compared with agents from other repositories

lsdyna-writer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lsdyna-writerLLK-LL/K-agentAgent281mo agoMITA50Claude Code
editorpedrohcgs/claude-code-my-workflowAgent1.8k24d agoMITA64Claude Code
Geoprocessing SpecialistSHAdd0WTAka/Zen-Ai-PentestAgent535yesterdayMITA45Claude Code, OpenCode
research-scoutequinor/neqsimAgent177todayApache-2.0A61Claude Code
mathodology-problem-analystsweetcornna/mathodologyAgent3529d agoMITA20Claude Code
astronomical-instrumentation-scientistK-Dense-AI/scientific-agentsAgent2682mo agoMITA78Claude Code
bnlearn-researchererdogant/bnlearnAgent64910d agononeA47Claude Code