mechsys
Use when a task mentions MechSys, tdem, tlbmdem, DEM/Particle/Voronoi optimization, CUDA DEM tests, LBM-DEM, or the MechSys simulation library in this workspace.
Install / Use
npx skills add Axtal/mechsysInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Content & MediaSupported Platforms
Tags
Our assessment of mechsys
mechsys scores 70/100 on our quality scale, 1083rd of 1,182 Content & Media skills we index.
Its SKILL.md is 5.0 KB long, split into 6 sections with 1 code example: a solid amount of guidance for an agent.
It has no GitHub stars yet, so there is no community track record; judge it on its content.
Maintenance, license and trust
- The repository was last updated 3 days ago, so mechsys is actively maintained.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 80/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-10-26. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
mechsys compared with similar skills
All 4 of these similar skills score higher than mechsys; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| mechsys (this skill)by Axtal | 70 | 0 | 3d ago | SKILL.md |
| siyuanby siyuan-note | 100 | 46.9k | today | MCP Server |
| algorithmic-artby anthropics | 100 | 177.9k | 34d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 34d ago | SKILL.md |
| designby nextlevelbuilder | 100 | 137.2k | 11d ago | SKILL.md |
Frequently asked questions
- How do I install mechsys?
- Run
npx skills add Axtal/mechsys. The install tabs above show the steps for each supported agent. - Which AI agents does mechsys work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is mechsys safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It declares no license and scores 80/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is mechsys still maintained?
- The repository was last updated 3 days ago, so mechsys is actively maintained.
Skill content
View source on GitHubname: mechsys description: Use when a task mentions MechSys, tdem, tlbmdem, DEM/Particle/Voronoi optimization, CUDA DEM tests, LBM-DEM, or the MechSys simulation library in this workspace. whenToUse: Any request to inspect, build, benchmark, debug, optimize, or document this MechSys checkout, especially its CPU DEM, CUDA DEM, LBM-DEM, or FLBM paths.
MechSys
This is the visible, downloadable copy of the MechSys skill. DSH discovers
.agents/skills/mechsys/SKILL.md; keep the two files in sync.
This is the project-local skill for the MechSys checkout. It is discovered
automatically from .agents/skills/mechsys; do not install a separate plugin
just to provide this static guidance.
The authoritative context is:
AGENTS.md— automatic, concise agent rules.MECHSYS_HANDBOOK.md— architecture, build/run commands, exactness procedure, benchmarks, and known traps.MEMORY.md— distilled experience and a short verification checklist.- The optimization reports:
CPU_DEM_OPTIMIZATION_CHANGES.mdCUDA_OPTIMIZATION_CHANGES.mdREDUCED_TEST_CU_03_PERFORMANCE.md
Read the relevant documents before making substantive changes, and update them when a durable lesson or corrected benchmark is learned.
Non-negotiable rules
- Do not assume a given checkout or
HEADcontains the optimized state. Checkgit status, the reports, and compare against a clean baseline created from the chosen commit. - CPU DEM exactness is checked at
Nproc=1by comparing HDF5 datasets, not whole-file MD5. Expectneq []and matching printed energies. - Preserve candidate-list order and the original
Distancearithmetic in the contact path. Do not sort the lists. - The CPU Verlet cutoff is
Rsum + 4.0*ContactDispGlobal(). Do not lower it without a new safe derivation and an exact comparison. - Broadphase bounds must be conservative. If in doubt, remove a rejection rather than risk a missed contact.
- CUDA
test_cu_03/04useatomicAdd; the baseline is non-deterministic. Do not claim bitwise equality for those GPU runs.Nthread=512fails for the current large test; tested range is up to 384. - Keep the separate
pTranslate+pRotatefallback. Making fused movement unconditional broketest_cu_04. - The outer solve loop owns
Time/iter; publish them to CUDA withSetClock. Do not add independent clock increments in DEM or LBM substeps. - After changing
lib/dem/*, build at least one CPU target, one CUDA target, and the relevant LBM-DEM target.
Rotation caches
Particle owns wrot = Rotation(w,Q) and Qc = Conjugate(Q). They are
refreshed by CalcProps, InitializeVelocity, Rotate, UpdateContacts, and
after a user Setup callback.
- CUDA
UploadParticlecopies the host caches; it does not recompute them. - CUDA
DnloadParticlecopies the device caches back. - The built-in device movement kernels refresh the device caches after
changing
Q/w. - A custom GPU movement/rotation kernel that changes
Q/wmust refreshDPar[].wrot/DPar[].Qcitself. - Host code that assigns
Q/wdirectly and bypasses the normal paths must callParticle::UpdateRotCache()before using the caches.
Build and run
From the repository root:
cd tdem
make -j8 test_periodic
make -j8 test_cu_01 test_cu_02 test_cu_03 test_cu_04
./test_periodic ../benchmarks/cpu_voronoi/tper_small 8
cd ../tlbmdem
make -j8 tlbmdem01 tlbmdem02
make -j8 tlbmdem_cu_01
test_periodic takes a FileKey prefix (the .inp suffix is appended).
test_cu_03 takes Nproc, Verlet distance, and threads per block:
./test_cu_03 1 0.05 128. Full LBM-DEM and CUDA tests are long; use a
temporary reduced copy for smoke tests and do not modify the checked-in test
just to shorten it.
For one-off cases, use the configured standalone compiler:
./mechsyscc case.cu from the repository root (or the equivalent
mechsyscc in the current installation).
FLBM / GPU fluid cases
lib/flbm/Domain.his the fluid LBM;lib/flbm/lbm.cuhholds the CUDA kernels. UseD2Q9withiVec3_t(nx,ny,1)for a 2-D GPU run.- The GPU streaming kernel resets
BForceevery step. A constant body force must be written back todom.pBForceon the device in theSetupcallback before collision; setting the host array once is not enough. dom.Nthreadcontrols the CUDA block size. TheNprocargument ofDomain::Solveaffects host packing/transfers on the GPU path.- CPU and GPU body-force conventions differ: CPU
StreamSCadds0.5*dt*BForceto the reported velocity, while the GPU fused kernel returns the raw second moment. The raw GPU moment carries a-0.5*nu*phibias in permeability; useu_physical = u_raw + 0.5*dt*fx*phi. - Keep one-off FLBM cases outside the checkout; do not add them to
tflbm/unless they belong in the library test suite.
Reporting
Report measured wall times, separate solve time from total wall time, and explicitly distinguish what compiled, what ran, what matched a baseline, and what was faster. If a verification was not done, say so.
Related Skills
siyuan
46.9kAn open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
design
137.2kComprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini, Atlas Cloud, or MuAPI AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG…
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
