socket-bridge

socket-bridge is a skill for Claude Code, Codex from Cai-aa/CAE-Agent-Hub. It costs 0 tokens per session (668 once invoked), scanned A, original, MIT.

A connection workflow between an agent and Abaqus/CAE, an engineering program used to build and solve finite-element models. The socket bridge lets the agent send Python commands to the running Abaqus session over a local connection.

In plain words
What is it for?
Use it to test the connection, run Python in the Abaqus kernel, submit and monitor jobs, inspect output databases, set the work directory, and list session jobs.
Why use it?
It avoids manually entering every command in Abaqus and provides checks for connection, job progress, diagnostics, and results. Abaqus/CAE must be open with its bridge plugin active.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/cai-aa/cae-agent-hub/socket-bridge
Any agent
npx skills add Cai-aa/CAE-Agent-Hub --skill socket-bridge
Clone the repo
git clone --depth 1 https://github.com/Cai-aa/CAE-Agent-Hub

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for socket-bridge

README.md
[![agentmods](https://agentmods.dev/badge/skills/cai-aa/cae-agent-hub/socket-bridge.svg)](https://agentmods.dev/skills/cai-aa/cae-agent-hub/socket-bridge)
Your own site
<a href="https://agentmods.dev/skills/cai-aa/cae-agent-hub/socket-bridge"><img src="https://agentmods.dev/badge/skills/cai-aa/cae-agent-hub/socket-bridge.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 668 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00668
Opus 5 $0.00000 $0.00334
Sonnet 5 $0.00000 $0.00134
Haiku 4.5 $0.00000 $0.00067

Measured 6d ago against content hash e8b16b54a2d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

socket-bridge scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Skill/abaqus/composite-curing-simulation/execution/socket-bridge/SKILL.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Socket Bridge Connection

Description

Connect to Abaqus CAE via socket bridge for curing simulation. Invoke when user needs to use socket bridge, connect to Abaqus, or execute Python in Abaqus kernel.

Content

Socket Bridge Overview

The socket bridge provides a TCP connection to Abaqus CAE at 127.0.0.1:48152, allowing remote execution of Python code in the Abaqus kernel.

Prerequisites

  • Abaqus CAE must be open and running
  • The socket bridge plugin must be active in Abaqus

Connection Check

Use the check_abaqus_connection MCP tool to verify the bridge status before executing any commands.

Available MCP Tools

Tool Description
check_abaqus_connection Verify bridge connection status
run_python Execute Python code in Abaqus kernel
submit_job Submit a job and wait for completion
monitor_job_status Check .sta/.msg file diagnostics
inspect_odb Read ODB results and field outputs
set_workdir Set the working directory
list_jobs List existing jobs in the session

run_python Usage

When using run_python, set the result variable to return data back to the caller:

# Example: get list of steps
result = []
for step_name in odb.steps.keys():
    result.append(step_name)

Abaqus Python Environment Quirks

The Abaqus Python environment has several important quirks to be aware of:

Python Version
  • Abaqus 2020+ uses Python 2.7 based environment
  • Do not use Python 3 specific syntax
Unicode Issues
  • print() statements with unicode may cause errors
  • Use result = ... to return data instead of printing
Imports
  • Must import constants: from abaqusConstants import *
  • This provides access to all Abaqus constants (OFF, ON, RUNNING, etc.)
String Formatting
  • Use the % operator for string formatting
  • Do NOT use .format() or f-strings (not supported in Python 2.7)
# Correct
text = '%d nodes found' % node_count

# Incorrect (will fail)
text = '{} nodes found'.format(node_count)
text = f'{node_count} nodes found'

Read the full file on GitHub · 87 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 87 lines · 0 tokens per session scan A e8b16b54a2d7

Subscribe to this mod's changes

socket-bridge is a skill published in the GitHub repository Cai-aa/CAE-Agent-Hub (832 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 668 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

exploratory-data-analysis

Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…

K-Dense-AI/scientific-agent-skills · 83 tokens

phylogenetics

Build and analyze phylogenetic trees using MAFFT (multiple alignment), IQ-TREE 2 (maximum likelihood), and FastTree (fast NJ/ML). Visualize with ETE3 or FigTree. For evolutionary analysis, microbial genomics, viral phylodynamics, protein family analysis, and molecular clock studies.

K-Dense-AI/scientific-agent-skills · 68 tokens

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

mapping-to-snomed

Maps clinical concept spans extracted by OpenMed to SNOMED CT concepts through a USER-SUPPLIED terminology server (the user's own Ontoserver, Snowstorm, or UMLS/UTS), never a bundled vocabulary. Use when the user wants to code findings, disorders, procedures, body structures, or substances to SNOMED CT, run an ECL…

maziyarpanahi/openmed · 205 tokens