pymapdl-cli

pymapdl-cli is a skill for Claude Code, Codex from ansys/pymapdl. It costs 90 tokens per session (2,168 once invoked), scanned A, original, MIT.

A command-line interface for controlling MAPDL, an engineering solver used for simulation, and sending it APDL commands. It can also convert APDL scripts to Python.

In plain words
What is it for?
Starting, stopping, and listing MAPDL processes; running APDL commands or files; and converting APDL scripts to Python.
Why use it?
It avoids writing Python just to start, inspect, control, or send commands to MAPDL instances.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/ansys/pymapdl/pymapdl-cli
Any agent
npx skills add ansys/pymapdl --skill pymapdl-cli
Clone the repo
git clone --depth 1 https://github.com/ansys/pymapdl

Made for: Claude Code, Codex.

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 pymapdl-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/ansys/pymapdl/pymapdl-cli.svg)](https://agentmods.dev/skills/ansys/pymapdl/pymapdl-cli)
Your own site
<a href="https://agentmods.dev/skills/ansys/pymapdl/pymapdl-cli"><img src="https://agentmods.dev/badge/skills/ansys/pymapdl/pymapdl-cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,168 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00090 $0.02168
Opus 5 $0.00045 $0.01084
Sonnet 5 $0.00018 $0.00434
Haiku 4.5 $0.00009 $0.00217

Measured 5d ago against content hash d1e2e39560a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pymapdl-cli 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 5d 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.

src/ansys/mapdl/core/skills/pymapdl-cli/SKILL.md · 255 lines

How it starts

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

PyMAPDL CLI

The pymapdl CLI lets you manage MAPDL instances and execute APDL commands directly from the terminal. It is installed automatically with the ansys-mapdl-core Python package and requires the click dependency (included by default).

A typical session looks like this:

pymapdl start                          # launch a solver instance
pymapdl exec -c /prep7 -c "K,1,0,0,0" # send commands to it
pymapdl exec --file model.inp          # or send a whole script
pymapdl stop                           # shut it down

All commands print human-readable output to stdout and errors to stderr. Exit code is 0 on success, 1 on failure.

Commands at a glance

Command Purpose
pymapdl start Launch a new local MAPDL instance
pymapdl stop Kill one or all running instances
pymapdl list Show running MAPDL processes
pymapdl exec Send APDL commands to a running instance
pymapdl convert Translate an APDL script to Python

pymapdl start

Launch a new MAPDL gRPC server. Prints the IP, port, and PID on success.

pymapdl start [OPTIONS]

Key options

Option Default Description
--port 50052 (or PYMAPDL_PORT) gRPC port; first available port at or after this value
--exec_file auto-detected Path to the MAPDL executable
--run_location temp dir Working directory for the MAPDL process
--jobname file MAPDL jobname
--nproc 2 Number of processors
--ram all available Fixed memory in MB
--override off Delete stale lock files before starting
--additional_switches none Extra MAPDL command-line switches (e.g. aa_r for academic license)
--start_timeout 45 Seconds to wait for the server to become ready
--license_type none License name (e.g. meba, ansys) or description (e.g. enterprise)
--version latest MAPDL version to launch (e.g. 241, 24.1)

Read the full file on GitHub · 255 lines

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. 5d ago First seen · 255 lines · 90 tokens per session scan A d1e2e39560a7

Subscribe to this mod's changes

pymapdl-cli is a skill published in the GitHub repository ansys/pymapdl (514 stars, last pushed yesterday), licensed MIT. It adds 90 tokens to every session and 2,168 once invoked, about $0.0005 per session on Opus 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-30.

Related

Other skills, from other repositories

agent-framework-azure-ai-py

Build persistent agents on Azure AI Foundry using the Microsoft Agent Framework Python SDK.

sickn33/agentic-awesome-skills · 24 tokens

python-feature-lifecycle

Guidance for package and feature lifecycle in the Agent Framework Python codebase, including stage meanings, feature-stage decorators, feature enums, and how to move APIs from one stage to the next.

microsoft/agent-framework · 43 tokens

python-development

Coding standards, conventions, and patterns for developing Python code in the Agent Framework repository. Use this when writing or modifying Python source files in the python/ directory.

microsoft/agent-framework · 35 tokens

dd-code-generation

Use pup CLI for immediate Datadog operations or generate code for integration into applications.

DataDog/pup · 16 tokens

rocm-kernels

Provides guidance for writing and benchmarking optimized Triton kernels for AMD GPUs (MI355X, R9700) on ROCm, targeting HuggingFace diffusers (LTX-Video, SD3, FLUX) and transformers. Core kernels: RMSNorm, RoPE 3D, GEGLU, AdaLN. Includes XCD swizzle, autotune, diffusers integration patterns, and LTX-Video pipeline…

huggingface/kernels · 93 tokens

typing-exclusion-worker

Python typing exclusion worker: remove assigned mypy exclusion modules in small scoped batches, fix typing issues, run validation, and produce a structured completion summary. Use when running parallel typing-debt workers or when asked to remove modules from pyproject mypy exclusion overrides.

getsentry/skills · 57 tokens