Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Corrosion Science

ASecurity

Corrosion mechanisms, electrochemical testing, and mitigation — from Pourbaix diagrams to coatings and cathodic protection.

2 stars
0 votes
0 copies
0 views
Added 9/29/2026
ai-agentsrustgoreactnodetestingperformance

Works with

cli

Security Analysis

A100/100

Scanned 9/29/2026

$npx -y skills add aicodedecode/awesome-muse-skills --skill corrosion-science --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Corrosion Science?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Corrosion Science
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aicodedecode-corrosion-science/badge)](https://www.skillsdirectory.com/skills/aicodedecode-corrosion-science)

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

Download with Pro
Files
SKILL.md
---
name: corrosion-science
description: Corrosion mechanisms, electrochemical testing, and mitigation — from Pourbaix diagrams to coatings and cathodic protection.
category: scientific
---

## Overview

Corrosion is electrochemistry with economic consequences: metal returning to
its oxide. This skill covers the thermodynamics (Pourbaix diagrams) and
kinetics (polarization, Evans diagrams) of corrosion, the major damage modes
(uniform, pitting, crevice, galvanic, SCC), standard test methods, and the
mitigation toolbox: alloying, coatings, inhibitors, and cathodic protection.

## When to use

- Selecting materials for a corrosive environment (seawater, acidic process streams, concrete)
- Diagnosing a corrosion failure: identifying the mechanism from morphology and conditions
- Running electrochemical tests: OCP, potentiodynamic polarization, EIS
- Designing protection: coatings specs, cathodic protection criteria, inhibitor selection
- Estimating service life and inspection intervals for structures and equipment

## Core concepts

- **Thermodynamics vs kinetics:** Pourbaix (E–pH) diagrams show where corrosion is thermodynamically possible; passivity and measured rates come from kinetics — a "corroding" region on the diagram may still show negligible attack if passive.
- **Mixed potential theory:** the corrosion potential is where anodic (metal dissolution) and cathodic (oxygen/hydrogen reduction) currents balance; Tafel extrapolation of polarization curves gives i_corr, the corrosion current density.
- **Passivity:** Cr, Al, Ti form nanometer oxide films that drop corrosion rates by orders of magnitude — until chloride or damage breaks them locally (pitting).
- **Galvanic series:** coupling dissimilar metals drives the more active one to corrode faster; area ratio matters — a small anode with a large cathode fails fast.
- **Localized modes:** pitting (chloride + passive alloys), crevice (oxygen depletion under deposits/gaskets), intergranular (sensitized grain boundaries), SCC (tensile stress + specific environment + susceptible alloy — all three required).
- **Faraday's law:** mass loss = (i_corr · t · M)/(n · F) — converts electrochemical rates to penetration rates (mm/year) for life estimates.

- **Evans diagrams:** plotting anodic and cathodic polarization curves together shows the corrosion potential and current graphically — the visual foundation of mixed-potential theory.
- **Critical pitting temperature (CPT):** the temperature above which stable pits initiate for an alloy–environment pair — a practical ranking tool for stainless steels in chloride service.
- **Hydrogen embrittlement:** cathodic reactions produce atomic hydrogen that enters the metal lattice, embrittling high-strength steels — overprotection in cathodic protection systems causes the failure it was meant to prevent.

## Practical workflow

### 1. Diagnose the failure

1. Document morphology: uniform thinning, pits (undercut? clustered?), cracks (branched? intergranular?), attack at joints/crevices.
2. Record the environment: chemistry, pH, temperature, flow, deposits, wet–dry cycling — SCC and pitting need specific combinations.
3. Identify the alloy and its condition (sensitized? cold-worked? welded?) — heat-affected zones corrode preferentially.
4. Match morphology + environment + alloy to a mechanism before proposing fixes; treating pitting as uniform corrosion wastes money.

### 2. Electrochemical testing

1. **OCP monitoring:** let the potential stabilize (minutes to hours); drifting OCP means the surface is still evolving — don't polarize yet.
2. **Potentiodynamic polarization:** scan slowly (≤0.5 mV/s) from cathodic to anodic; extract E_corr and i_corr by Tafel extrapolation on well-defined linear regions.
3. **EIS:** charge-transfer resistance R_ct tracks the corrosion rate non-destructively over time; fit with a justified equivalent circuit.
4. **Pitting tests:** cyclic polarization — the repassivation potential (E_rp) below which pits can't grow is the practical design criterion, not the breakdown potential.

### 3. Choose mitigation

1. **Material upgrade:** match the alloy to the environment (PREN = Cr + 3.3·Mo + 16·N for stainless pitting resistance) — cheapest at the design stage.
2. **Coatings:** barrier (epoxy), sacrificial (zinc-rich), or inhibitive; performance is 90% surface preparation (abrasive blast to near-white metal, profile, cleanliness).
3. **Cathodic protection:** sacrificial anodes or impressed current; verify with potential criteria (−850 mV vs Cu/CuSO₄ for steel in soil) — under-protection corrodes, over-protection damages coatings.
4. **Inhibitors:** for closed systems (cooling water, acid pickling); confirm compatibility and dosage — under-dosing can accelerate localized attack.

### 4. Life estimation

1. Convert measured i_corr to mm/year via Faraday's law; apply a safety factor for localized modes (pitting rates exceed uniform rates by 10–100×).
2. Use corrosion coupons or ER probes for direct field rates when electrochemistry is impractical.
3. Set inspection intervals at a fraction of the predicted life — never at the full value.

### 5. Design a corrosion-monitoring program

1. Select monitoring to match the mechanism: coupons/ER probes for uniform rates, electrochemical noise or EIS for localized attack, hydrogen probes where embrittlement threatens.
2. Place monitoring at the worst-case locations (low points, dead legs, heat-affected zones) — not where access is convenient.
3. Trend the data against action thresholds defined before the program starts — monitoring without predetermined responses is just expensive data collection.

### 6. Quick-reference checklist

- [ ] Failure morphology documented before cleaning (pits, cracks, location)
- [ ] Environment fully characterized (chemistry, pH, T, flow, deposits)
- [ ] Alloy condition noted (sensitized, welded, cold-worked)
- [ ] OCP stabilized before any polarization measurement
- [ ] Polarization scans run slowly (≤0.5 mV/s) with Tafel regions verified
- [ ] Rates converted via Faraday's law with localized-attack safety factors
- [ ] Galvanic couples and area ratios checked in every assembly
- [ ] Mitigation matched to mechanism (not uniform-corrosion fixes for pitting)

## Common pitfalls

- **Pourbaix-only reasoning:** "immune" on the diagram but corroding in practice (complexing agents, non-equilibrium) — diagrams assume pure water chemistry.
- **Fast polarization scans:** capacitive currents inflate i_corr; scan slowly and verify with weight-loss or EIS.
- **Galvanic blindness:** stainless fasteners in a carbon-steel structure (or vice versa) — always check the couple and the area ratio.
- **Coating as magic:** painting over rust, mill scale, or salts guarantees premature failure — preparation is the coating system.
- **SCC misdiagnosis:** calling a fatigue or overload crack "stress corrosion" — SCC needs the specific environment; check for branching and confirm the chemistry.
- **Ignoring microbes:** MIC (microbiologically influenced corrosion) produces pitting under biofilms that standard chemistry doesn't predict — test for it in stagnant water systems.
- **Stray-current blindness:** DC transit systems and welding operations drive corrosion far from the source — when corrosion appears where chemistry says it shouldn't, look for stray currents.
- **Inhibitor under-dosing:** too little inhibitor can accelerate localized attack relative to no inhibitor — verify dosage by monitoring, never assume.

Attribution

aicodedecodeaicodedecode
View sourceSee grades on GitHubMore from aicodedecode →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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 (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698461 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →