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.
npx skills add LLK-LL/K-agent --skill lsdyna-kfilegit clone --depth 1 https://github.com/LLK-LL/K-agentWrote 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.
[](https://agentmods.dev/skills/llk-ll/k-agent/lsdyna-kfile)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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"。
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.
- knowledge/errors.md 8.4 KB
- knowledge/materials.json 8.8 KB
- references/brainstorm-protocol.md 16 KB
- references/existing-deck-repair.md 4.3 KB
- references/kfile-format.md 9.2 KB
- references/literature-parameter-routing.md 7.7 KB
- references/quality-gates.md 2.5 KB
- references/template-authoring-protocol.md 9.0 KB
- scripts/check_kfile.py 29 KB runs code
- scripts/fetch_manuals.py 1.3 KB runs code
- scripts/gen_mesh.py 17 KB runs code
- scripts/kagent_config.py 1.7 KB runs code
- scripts/manual_index.py 14 KB runs code
- scripts/parse_results.py 10 KB runs code
- scripts/prepare_existing_deck.py 5.4 KB runs code
- scripts/run_dyna.py 11 KB runs code
- scripts/setup_academic_mcp.py 11 KB runs code
- scripts/units.py 5.1 KB runs code
- scripts/verify.py 7.8 KB runs code
- scripts/write_card.py 6.7 KB runs code
- template_build/cold_start/ball_drop.k 2.3 KB
- template_build/cold_start/d3hsp 479 KB
- template_build/cold_start/glstat 219 KB
- template_build/cold_start/matsum 147 KB
- template_build/cold_start/mesh_ball.k 2.6 KB
- template_build/cold_start/mesh_block.k 8.5 KB
- template_build/cold_start/mesh_plate.k 100 KB
- template_build/cold_start/messag 15 KB
- template_build/cold_start/report.json 1.1 KB
- template_build/cold_start/run.log 14 KB
- template_build/cold_start/spec.json 2.0 KB
- template_build/cold_start/status.out 474 B
- template_build/drop_e2e_full/cards_spec.json 601 B
- template_build/drop_e2e_full/d3hsp 491 KB
- template_build/drop_e2e_full/drop.k 4.8 KB
- template_build/drop_e2e_full/glstat 219 KB
- template_build/drop_e2e_full/matsum 147 KB
- template_build/drop_e2e_full/mesh_block.k 8.5 KB
- template_build/drop_e2e_full/mesh_plate.k 100 KB
- template_build/drop_e2e_full/messag 15 KB
- template_build/drop_e2e_full/report.json 1.1 KB
- template_build/drop_e2e_full/run.log 14 KB
- template_build/drop_e2e_full/status.out 474 B
- template_build/drop_e2e/d3hsp 488 KB
- template_build/drop_e2e/drop_trial.k 4.8 KB
- template_build/drop_e2e/drop.k 4.8 KB
- template_build/drop_e2e/glstat 3.4 KB
- template_build/drop_e2e/matsum 2.6 KB
- template_build/drop_e2e/mesh_block.k 8.5 KB
- template_build/drop_e2e/mesh_plate.k 100 KB
- template_build/drop_e2e/messag 12 KB
- template_build/drop_e2e/run.log 12 KB
- template_build/drop_e2e/status.out 474 B
- template_build/v0.4_delivery_report.md 5.5 KB
- template_build/wc_arbitration/drop_wc.k 4.2 KB
- templates/ale/ale.k 5.3 KB
- templates/ale/NOTES.md 4.7 KB
- templates/crash/crash.k 7.1 KB
- templates/crash/mesh_tube.k 203 KB
- templates/crash/NOTES.md 3.6 KB
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.
- 3d ago Changed · +8 lines 7eddebbfcd07
- 1mo ago Changed · +13 lines · -37 tokens per session d543b895121c
- 1mo ago First seen · 139 lines · 106 tokens per session scan A 0a5a2c94307f
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.
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…
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.
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…
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.
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.
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…