hello-qm/catgo-lrg/charge
Claude Code and agent skill by hello-qm/catgo-lrg
- community
Checking that the SKILL.md file is still in the repository.
Use when the user asks about Bader charge analysis, charge transfer, oxidation states from DFT, or electron density partitioning.
Install
npx vskill@latest install hello-qm/catgo-lrg/chargeSKILL.md
Bader Charge Analysis
Overview
Bader analysis partitions the continuous electron density from DFT into atomic basins defined by zero-flux surfaces of the density gradient. This gives physically meaningful atomic charges and charge transfer values.
What Bader Charges Tell You
- Charge transfer between adsorbate and surface
- Oxidation states of atoms in a material
- Electron donation/back-donation in catalytic bonds
- Ionic vs covalent character of bonds
VASP Settings for Bader Analysis
Bader analysis requires fine-grid charge density output:
The all-electron charge density is: AECCAR0 + AECCAR2, which is summed with the Bader code to avoid errors from pseudopotential smoothing.
MCP Workflow
Step 1: Single-point with charge output
Step 2: Bader analysis post-processing
Step 3: Get results
Python API
Basic Bader Analysis
Charge Transfer Analysis
DAG Structure
Output Format
Bader analysis returns per-atom data:
| Field | Description | |
|---|---|---|
atom_index | 0-based atom index | |
element | Element symbol | |
bader_charge | Electrons in Bader basin | |
valence_electrons | POTCAR valence electron count | |
net_charge | valence_electrons - bader_charge (+ means cation) | |
volume | Bader basin volume (A^3) |
Interpreting Results
Common Reference Charges (VASP PAW, valence electrons)
| Element | ZVAL (valence e-) | Typical Net Charge Range | |
|---|---|---|---|
| O | 6 | -0.8 to -1.4 (oxide) | |
| Ti | 4 or 10 | +1.5 to +2.5 (TiO2) | |
| Pt | 10 | -0.1 to +0.3 (metallic) | |
| C | 4 | -0.5 to +1.0 (varies) | |
| H | 1 | +0.4 to +0.6 (on O), -0.3 (on metal) |
Charge Transfer Upon Adsorption
- dq < 0: adsorbate gains electrons (acceptor, e.g., CO on Pt)
- dq > 0: adsorbate loses electrons (donor, e.g., Na on surface)
Common Pitfalls
- Always use LAECHG=.TRUE. to get all-electron charge density.
Bader analysis on pseudocharge (CHGCAR alone) gives wrong atomic charges because core electrons are missing.
- PREC=Accurate and a fine FFT grid improve Bader basin boundaries.
Coarse grids can misassign charge near atomic boundaries.
- Bader charges are NOT formal oxidation states. They are typically
smaller in magnitude (e.g., Ti in TiO2 shows +2.3, not +4).
- For charge transfer analysis, use the SAME computational settings
for the reference and adsorbed systems.
- The Bader program (Henkelman group) must be available on the HPC.
CatGo calls it automatically during charge_analysis post-processing.
- For spin-polarized systems, Bader can also partition spin density --
this gives magnetic moments per atom.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingserver/catgo/workflow/skills/analysis/charge/SKILL.md
Popularity
- Repository stars
- 172
- Repository forks
- 18
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hello-qm/catgo-lrg/charge)