SkillPedia Skills Encyclopedia
中文 EN

技能 2026-05-15 23:42 UTC

awesome-skills

由提交人 Haibarakiku 提交,主要更新类型为:新增功能与能力扩展。提交说明:feat: add abaqus-lhs-batch-dataset + abaqus-odb-to-grid-csv (engineer…。

Haibarakiku 61fe4f2 apify/awesome-skills

Commit提交信息原文

feat: add abaqus-lhs-batch-dataset + abaqus-odb-to-grid-csv (engineering-simulation) (#62)

* feat: add abaqus-lhs-batch-dataset and abaqus-odb-to-grid-csv skills

Two new community skills for the engineering-simulation category,
filling a gap in batch-dataset / ML-pipeline workflows that the
existing abaqus-expert skill does not cover.

- abaqus-lhs-batch-dataset: template-driven batch FEA dataset generator
  with LHS / sparse-k / single-active / pair / block samplers, crash
  recovery, dataset_index.csv aggregation
- abaqus-odb-to-grid-csv: per-case node_displacement.csv to regular NxN
  grid via direct binning (structured mesh) or bilinear resampling,
  aggregated into ML-ready X_amplitude.csv + Y_grid_uz.csv

Both pass validate_skills.py with no errors and no warnings.
Source repo: https://github.com/Haibarakiku/abaqus-ml-skills (MIT)

* feat: add abaqus-surrogate-fea-validation skill

Third skill in the abaqus-ml-skills family. Closes the verification loop
for surrogate-driven inverse design:

- 4 inverse solvers: PGD (pure stdlib+numpy), L-BFGS-B, multi-start
  L-BFGS-B, Nelder-Mead (scipy)
- Per-target heatmaps: target_scaled / predicted_surrogate / predicted_true
- Side-by-side metrics (surrogate vs FEA): MSE / MAE / NRMSE / saturated
- Aggregate surrogate_inverse_summary.csv as a publication-ready table

Validates against validate_skills.py with 0 errors / 0 warnings.

Source: https://github.com/Haibarakiku/abaqus-ml-skills

* security: validate case_tag + drop shell=True in subprocess

Addresses 2 issues from the security review on this PR:

Fix 1 (High) - path traversal in surrogate_validation.py
  - Added safe_case_tag() helper whitelisting [A-Za-z0-9._-]+ and
    rejecting '.', '..', empty tags with a clear SystemExit message
  - Added defence-in-depth: verify case_dir sits under work_root via
    Path.parents walk before any shutil.rmtree

Fix 2 (Medium) - subprocess shell=True in run_one_case
  - Both batch_runner.py and surrogate_validation.py: switched to argv
    list with shell=False, so (a) solver_script is passed directly to
    execvp with no shell re-parsing and (b) TimeoutExpired now signals
    the actual abaqus child instead of an empty wrapping shell
  - Added FileNotFoundError branch returning rc=127 when 'abaqus' is
    missing from PATH

Public CLI unchanged. validate_skills.py still passes 0/0.

---------

Co-authored-by: Haibarakiku <guohy22@gmail.com>