Agent skill

Bader Charge Analysis

by Hello-QM in Hello-QM/catgo-LRG

A skill your agent uses when the user asks about Bader charge analysis, charge transfer, oxidation states from DFT, or electron density partitioning.

AGPL-3.0Auto-check passed

Install Bader Charge Analysis

skills CLI
$ npx skills add Hello-QM/catgo-LRG --skill bader-charge-analysis -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Hello-QM/catgo-LRG bader-charge-analysis --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Hello-QM/catgo-LRG.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/charge-analysis .claude/skills/bader-charge-analysis && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
bader-charge-analysis
GitHub stars
205
Token cost
~1.4k tokens
SKILL.md length
353 words
Files
1
Skills in repo
75
Repo updated
First seen
Licence
AGPL-3.0

At a glance

A skill your agent uses when the user asks about Bader charge analysis, charge transfer, oxidation states from DFT, or electron density partitioning.

  • Works in 3 steps: Single-point with charge output → Bader analysis post-processing → Get results
  • The user asks about Bader charge analysis
  • SKILL.md covers Overview, VASP Settings for Bader Analysis, MCP Workflow and Python API, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Bader Charge Analysis is an agent skill from Hello-QM/catgo-LRG. Use when the user asks about Bader charge analysis, charge transfer, oxidation states from DFT, or electron density partitioning.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: AI-driven workbench for computational materials science — interactive 3D structure viewer, natural-language CatBot assistant, visual DAG workflow engine, HPC job submission… The licence is AGPL-3.0.

When your agent uses it

  • The user asks about Bader charge analysis
  • Charge transfer
  • Oxidation states from DFT
  • Electron density partitioning

Example prompts

  • “/bader-charge-analysis”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Single-point with charge output
  2. Bader analysis post-processing
  3. Get results

What it can do on your machine

Read from SKILL.md and the folder at commit fd6291b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json and python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Bader Charge Analysis loads about 1.4k tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 353 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~38
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Hello-QM/catgo-LRG at commit fd6291b, republished under its AGPL-3.0 licence (© Hello-QM). 353 words, ~1,419 tokens.

