Skip to content
Back to skills

Cli And Configuration

ASecurity

"Use pymatgen command-line tools and persistent configuration

  • 247 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 8, 2026
toolsdebuggingapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill cli-and-configuration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cli And Configuration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cli And Configuration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-cli-and-configuration-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-cli-and-configuration-arex-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cli-and-configuration
description: "Use pymatgen command-line tools and persistent configuration
  safely, including pmg subcommands, POTCAR setup, Materials Project keys, FEFF
  helpers, and redacted environment probes."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# CLI and Configuration

Use this sub-skill when a task is about `pmg`, `pmg config`, `pmg analyze`, `pmg query`, `pmg plot`, `pmg structure`, `pmg view`, `pmg diff`, `pmg potcar`, `get_environment`, FEFF plotting console scripts, `.pmgrc.yaml`, `PMG_CONFIG_FILE`, `PMG_MAPI_KEY`, `PMG_VASP_PSP_DIR`, `PMG_POTCAR_CHECKS`, `PMG_DEFAULT_FUNCTIONAL`, or `PMG_CP2K_DATA_DIR`.

## Read First

- Read [references/cli-reference.md](references/cli-reference.md) for exact command flags, file expectations, and safe-versus-mutating command classification.
- Read [references/configuration.md](references/configuration.md) before changing `.pmgrc.yaml`, using `PMG_CONFIG_FILE`, saving a Materials Project key, configuring POTCAR paths, or generating CP2K data resources.
- Read [references/troubleshooting.md](references/troubleshooting.md) when console scripts are missing, config changes are risky, POTCAR resources are unavailable, credentials fail, VASP/FEFF files are absent, plotting is headless, or recursive scans could be dangerous.

## Bundled Safe Probes

- Run [scripts/pmg_help_probe.py](scripts/pmg_help_probe.py) to call only `--help` for known pymatgen console scripts and `pmg` subcommands; it does not mutate config, access the network, open GUIs, scan user directories, or touch POTCAR data.
- Run [scripts/pymatgen_environment_probe.py](scripts/pymatgen_environment_probe.py) for redacted distribution, import, entry-point, and console-script checks; local executable paths are hidden unless the user explicitly asks for private debugging with `--reveal-paths`.

## Safety Policy

- Safe without extra approval: `--help` checks, redacted import/version checks, and entry-point discovery.
- Ask before running commands that mutate `.pmgrc.yaml`, create/copy resource files, write `POTCAR`, save output files, read credentials, access Materials Project, recursively scan calculation directories, open a GUI, or inspect large user directory trees.
- Use `pmg plot ... --out_file ...` instead of display windows whenever possible, and avoid `pmg view` on headless systems unless the user confirms visualization support.
- For query semantics and network behavior, route to [../external-data-access/SKILL.md](../external-data-access/SKILL.md); for VASP/Borg analysis semantics behind `pmg analyze`, route to [../entries-thermodynamics-and-batteries/SKILL.md](../entries-thermodynamics-and-batteries/SKILL.md); for diffraction, spectra, and plotting interpretation, route to [../spectra-diffraction-and-visualization/SKILL.md](../spectra-diffraction-and-visualization/SKILL.md); for structure/local-environment interpretation, route to [../structures-local-environments-and-transformations/SKILL.md](../structures-local-environments-and-transformations/SKILL.md).

Files in this skill

  • SKILL.md3 KB
  • references/cli-reference.md12.8 KB
  • references/configuration.md6.5 KB
  • references/troubleshooting.md7.2 KB
  • scripts/pmg_help_probe.py4.7 KB
  • scripts/pymatgen_environment_probe.py5.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.