chemical-mass-percent-calculation

Calculate mass percentages and stoichiometric ratios for chemical reactions and compound compositions.

Best use case

chemical-mass-percent-calculation is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Calculate mass percentages and stoichiometric ratios for chemical reactions and compound compositions.

Teams using chemical-mass-percent-calculation should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/chemical-mass-percent-calculation/SKILL.md --create-dirs "https://raw.githubusercontent.com/SpectrAI-Initiative/InnoClaw/main/.claude/skills/chemical-mass-percent-calculation/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/chemical-mass-percent-calculation/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How chemical-mass-percent-calculation Compares

Feature / Agentchemical-mass-percent-calculationStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Calculate mass percentages and stoichiometric ratios for chemical reactions and compound compositions.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Chemical Mass Percent Calculation

## Usage

```python
import asyncio
import json
from contextlib import AsyncExitStack
from mcp.client.streamable_http import streamablehttp_client
from mcp import ClientSession

class ChemistryClient:
    def __init__(self, server_url: str, api_key: str):
        self.server_url = server_url
        self.api_key = api_key
        self.session = None

    async def connect(self):
        try:
            self.transport = streamablehttp_client(url=self.server_url, headers={"SCP-HUB-API-KEY": self.api_key})
            self._stack = AsyncExitStack()
            await self._stack.__aenter__()
            self.read, self.write, self.get_session_id = await self._stack.enter_async_context(self.transport)
            self.session_ctx = ClientSession(self.read, self.write)
            self.session = await self._stack.enter_async_context(self.session_ctx)
            await self.session.initialize()
            return True
        except:
            return False

    async def disconnect(self):
        """Disconnect from server"""
        try:
            if hasattr(self, '_stack'):
                await self._stack.aclose()
            print("✓ already disconnect")
        except Exception as e:
            print(f"✗ disconnect error: {e}")
    def parse_result(self, result):
        try:
            if hasattr(result, 'content') and result.content:
                return json.loads(result.content[0].text)
            return str(result)
        except:
            return {"error": "parse error"}

## Initialize and use
client = ChemistryClient("https://scp.intern-ai.org.cn/api/v1/mcp/24/Chemistry_and_Reaction_Calculations", "<your-api-key>")
await client.connect()

# Calculate mass percent of oxygen in H2O
mass_H = 2 * 1.008  # 2 hydrogen atoms
mass_O = 1 * 16.00  # 1 oxygen atom
total_mass = mass_H + mass_O
percent_O = (mass_O / total_mass) * 100
print(f"Mass percent of O in H2O: {percent_O:.2f}%")

await client.disconnect()
```

### Use Cases
- Stoichiometry, analytical chemistry, quality control, reaction yield calculations

Related Skills

seawater-sound-speed-calculation

370
from SpectrAI-Initiative/InnoClaw

Calculate sound speed in seawater from practical salinity, temperature, and pressure using the Gibbs Seawater Oceanographic Toolbox.

protein-properties-calculation

370
from SpectrAI-Initiative/InnoClaw

Calculate comprehensive protein sequence properties including isoelectric point, molecular weight, hydrophobicity, and physicochemical parameters.

peptide-properties-calculation

370
from SpectrAI-Initiative/InnoClaw

Calculate peptide sequence properties including molecular weight, isoelectric point, extinction coefficient, and chemical formula.

optical-frequency-calculation

370
from SpectrAI-Initiative/InnoClaw

Calculate optical frequency and wavelength relationships for photonics and electromagnetic analysis.

molecular-properties-calculation

370
from SpectrAI-Initiative/InnoClaw

Calculate basic molecular properties from SMILES including molecular weight, formula, atom counts, and exact mass.

molecular-descriptors-calculation

370
from SpectrAI-Initiative/InnoClaw

Calculate advanced molecular descriptors including shape indices, connectivity indices, and structural features for QSAR and drug discovery.

material-density-volume-calculation

370
from SpectrAI-Initiative/InnoClaw

Calculate material density and volume from mass and geometric dimensions for materials mechanics analysis.

geometric-volume-calculation

370
from SpectrAI-Initiative/InnoClaw

Calculate volumes of geometric shapes for engineering design and mathematical analysis.

chemical_structure_comparison

370
from SpectrAI-Initiative/InnoClaw

Chemical Structure Comparison - Compare chemical structures: get SMILES, analyze structures, compute similarity, and check PubChem records. Use this skill for cheminformatics tasks involving NameToSMILES ChemicalStructureAnalyzer calculate smiles similarity get compound by name. Combines 4 tools from 4 SCP server(s).

chemical_safety_assessment

370
from SpectrAI-Initiative/InnoClaw

Chemical Safety Assessment - Assess chemical safety: PubChem compound info, FDA drug data, ADMET prediction, and structural alerts from ChEMBL. Use this skill for chemical safety tasks involving get general info by compound name get warnings and cautions by drug name pred molecule admet get compound structural alert. Combines 4 tools from 4 SCP server(s).

chemical_property_profiling

370
from SpectrAI-Initiative/InnoClaw

Chemical Property Profiling - Profile chemical properties: basic info, hydrophobicity, H-bonds, charges, and molecular complexity. Use this skill for physical chemistry tasks involving calculate mol basic info calculate mol hydrophobicity calculate mol hbond calculate mol charge calculate mol complexity. Combines 5 tools from 1 SCP server(s).

chemical_patent_analysis

370
from SpectrAI-Initiative/InnoClaw

Chemical Patent & Novelty Analysis - Analyze chemical novelty: PubChem substructure CAS search, ChEMBL similarity search, compound synonyms, and literature. Use this skill for patent chemistry tasks involving get substructure cas get similarity by smiles get compound synonyms by name search literature. Combines 4 tools from 3 SCP server(s).