Download SKILL.mdSave it as .claude/skills/bader-charge-analysis/SKILL.md (or your agent's skills folder).
name
bader-charge-analysis
description
Use when the user asks about Bader charge analysis, charge transfer, oxidation states from DFT, or electron density partitioning.

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:

LAECHG = .TRUE.    # Write core charge density (AECCAR0, AECCAR2)
LCHARG = .TRUE.    # Write valence charge density (CHGCAR)
NGXF, NGYF, NGZF   # Fine FFT grid (2x default, e.g., NGXF=2*NGX)

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
json
{"tool": "catgo_workflow_engine", "arguments": {
  "action": "add_task", "workflow_id": "wf_bader",
  "task_type": "single_point",
  "params": {
    "software": "vasp",
    "ENCUT": 520,
    "LAECHG": true,
    "LCHARG": true,
    "PREC": "Accurate",
    "system_name": "charge density"
  }
}}
Step 2: Bader analysis post-processing
json
{"tool": "catgo_workflow_engine", "arguments": {
  "action": "add_task", "workflow_id": "wf_bader",
  "task_type": "charge_analysis",
  "depends_on": "task_sp",
  "params": {"method": "bader", "system_name": "Bader charges"}
}}
Step 3: Get results
json
{"tool": "catgo_workflow_engine", "arguments": {
  "action": "get_result", "workflow_id": "wf_bader", "task_id": "task_bader"
}}
json
{"tool": "catgo_analyze", "arguments": {
  "action": "charges", "workflow_id": "wf_bader", "task_id": "task_bader"
}}

Python API

Basic Bader Analysis
python
from catgo.workflow import Workflow

wf = Workflow("Bader charge - CO on Pt(111)")

inp = wf.add_task("structure_input", structure=co_pt_json)

# Relax first
opt = wf.add_task("geo_opt",
    structure=inp.output.structure,
    software="vasp", ENCUT=520)

# Single-point with charge density output
sp = wf.add_task("single_point",
    structure=opt.output.structure,
    software="vasp", ENCUT=520,
    LAECHG=True, LCHARG=True, PREC="Accurate")

# Bader post-processing
bader = wf.add_task("charge_analysis",
    chgcar=sp.output.chgcar,
    aeccar0=sp.output.aeccar0,
    aeccar2=sp.output.aeccar2,
    method="bader")

wf.submit()
Charge Transfer Analysis
python
# Compare charges before and after adsorption
wf = Workflow("Charge transfer analysis")

# Clean slab Bader
slab_sp = wf.add_task("single_point",
    structure=slab_opt.output.structure,
    software="vasp", ENCUT=520, LAECHG=True, LCHARG=True)
slab_bader = wf.add_task("charge_analysis",
    chgcar=slab_sp.output.chgcar,
    aeccar0=slab_sp.output.aeccar0,
    aeccar2=slab_sp.output.aeccar2)

# Slab+adsorbate Bader
ads_sp = wf.add_task("single_point",
    structure=ads_opt.output.structure,
    software="vasp", ENCUT=520, LAECHG=True, LCHARG=True)
ads_bader = wf.add_task("charge_analysis",
    chgcar=ads_sp.output.chgcar,
    aeccar0=ads_sp.output.aeccar0,
    aeccar2=ads_sp.output.aeccar2)

wf.submit()

# After completion:
# dq = q_ads(atom) - q_clean(atom) for each surface atom
# Positive dq = atom lost electrons; Negative dq = atom gained electrons

DAG Structure

structure --> geo_opt --> single_point(LAECHG) --> charge_analysis

Output Format

Bader analysis returns per-atom data:

FieldDescription
atom_index0-based atom index
elementElement symbol
bader_chargeElectrons in Bader basin
valence_electronsPOTCAR valence electron count
net_chargevalence_electrons - bader_charge (+ means cation)
volumeBader basin volume (A^3)

Interpreting Results

Common Reference Charges (VASP PAW, valence electrons)
ElementZVAL (valence e-)Typical Net Charge Range
O6-0.8 to -1.4 (oxide)
Ti4 or 10+1.5 to +2.5 (TiO2)
Pt10-0.1 to +0.3 (metallic)
C4-0.5 to +1.0 (varies)
H1+0.4 to +0.6 (on O), -0.3 (on metal)
Show full SKILL.md (142 more words)Show less
Charge Transfer Upon Adsorption
dq_adsorbate = sum(net_charge of adsorbate atoms in slab+ads system)
             - sum(net_charge of same atoms in isolated adsorbate)
  • dq < 0: adsorbate gains electrons (acceptor, e.g., CO on Pt)
  • dq > 0: adsorbate loses electrons (donor, e.g., Na on surface)

Common Pitfalls

  1. 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.
  2. PREC=Accurate and a fine FFT grid improve Bader basin boundaries. Coarse grids can misassign charge near atomic boundaries.
  3. Bader charges are NOT formal oxidation states. They are typically smaller in magnitude (e.g., Ti in TiO2 shows +2.3, not +4).
  4. For charge transfer analysis, use the SAME computational settings for the reference and adsorbed systems.
  5. The Bader program (Henkelman group) must be available on the HPC. CatGo calls it automatically during charge_analysis post-processing.
  6. For spin-polarized systems, Bader can also partition spin density -- this gives magnetic moments per atom.

© Hello-QM, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/charge-analysis of Hello-QM/catgo-LRG.

Open the folder on GitHubat commit fd6291b

Compare with similar skills

Bader Charge Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Bader Charge Analysis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Bader Charge Analysis this skillHello-QM/catgo-LRG205—~1.4kAutomated safety check: PassAGPL-3.0
Intelligence Transferruvnet/ruflo74k—~877Automated safety check: NotesMIT
Performing DNS Enumeration And Zone Transfermukul975/Anthropic-Cybersecurity-Skills34k—~2.7kAutomated safety check: PassApache-2.0
MoviePilot Failed Transfer Retryjxxghp/MoviePilot12k—~584Automated safety check: PassGPL-3.0
Transfer BridgeGarethManning/education-agent-skills840—~4.2kAutomated safety check: PassCustom licence
Item TransferMaaEnd/MaaEnd4k—~2.7kAutomated safety check: PassAGPL-3.0

Similar skills

  • Publish or fetch learned patterns across projects via IPFS (Pinata) -- the cross-project pattern transfer that hookstransfer enables

    74k GitHub stars~877 tokensUpdated today
    Auto-check: notes
  • Performing DNS Enumeration And Zone Transfer

    mukul975/Anthropic-Cybersecurity-Skills

    Enumerates DNS records, attempts zone transfers, brute-forces subdomains, and maps DNS infrastructure during authorized reconnaissance to identify attack surface, misconfigurations, and information…

    34k GitHub stars~2.7k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Retries failed MoviePilot video and music transfer records one verified group at a time, keeping retry evidence and re-identifying only legacy records that were actually deleted.

    12k GitHub stars~584 tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Transfer Bridge

    GarethManning/education-agent-skills

    After the learner demonstrates understanding of a concept, present near-transfer and far-transfer challenges.

    840 GitHub stars~4.2k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Item Transfer

    MaaEnd/MaaEnd

    仅当用户明确要求往「🐌库存转移 / ItemTransfer」任务里新增可搬运物品(即在 assets/tasks/ItemTransfer.json 的 option.WhatToTransfer.cases 里加 case,并同步 assets/data/ItemTransfer/itemorder.json 与 5 个 locale 文件的…

    4k GitHub stars~2.7k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Style Transfer

    ZJU-REAL/Easel

    文案风格迁移:把一段文案从一种风格改写成另一种风格(严肃→搞笑、书面→口语、文艺→直白、正式→社交媒体感), 支持风格参考(给一段目标风格的示例文本)。

    3.4k GitHub stars~572 tokensUpdated today
    Auto-check passed

More from Hello-QM/catgo-LRG

All 75 skills in this repo
  • Campaign Md Orchestration

    Hello-QM/catgo-LRG

    Drive a file-first, agent-in-the-loop computational campaign via a folder + markdown tree (no DB).

    205 GitHub stars~1.6k tokensUpdated 17 days ago
    Auto-check passed
  • Catgo Gibbs Pipeline

    Hello-QM/catgo-LRG

    Compute adsorption/reaction Gibbs free energies, free-energy diagrams, and electrochemical overpotentials (HER/ORR/OER/CO2RR/NRR) with VASP.

    205 GitHub stars~669 tokensUpdated 17 days ago
    Auto-check passed
  • Abinit

    Hello-QM/catgo-LRG

    Generate and manage ABINIT DFT calculations. An agent skill from Hello-QM/catgo-LRG.

    205 GitHub stars~963 tokensUpdated 17 days ago
    Auto-check passed
  • Adsorbate Placement

    Hello-QM/catgo-LRG

    A skill your agent uses when the user asks to place an adsorbate molecule on a surface, find adsorption sites, or set up a surface+adsorbate model for DFT.

    205 GitHub stars~3k tokensUpdated 17 days ago
    Auto-check passed
  • Adsorption Energy

    Hello-QM/catgo-LRG

    A skill your agent uses when the user asks for adsorption energy, binding energy, or wants to compare how strongly a molecule binds to a surface.

    205 GitHub stars~1.4k tokensUpdated 17 days ago
    Auto-check passed
  • Analysis Router

    Hello-QM/catgo-LRG

    A skill your agent uses when the user asks to analyze computational results: Gibbs free energy, OER/HER/CO2RR overpotentials, adsorption energy, convergence tests, DOS/d-band analysis, or Bader…

    205 GitHub stars~869 tokensUpdated 17 days ago
    Auto-check passed

Questions about Bader Charge Analysis

What does Bader Charge Analysis do?

A skill your agent uses when the user asks about Bader charge analysis, charge transfer, oxidation states from DFT, or electron density partitioning. Bader Charge Analysis is an agent skill from Hello-QM/catgo-LRG. Use when the user asks about Bader charge analysis, charge transfer, oxidation states from DFT, or electron density partitioning.

When should I use Bader Charge Analysis?

Bader Charge Analysis fits situations like: the user asks about Bader charge analysis; charge transfer; oxidation states from DFT; electron density partitioning.

How do I install Bader Charge Analysis in Claude Code?

Run `npx skills add Hello-QM/catgo-LRG --skill bader-charge-analysis -a claude-code`. Or copy the skill folder (.claude/skills/charge-analysis in Hello-QM/catgo-LRG) into .claude/skills/bader-charge-analysis in your project. Claude Code loads it when a task matches its description.

How do I install Bader Charge Analysis in Codex?

Run `npx skills add Hello-QM/catgo-LRG --skill bader-charge-analysis -a codex`. Or copy the skill folder (.claude/skills/charge-analysis in Hello-QM/catgo-LRG) into .agents/skills/bader-charge-analysis in your project. Codex loads it when a task matches its description.

Can I use Bader Charge Analysis in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Hello-QM/catgo-LRG --skill bader-charge-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bader-charge-analysis, .gemini/skills/bader-charge-analysis, .github/skills/bader-charge-analysis and .opencode/skills/bader-charge-analysis in your project.

What does Bader Charge Analysis need to run?

SKILL.md names no scripts, command-line tools or credentials: Bader Charge Analysis is instructions for the agent only. Our summary lists: Python 3.

Does Bader Charge Analysis access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Bader Charge Analysis safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Bader Charge Analysis use?

Bader Charge Analysis is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Bader Charge Analysis use?

About 1.4k tokens (SKILL.md is roughly 5.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Bader Charge Analysis?

Skills that share tags, products or a category with Bader Charge Analysis: Intelligence Transfer (ruvnet/ruflo, 74k stars), Performing DNS Enumeration And Zone Transfer (mukul975/Anthropic-Cybersecurity-Skills, 34k stars), MoviePilot Failed Transfer Retry (jxxghp/MoviePilot, 12k stars) and Transfer Bridge (GarethManning/education-agent-skills, 840 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Bader Charge Analysis?

Hello-QM (a GitHub user) maintains it in Hello-QM/catgo-LRG, which has 205 GitHub stars. The repository holds 75 skills in this directory. The repository was last updated on September 22, 2026.

Source: Hello-QM/catgo-LRG on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.